• 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!

[Movements] Remove Addons [Fixed]

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 ) :).


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:
Lua:
local OUTFIT = {
      [1] = {f = 136, m = 128}, [2] = {f = 137, m = 129},
      [3] = {f = 138, m = 130}, [4] = {f = 139, m = 131},
      [5] = {f = 140, m = 132}, [6] = {f = 141, m = 133},
      [7] = {f = 142, m = 134}, [8] = {f = 147, m = 143},
      [9] = {f = 148, m = 144}, [10] = {f = 149, m = 145},
      [11] = {f = 150, m = 146}, [12] = {f = 155, m = 151},
      [13] = {f = 156, m = 152}, [14] = {f = 157, m = 153},
      [15] = {f = 158, m = 154}, [16] = {f = 252, m = 251},
      [17] = {f = 269, m = 268}, [18] = {f = 270, m = 273},
      [19] = {f = 279, m = 278},[20] = {f = 288, m = 289}}
 
function onStepIn(cid, item, pos)
local sex = getPlayerSex(cid)
local looktype = OUTFIT[outfitid]
local text = "Por el momento los Addons seran removidos, gracias por tu comprension ".. name .."."
local name = getPlayerName(cid)

        if sex == 0 then
                        doPlayerRemOutfit(cid, looktype.f, addons)
                        doPlayerSendTextMessage(cid,22,"text.")
                        doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
        doPlayerRemOutfit(cid, looktype.m, addons)
        doPlayerSendTextMessage(cid,22,"text.")
        doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
end
        return 1
end

Try this one, on your old script "sex" was always nil, lol.
 
Back
Top