Initial Upload
Initial Upload
This commit is contained in:
27
_module/nss/king_give_3.nss
Normal file
27
_module/nss/king_give_3.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName king_give_3
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 22/11/2003 16:07:04
|
||||
//:://////////////////////////////////////////////
|
||||
#include "nw_i0_tool"
|
||||
|
||||
void main()
|
||||
{
|
||||
int DoOnce = GetCampaignInt("warlord_head",GetTag(OBJECT_SELF),GetPCSpeaker());
|
||||
if (DoOnce==1) return;
|
||||
|
||||
// Give the speaker some gold
|
||||
GiveGoldToCreature(GetPCSpeaker(), 5000);
|
||||
|
||||
// Give the speaker some XP
|
||||
RewardPartyXP(5000, GetPCSpeaker(),FALSE);
|
||||
|
||||
object oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "warlordshead"); // Place item Tag here
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
|
||||
SetCampaignInt("warlord_head",GetTag(OBJECT_SELF),1,GetPCSpeaker());
|
||||
|
||||
}
|
Reference in New Issue
Block a user