Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2014, 03:41 PM
Kingly_Krab's Avatar
Kingly_Krab
Developer
 
Join Date: May 2013
Location: United States
Posts: 1,473
Default 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.


Here are the plugins necessary for the script to work: Plugins
Here's the Teleporter: Teleporter
__________________
For Project 1999 related issues, check here.

Click here for the EQEmulator Wiki.
Reply With Quote
  #2  
Old 06-15-2014, 06:16 PM
vithmiris's Avatar
vithmiris
Sarnak
 
Join Date: Dec 2013
Posts: 45
Default

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!

Last edited by vithmiris; 06-15-2014 at 06:22 PM.. Reason: Add troubleshooting info
Reply With Quote
  #3  
Old 06-15-2014, 11:41 PM
Kingly_Krab's Avatar
Kingly_Krab
Developer
 
Join Date: May 2013
Location: United States
Posts: 1,473
Default

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 {
    my $client = plugin::val('client');
    my $Message = $_[0];
    
    if($client) {
        $client->Message(315, "$Message");
    }
}
__________________
For Project 1999 related issues, check here.

Click here for the EQEmulator Wiki.
Reply With Quote
  #4  
Old 06-16-2014, 05:42 PM
vithmiris's Avatar
vithmiris
Sarnak
 
Join Date: Dec 2013
Posts: 45
Default

Quote:
Originally Posted by Kingly_Krab View Post
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 {
    my $client = plugin::val('client');
    my $Message = $_[0];
    
    if($client) {
        $client->Message(315, "$Message");
    }
}
Works beautifully! Thanks again!
Reply With Quote
  #5  
Old 06-16-2014, 09:24 PM
Kingly_Krab's Avatar
Kingly_Krab
Developer
 
Join Date: May 2013
Location: United States
Posts: 1,473
Default

You're welcome.
__________________
For Project 1999 related issues, check here.

Click here for the EQEmulator Wiki.
Reply With Quote
  #6  
Old 05-07-2018, 07:50 AM
Anon.GM's Avatar
Anon.GM
Fire Beetle
 
Join Date: Apr 2018
Posts: 15
Default

Great porter script. Anon server thanks you.

Quote:
Originally Posted by Kingly_Krab View Post
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.


Here are the plugins necessary for the script to work: Plugins
Here's the Teleporter: Teleporter
__________________
email: anon.gm@protonmail.com
server: Anon
Reply With Quote
  #7  
Old 05-07-2018, 12:14 PM
Kingly_Krab's Avatar
Kingly_Krab
Developer
 
Join Date: May 2013
Location: United States
Posts: 1,473
Default

You’re welcome. I’m sure the code could use some TLC being it has been 4 years since I wrote it.
__________________
For Project 1999 related issues, check here.

Click here for the EQEmulator Wiki.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:33 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3