• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

INQ Quest Scripts not working probably

Ray Rewind

Doctor
Joined
Jun 6, 2009
Messages
1,349
Reaction score
76
Location
Germany
I have a Problem I don't have any errors in console or so but when I kill Ushuriel for example a Teleport doesn't appear someone got a Tutorial for me how it works correct?
 
you know once you have entered the teleport to the boss room the south teleport, once you have killed the boss have you tried re entering that teleport?
 
Here are my luas :D

Teleports INQ

PHP:
local config = {
    message = "You have 45 seconds for back use Death Monster For Teleport You.",
    timeToRemove = 60, -- seconds
    teleportId = 1387,
    bosses = {
        ["Ushuriel"] =    { x=257, y=1814, z=6},
        ["Annihilon"] = { x=282, y=1815, z=6},
        ["Hellgorak"] = { x=220, y=1791, z=6},
        ["Madareth"] =    { x=224, y=1813, z=6},
        ["Zugurosh"] =    { x=282, y=1815, z=6},
        ["Latrivan"] =    { x=247, y=1793, z=6},
        ["Golgordan"] = { x=255, y=1793, z=6}
             
               
    }
}
   
local function removal(position)
    doRemoveThing(getTileItemById(position, config.teleportId).uid, 1)
    return TRUE
end


function onDeath(cid, corpse, killer)
    registerCreatureEvent(cid, "inquisitionPortals")
    local position = getCreaturePosition(cid)
   
    for name, pos in pairs(config.bosses) do
        if name == getCreatureName(cid) then
            teleport = doCreateTeleport(config.teleportId, pos, position)
            doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
            addEvent(removal, config.timeToRemove * 1000, position)
            doSendMagicEffect(position,65)
        end
    end
    return TRUE
end


INQ Portals

PHP:
function onDeath(cid, corpse, killer)

registerCreatureEvent(cid, "inquisitionPortals")

local creaturename = getCreatureName(cid)

local ushuriel_in_position = {x=241, y=1812, z=6, stackpos=2}
local annihilon_in_position = {x=283, y=1803, z=6, stackpos=2}
local hellgorak_in_position = {x=223, y=1804, z=6, stackpos=2}
local madareth_in_position = {x=227, y=1824, z=6, stackpos=2}
local zugurosh_in_position = {x=266, y=1812, z=6, stackpos=2}
local brothers_in_position = {x=254, y=1799, z=6, stackpos=1}

local ushuriel_to_position = {x=210, y=1991, z=7, stackpos=1}
local annihilon_to_position = {x=426, y=1984, z=7, stackpos=1}
local hellgorak_to_position = {x=356, y=1958, z=7, stackpos=1}
local madareth_to_position = {x=285, y=1930, z=6, stackpos=1}
local zugurosh_to_position = {x=382, y=2034, z=7, stackpos=1}
local brothers_to_position = {x=161, y=2032, z=7, stackpos=1}

local time_to_pass = 180
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear."

if creaturename == 'Ushuriel' then

teleport = doCreateTeleport(tpID, ushuriel_to_position, ushuriel_in_position)

doSendMagicEffect(ushuriel_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))

elseif creaturename == 'Annihilon' then

teleport = doCreateTeleport(tpID, annihilon_to_position, annihilon_in_position)

doSendMagicEffect(annihilon_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInAnnihilonWard, (1000*time_to_pass))

elseif creaturename == 'Madareth' then

teleport = doCreateTeleport(tpID, madareth_to_position, madareth_in_position)

doSendMagicEffect(madareth_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInMadarethWard, (1000*time_to_pass))

elseif creaturename == 'Hellgorak' then

teleport = doCreateTeleport(tpID, hellgorak_to_position, hellgorak_in_position)

doSendMagicEffect(hellgorak_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInHellgorakWard, (1000*time_to_pass))

elseif creaturename == 'Zugurosh' then

teleport = doCreateTeleport(tpID, zugurosh_to_position, zugurosh_in_position)

doSendMagicEffect(zugurosh_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInZuguroshWard, (1000*time_to_pass))

elseif creaturename == 'Latrivan' then

teleport = doCreateTeleport(tpID, brothers_to_position, brothers_in_position)

