Cykotitan
Experienced G'
- Joined
- Nov 4, 2008
- Messages
- 16,892
- Solutions
- 5
- Reaction score
- 849
ääääää 0.3.6 suks u must use deathlist xd0,3,6 huaehuaeä
ääääää 0.3.6 suks u must use deathlist xd0,3,6 huaehuaeä
ääääää 0.3.6 suks u must use deathlist xd
stop make useless post plssw0000000000t
local bosses = { -- Teleport Takes Player -- Teleport Is Created --
["Ushuriel"] = { x=1173, y=1141, z=12 }, { x=1097, y=1214, z=12 },
["Zugurosh"] = { x=1126, y=1151, z=12 }, { x=1149, y=1231, z=12 },
["Madareth"] = { x=1045, y=1206, z=13 }, { x=1112, y=1240, z=12 },
["Latrivan"] = { x=1154, y=1195, z=13 }, { x=1147, y=1244, z=12 },
["Annihilon"] = { x=1244, y=1297, z=12 }, { x=1187, y=1198, z=12 },
["Hellgorak"] = { x=1067, y=1307, z=13 }, { x=1192, y=1240, z=12 }
}
local time = 30 -- Seconds
function onKill(cid, target, lastHit)
for name, pos in pairs(bosses) do
if (name == getCreatureName(target):lower()) then
doCreateTeleport(1387, pos[1], pos[2])
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. time .." seconds until the portal will disapear.")
addEvent(doRemoveItem, tpTime * 1000, getTileItemById(pos[2], 1387).uid, 1)
end
end
return true
end
That wouldn't work. Even if it did, it wouldn't remove the teleport.Lua:local bosses = { -- Teleport Takes Player -- Teleport Is Created -- ["Ushuriel"] = { x=1173, y=1141, z=12 }, { x=1097, y=1214, z=12 }, ["Zugurosh"] = { x=1126, y=1151, z=12 }, { x=1149, y=1231, z=12 }, ["Madareth"] = { x=1045, y=1206, z=13 }, { x=1112, y=1240, z=12 }, ["Latrivan"] = { x=1154, y=1195, z=13 }, { x=1147, y=1244, z=12 }, ["Annihilon"] = { x=1244, y=1297, z=12 }, { x=1187, y=1198, z=12 }, ["Hellgorak"] = { x=1067, y=1307, z=13 }, { x=1192, y=1240, z=12 } } local time = 30 -- Seconds function onKill(cid, target, lastHit) for name, pos in pairs(bosses) do if (name == getCreatureName(target):lower()) then doCreateTeleport(1387, pos[1], pos[2]) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. time .." seconds until the portal will disapear.") addEvent(doRemoveItem, tpTime * 1000, getTileItemById(pos[2], 1387).uid, 1) end end return true end
possible, but jdb can't do it afaikAff, so impossible to get it to work?
local config = {
message = "Go into the teleporter in 3 minutes, else it will disappear.",
timeToRemove = 180, -- seconds
teleportId = 1387,
bosses = { -- Monster Name, Teleport To Position, Teleport Position
["Ushuriel"] = { { x=1158, y=2199, z=6 }, { x=1102, y=2219, z=5, stackpos=1 } },
["Annihilon"] = { { x=1250, y=2302, z=5 }, { x=1192, y=2219, z=5, stackpos=1 } },
["Hellgorak"] = { { x=1133, y=2156, z=5 }, { x=1197, y=2261, z=5, stackpos=1 } },
["Madareth"] = { { x=1177, y=2144, z=5 }, { x=1117, y=2259, z=5, stackpos=1 } },
["Zugurosh"] = { { x=1050, y=2210, z=6 }, { x=1154, y=2218, z=5, stackpos=1 } },
["Latrivan"] = { { x=1069, y=2313, z=6 }, { x=1152, y=2259, z=5, stackpos=1 } }
}
}
local function removal(position)
if getThingfromPos(position).itemid == config.teleportId then
doRemoveItem(getThingfromPos(position).uid)
end
return TRUE
end
function onKill(cid, target, lastHit)
if lastHit == true then
local position = getCreaturePosition(target)
for name, pos in pairs(config.bosses) do
if name == getCreatureName(target) then
teleport = doCreateTeleport(config.teleportId, pos[1], pos[2])
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, pos[2])
doSendMagicEffect(pos[2], 10)
end
end
end
return TRUE
end
registerCreatureEvent(cid, "Inquisition")
<event type="kill" name="Inquisition" event="script" value="inq.lua">
possible, but jdb can't do it afaik
Yes, I've tested it on 0.3.6_SVN and it doesn't work, as I expected.Can you test something before flaming people?
Yes, I've tested it on 0.3.6_SVN and it doesn't work, as I expected.
released, update he? :sAnd, you know that it isn't release to the public right?
So... 0.3.5 is still the main one.
local bosses = {
["ghastly dragon"] = {
toPos = {x = 420,y = 420,z = 5},
createPos = {x = 589,y = 432,z = 0},
delay = 30
},
["orshabaal"] = {
toPos = {x = 44,y = 30,z = 4},
createPos = {x = 241,y = 191,z = 12},
delay = 30
}
}
function onKill(cid,target,lastHit)
local boss = bosses[getCreatureName(target):lower()]
doCreatureSay(target,"You have "..boss.delay.." seconds until the teleporter vanishes forever!",TALKTYPE_ORANGE_1)
doCreateTeleport(1387,boss.toPos,boss.createPos)
addEvent(removeTeleport,boss.delay * 1000,boss.createPos)
return true
end
function removeTeleport(position)
local teleporter = getTileItemById(position,1387)
if(teleporter.uid > 0) then
doRemoveItem(teleporter.uid)
doSendMagicEffect(position,CONST_ME_POFF)
end
end