beenii
Well-Known Member
- Joined
- Jul 26, 2010
- Messages
- 586
- Solutions
- 1
- Reaction score
- 58
i try modify inquisition script.
i have this error:
Code:
local bosses = {
['[Tower] Feroxa'] = {storage = 20000, posx = 32363, posy = 32204, posz = 6, dposx = 32217, dposy = 32189, dposz = 6},
['[Tower] Demon'] = {storage = 20000, posx = 32363, posy = 32204, posz = 6, dposx = 32217, dposy = 32189, dposz = 6} ------------> crear y borrar > teleporter
}
function onKill(player, target)
local targetMonster = target:getMonster()
if not targetMonster then
return true
end
local targetName = targetMonster:getName():lower()
local bossSelect = bosses[targetName]
local bossStorage = bosses[targetName].storage
if not bossStorage then
return true
end
local function deleteTeleport(position)
local teleport = Tile(position):getItemById(1387)
if teleport then
teleport:remove()
end
end
local newValue = 2
Game.setStorageValue(bossStorage, newValue)
local item = Game.createItem(1387, 1,{x = bossSelect.posx, y = bossSelect.posy, z = bossSelect.posz}) ------> donde se creara
if item:isTeleport() then
item:setDestination({x = bossSelect.dposx, y = bossSelect.dposy, z = bossSelect.dposz}) ------> donde te teleportara
end
if newValue == 2 then
player:say('You now have 1 minutes to exit this room through the teleporter. It will bring you to your reward.', TALKTYPE_MONSTER_SAY)
addEvent(deleteTeleport, 1 * 60 * 1000, {x = bossSelect.posx, y = bossSelect.posy, z = bossSelect.posz}) ------> donde lo removera
end
return true
end
i have this error: