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

teleporter gives player storage

calum69

New Member
Joined
Aug 12, 2007
Messages
346
Reaction score
3
Location
Great Britain
what i have is 3 teleports, you need to use them in order to use a 4th teleport

my script at the moment means player uses teleport 1. it gives him a storage value then he can use teleport 2. player uses teleport 2 now he can use teleport 3, he uses teleport 3 and can pass a tile to get to the reward.

i also need it to say, You have linked this teleporter to the mainframe, You have X teleporters remaining to link

also each teleporter they step on takes them to pos 336, 256, 5

once a player gets storage value from all teleporters he can then walk across a tile, if he hasnt accessed all teleporters the player will get teleported to pos 336, 256, 5 and get a message you havenot linked all the teleporters
 
Lua:
local tps = { --[aid] = {storage=1000}
[3550] = {storage = 1234, togo = {x=,y=,z=}},
[3551] = {storage = 1224, togo = {x=,y=,z=}},
[3552] = {storage = 1235, togo = {x=,y=,z=}},
[3553] = {storage = 1236, togo = {x=,y=,z=}}
}
onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(getPlayerStorageValue(cid,tps[item.actionid].storage)<1) then
doTeleportThing(cid,(fromPosition.x == 0) and getPlayerMasterPos(cid) or fromPosition);
return true;
end
doTeleportThing(cid,tps[item.actionid].togo)
doSetPlayerStorageValue(cid,tps[item.actionid].storage,1)
return true;
end
 
Back
Top