Admin - 2008-02-25 12:36:24

W actions.xml dopisujemy
Kod:

<action itemid="5792" script="dice.lua" />
<action itemid="5793" script="dice.lua" />
<action itemid="5794" script="dice.lua" />
<action itemid="5795" script="dice.lua" />
<action itemid="5796" script="dice.lua" />
<action itemid="5797" script="dice.lua" />

a w data/actions/scripts tworzymy dice.lua i wpisujemy w nim
Kod:

function onUse(cid, item, frompos, item2, topos)
rand = math.random(5792, 5797)
doSendMagicEffect(cid, frompos, 26)
number = rand-5791
name = getPlayerName(cid)
doPlayerSay(cid, name ..' rolled a '.. number ..'.',16)
doTransformItem(item.uid, rand)


return 1
end

SKRYPT POD TIBIE 7.92

www.csbendusz.pun.pl www.mazdatuning.pun.pl www.gamesoft.pun.pl www.speedwaymenagzuzlowy.pun.pl www.tibiamaster.pun.pl