tago360
Member
- Joined
- Apr 3, 2008
- Messages
- 49
- Reaction score
- 6
Hello I am not best a scripting but made simple script for others to use aswell.
When you use the chest it will give you either one or two addons, depends what you put after the addon id number. 1 is addon 1 2 is addon 2 and 3 is addon 1 and 2 together. Also added if a staff member you will get a pop up saying that your staff and already have the outfits depends on what staff you give all outfits to. Also gives addon depending on sex.
Use on switch or w/e in my case of testing I used a chest Itemid: 21584 with a unique id of 10000 giving you a stage value of 12050
When you use the chest it will give you either one or two addons, depends what you put after the addon id number. 1 is addon 1 2 is addon 2 and 3 is addon 1 and 2 together. Also added if a staff member you will get a pop up saying that your staff and already have the outfits depends on what staff you give all outfits to. Also gives addon depending on sex.
Use on switch or w/e in my case of testing I used a chest Itemid: 21584 with a unique id of 10000 giving you a stage value of 12050
Lua:
----TAGO360----
function onUse(cid, item, frompos, item2, topos, isHotkey)
if getPlayerGroupId(cid, 2) >=2 then
doPlayerPopupFYI(cid, "You are a staff member, You already have all outfits!")
doPlayerSendTextMessage(cid,25,"You already have all outfits.")
doSendMagicEffect(getCreaturePosition(cid), 3)
elseif item.uid == 10000 then
if (getPlayerStorageValue(cid,12050) == -1) and getPlayerSex(cid) == 1 then
doPlayerPopupFYI(cid, "Reward: Full Citizen Outfit.")
doPlayerSendTextMessage(cid,21,"What a handsom man you are, You now have the Full Citizen Outfit!")
doPlayerAddOutfit(cid, 128, 3)
setPlayerStorageValue(cid,12050,1)
doSendMagicEffect(getCreaturePosition(cid), 49)
doSendMagicEffect(getCreaturePosition(cid), 50)
else if(getPlayerStorageValue(cid,12050) == -1) and getPlayerSex(cid) == 0 then
doPlayerPopupFYI(cid, "Reward: Full Citizen Outfit.")
doPlayerSendTextMessage(cid,21,"What a beautiful woman you are, You now have the Full Citizen Outfit!")
doPlayerAddOutfit(cid, 136, 3)
setPlayerStorageValue(cid,12050,1)
doSendMagicEffect(getCreaturePosition(cid), 49)
doSendMagicEffect(getCreaturePosition(cid), 50)
else
doPlayerPopupFYI(cid, "You already have the addons.")
doPlayerSendTextMessage(cid,25,"You already have the Addons.")
doSendMagicEffect(getCreaturePosition(cid), 3)
end
end
return true
end
end
Last edited: