View Single Post
  #4  
Old 07-14-2011, 04:41 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Your baddy should have an event that is called when it dies.

If you're using a classic system track the last person who hit the baddy using was hit (no space).

PHP Code:
function onWasH1t() {
  
this.last_attacker player.account;

When the baddie dies use findplayer and add the weapon. I.e:

findplayer(this.last_attacker).addweapon("SomeWeap onName");
__________________
Quote:
Reply With Quote