• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

random items stats

ConAn Edujawa

Member
Joined
Feb 23, 2015
Messages
457
Reaction score
17
in this mod i found this code
local random = math.ceil(math.random(100000) / ext)
anyone can explain to me what this code mean
0.4

 
math.ceil rounds the number upwards.
math.randon(100000) chooses a pseudo random number between 1 and 100000.

So, it chooses a random number, divides it by 'ext', whatever that is, and then rounds it to the closest integer.
 
math.ceil rounds the number upwards.
math.randon(100000) chooses a pseudo random number between 1 and 100000.

So, it chooses a random number, divides it by 'ext', whatever that is, and then rounds it to the closest integer.
how i can change the chance in this mod for 100 not 100000
 
thx bro work fine
but i have this in consol how i can fix it
[19:54:47.197] > WARNING: max_allowed_packet might be set too low for binary map storage.
[19:54:47.197] Use the following query to raise max_allow_packet: SET GLOBAL max_allowed_packet = 16776192;
 
thx bro work fine
but i have this in consol how i can fix it
[19:54:47.197] > WARNING: max_allowed_packet might be set too low for binary map storage.
[19:54:47.197] Use the following query to raise max_allow_packet: SET GLOBAL max_allowed_packet = 16776192;
"Use the following query to raise max_allow_packet:"

The solution might be staring you in the face. xD

Use that sql query in your database
 
Back
Top