• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

need some help

michael

New Member
Joined
Jun 2, 2007
Messages
122
Reaction score
0
Location
Netherlands
I'm getting a error and I don't know what I'm doing wrong. this is the error

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:
Both tried but none of that worked.

EDIT: I've found the error it was a stupid mistake


PlayerPos2_2 = {x=1079, y=772, z=7}
PlayerPos2_2 = {x=1083, y=771, z=7}
 
Last edited:
Back
Top