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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2006, 08:01 AM
LostZaphod
Sarnak
 
Join Date: May 2006
Posts: 43
Default

I think you sould be able to change the summon item to use the target of the summoner. The problem is if the summoner inputs the wrong value you would never know.

in command.cpp is

void command_summonitem(Client *c, const Seperator *sep)

with in the if's it could be checked if a target is selected and then summon to their cursor.

this is some ruff UNTESTED code....
Code:
Mob *t;
if(c->GetTarget()){		// have target
	t=c->GetTarget();
	t->CastToClient()->SummonItem(itemid);
}
else
{
c->SummonItem(itemid);
}

Last edited by LostZaphod; 11-10-2006 at 04:15 PM..
Reply With Quote
  #2  
Old 11-10-2006, 08:24 AM
bufferofnewbies
Hill Giant
 
Join Date: Dec 2005
Location: Lurking in KY
Posts: 239
Default

Now that is a very nice design fix. Simple, elegant.. and without the need of excessive delving into things best left untouched. Thanks for the insight.
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 10:32 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 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3