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

Enter Portal - Pillar Comes Back

chaotical

New Member
Joined
Jan 3, 2008
Messages
302
Reaction score
0
Location
Tokyo
Hello, the lever on DHQ removes the pillar but the next one who comes, the pillar is already removed. Is this supposed to be the case? Until ss, everyone will be able to just run in and take the rewards. Is there a script that when you teleport back to bring the pillar again? Or if you have a better idea tell me. Thank you in advance.
 
You can add a stepin script to the teleport and add this
Code:
local pos = {x = 100, y = 100, z = 7}
if getTileItemById(pos, 1304).uid < 1 then
     doCreateItem(1304, 1, pos)
end

Or use addEvent so it goes back after for example 5 minutes
Code:
local pos = {x = 100, y = 100, z = 7}
if getTileItemById(pos, 1304).uid < 1 then
     addEvent(doCreateItem, 5 * 60 * 1000, 1304, 1, pos)
end
 
You can add a stepin script to the teleport and add this
Code:
local pos = {x = 100, y = 100, z = 7}
if getTileItemById(pos, 1304).uid < 1 then
     doCreateItem(1304, 1, pos)
end

Or use addEvent so it goes back after for example 5 minutes
Code:
local pos = {x = 100, y = 100, z = 7}
if getTileItemById(pos, 1304).uid < 1 then
     addEvent(doCreateItem, 5 * 60 * 1000, 1304, 1, pos)
end


Where do I put the first one?
 
In a stepin script (movements, ). You can add it with an actionid or uniqueid in movements.xml and then add that id to the teleport or the ground under it.
Code:
function onStepIn(cid, item, position, fromPosition)
    -- your code
    return true
end
 
Back
Top