generated from Jaysyn/ModuleTemplate
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			891 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			891 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #include "nw_i0_tool"
 | |
| /*   Script generated by
 | |
| Lilac Soul's NWN Script Generator, v. 1.3
 | |
| 
 | |
| For download info, please visit:
 | |
| http://www.lilacsoul.revility.com    */
 | |
| 
 | |
| //Put this OnDeath
 | |
| void main()
 | |
| {
 | |
| 	ExecuteScript("prc_npc_death", OBJECT_SELF);
 | |
| 	ExecuteScript("prc_pwondeath", OBJECT_SELF);
 | |
| 
 | |
|     object oKiller = GetLastKiller();
 | |
|     if (!GetIsObjectValid(oKiller)) return;
 | |
| 
 | |
|     object oPC;
 | |
|     if (GetIsPC(oKiller))
 | |
|         oPC = oKiller;
 | |
|     else
 | |
|         oPC = GetMaster(oKiller);
 | |
| 
 | |
|     if (!GetIsPC(oPC)) return;
 | |
| 
 | |
| 	/* RewardPartyXP(2500, oPC, FALSE); */
 | |
| 
 | |
| 	RewardPartyGP(5000, oPC, FALSE);
 | |
| 
 | |
| 	if (GetItemPossessedBy(oPC, "ShroudoftheAvatar")!= OBJECT_INVALID)
 | |
| 	   return;
 | |
| 
 | |
| 	if (GetItemPossessedBy(oPC, "MephistophelesHand")!= OBJECT_INVALID)
 | |
| 	   return;
 | |
| 
 | |
| 	if (!(GetHitDice(oPC) >= 40))
 | |
| 	   return;
 | |
| 
 | |
| 	AddJournalQuestEntry("Avatar", 2, oPC, FALSE, FALSE);
 | |
| 
 | |
| 	CreateItemOnObject("item011", oPC);
 | |
| } |