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

Script Premium Tile for TFS 8.22

meisterrox

New Member
Joined
Jan 13, 2008
Messages
50
Reaction score
0
I need script for TFS 8.22


IS PREMIUM TILE...

tile for premiums enter


SORRY FOR MY BAD ENGLISH
 
The Forgotten Server got that script...
If you want to prove it, make a non-premium player and walk over the bridge that is in the forgotten map, I think is rook.

You'll see that is premium tile.
 
In data/action/scripts make a luafile name it premium

Code:
function onStepIn(cid, item, pos) 
 
local look = getPlayerLookDir(cid) 
 
 if isPremium(cid) ~= 1 then
        if look == 0 or look == 1 then
          doMoveCreature(cid, look+2)
        elseif look == 2 or look == 3 then
          doMoveCreature(cid, look-2)
        end
  doPlayerSendTextMessage(cid,21, "Your text here when player go on the tile...")
 else
   return 0
 end
end
 
In data/action/scripts make a luafile name it premium

Code:
function onStepIn(cid, item, pos) 
 
local look = getPlayerLookDir(cid) 
 
 if isPremium(cid) ~= 1 then
        if look == 0 or look == 1 then
          doMoveCreature(cid, look+2)
        elseif look == 2 or look == 3 then
          doMoveCreature(cid, look-2)
        end
  doPlayerSendTextMessage(cid,21, "Your text here when player go on the tile...")
 else
   return 0
 end
end

More short...

Code:
function onStepIn(cid, item, pos, frompos) 
 if isPremium(cid) == FALSE then
doTeleportThing(cid, frompos, TRUE)
  doPlayerSendTextMessage(cid,21, "Your text here when player go on the tile...")
  end
  end
 
More short...

Code:
function onStepIn(cid, item, pos, frompos) 
 if isPremium(cid) == FALSE then
doTeleportThing(cid, frompos, TRUE)
  doPlayerSendTextMessage(cid,21, "Your text here when player go on the tile...")
  end
  end

I actually have no big knowkledge of lua, but by reading this it seems that it just pushes you one field back right?
Maybe we want to be teleported to a specifield place or 2 fields or more back :p
 
I actually have no big knowkledge of lua, but by reading this it seems that it just pushes you one field back right?
Maybe we want to be teleported to a specifield place or 2 fields or more back :p

i made it this way because idk for what position it's your bridge/quest looking to... so i just make it easy :P
 
Back
Top