fishie
fishies-war
- Joined
- Oct 27, 2016
- Messages
- 78
- Reaction score
- 2
Ive got a working script that creates a teleport when a monster dies, but instead of creating multiple scripts to make multiple monsters create the tp can this script be edited to make multiple monsters make multiple tps?
local function remove(pos)
local item = Tile(pos):getItemById(1387)
if item then
item:remove()
end
end
function onKill(creature, target)
if target:isMonster() and target:getName():lower() == 'dipthrah' then
local pos = target:getPosition()
local teleport = Game.createItem(1387, -1, pos)
Teleport(teleport.uid):setDestination(Position(71, 127, 9))
addEvent(remove, 30*1000, pos)
end
return true
end
local item = Tile(pos):getItemById(1387)
if item then
item:remove()
end
end
function onKill(creature, target)
if target:isMonster() and target:getName():lower() == 'dipthrah' then
local pos = target:getPosition()
local teleport = Game.createItem(1387, -1, pos)
Teleport(teleport.uid):setDestination(Position(71, 127, 9))
addEvent(remove, 30*1000, pos)
end
return true
end