Thread: Quest question.
View Single Post
  #27  
Old 05-04-2015, 08:42 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by NatedogEZ View Post
There is a sub event that already does that btw... you are just creating extra work for yourself


EVENT_KILLED_MERIT triggers for each client that was given CREDIT for the kill.

Example.. anyone in the raid / group, however, if you want it so that players can just run up and "tag" something while someone else is killing it.. that they get credit.

Meaning a non-grouped player could run around hitting mobs 1 time that other players are fighting and get credit with the way you have it written.


Changing to this would eliminate that.

Code:
sub EVENT_KILLED_MERIT {
	if ($ulevel > 19) {
		$client->SetEXP($client->GetEXP(), $client->GetAAExp()+1000);
	}
}
I originally tried that, but found it was buggy. I dont recall precisely what was buggy with it, but, thus the work around.

I'll have to revisit the idea. That code I provided was a copy/paste from something done a year back, so, probably doesnt exist now. If not, well, then yes, that would be the best method to say the least.

So there you go, no shortage of options.
Reply With Quote