• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Tile access - ?

Benna

Member
Joined
Jul 3, 2008
Messages
151
Reaction score
7
Topic, if i wish to make a tile / magic forcefield that allows a player go trough it only if he have etc touched a throne in pits of inferno, how can i do this? Is there any tutorial anywhere?

Appreciate all answers, thanks in advance.
 
that's easy brother
Put actionid in that throne <3
make script for it
onUse to give a xxx storage

in magic forcefield put actionid too
and make it check if player have storage will send him to destination
if he don't .. message " please you have to touch throne first " :P

like vip system
you need vip doll to get storage
then u can go throw tp
 
Set storage when stepping on the throne (movements, function onStepIn)
Then check for this storage when stepping on the tile, if the player doesn't have the storage, teleport back.
Code:
if getPlayerStorageValue(cid, storage) == -1 then
   doTeleportThing(cid, fromPosition)
   doPlayerSendCancel(cid, "You haven't stepped on the throne.")
   return true
end
 
Set storage when stepping on the throne (movements, function onStepIn)
Then check for this storage when stepping on the tile, if the player doesn't have the storage, teleport back.
Code:
if getPlayerStorageValue(cid, storage) == -1 then
   doTeleportThing(cid, fromPosition)
   doPlayerSendCancel(cid, "You haven't stepped on the throne.")
   return true
end
Thanks both of you, where im supposed to enter this code? In actions/script/pits of inferno/TilesToRewardroom.lua?

EDIT: Nevermind found it :) Thanks again.
 
Last edited:
Back
Top