RoT2_PRC8/_module/nss/aw_takerunesforp.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

37 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName aw_takerunesforp
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 11/27/2003 12:06:31 PM
//:://////////////////////////////////////////////
void main()
{
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "AWRUNE001");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "AWRUNE002");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "AWRUNE003");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "AWRUNE004");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
object oTarget;
object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("WP_VERAPORTAL");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "portaltovera", lTarget);
DestroyObject(oSpawn, 300.0);
}