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

Teleport gain storage

xLosT

Member
Joined
Jan 11, 2010
Messages
1,022
Reaction score
13
Location
Brasil, Rio Grande do Sul
I tried to create a system where the player pass teleport and gains storage, but this does not happen

Code:
17:12 You see a magic forcefield.
Item ID: 1387, Action ID: 8126
Position: 32357, 31782, 7

Code:
function onStepIn(creature, item, position, fromPosition)
   if item.actionid == 8126 then
     player:setStorageValue(cid, 81262, 1)
     end
   return true
end
 
Code:
function onStepIn(creature, item, position, fromPosition)
   local player = creature:getPlayer()
   if not player then
       return false
   end

   if item.actionid == 8126 then
       player:setStorageValue(81262, 1)
   end

   return true
end
 
Code:
    <movevent event="StepIn" itemid="1387" script="tfws_movements/treiner.lua" />

i find error
How to use 2 script for the same id?

Code:
    <movevent event="StepIn" itemid="1387" script="tfws_movements/treiner.lua" />
    <movevent event="StepIn" itemid="1387" script="tfws_movements/teleportactivemap.lua" />

Only the first one works

@work now
i use this
Code:
    <movevent event="StepIn" actionid="8126" script="tfws_movements/treiner.lua" />
    <movevent event="StepIn" itemid="1387" script="tfws_movements/teleportactivemap.lua" />
 
Last edited:
Back
Top