xYzPrototype
Just a standard member
[0.3.6]
Hello all,
I am after a Pirate Outfit lever that removes items on use and permanently gives the player the pirate outfit. I have a similar script but I tried to change it for the pirate outfit but it doesn't work
I was wandering if someone could show me how to change my script
Similar script:
Hello all,
I am after a Pirate Outfit lever that removes items on use and permanently gives the player the pirate outfit. I have a similar script but I tried to change it for the pirate outfit but it doesn't work
I was wandering if someone could show me how to change my script
Similar script:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v = getPlayerSex(cid) == 0 and 137 or 129
if canPlayerWearOutfit(cid, v, 3) then
return doPlayerSendCancel(cid, "You have already obtained the hunter addons!")
end
if (getPlayerItemCount(cid, 5875) < 1) or (getPlayerItemCount (cid, 2804) < 100) then
return doPlayerSendCancel(cid, "You don't have sniper gloves and 100 shadow herbs required to obtain the hunter addons!")
end
doPlayerRemoveItem(cid, 5875, 1)
doPlayerRemoveItem(cid, 2804, 100)
doPlayerAddOutfit(cid, v, 3)
doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Congratulations, you've obtained the hunter addons!")
return true
end
Last edited: