mam skrypt na to by po uzyciu itemka o ID x dodawało się y expa...
jak dodać exhausted? by nie można było używać tego itemka co 2 sekundy ?
jak dodać exhausted? by nie można było używać tego itemka co 2 sekundy ?
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 1 then
doPlayerAddExp(cid, 150000)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doCreatureSay(cid, "1000000 Expa Dla Ciebie!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid,1)
return TRUE
else
end
end
Last edited: