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

MoveEvent Inq portals(with orange text, storages to use main room and creating boss portals)

Code:
[1005] = {pos={x=32954, y=31429, z=11, stackpos=1}, value=5, text="Entering The Hive"} },
change to
Code:
[1005] = {pos={x=32954, y=31429, z=11, stackpos=1}, value=5, text="Entering The Hive"},
should work

oh hai, well, its good question :D
so can you tell me why?
 
Last edited:
Thanks but now i have other problem..

[Warning - Event::loadScript] Event onKill not found <data/creaturescripts/scripts/teleports_inquisition.lua>

WTF XD

<event type="kill" name="inquisitionPortals" script="teleports_inquisition.lua"/>


and name script is

teleports_inquisition

so why it dont work
 
guess what? first script is movement o_O
second and third are two versions of creatureevent
now, try to think for a sec and find solution
 
i copy script to movement and what i need paste to movements.xml?

help me please where i need paste this script...

Code:
local config = {
    bosses={---aid of portal, position where it sends, value it sets, text it shows
        [1001] = {pos={x=32881, y=31270, z=11, stackpos=1}, value=1, text="Entering The Crystal Caves"},
        [1002] = {pos={x=32837, y=21283, z=11, stackpos=1}, value=2, text="Entering The Blood Halls"},
        [1003] = {pos={x=32753, y=31338, z=12, stackpos=1}, value=3, text="Entering The Vats"},
        [1004] = {pos={x=32860, y=31328, z=12, stackpos=1}, value=4, text="Entering The Arcanum"},
        [1005] = {pos={x=32954, y=31429, z=11, stackpos=1}, value=5, text="Entering The Hive"},
        [1006] = {pos={x=32772, y=31441, z=12, stackpos=1}, value=6, text="Entering The Shadow Nexus"}
        },
    mainroom={---aid, position, lowest value that can use this portal, text
        [2001] = {pos={x=32881, y=31270, z=11, stackpos=1}, value=1, text="Entering The Crystal Caves"},
        [2002] = {pos={x=32837, y=21283, z=11, stackpos=1}, value=2, text="Entering The Blood Halls"},
        [2003] = {pos={x=32753, y=31338, z=12, stackpos=1}, value=3, text="Entering The Vats"},
        [2004] = {pos={x=32860, y=31328, z=12, stackpos=1}, value=4, text="Entering The Arcanum"},
        [2005] = {pos={x=32954, y=31429, z=11, stackpos=1}, value=5, text="Entering The Hive"}    },
    portals={---aid, position, text
        [3000] = {pos={x=32768, y=31214, z=13}, text="Entering Inquisition Portals Room"},
        [3001] = {pos={x=32806, y=31347, z=11}, text="Entering The Ward of Ushuriel"},
        [3002] = {pos={x=32893, y=31200, z=11}, text="Entering The Undersea Kingdom"},
        [3003] = {pos={x=32838, y=31346, z=11}, text="Entering The Ward of Zugurosh"},
        [3004] = {pos={x=32856, y=31260, z=11}, text="Entering The Foundry"},
        [3005] = {pos={x=32820, y=31386, z=11}, text="Entering The Ward of Madareth"},
        [3006] = {pos={x=32751, y=31266, z=12}, text="Entering The Battlefield"},
        [3007] = {pos={x=32855, y=31386, z=11}, text="Entering The Ward of The Demon Twins"},
        [3008] = {pos={x=32947, y=31272, z=12}, text="Entering The Soul Wells"},
        [3009] = {pos={x=32895, y=31346, z=11}, text="Entering The Ward of Annihilon"},
        [3010] = {pos={x=32900, y=31388, z=11}, text="Entering The Ward of Hellgorak"}    },
    storage=56123,---storage used in boss and mainroom portals
    walkback="You don't have enough energy to enter this portal",---message if you cannot use mainroom portal
    e={}    }----dunno whats this but have to be like this to make doCreatureSayWithDelay working, DON'T TOUCH}
