simonarstam
New Member
- Joined
- May 22, 2009
- Messages
- 5
- Reaction score
- 0
Hey, I would like to ask you guys for some help. I would like you to take a look on this script. The script should give you both demonhunter addons and the outfit when you walk on a specific tile. Is this a correct movements script? I can't see what I did wrong with this script, thanks in advance.
Code:
function onStepIn(cid, item, position, fromPosition)
if action.id == 10503 and (getPlayerStorageValue(cid, 8764) then
doPlayerAddOutfit(cid, 288, 3)
doPlayerAddOutfit(cid, 289, 3)
setPlayerStorageValue(cid, 8764, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREDAMAGE)
doPlayerSendTextMessage(cid,22,"Congratulations, you have received demonhunter addon!")
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You have already received this addon!.")
end
end