Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-18-2009, 09:47 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 502
Default #bot mana

Line 8341 or so in bot.cpp (search for #bot camp)

Code:
c->Message(0, "#bot mana - Report targetted bot's current mana.");
Line 8361 or wherever in bot.cpp
Code:
if (!strcasecmp(sep->arg[1], "mana")) 
	{ //Shin: Mana Report
		if((c->GetTarget() == NULL) || (c->GetTarget() == c) || !c->GetTarget()->IsBot()) {
			c->Message(15, "You must target a bot!");
			return;
		}
		Bot* tBot = c->GetTarget()->CastToBot();
		tBot->Say("Medding for Mana. I have %3.1f%% of %d mana. It is: %d", tBot->GetManaRatio(), tBot->GetMaxMana(), tBot->GetMana());
	}
Guess you can go c->GetTarget()->CastToBot()->Say() instead of tBot->Say(), but, simple addition is very useful in my book!
__________________

~Shin Noir
DungeonEQ.com
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 10:29 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