andu
Sold 649 scripts, 25 maps and 9 events!
Edit: version 1.1, updated files in attachement
RME-Lazy-Teleport-System by andu (for TFS 1.0+)
Creating and configuring teleports is now easier!
Normal Teleports, Quest teleports, Level Teleports and Quick Teleports
and all in one 2kb LUA file!
Lua with XML code is in zip attachement.
How it works?
Quick Teleports:
If you want to make a quick teleport in RME put actionid equal to:
HOW_MANY_TILES_FORWARD + (DIRECTION * 10) + 100
For example teleport 6 SQM left it would be action id:
6 + 1 * 10 + 100 = 116
Directions are: north 0, east 1, south 2, west 3
Actionid 140 teleports 1 level down, actionid 141 teleports 1 level up.
No need to configure anything more in lua! Your quick teleport already works!
Level Teleports:
Level teleports can be used only by players with X level or higher, like level doors!
To make a level teleport you have to put actionid equal to:
REQUIRED_LEVEL + 1000
Exactly the same way as you configure level doors!
For required minimum level 60 - action id have to be 1060
Last step is to put uniqueid on teleport and configure destination of teleport.
In your RME-Lazy-Teleport-System.lua something like this:
[5536] = {8540, 8369, 3},
You can easly copy and paste destination with RME 3.0+ (right click on map and choose 'copy position')
Now teleport will work only if you have atleast level 60 and will teleport players to position (8540, 8369, 3)
I know that you can set destination in RME for certain teleports. But what if you want to make a wooden tile what can teleport players?
Many RL Tibia teleports aren't configured in items.otb so you cannot set thier destination in RME w/o editing your client.
With this system now you can! Easly!
This system is fully compatible with actual source system. So you can use both of them together!
Quest Teleports:
Quest teleports are teleports what can be used only by players with specified storage id.
To make a quest teleport you have to put action id equal to:
REQUIRED_STORAGE_ID + 10000
For example quest have storage id equal to 3792 then you have to put action id equal to:
3792 + 10000 = 13792
Last step is to put uniqueid on teleport and configure destination of teleport. The same like with level teleports:
[5537] = {8140, 8269, 8},
Normal Teleports:
They will only teleport to destination.
It may be useful if you want to use different itemids what cannot have set detination in RME.
To do a normal teleport just set on them uniqueid and configure it in lua file. In the same way as you configure level or quest teleports:
[5540] = {5000, 5931, 7},
You can use any itemid for that. But before you have to be sure you added them to your movements.xml
Here is the list im using (also included it in the attachement):
<movevent event="StepIn" itemid="5068" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="5069" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="26138" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="26139" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="26140" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="25417" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="25403" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="22677" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="22657" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="22456" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="19598" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="19599" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="21721" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="9110" script="RME_lazy_teleport_system.lua" />
Bonus teleport:
"The teleport seems to be using unknown magic. Strange."
RME-Lazy-Teleport-System by andu (for TFS 1.0+)
Creating and configuring teleports is now easier!
Normal Teleports, Quest teleports, Level Teleports and Quick Teleports
and all in one 2kb LUA file!
Lua with XML code is in zip attachement.
How it works?
Quick Teleports:
If you want to make a quick teleport in RME put actionid equal to:
HOW_MANY_TILES_FORWARD + (DIRECTION * 10) + 100
For example teleport 6 SQM left it would be action id:
6 + 1 * 10 + 100 = 116
Directions are: north 0, east 1, south 2, west 3
Actionid 140 teleports 1 level down, actionid 141 teleports 1 level up.
No need to configure anything more in lua! Your quick teleport already works!
Level Teleports:
Level teleports can be used only by players with X level or higher, like level doors!
To make a level teleport you have to put actionid equal to:
REQUIRED_LEVEL + 1000
Exactly the same way as you configure level doors!
For required minimum level 60 - action id have to be 1060
Last step is to put uniqueid on teleport and configure destination of teleport.
In your RME-Lazy-Teleport-System.lua something like this:
[5536] = {8540, 8369, 3},
You can easly copy and paste destination with RME 3.0+ (right click on map and choose 'copy position')
Now teleport will work only if you have atleast level 60 and will teleport players to position (8540, 8369, 3)
I know that you can set destination in RME for certain teleports. But what if you want to make a wooden tile what can teleport players?
Many RL Tibia teleports aren't configured in items.otb so you cannot set thier destination in RME w/o editing your client.
With this system now you can! Easly!
This system is fully compatible with actual source system. So you can use both of them together!
Quest Teleports:
Quest teleports are teleports what can be used only by players with specified storage id.
To make a quest teleport you have to put action id equal to:
REQUIRED_STORAGE_ID + 10000
For example quest have storage id equal to 3792 then you have to put action id equal to:
3792 + 10000 = 13792
Last step is to put uniqueid on teleport and configure destination of teleport. The same like with level teleports:
[5537] = {8140, 8269, 8},
Normal Teleports:
They will only teleport to destination.
It may be useful if you want to use different itemids what cannot have set detination in RME.
To do a normal teleport just set on them uniqueid and configure it in lua file. In the same way as you configure level or quest teleports:
[5540] = {5000, 5931, 7},
You can use any itemid for that. But before you have to be sure you added them to your movements.xml
Here is the list im using (also included it in the attachement):
<movevent event="StepIn" itemid="5068" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="5069" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="26138" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="26139" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="26140" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="25417" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="25403" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="22677" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="22657" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="22456" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="19598" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="19599" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="21721" script="RME_lazy_teleport_system.lua" />
<movevent event="StepIn" itemid="9110" script="RME_lazy_teleport_system.lua" />
Bonus teleport:
"The teleport seems to be using unknown magic. Strange."
Attachments
-
RME-Lazy-Teleport-System by andu.zip2.9 KB · Views: 29 · VirusTotal
Last edited: