michael
New Member
I'm getting a error and I don't know what I'm doing wrong. this is the error
This is a part of the script
It won't summon the first monsters the monster from (PlayerPos2_1) when I remove this one it simple won't summon the second monsters (PlayerPos2_2)
Code:
[24/07/2008 19:07:34] Lua Script Error: [MoveEvents Interface]
[24/07/2008 19:07:34] data/movements/scripts/world of emperia/cyclop tower quest.lua:onStepIn
[24/07/2008 19:07:34] attempt to index a nil value
[24/07/2008 19:07:34] stack traceback:
[24/07/2008 19:07:34] [C]: in function 'doSummonCreature'
[24/07/2008 19:07:34] ...ents/scripts/world of emperia/cyclop tower quest.lua:43: in function <...ents/scripts/world of emperia/cyclop tower quest.lua:1>
This is a part of the script
PHP:
elseif item.uid == 3002 and getPlayerStorageValue(cid,QuestStorageValue) == 2 then
doPlayerSendCancel(cid, 'You found tile 2/20.')
setPlayerStorageValue(cid,QuestStorageValue,3)
doTransformItem(item.uid, 425)
PlayerPos2_1 = {x=1079, y=769, z=7}
PlayerPos2_2 = {x=1079, y=772, z=7}
PlayerPos2_2 = {x=1083, y=771, z=7}
doSummonCreature("cyclops", PlayerPos2_1)
doSummonCreature("cyclops", PlayerPos2_2)
doSummonCreature("cyclops", PlayerPos2_3)
It won't summon the first monsters the monster from (PlayerPos2_1) when I remove this one it simple won't summon the second monsters (PlayerPos2_2)
Last edited: