- Joined
- May 21, 2007
- Messages
- 228
- Reaction score
- 48
Few days ago in Soul666 blog seen how to protect F1 teleport in main town or other places of sin. So here is some info about how it's works. This code ("gstate") allowing or notallowing players to use this function like now... teleport.. So here is code:
Green - you can write any index which isn't using in your quest.txt
Red - if you are blocking teleport of sins you must use this code
Blue - here is (map 0,1,2,3,4) , x coordinates & y coordinates
Sorry for bad english.
More info about this function in Soul666's blog
Code:
(quest (index [COLOR=SeaGreen]1509 95[/COLOR])
(case (if (gstate [COLOR=Red]104 1[/COLOR])) (then (html 999000))) ;[I] if you are sin you get s999000.dat message and don't be teleported[/I]
(case (then (teleport [COLOR=Blue]m x y[/COLOR])))) ;[I] if you aren't sin then you will be teleported[/I]
Red - if you are blocking teleport of sins you must use this code
Blue - here is (map 0,1,2,3,4) , x coordinates & y coordinates
Sorry for bad english.
More info about this function in Soul666's blog
You must be registered to see links
Last edited: