JDB
OtLand Veteran
- Joined
- Jun 1, 2009
- Messages
- 4,145
- Solutions
- 2
- Reaction score
- 115
The Forgotten Server 0.3.5
Credits:
JDB
data/creaturescripts/scripts/login.lua
data/creaturescripts/creaturescripts.xml
data/creaturescripts/scripts/script.lua
Credits:
JDB
data/creaturescripts/scripts/login.lua
Lua:
registerCreatureEvent(cid, "monsterPortals")
data/creaturescripts/creaturescripts.xml
Lua:
<event type="kill" name="monsterPortals" event="script" value="script.lua"/>
data/creaturescripts/scripts/script.lua
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
Last edited: