Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2013, 01:25 PM
rixcraven
Sarnak
 
Join Date: Nov 2008
Location: UK
Posts: 57
Default Last bind point

Hi,
I was wondering if its possible to get an npc to tell the player where he was last bound?, I know /charinfo will do it, but I can't see a way to integrate that command into perl.
Perhaps someone here could help me with this?
Reply With Quote
  #2  
Old 11-18-2013, 06:27 PM
wolfwalkereci
Discordant
 
Join Date: Dec 2005
Posts: 435
Default

Code:
== 01/16/2013 ==
Secrets: Added five new functions to perl for clients: GetBindX, GetBindY, GetBindZ, GetBindHeading, and GetBindZoneID. They all have an optional parameter of index of playerprofile's bindpoint.

zone/client.h
$client->GetBindZoneID();
$client->GetBindX();
$client->GetBindY();
$client->GetBindZ();
$client->GetBindHeading();

see also zone\perl_client.cpp
Reply With Quote
  #3  
Old 11-18-2013, 07:26 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I looked into that too...

There doesn't appear to be a coded translator to convert the ZoneID to an actual name.


It doesn't serve much purpose to add a $client->GetBindZoneLongName(n) for current quests,
but it would be useful for custom content
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #4  
Old 11-18-2013, 07:44 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

I have that capability, however, it's in Perl. :| I don't know if it would be useful or not.
Reply With Quote
  #5  
Old 11-18-2013, 08:13 PM
wolfwalkereci
Discordant
 
Join Date: Dec 2005
Posts: 435
Default

Reference a hash or array with zoneid,longname. Several people have posted examples that could be built upon.
Akkadius, Trevius, Kingly have posted examples, probably a half dozen others but those names spring to mind.
__________________

Reply With Quote
  #6  
Old 11-18-2013, 08:17 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Here's my code for seven plugins, including zone short name and just zone period.

These go in the 'plugins' folder, you can name the Perl file anything you want.
http://pastebin.com/AtqS8F2p

All you would do is this.
Code:
sub EVENT_SAY
{
	if($text=~/Hail/i)
	{
		plugin::Whisper("The zone you are bound to is " . plugin::Zone($client->GetBindZoneID()) . ".");
	}
}
Reply With Quote
  #7  
Old 11-18-2013, 09:52 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

o.O I didn't even think to look in the plugins folder..duh! O.o
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #8  
Old 11-18-2013, 09:55 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Haha, that's what I did for mine, it makes things simpler to be able to just do that.
Reply With Quote
  #9  
Old 11-20-2013, 12:51 PM
rixcraven
Sarnak
 
Join Date: Nov 2008
Location: UK
Posts: 57
Default

Thanks for ALL the great help folks!...
Nice code Kingly
This forum is a great place for sharing info, its great to see a community like this, and to be a (very) small part in it.
Reply With Quote
Reply


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