Drop too high

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Hik
Nou Venit

Nou Venit
Mesaje: 18
Membru din: 24 Iun 2015, 19:19
Regat: Chunjo
Aprecieri: 27  
Mulţumiri: 0
Medalii

Hi guys, I need your help!
I compile metin2 using visualstudio19 (server side) and I have a problem with the drop.
As you can see, the drop is set to 1% but despite this I continue to drop, at each mob 101 eliminated, at least 2 of the items in the list.
On freebsd it didn't happen.
Some advice?
Group test_dog
{
	type	drop
	mob	101
	1	1012	1	1
	2	4012	1	1
	3	11402	1	1
	4	16022	1	1
}
if (iPercent >= number(1, iRandRange))

iPercent = 100000 | in mob_drop_item the percentage is set to 10
number = 1, 4000000 | random number between 1 and 4000000

I noticed, however, how the random values obtained are very different between the two versions:
random = 3894439
random = 229634
random = 1664283
random = 3958197 | BSD VERSION
random = 924476
random = 2193081
random = 181074
-----------------------------------------------------------------------------

random = 12851
random = 10165 | WINDOWS VERSION
random = 23397
random = 12871
i don't enter all the other values because they follow the same trend.
In the first case, having a high random value I will not drop, while having a low one in the second case I will always drop.
Any ideas on this?
Avatar utilizator
[Reizo]
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1301
Membru din: 22 Oct 2019, 15:44
Server: SAPPHIRE2
Regat: Chunjo
Aprecieri: 409  
Mulţumiri: 4322  
Discord: Copiază ID
 Contact:
Medalii

Autorul nu a mai dat niciun semn în ultimele 5 zile + Avem şi un model de respectat.

Arhivă.
Imagine
Afișează semnătura
Închis
Răspunsuri
0
Vizualizări
89
Răspunsuri
4
Vizualizări
313

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 46 vizitatori