Initial upload
Initial upload
This commit is contained in:
24
_module/nss/afx_area_enter.nss
Normal file
24
_module/nss/afx_area_enter.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
#include "afx_sfunc"
|
||||
|
||||
void main() {
|
||||
object oEntering = GetEnteringObject();
|
||||
if(GetIsPC(oEntering) == TRUE) {
|
||||
afx_apply_effects(oEntering,OBJECT_SELF);
|
||||
}
|
||||
|
||||
object oArea = GetArea(OBJECT_SELF);
|
||||
// place here the % chance of rest being interruped excample here 33% chance of rest being interuped
|
||||
SetLocalInt(oArea, "nMonChance",30);
|
||||
// place here the blueprint refrenfrence tag of the creature you wish to attack them
|
||||
// or place the word CUSTOM which will send a 201 event to the area starting your won script
|
||||
// here it is a goblin
|
||||
SetLocalString(oArea, "sMonster","drowwarrior003");
|
||||
|
||||
|
||||
|
||||
|
||||
/* only execute for PC's entering an area */
|
||||
|
||||
}
|
Reference in New Issue
Block a user