Wazzap
Killing Elite
Diffrent Dice
Los by !los
http://img714.imageshack.us/img714/199/losowanie.jpg
data/talkactions/scripts/losowanie.lua
talkactions.xml:
Los by !los
http://img714.imageshack.us/img714/199/losowanie.jpg
data/talkactions/scripts/losowanie.lua
function onSay(cid, words, param)
local effect = 12 -----numer efektu
local textColor = 192 ----numer koloru wyświetlanej liczby
if(param ~= '' and tonumber(param) > 0) then
doSendAnimatedText(getCreaturePosition(cid),math.random(1,param),textColor)
doSendMagicEffect(getCreaturePosition(cid),12)
else
doPlayerSendTextMessage(cid,22,"Musisz podac liczbe wieksza od 0")
end
return TRUE
end
talkactions.xml:
]<talkaction words="!los" event="script" value="losowanie.lua"/>