Lankhmar_PRC8/_module/nss/take_steelrod.nss

30 lines
626 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oTarget;
object oSpawn;
location lTarget;
object oPC = GetPCSpeaker();
BlackScreen(oPC);
//spawn mt
oTarget = GetWaypointByTag("WP_SPn_Mathert");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "mathert", lTarget);
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "steelrod");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
FadeFromBlack(oPC);
oTarget = GetObjectByTag("maninstocks");
DestroyObject(oTarget, 0.1);
}