I am making a lua gossip script where I want the players to get an item at a percent of chance when they use it.
I am making a lua gossip script where I want the players to get an item at a percent of chance when they use it.
"i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"
In theory, a 50/50 chance would be:
Code:Choice=math.random(1, 2) if Choice==1 then player:AddItem(55555) pUnit:Despawn(1,0) end if Choice==2 then pUnit:Despawn(1,0) end end
Last edited by stoneharry; 03-12-2009 at 01:20 PM.
Tyvm Stoneharry. +rep When I can
"i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"