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

[solved]

Doubt this will work, never messed with conditions before. Try it though

Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local pos = { x = 100, y = 100, z = 7 }
local outfitCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfitCondition, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(outfitCondition, {lookType = 4, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
	
	if isPlayer(cid) then
		doAddCondition(cid, outfitCondition) 
		doSendMagicEffect(pos, 10)
	end
	return true
end
 
You need to put the condition before the function.

LUA:
local wolfCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(wolfCondition, CONDITION_PARAM_TICKS, 2*60*1000) -- 2*60*1000 is the time (2 minutes)
addOutfitCondition(wolfCondition, {lookType = 27, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})

local pos = { x = 100, y = 100, z = 7 }
function onStepIn(cid,item,position,lastPosition,fromPosition,toPosition,actor)
    if isPlayer(cid) then
        doAddCondition(cid,outfitCondition) 
        doSendMagicEffect(pos,10)
    end
    return true
end
 
Last edited:
Because I thought you were going to add that to a tile under a teleport, so I didn't include anything to teleport the player in the script. Here it is with teleporting

Code:
local wolfCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(wolfCondition, CONDITION_PARAM_TICKS, 2*60*1000) -- 2*60*1000 is the time (2 minutes)
addOutfitCondition(wolfCondition, {lookType = 27, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
 
local pos = { x = 100, y = 100, z = 7 }
function onStepIn(cid,item,position,lastPosition,fromPosition,toPosition,actor)
    if isPlayer(cid) then
	doTeleportThing(cid, pos)
        doAddCondition(cid,outfitCondition) 
        doSendMagicEffect(pos,10)
    end
    return true
end
 
Still the same... only transforming not teleporting!

this line is right?
<movevent type="StepIn" itemid="5031" event="script" value="teleport.lua"/>

5031 i add in ActionID and UniqueID on the tile
 
Cheers now its TP but not transforming hehe having this problem on console

Code:
[Error - MoveEvents Interface]
data/movements/scripts/teleport.lua:onStepIn
Description:
(luaDoAddCondition) Condition not found
 
Sorry I copied his script without checking it

Code:
local outfitCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfitCondition, CONDITION_PARAM_TICKS, 2*60*1000) -- 2*60*1000 is the time (2 minutes)
addOutfitCondition(outfitCondition, {lookType = 27, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
 
local pos = { x = 100, y = 100, z = 7 }
function onStepIn(cid,item,position,lastPosition,fromPosition,toPosition,actor)
    if isPlayer(cid) then
	doTeleportThing(cid, pos)
        doAddCondition(cid,outfitCondition) 
        doSendMagicEffect(pos,10)
    end
    return true
end
 
yeahh!! Thanks man u save my day !! i cant rep u anymore lol

"You must spread some Reputation around before giving it to Grehy again."

SOLVED thanks bro !
 
Back
Top