Amon_PRC8/_module/nss/exchange_bl2.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

35 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName gl_give_item2
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 5/8/2004 7:08:05 PM
//:://////////////////////////////////////////////
#include "nw_i0_henchman"
void main()
{
// Give the speaker the items
object oPC = GetPCSpeaker();
GiveXPToCreature(oPC, 1000);
CreateItemOnObject("bl_item1", oPC, 1);
object oItemToTake1;
object oItemToTake2;
oItemToTake1 = GetItemPossessedBy(oPC, "BL1");
oItemToTake2 = GetItemPossessedBy(oPC, "LighthouseKey");
DestroyObject(oItemToTake1);
DestroyObject(oItemToTake2);
CreateItemOnObject("BL2", oPC, 1);
SetFormerMaster(GetPCSpeaker(), OBJECT_SELF);
RemoveHenchman(GetPCSpeaker());
ClearAllActions();
object oTarget = GetWaypointByTag("BagOfRats"); //or whatever the tag is for your destination waypoint
AssignCommand(OBJECT_SELF, JumpToObject(oTarget));
CreateObject(OBJECT_TYPE_PLACEABLE, "stakedoutcapta", GetLocation(GetObjectByTag("SOCpoint")));
}