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

Lua Inquisitor Boss-kill teleport problem

rawrcore

New Member
Joined
Jul 4, 2011
Messages
12
Reaction score
0
Hello, My friend is running TFS 0.4 and he asked me to fix his Inquisitor quest. Because the
teleport didn't show up after killing the bosses. I tried for awhile but due to my lack of experiance with
codelanguages i came up short. so i'm making a post here now.

This is the Creaturescript/Script he's running


Code:
local config =
{
    time = 60, -- seconds
    teleportId = 5023,
    bosses =
    { -- Monster Name,  Teleport Position, aid, optional brothers name
        ["Ushuriel"] = {  pos={ x=1383, y=615, z=11}, aid=1001},
        ["Zugurosh"] = {  pos={ x=1415, y=614, z=11}, aid=1002},
        ["Madareth"] = {  pos={ x=1398, y=655, z=11}, aid=1003},
        ["Annihilon"] = {  pos={ x=1473, y=615, z=11}, aid=1005},
        ["Hellgorak"] = {  pos={ x=1478, y=657, z=11}, aid=1006},
        ["Golgordan"] = {    pos={ x=1433, y=655, z=11}, aid=1004, brother = "Latrivan"},
        ["Latrivan"] = {    pos={ x=1433, y=655, z=11}, aid=1004, brother = "Golgordan"}
    }
}
local function changeBack(position)
    doItemSetAttribute(getTileItemById(t.pos, config.teleportId).uid, "aid", 3000)
end
function onKill(cid, target, lastHit)
    if(config.bosses[getCreatureName(target)]) then
        if config.bosses[getCreatureName(target)].brother then if(isMonster(getCreatureByName(config.bosses[getCreatureName(target)].brother))) then return true end end
        doItemSetAttribute(getTileItemById(config.bosses[getCreatureName(target)].pos, config.teleportId).uid, "aid", config.bosses[getCreatureName(target)].aid)
        doCreatureSay(cid, "Go into the teleport in "..config.timeToRemove.." seconds, else it will disappear.", TALKTYPE_MONSTER_SAY)
        addEvent(changeBack, config.time * 1000, t.pos)
    end
    return true
end



The error he get's says that the Attribute "onKill" is an unknown attribute. i tried changing it to "onDeath"
then no error showed up but still no tp.

if you need more information please ask. And thanks in advance.
 
Back
Top