View Single Post
  #7  
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