Updated Tar Lake interior
Updated Tar Lake interior. Added Water Breathing to Amulet of Water Breathing. Updated tar mephit.
This commit is contained in:
20
_module/nss/cv_10a_tar_fight.nss
Normal file
20
_module/nss/cv_10a_tar_fight.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
void main()
|
||||
{
|
||||
// Get the entering object (usually a player character)
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
// Check if the entering object is a player character and not the module itself
|
||||
if (GetIsPC(oPC) && !GetIsDM(oPC))
|
||||
{
|
||||
// Find the nearest creature with the tag "TARMEPHIT001"
|
||||
object oCreature = GetNearestObjectByTag("TARMEPHIT001", oPC);
|
||||
|
||||
// Check if a valid creature was found
|
||||
if (GetIsObjectValid(oCreature))
|
||||
{
|
||||
// Make the creature say the message
|
||||
SpeakString("Hey, you stay away from our tar!", TALKVOLUME_SHOUT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user