29 lines
628 B
Plaintext
29 lines
628 B
Plaintext
/*
|
|
* Script generated by LS Script Generator, v.TK.0
|
|
*
|
|
* For download info, please visit:
|
|
* http://nwvault.ign.com/View.php?view=Other.Detail&id=1502
|
|
*/
|
|
// Put this script OnDeath.
|
|
|
|
|
|
#include "x0_i0_partywide"
|
|
|
|
|
|
void main()
|
|
{
|
|
object oSelf = OBJECT_SELF;
|
|
|
|
// Get the creature who triggered this event.
|
|
object oPC = GetLastKiller();
|
|
|
|
// We are really interested in the ultimate master of the killer.
|
|
while ( GetMaster(oPC) != OBJECT_INVALID )
|
|
oPC = GetMaster(oPC);
|
|
|
|
// Give 1 gold (to party) to us.
|
|
GiveGoldToAll(oSelf, 1);
|
|
CreateItemOnObject("ancientlegacykey", oSelf, 1);
|
|
}
|
|
|