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

Lua Tile what can pass just who have 'x item'

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
hello guys!

I need one <b>tile</b>! Just can have <b>X item..</b> can pass in the tile...

It's very simple to who knows script make.
Please, help!

READ IT: VERY IMPORTANT TO THE SCRIPT!

The item is a Ring.
When the player ptu the ring at ring slot, he can pass!
But, when the ring runts out or he shut the ring, he's teleported to temple! (if he don't have battle)
please.
Thanks!
 
Last edited:
hello guys!

I need one <b>tile</b>! Just can have <b>X item..</b> can pass in the tile...

It's very simple to who knows script make.
Please, help!

READ IT: VERY IMPORTANT TO THE SCRIPT!

The item is a Ring.
When the player ptu the ring at ring slot, he can pass!
But, when the ring runts out or he shut the ring, he's teleported to temple! (if he don't have battle)
please.
Thanks!
 
Last edited:
Code:
function onStepIn(cid, item, position, fromPosition)
	doTeleportThing(cid, getPlayerItemCount(cid, [B]itemid[/B]) > 0 and {x=925,y=1034,z=9} or fromPosition)
end



change the item id to the item :P

also dont forget to register in movements with an action / unique -id and in the mapeditor aswell :)
 
And the ring?
When the player put the xp ring he can pass (its ok, on your movement script)
But now i want
when the ring runs out he 's teleported for temple
He need use the ring to can access the area...
 
With the ring i can pass at the tile and i'm teleported
But, if the ring runs out, it doesn't teleport to any place!
And i need it teleports to temple, if he's whitout (pk).
 
Your script is ok...
When i step in on the tile i'm teletransported (if i have the ring)
but.. you forgget to add one thing...

I need that in this script too:
when the ring FINISH (it run outs of my ring slot), i'm teleported to coordenates X.Y.Z!

:D

But, if i killed some1, i'm teleported to one area NOT PZ. (i change the coords here...)
Thx
 
Your script is ok...
When i step in on the tile i'm teletransported (if i have the ring)
but.. you forgget to add one thing...

I need that in this script too:
when the ring FINISH (it run outs of my ring slot), i'm teleported to coordenates X.Y.Z!

:D

But, if i killed some1, i'm teleported to one area NOT PZ. (i change the coords here...)
Thx

wow.. lol ;P umm
ill see if i wanna do it lol im busy making my mapping :D <-- rox
 
Back
Top