Exedion
Active Member
- Joined
- Jun 11, 2007
- Messages
- 628
- Reaction score
- 30
Well other of my easy scripts but full usefull for rpg's servers! jejej, here we go:
and add this to you action.xml
lotery ticket closed: 5957
lotery ticket looser: 5956
lotery ticket winner: 5958
have fun with your addon system xD ^^
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local value = math.random(5956, 5958)
doTransformItem(item.uid, value)
return TRUE
end
and add this to you action.xml
Code:
<action itemid="5957" script="lotery.lua"/>
lotery ticket closed: 5957
lotery ticket looser: 5956
lotery ticket winner: 5958
have fun with your addon system xD ^^