• 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!

[Request] Login Random Mount

narko

vertrauenswürdig ~
Joined
Oct 19, 2008
Messages
1,317
Solutions
2
Reaction score
132
Location
Unknown
Hello, OTLander i need to my Server one script:


Explain:

I need script to Example: if Player Login recieve a Mount of example: (doPlayerAddMount(cid, 1~12 math.random)1 to 12 like a this:

for v = 1, 12 do
if math.random v then
doPlayerAddMount(cid,v.math.random)
something

if do /l recieve only one mount of 1 to 12


Please i need you help.
 
Just use math.random in the function
LUA:
doPlayerAddMount(cid, math.random(1,12))
And if you only want it to happen once set a storageValue
 
Back
Top