doSendMagicEffect(brothers_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))


end
end

function removeTeleportInUshurielWard()
if getThingfromPos({x=246, y=351, z=12, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=246, y=351, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=246, y=351, z=12, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInAnnihilonWard()
if getThingfromPos({x=637, y=472, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=637, y=472, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=637, y=472, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInHellgorakWard()
if getThingfromPos({x=335, y=581, z=10, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=335, y=581, z=10, stackpos=1}).uid,1)
doSendMagicEffect({x=335, y=581, z=10, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInMadarethWard()
if getThingfromPos({x=340, y=460, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=340, y=460, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=340, y=460, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInZuguroshWard()
if getThingfromPos({x=390, y=525, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=390, y=525, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=390, y=525, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInBrothersWard()
if getThingfromPos({x=505, y=345, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=505, y=345, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=505, y=345, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end


INQ

PHP:
local config = {
        timeToRemove = 120, -- seconds
        message = "You now have 2 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear",
        teleportId = 9773,
        bosses = { -- Monster Name,  Teleport Position
                ["Ushuriel"] = {  pos={ x=257, y=1814, z=6, stackpos=1 }, aid=1001 },
                ["Zugurosh"] = {  pos={ x=282, y=1815, z=6, stackpos=1 }, aid=1002},
                ["Madareth"] = {  pos={ x=224, y=1813, z=6, stackpos=1 }, aid=1003},
                ["Annihilon"] = {  pos={ x=281, y=1789, z=6, stackpos=1 }, aid=1005},
                ["Hellgorak"] = {  pos={ x=220, y=1791, z=6, stackpos=1 }, aid=1006}
                },
        brothers ={
        ["Golgordan"] = {pos={ x=255, y=1793, z=6, stackpos=1 },aid=1004, brother = "Latrivan"},
        ["Latrivan"] = {pos={ x=247, y=1793, z=6, stackpos=1 },aid=1004, brother = "Golgordan"},
        brothersArea ={
                fromPos = {x = 243, y = 1787, z = 6},
                toPos = {x = 259, y = 1799, z = 6} } }
}
local function removal(position)
    doRemoveThing(getTileItemById(position, config.teleportId).uid, 1)
    return TRUE
end
function onKill(cid, target, lastHit)
    if(config.bosses[getCreatureName(target)]) then
        local t = config.bosses[getCreatureName(target)]
        local teleport = doCreateItem(config.teleportId, t.pos)
        local position = t.pos
        doItemSetAttribute(teleport, "aid", t.aid)
        doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
        addEvent(removal, config.timeToRemove * 1000, position)
    elseif(config.brothers[getCreatureName(target)]) then
        local t = config.brothers[getCreatureName(target)]
        local brother = getCreatureByName(t.brother)
        if(isMonster(brother) == true) then
            if(isInRange(getCreaturePosition(brother), config.brothers.brothersArea.fromPos, config.brothers.brothersArea.toPos) == true) then
                return TRUE
            end
        else
            local teleport = doCreateItem(config.teleportId, t.pos)
            local position = t.pos
            doItemSetAttribute(teleport, "aid", t.aid)
            doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
            addEvent(removal, config.timeToRemove * 1000, position)
        end
    end
    return TRUE
end

all of these are creature scripts !
 
Here is my Actionxmls

INQ CHESTS

PHP:
function onUse(cid, item, frompos, item2, topos)

      if item.uid == 8560 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Emerald Sword.")
              doPlayerAddItem(cid,8930,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8561 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Spellbook of dark Mysteries.")
              doPlayerAddItem(cid,8918,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8562 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Master Archer's Armor.")
              doPlayerAddItem(cid,8888,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8563 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Robe of the Underworld")
              doPlayerAddItem(cid,8890,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8564 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Fireborn Giant Armor.")
              doPlayerAddItem(cid,8881,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8565 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Obsidian Truncheon.")
              doPlayerAddItem(cid,8928,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8566 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Royal Crossbow.")
              doPlayerAddItem(cid,8851,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8567 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Warsinger Bow.")
              doPlayerAddItem(cid,8854,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.uid == 8568 then
          queststatus = getPlayerStorageValue(cid,8560)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found a Hellforged axe")
              doPlayerAddItem(cid,8924,1)
              setPlayerStorageValue(cid,8560,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end

    else
        return 0
      end

      return 1
end



INQ
PHP:
local config = {
        timeToRemove = 120, -- seconds
        message = "You now have 2 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear",
        teleportId = 9773,
        bosses = { -- Monster Name,  Teleport Position
                ["Ushuriel"] = {  pos={ x=33157, y=31725, z=11, stackpos=1 }, aid=1001 },
                ["Zugurosh"] = {  pos={ x=33123, y=31689, z=11, stackpos=1 }, aid=1002},
                ["Madareth"] = {  pos={ x=33194, y=31768, z=11, stackpos=1 }, aid=1003},
                ["Annihilon"] = {  pos={ x=33200, y=31704, z=11, stackpos=1 }, aid=1005},
                ["Hellgorak"] = {  pos={ x=33107, y=31735, z=11, stackpos=1 }, aid=1006}
                },
        brothers ={
        ["Golgordan"] = {pos={ x=33235, y=31734, z=11, stackpos=1 },aid=1004, brother = "Latrivan"},
        ["Latrivan"] = {pos={ x=33235, y=31734, z=11, stackpos=1 },aid=1004, brother = "Golgordan"},
        brothersArea ={
                fromPos = {x = 33224, y = 31722, z = 11},
                toPos = {x = 33240, y = 31734, z = 11} } }
}
local function removal(position)
    doRemoveThing(getTileItemById(position, config.teleportId).uid, 1)
    return TRUE
end
function onKill(cid, target, lastHit)
    if(config.bosses[getCreatureName(target)]) then
        local t = config.bosses[getCreatureName(target)]
        local teleport = doCreateItem(config.teleportId, t.pos)
        local position = t.pos
        doItemSetAttribute(teleport, "aid", t.aid)
        doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
        addEvent(removal, config.timeToRemove * 1000, position)
    elseif(config.brothers[getCreatureName(target)]) then
        local t = config.brothers[getCreatureName(target)]
        local brother = getCreatureByName(t.brother)
        if(isMonster(brother) == true) then
            if(isInRange(getCreaturePosition(brother), config.brothers.brothersArea.fromPos, config.brothers.brothersArea.toPos) == true) then
                return TRUE
            end
        else
            local teleport = doCreateItem(config.teleportId, t.pos)
            local position = t.pos
            doItemSetAttribute(teleport, "aid", t.aid)
            doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
            addEvent(removal, config.timeToRemove * 1000, position)
        end
    end
    return TRUE
end

NEXUS !
PHP:
-- [( Script by: DoidinMapper )] --
function onUse(cid, item, frompos, item2, topos)
local teleport = {x=3713, y=1080, z=9}
doTeleportThing(cid, teleport, TRUE)
doPlayerSendTextMessage(cid,22,"Congratulations you completed the Inquisition Quest!")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
end
 
Okay So I am using TFS 0.3.6 Client 8.6 as you can see in my signature^^

I copied it from RL Tibia 8.6 Server

PHP:
    <!-- INQ QUest -->
    <event type="kill" name="Inq" event="script" value="inq/Inquisition.lua"/>
    <event type="death" name="inqports" event="script" value="inq/inquisitionPortals.lua"/>
    <event type="death" name="inquisitionPortals" event="script" value="inq/teleports_inquisition.lua"/>
 
Oh damn You think we will make it work?:/

I have no clue what else I could do -.-

I give you now a complete description

In Creaturescript I have these .lua

Code:
teleports_inquisition
inquisitionPortals
inquisition_nexus
Inquisition

are they right inside there?

In my MovementFolder i have nothing inside.

In Action FOlder I have only this.

Code:
inqchests
 
You need to register the names of your creaturescripts in login.lua (except from login scripts).
Code:
registerCreatureEvent(cid, "Inq")
 
YESSS IT WORKS !!!! <3<3 TY alot :***
Only thing need to be fixed is that you can only enter tps when killed the boss :D

I have to make the TP Action ID 2001 without coordinates when it says TP leads to nowhere so it doesn'T work how to fix -.-?!
 
Back
Top