function onStepIn(cid, item, position, fromPosition)
    if isPlayer(cid) == TRUE then
        if(config.bosses[item.actionid]) then
            local t= config.bosses[item.actionid]
            if getPlayerStorageValue(cid, config.storage)< t.value then
                setPlayerStorageValue(cid, config.storage, t.value)
            end
            doTeleportThing(cid, t.pos)
            doCreatureSayWithDelay(cid,t.text,19,1, config.e)
        elseif(config.mainroom[item.actionid]) then
            local t= config.mainroom[item.actionid]
            if getPlayerStorageValue(cid, config.storage)>=t.value then
                doTeleportThing(cid, t.pos)
                doCreatureSayWithDelay(cid,t.text,19,1,config.e)
            else
                doTeleportThing(cid, fromPosition)
                doCreatureSay(cid, config.walkback, 19)
            end
        elseif(config.portals[item.actionid]) then
            local t= config.portals[item.actionid]
            doTeleportThing(cid, t.pos)
            doCreatureSayWithDelay(cid,t.text,19,1,config.e)
        end
    end
end
 
Last edited by a moderator:
Hey zakius i have again problem fuck it... Look if i dont have done it work good, is inscription if i go to boss and enter does not have inscription only bugs on server, if i done boss and need go to first tp again does not have inscription

Look on screen
208bnh0.jpg


Why it again dont work ? ;(
 
Last edited:
Good, i make it and work but i have next problem huashuauhsa fucking scripts xDD

creaturescript.xml
<event type="kill" name="InquisitionBosses" script="Inquisition/InquisitionBosses.lua"/>


teleports_inquisition.lua

local config = {
timeToRemove = 60, -- seconds
message = "Go into the teleport in 60 seconds, else it will disappear.",
teleportId = 9773,
bosses = { -- Monster Name, Teleport Position
["Ushuriel"] = { pos={ x=32805, y=31347, z=11, stackpos=2 }, aid=1001},
["Zugurosh"] = { pos={ x=32837, y=31346, z=11, stackpos=2 }, aid=1002},
["Madareth"] = { pos={ x=32820, y=31387, z=11, stackpos=2 }, aid=1003},
["Annihilon"] = { pos={ x=32895, y=31347, z=11, stackpos=2 }, aid=1005},
["Hellgorak"] = { pos={ x=32900, y=31389, z=11, stackpos=2 }, aid=1006},
["Golgordan"] = {pos={ x=32855, y=31387, z=11, stackpos=1 },aid=1004, brother = "Latrivan"},
["Latrivan"] = {pos={ x=32855, y=31387, z=11, stackpos=1 },aid=1004, brother = "Golgordan"},
brothersArea ={
fromPos = {x = 32844, y = 31390, z = 11},
toPos = {x = 32866, y = 31374, z = 11} } }
}
local function change(position)
doItemSetAttribute(getTileItemById(position, config.teleportId).uid, "aid", 3000)
return TRUE
end

function onKill(cid, target, lastHit)
if(config.bosses[getCreatureName(target)]) then
local t = config.bosses[getCreatureName(target)]
local position = t.pos
doItemSetAttribute(getTileItemById(position, config.teleportId).uid, "aid", t.aid)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(change, 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 position = t.pos
doItemSetAttribute(getTileItemById(position, config.teleportId).uid, "aid", t.aid)
doItemSetAttribute(teleport, "aid", t.aid)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)
end
end
return TRUE
end

Script work but if i kill other monster behemoth hydra all other no boss inq i have problem

2ueiesx.jpg


They stand after their killing still but without hp

349as0j.jpg
 
Last edited:
Code:
brothers ={
        ["Golgordan"] = {pos={ x=1433, y=645, z=11, stackpos=1 },aid=1004, brother = "Latrivan"},
        ["Latrivan"] = {pos={ x=1433, y=645, z=11, stackpos=1 },aid=1004, brother = "Golgordan"},
you are reallu so dumb?
if so just DONT TRY TO EDIT SCRIPTS IF ONLY THING YOU CAN DO IS FUCKING THEM UP
aff
btw delete brothers from bosses array(no, I wont post script, tell you what is array etc, if you dont know you dont deserve even for wall removing lever for free)
 
I learn only, why u cant help me... if u show me bug next time i know whats wrong
 
fo why i have bug on mine server.. monster dont die stand without hp -.^
 
I have a problem with tp in boss room, if I need to do to aid the new tp 100x or replace those that are already on the map?
 
depending on creaturescriptyou are using second tp is created or the already existing changes aid for some time
just make sure that tps have correct id
 
hmm i have error in console ;//
[Error - creaturescript Interface]
data/creaturescripts/scripts/teleports_inuisition.lua:eek:nKill
Descrtiption:
(luadoitemsetattribute) Item not found
 
ok thanks i'll wrote all topic and work.
Thanks for help rly ;)
edit
but last question, in what tp i should wrote aid :3001
 
Back
Top