Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-01-2003, 02:11 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default /targetgroupbuff snippet

Add this to client.h

Code:
bool	TGB() {return tgb;}
protected:
bool tgb;
Add this to EQ_Opcodes.h

Code:
#define	OP_TargetGroupBuff 0x2042
NOTE: 0x2042 seems to be used for other purposes too, with the information 2... it also sends this opcode twice every time you type /tgb, with the information 2 being sent in the second packet. The purpose I don't know.

In client_process.cpp, find case 0x2042: and replace that section with this:

Code:
					case OP_TargetGroupBuff: {
						GlobalID_Struct* tgbs = (GlobalID_Struct*)app->pBuffer;
						int16 tgbid = tgbs->entity_id ;
						if (tgbid == 1)
						{
							if (!tgb)
								Message(0,"Target Group Buff now ON");
							tgb = true;
						}
						else if (tgbid == 0)
						{
							if (tgb)
								Message(0,"Target Group Buff now OFF");
							tgb = false;
						}
						break;
					}
In spells.cpp, find: case ST_Group: case 0x3: and replace the section with:

Code:
			case ST_Group:
			case 0x3:
			{
				Mob* trg = this;
				if (IsClient() && CastToClient()->TGB() && target && target->IsClient() && target->CastToClient()->isgrouped)
				{
					trg = target;
					SpellOnTarget(spell_id,this);
				}
				if (trg->IsClient() && trg->CastToClient()->isgrouped && entity_list.GetGroupByClient(trg->CastToClient()) != 0)
					entity_list.GetGroupByClient(trg->CastToClient())->CastGroupSpell(this->CastToClient(),spell_id);
				else
					SpellOnTarget(spell_id,this);
				break;
			}
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:11 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