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

Creature walk over the quest chest help please!!

Johannes10

New Member
Joined
Mar 10, 2010
Messages
181
Reaction score
1
The player cant walk on the quest chest but the monster can :S someone help me please!!

version 0.3.6 (Crying Damson)

Here is a screenshot
xpstad.png
 
Solution
Sorry to bring this back but i have the same problem but i don't have that line, i have this
tfs 0.3
Code:
local SPECIAL_QUESTS = {2001}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(not isPlayer(cid)) then
        return true
    end

    if(isContainer(item.uid)) then
        if(not isInArray(SPECIAL_QUESTS, item.actionid) and item.uid > 65535) then
            return true
        end
    elseif(getTileInfo(position).creatures <= 1) then
        return true
    end
 
    if(fromPosition.x == 0) then -- player just logged in
        fromPosition = getTownTemplePosition(getPlayerTown(cid))
        doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
    end

    doTeleportThing(cid...
Go into "data\movements\scripts\walkback.lua"

Change the second line from:
Lua:
if((item.actionid == 2001 or (item.uid > 0 and item.uid <= 65535)) and isPlayer(cid)) then

to:
Lua:
if(item.actionid == 2001 or (item.uid > 0 and item.uid <= 65535)) then
 
Go into "data\movements\scripts\walkback.lua"

Change the second line from:
Lua:
if((item.actionid == 2001 or (item.uid > 0 and item.uid <= 65535)) and isPlayer(cid)) then

to:
Lua:
if(item.actionid == 2001 or (item.uid > 0 and item.uid <= 65535)) then

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if((item.actionid == 2001 or (item.uid > 0 and item.uid <= 65535)) and isPlayer(cid)) then
if(fromPosition.x == 0) then -- player just logged in on chest
fromPosition = getTownTemplePosition(getPlayerTown(cid))
doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
end

doTeleportThing(cid, fromPosition, false)
end
return true
end

and this on xml.
<movevent type="StepIn" itemid="1738" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1740" event="script" value="walkback.lua"/>
<movevent type="StepIn" fromid="1746" toid="1749" event="script" value="walkback.lua"/>


This script do i got, is this the right script?
 
Sorry to bring this back but i have the same problem but i don't have that line, i have this
tfs 0.3
Code:
local SPECIAL_QUESTS = {2001}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(not isPlayer(cid)) then
        return true
    end

    if(isContainer(item.uid)) then
        if(not isInArray(SPECIAL_QUESTS, item.actionid) and item.uid > 65535) then
            return true
        end
    elseif(getTileInfo(position).creatures <= 1) then
        return true
    end
   
    if(fromPosition.x == 0) then -- player just logged in
        fromPosition = getTownTemplePosition(getPlayerTown(cid))
        doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
    end

    doTeleportThing(cid, fromPosition, true)
    return true
end

does anyone know how to fix this in here?
 
Sorry to bring this back but i have the same problem but i don't have that line, i have this
tfs 0.3
Code:
local SPECIAL_QUESTS = {2001}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(not isPlayer(cid)) then
        return true
    end

    if(isContainer(item.uid)) then
        if(not isInArray(SPECIAL_QUESTS, item.actionid) and item.uid > 65535) then
            return true
        end
    elseif(getTileInfo(position).creatures <= 1) then
        return true
    end
 
    if(fromPosition.x == 0) then -- player just logged in
        fromPosition = getTownTemplePosition(getPlayerTown(cid))
        doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
    end

    doTeleportThing(cid, fromPosition, true)
    return true
end

does anyone know how to fix this in here?

They wrote "remove isPlayer(cid)"
Line 2 in your script;
Lua:
    if(not isPlayer(cid)) then
        return true
    end
 
Solution
oooh so it should be
Code:
if(not ) then
        return true
    end

??

No in your case you remove the code I posted.
Read the code, if the player exists we should return true = we don't want it to do that, so we remove that part.
 
Back
Top