Module commit
Module commit.
This commit is contained in:
21
_module/nss/on_enter_abovegr.nss
Normal file
21
_module/nss/on_enter_abovegr.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "vamp_friends"
|
||||
#include "vamp_sunsystem"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
// if the character is a valid player character, run the following...
|
||||
if (GetIsObjectValid(oPC))
|
||||
{
|
||||
//If entering object is Undead, make it friendly towards every vampire on module.
|
||||
//If entering object is Vampire, make every undead on area friendly towards entering vampire.
|
||||
vamp_friends(oPC);
|
||||
|
||||
PrintString("on_enter: " + GetName(oPC) + " (is a valid object) entering "+GetName(GetArea(oPC)));
|
||||
if(GetSubRace(oPC)=="Vampire" && GetIsPC(oPC))
|
||||
{
|
||||
//Init sunsystem for entering vampire. If area is underground you dont need this.
|
||||
vamp_sunsystem(oPC);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user