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

TFS 1.X+ Paradox Quest entrance. tfs 1.5

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
928
Solutions
7
Reaction score
127
Location
Brazil
YouTube
caruniawikibr
the script works 100% but I don't know how to remove this error
could anyone tell me how to fix this?

Lua:
function ChangeBack(cid)

doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1304)

end



function onStepIn(cid, item, pos)

 if item.actionid == 8008 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
        addEvent(ChangeBack, 45000, cid)
        doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1385)

    else
        doPlayerSendCancel(cid," ")

    end
  return 1
end

WhatsApp Image 2022-10-04 at 23.48.51.jpeg
 
Solution
work 100%

Lua:
initChangeBack = function(self)
doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1304)
end



function onStepIn(cid, item, pos)
    if item.actionid == 8008 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
        addEvent(function()
            initChangeBack()
        end, 45000)
        doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1385)
    else
        doPlayerSendCancel(cid," ")
    end
  return 1
end
Try this ... hope it works.

Lua:
function ChangeBack(pos)
    doTransformItem(getThingfromPos(pos).uid, 1304)
end

function onStepIn(cid, item, pos)
    if item.actionid == 8008 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
        local pos = {x=32478, y=31902, z=7, stackpos=1}
        addEvent(ChangeBack, 45000, pos)
        doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1385)
    else
        doPlayerSendCancel(cid," ")
    end
end
 
the script works 100% but I don't know how to remove this error
could anyone tell me how to fix this?

Lua:
function ChangeBack(cid)

doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1304)

end



function onStepIn(cid, item, pos)

 if item.actionid == 8008 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
        addEvent(ChangeBack, 45000, cid)
        doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1385)

    else
        doPlayerSendCancel(cid," ")

    end
  return 1
end

View attachment 70984
Again you're using TFS 0.x function names, You can find a better Paradox tower script here.
I don't know where are you getting your 0.x scripts but if you're creating a real map or copying some real map quests to your server then the best places to get your scripts which will be very close to TFS 1.5 is here and here.
 
work 100%

Lua:
initChangeBack = function(self)
doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1304)
end



function onStepIn(cid, item, pos)
    if item.actionid == 8008 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
        addEvent(function()
            initChangeBack()
        end, 45000)
        doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1385)
    else
        doPlayerSendCancel(cid," ")
    end
  return 1
end
 
Solution
work 100%

Lua:
initChangeBack = function(self)
doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1304)
end



function onStepIn(cid, item, pos)
    if item.actionid == 8008 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
        addEvent(function()
            initChangeBack()
        end, 45000)
        doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1385)
    else
        doPlayerSendCancel(cid," ")
    end
  return 1
end
I recommend you to create your own scripts based on cipsoft leaked files instead of any open source scripts out there.

Cipsoft moveuse.dat:
Code:
Collision, IsType (Obj1,371), IsPosition (Obj1,[32479,31908,07]), IsPlayer (Obj2), IsObjectThere ([32478,31902,07],1947) -> ChangeOnMap([32478,31902,07],1947,1791,0), EffectOnMap([32478,31902,07],3)
Collision, IsType (Obj1,371), IsPosition (Obj1,[32478,31908,07]), IsPlayer (Obj2), IsObjectThere ([32478,31902,07],1947) -> ChangeOnMap([32478,31902,07],1947,1791,0), EffectOnMap([32478,31902,07],3)


So you should do something like this:
Lua:
local Stairs_Position = {x = 32478, y = 31902, z = 7}
local STAIRS = 1385
local STONE = 1304

function onStepIn(cid, item, fromPosition)

    local Stairs = getTileItemById(Stairs_Position,STAIRS)

    if isPlayer(cid) and Stairs.itemid == STAIRS then
        doSendMagicEffect(Stairs_Position, CONST_ME_POFF)
        doTransformItem(Stairs.uid, STONE)
    end
    return true
end

Cipsoft moveuse.dat:

Code:
Collision, IsType (Obj1,431), IsPosition (Obj1,[32481,31905,07]), IsPlayer (Obj2), IsObjectThere ([32479,31920,07],3696), IsObjectThere ([32478,31920,07],3696), IsObjectThere ([32478,31902,07],1791) -> ChangeOnMap([32478,31902,07],1791,1947,0), EffectOnMap([32478,31902,07],3)

So:

Lua:
local Jungle_Grass_Position = {
[1] = {x = 32479, y = 31920, z = 7},
[2] = {x = 32478, y = 31920, z = 7}
}

local Stone_Position = {x = 32478, y = 31902, z = 7}
local STONE = 1304
local JUNGLE_GRASS = 2782
local STAIRS = 1385

function onStepIn(cid, item, fromPosition)

    local Jungle_Grass = {
    [1] = getTileItemById(Jungle_Grass_Position[1],JUNGLE_GRASS),
    [2] = getTileItemById(Jungle_Grass_Position[2],JUNGLE_GRASS)
    }

    local Stone = getTileItemById(Stone_Position,STONE)

    if isPlayer(cid) and Jungle_Grass[1].itemid == JUNGLE_GRASS and Jungle_Grass[2].itemid == JUNGLE_GRASS and Stone.itemid == STONE then
        doSendMagicEffect(Stone_Position, CONST_ME_POFF)
        doTransformItem(Stone.uid, STAIRS)
    end
    return true
end
 
Last edited:
Back
Top