Evangelion
New Member
- Joined
- May 8, 2008
- Messages
- 13
- Reaction score
- 0
Well Specials Thanks to Chojrak.
Shawak Thanks man.
If you stepIn a tile, this tile remove yours addons, do you need put a uid in the tile ( 4987 ) .
Shawak Thanks man.
If you stepIn a tile, this tile remove yours addons, do you need put a uid in the tile ( 4987 ) .
Lua:
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, position, fromPosition)
local cfg = {
message = "Por el momento los addons seran removidos.", -- Write your message
pos = getCreaturePosition(cid)
}
if item.uid == 4987 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.uid == 4987 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
Last edited: