barker
HHHHH
- Joined
- Nov 23, 2007
- Messages
- 1,298
- Reaction score
- 24
It creates a teleport at the position of the slain monster.
affz ok ok
It creates a teleport at the position of the slain monster.
but how about the loot of the boss? if it creates a tp at the corpse, then the players cant get the loot+ :S
If the monster dies next to a wall, the teleport might be created on a wall or other blocking object.Problem solved. :thumbup:
If the monster dies next to a wall, the teleport might be created on a wall or other blocking object.
Why not add configurable teleport creation pos?
If the monster dies next to a wall, the teleport might be created on a wall or other blocking object.
Why not add configurable teleport creation pos?
I am using another script and its working fine ;p
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, name.pos[2])
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have ".. time .." seconds until the portal will disapear.")
addEvent(doRemoveItem, tpTime * 1000, getTileItemById(position, 1387).uid, 1)
end
end
return true
end
registerCreatureEvent(cid, "monsterPortals")
<event type="kill" name="monsterPortals" event="script" value="Inquisition/teleports_inquisition.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
local function removeInqPortal(pos)
local v = getTileItemById(pos, 1387).uid
if 0 < v then
doRemoveItem(v)
end
end
function onKill(cid, target, lastHit)
for name, pos in pairs(bosses) do
if name:lower() == 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(removeInqPortal, time * 1000, pos[2])
end
end
return TRUE
end
Code: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 local function removeInqPortal(pos) local v = getTileItemById(pos, 1387).uid if 0 < v then doRemoveItem(v) end end function onKill(cid, target, lastHit) for name, pos in pairs(bosses) do if name:lower() == 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(removeInqPortal, time * 1000, pos[2]) end end return TRUE end
tfs version?????????'w000t can't find a solution! rescue ty
tfs version?????????'