local maleOutfits = {
128, 129, 130, 131, 132, 133, 134, 143, 144,
145, 146, 151, 152, 153, 154, 251, 268, 273,
278, 289, 325
}
local femaleOutfits = {
136, 137, 138, 139, 140, 141, 142, 147, 148,
149, 150, 155, 156, 157, 158, 252, 269, 270,
279, 288, 324
}
function onStepIn(cid, item, frompos, item2, topos)
local cfg = {
message = "Addon Removed.",
pos = getCreaturePosition(cid)
}
if item.actionid == 8000 and (getPlayerSex(cid) == 0) then
for i = 1, #femaleOutfits do
doPlayerRemOutfit(cid, femaleOutfits[i], 3)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,cfg.message )
doSendMagicEffect(cfg.pos, CONST_ME_POFF)
end
elseif item.actionid == 8000 and (getPlayerSex(cid) == 1) then
for i = 1, #maleOutfits do
doPlayerRemOutfit(cid, maleOutfits[i], 3)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,cfg.message )
doSendMagicEffect(cfg.pos, CONST_ME_POFF)
end
end
return true
end