Eldora
Banned User
- Joined
- Oct 19, 2009
- Messages
- 604
- Reaction score
- 26
I am trying to create action script for a item.
I want this item to add 50% more experience, skill and magic level gains for 6 hours.
Please help me complete the code to work.
Using Avesta server.
@ruth
Thank you in advance!
I want this item to add 50% more experience, skill and magic level gains for 6 hours.
Please help me complete the code to work.
Using Avesta server.
LUA:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 2345 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received 6 hours of bonus. Please login again!")
doRemoveItem(item.uid,1)
setPlayerStorageValue(cid, 30011, 1)
end
return TRUE
end
@ruth
Thank you in advance!