Custom Teleporter.
I wrote a custom teleporter and I thought I'd share it, for an example of its use you can check out Valcarona. This teleporter lists out an array of zones defined in a plugin that you will have to make a file for.
This is a screenshot of the teleporter and how it works, Valcarona's is older, so it lists as short name. This new version lists them as their long name. http://i.imgur.com/mFdSDlm.png Here are the plugins necessary for the script to work: Plugins Here's the Teleporter: Teleporter |
Thanks for this Kingly.
I've got it working with the exception of the "list them alphabetically" option. If I type the zone short name with the NPC targeted, I do indeed zone. If I type "A", I get nothing from the NPC. The plugin that was linked was named "Zones.pl", but it mentions in the post "Plugins", is this two plugins in one file? Currently, I'm using one plugin file named "Zone.pl" in my server/plugins folder. And the teleporter code on an NPC in PoK. Edit: Additionally, if I have the NPC targetted and enter numbers, I do get the "...must search with alphabetic characters", so it seem he is listening, just can't get the output. Thanks! |
The problem is I released this and forgot that I didn't give out the plugin::Message part of it.
Add this to your plugin file and tell me if it works: Code:
sub Message { |
Quote:
|
You're welcome.
|
Great porter script. Anon server thanks you.
Quote:
|
You’re welcome. I’m sure the code could use some TLC being it has been 4 years since I wrote it.
|
was trying to put something together for a porter that charged for ports just like that whisper script for buffs. any tips?
|
Try this, currently $client->TakeMoneyFromPP() only checks if they have at least 1 Platinum, the value is number of Platinum times 1000 to convert it to Copper.
Just change the price to your discretion and this should work. Untested, compiles fine using 'perl -c': Code:
sub EVENT_SAY { |
thank you kind sir it was very appreciated!
|
You're welcome.
|
All times are GMT -4. The time now is 04:55 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.