EvilSkillz
Back
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isSorcerer(cid) then -- is sorcerer [it will allow master sorcerers too, to allow sorcs only use [[if getPlayerVocation(cid) == 1 then ]].]
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "your vocation has been changed to druid.")
doPlayerSetVocation(cid, 2) -- change voc to druid
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "only sorcerers may use this chest.")
end
return true
end
i have this script up
as u see it's to change vocation from sorcerer to druid
but can i ask for something
i need box change from any vocation to druid
Example . ' . 1 Box if u are Sorcerer - Knight - Paladin you can be druid when click on box
and also something
u need to have xxx storage to click in box and when u change ur voc u will lose some of ur storage
like if storage 500 it's will be 200
Regards Evil Skillz
Last edited by a moderator: