• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Pirate Outfit Lever

xYzPrototype

Just a standard member
Joined
Feb 27, 2015
Messages
49
Reaction score
4
Location
EUW
[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:
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:
https://otland.net/threads/rules-for-the-support-board.217087/
5.

In data/XML/outfits.xml you can find the outfits.
Code:
  <outfit id="12" premium="yes" default="0">
     <list gender="0" lookType="155" name="Pirate"/>
     <list gender="1" lookType="151" name="Pirate"/>
   </outfit>

You can also use
Code:
doPlayerAddOutfitId(cid, 13, 3)

You didn't mention what is wrong, so if something else is wrong, post it.
 
https://otland.net/threads/rules-for-the-support-board.217087/
5.

In data/XML/outfits.xml you can find the outfits.
Code:
  <outfit id="12" premium="yes" default="0">
     <list gender="0" lookType="155" name="Pirate"/>
     <list gender="1" lookType="151" name="Pirate"/>
   </outfit>

You can also use
Code:
doPlayerAddOutfitId(cid, 13, 3)

You didn't mention what is wrong, so if something else is wrong, post it.


The script I posted was fully working, I am just after a script gives the player the outfit and addons

Thank you

Btw sorry about breaking a rule, I didn't realise
 
Back
Top