• 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!

Solved Server detecting StepIn on quest tile without players on it

Eventide

Member
Joined
Sep 16, 2008
Messages
79
Reaction score
6
Location
Brasil
There are 0 players online, and i periodically receive a weird error message regarding a StepIn movement script that can't get the player info.

The error message:

Code:
[8:26:04.190] [Error - MoveEvents Interface]
[8:26:04.211] data/movements/scripts/alters/alterstpvenore.lua:onStepIn
[8:26:04.245] Description:
[8:26:04.257] (LuaInterface::internalGetPlayerInfo) Player not found when reques
ting player info #6

Any tips on solving that issue?
 
Code:
function onStepIn(cid, item, pos)

   local ice = {x=32193, y=31419, z=2}
   local earth = {x=32974, y=32224, z=7}
   local fire = {x=32909, y=32338, z=15}
   local energy = {x=33060, y=32711, z=5}
   
   if getPlayerLookDir(cid) == 0 then
       newdir = 2
       newdir2 = 2
   elseif getPlayerLookDir(cid) == 1 then
       newdir = 3
       newdir2 = 3
   elseif getPlayerLookDir(cid) == 2 then
       newdir = 0
       newdir2 = 0
   else
       newdir = 1
       newdir2 = 1
   end

   if item.actionid == 7805 then
       if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
           doTeleportThing(cid,ice)
           doSendMagicEffect(ice,10)
           setPlayerStorageValue(cid, 15112, 1)
       else
           doCreatureSay(cid, "Only Premium Druids of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
           doMoveCreature(cid, newdir)
           doMoveCreature(cid, newdir2)
           doSendMagicEffect(getCreaturePosition(cid),10)
   end
   elseif item.actionid == 7806 then
       if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
           doTeleportThing(cid,earth)
           doSendMagicEffect(earth,10)
           setPlayerStorageValue(cid, 15124, 1)
       else
           doCreatureSay(cid, "Only Premium Druids of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
           doMoveCreature(cid, newdir)
           doMoveCreature(cid, newdir2)
           doSendMagicEffect(getCreaturePosition(cid),10)
   end
   elseif item.actionid == 7807 then
       if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
           doTeleportThing(cid,fire)
           doSendMagicEffect(fire,10)
           setPlayerStorageValue(cid, 15148, 1)
       else
           doCreatureSay(cid, "Only Premium Sorcerers of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
           doMoveCreature(cid, newdir)
           doMoveCreature(cid, newdir2)
           doSendMagicEffect(getCreaturePosition(cid),10)
   end
   elseif item.actionid == 7808 then
           if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
           doTeleportThing(cid,energy)
           doSendMagicEffect(energy,10)
           setPlayerStorageValue(cid, 15136, 1)
       else
           doCreatureSay(cid, "Only Premium Sorcerers of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
           doMoveCreature(cid, newdir)
           doMoveCreature(cid, newdir2)
           doSendMagicEffect(getCreaturePosition(cid),10)
   end
   end
end

I'm not the author and i don't know who is
 
Back
Top