Illusion Storm
Zakładam kominiare.
- Joined
- Aug 28, 2008
- Messages
- 377
- Reaction score
- 0
Hello, i make talkaction script for checking how much monsters player must kill to next level simple Demon !exp "Demon
Script working with stages.
What's wrong?;x
Script working with stages.
Lua:
function onSay(cid, words, param, channel)
if(getMonsterInfo(param).experience == 0) then
doPlayerSendCancel(cid,"After killing this creature you dont get experience.")
return true
end
local formula = (getExperienceForLevel(getPlayerLevel(cid) + 1) - getPlayerExperience(cid))/
(getMonsterInfo(param).experience * getConfigInfo('rateExp'))
doPlayerSendTextMessage(cid, MessageClasses, message)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You need to kill ".. formula .." monsters called ".. param .."'s.))
end
return true
end
What's wrong?;x