alisonrenna
New Member
- Joined
- Sep 24, 2011
- Messages
- 29
- Reaction score
- 2
...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:20: attempt to index local 'portal1' (a nil value)
stack traceback:
[C]: in function '__index'
.ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:20: in function <...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:18>
...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:23: attempt to index local 'portal2' (a nil value)
stack traceback:
[C]: in function '__index'
.ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:23: in function <...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:24>
ERROR NO TFS
SCRIPT
function onKill(creature, target, item)
if not creature or not creature:isPlayer() then
return true
end
if not target or not target:isMonster() then
return true
end
local cName = target:getName():lower()
if(isInArray({'cult enforcer', 'cult believer', 'cult scholar'}, cName)) then
local posCorpo = target:getPosition()
local rand = math.random(1,2)
if rand == 1 then
Game.createItem(26140, 1, posCorpo):setActionId(5580)
addEvent(function()
local portal1 = Tile(posCorpo):getItemById(26140)
portal1:remove(1) end, (1*60*1000), 26140, 1, posCorpo)
end
if rand == 2 then
Game.createItem(26138, 1, posCorpo):setActionId(5580)
addEvent(function()
local portal2 = Tile(posCorpo):getItemById(26138)
portal2:remove(1) end, (1*60*1000), 26138, 1, posCorpo)
end
end
return true
end
stack traceback:
[C]: in function '__index'
.ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:20: in function <...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:18>
...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:23: attempt to index local 'portal2' (a nil value)
stack traceback:
[C]: in function '__index'
.ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:23: in function <...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:24>
ERROR NO TFS
SCRIPT
function onKill(creature, target, item)
if not creature or not creature:isPlayer() then
return true
end
if not target or not target:isMonster() then
return true
end
local cName = target:getName():lower()
if(isInArray({'cult enforcer', 'cult believer', 'cult scholar'}, cName)) then
local posCorpo = target:getPosition()
local rand = math.random(1,2)
if rand == 1 then
Game.createItem(26140, 1, posCorpo):setActionId(5580)
addEvent(function()
local portal1 = Tile(posCorpo):getItemById(26140)
portal1:remove(1) end, (1*60*1000), 26140, 1, posCorpo)
end
if rand == 2 then
Game.createItem(26138, 1, posCorpo):setActionId(5580)
addEvent(function()
local portal2 = Tile(posCorpo):getItemById(26138)
portal2:remove(1) end, (1*60*1000), 26138, 1, posCorpo)
end
end
return true
end
Attachments
-
1.png1.8 MB · Views: 17 · VirusTotal