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

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2018, 12:25 PM
bushman77
Hill Giant
 
Join Date: May 2003
Location: In the bush
Posts: 129
Default Thin Client

Been playing around with some server studies and i stumbled on to something of interest?

Ive created a simple perl script which posts a site and returns only the variable which stores the server response. (the webserver type does not matter only needs to be configured with a custom route to accept requests from this script (in this case it is a POST request).
The server then can then respond with a string embedded with perl commands

test.pl:
Code:
sub EVENT_SAY {
  if ($text=~/hail/i) {
    use strict;
    use warnings;
    use LWP::UserAgent;
    
    my $url = 'http://localhost:4000/api';
    my $ua       = LWP::UserAgent->new();
    my $response = $ua->post( $url, { 'player' => $name, 'npcid' => 105 } );
    my $content  = $response->decoded_content();
    $content;
   }
}
Found out i can change quests on the fly without needing to issue #reloadquest
Could even use it for character transfers between servers easily aswell
Reply With Quote
  #2  
Old 02-27-2018, 03:37 PM
N0ctrnl's Avatar
N0ctrnl
Discordant
 
Join Date: Jan 2007
Posts: 443
Default

Code tags homie.
__________________
Ender - Lead GM/Developer
Vegarlson Asylum Server - http://www.vegarlson-server.org/
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 04:20 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3