Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Feature Requests

Development::Feature Requests Post suggestions/feature requests here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-09-2007, 05:05 AM
KhanhDescending
Fire Beetle
 
Join Date: Apr 2007
Location: Phoenix, AZ
Posts: 5
Default Zone project, command.cpp, set_adventure_points

Noticed that the #setadventurepoints command wasn't working correctly, so thought I'd take a shot at fixing it. Compiled and built, then ran EQEmu using the new zone.exe. Tested in-game, and appears to work correctly. You can assign X points to a particular theme (1 thru 5). Or choose theme 0, and then X points will be distributed across all themes.

Code:
void command_set_adventure_points(Client *c, const Seperator *sep)
{
	Client *t=c;

	if(c->GetTarget() && c->GetTarget()->IsClient())
		t=c->GetTarget()->CastToClient();

	if(!sep->arg[2][0])
	{
		c->Message(0, "Usage: #setadventurepoints [points] [theme]");
		return;
	}

	c->Message(0, "Updating adventure points for %s", t->GetName());
	t->UpdateLDoNPoints(atoi(sep->arg[1]),atoi(sep->arg[2]));
}
Basically, the command now expects 2 arguments instead of 1. And the call to UpdateLDoNPoints will pass these arguments. Previously, it was passing (0,1) which always assigned 0 points to the LGuk theme. Essentially doing nothing at all.
Reply With Quote
 


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