Hello Otlanders, i come here to share with You this script:
TFS/data/actions/scripts/outfiter.lua
In actions.xml add:
Hope You like it. :$
TFS/data/actions/scripts/outfiter.lua
PHP:
function onUse(cid, item, frompos, item2, topos)
if getPlayerSex(cid) == 1 then
doPlayerAddOutfit(cid, 335, 3)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREAREA)
doRemoveItem(item.uid, 1)
elseif getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 336, 3)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREAREA)
doRemoveItem(item.uid, 1)
end
end
PHP:
<action itemid="10503" event="script" value="outfiter.lua"/>
- How does it work?
- How to configure?
PHP:
doPlayerAddOutfit(cid, 335, 3)
- 335 - Outfit looktype (You can find it in data/XML/outfits.xml)
- 3 - how many addons player will gain (if You paste 1 - You will gain only first addon, if You paste 2 - You will gain only second addon, if You paste 3 - You will gain both addons)
Hope You like it. :$
Last edited: