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

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2014, 09:51 PM
Township EQ
Hill Giant
 
Join Date: Sep 2013
Posts: 118
Default #browserace

Just a simple command I made because I was sick of shift-upping to cycle through races in-game.

Note: If you want to see races on a higher scale there's a race viewer in EoC with all of them.


global_player.pl under sub EVENT_SAY
Code:
	if($text=~/#racebrowse/i) {
	my $CT = $client->GetTarget();
	my $CTR = $CT->GetRace();
	my $report = $CTR - 1;
		if($status > 100) {
			if($CT->IsNPC()) {
				$CT->SetRace($CTR + 1);
				$client->Message(15, "Current Race: $report");
			}
			else {
				$client->Message(13, "Error: Invalid Use");
			}
		}
		else {
		$client->Message(13, "You are unable to use this command.");
		}
	}
Reply With Quote
  #2  
Old 04-06-2014, 10:12 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Wouldn't "my $report = $CTR -1" report race 1 if they're on race 2? I tested this and it does report back the wrong race. Also, this won't work on newer code. I put in the new "return 1;" and it didn't work once I did #reloadquest.

Reply With Quote
  #3  
Old 04-07-2014, 09:18 PM
Township EQ
Hill Giant
 
Join Date: Sep 2013
Posts: 118
Default

Quote:
Originally Posted by Kingly_Krab View Post
Wouldn't "my $report = $CTR -1" report race 1 if they're on race 2? I tested this and it does report back the wrong race. Also, this won't work on newer code. I put in the new "return 1;" and it didn't work once I did #reloadquest.

Shrug.. works for me on a revision compiled 2 days ago.. and when I didn't have the -1 on report it was reporting the changed race +1 for some reason.. literally NO clue why.

I only threw it together because i was sick of shift upping.. my new mechanical keyboard is loud as hell.
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:24 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