summaryrefslogtreecommitdiff
path: root/npc/annuals/xmas/2021.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-09 13:44:48 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-09 13:44:48 -0300
commitd527e2195f46a4dd7d152cc1b04b0c4892a063b6 (patch)
treebfaaab73cbdbaffc55ead903248b3d940291b659 /npc/annuals/xmas/2021.txt
parented0d417d0fddc2777a3502f14889342fe33af2e5 (diff)
downloadserverdata-d527e2195f46a4dd7d152cc1b04b0c4892a063b6.tar.gz
serverdata-d527e2195f46a4dd7d152cc1b04b0c4892a063b6.tar.bz2
serverdata-d527e2195f46a4dd7d152cc1b04b0c4892a063b6.tar.xz
serverdata-d527e2195f46a4dd7d152cc1b04b0c4892a063b6.zip
(Theoretically) make moonshrooms at Santa passive.
Diffstat (limited to 'npc/annuals/xmas/2021.txt')
-rw-r--r--npc/annuals/xmas/2021.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index 658588cf..cd74a9de 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -371,15 +371,25 @@ function script X21_SEEDS {
080-1,0,0,0 script #XMAS21Core NPC_HIDDEN,{
end;
-// "#XMAS21Core"::spawn(MonsterID, {Amount=1, {Map=this}})
+// "#XMAS21Core"::spawn(MonsterID, {Amount=1, {Map=this, Normal=true}})
public function spawn {
if (playerattached())
.@m$=getarg(2, getmap());
else
.@m$=getarg(2);
.@n$="#XMAS21Core::On"+getarg(0);
- if (mobcount(.@m$, .@n$) < 200)
+ if (mobcount(.@m$, .@n$) < 200 && getarg(3, true)) {
+ /* Spawn normally */
areamonster .@m$, 20, 20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20, getmapinfo(MAPINFO_SIZE_Y, .@m$)-20, strmobinfo(1, getarg(0)), getarg(0), getarg(1, 1), .@n$;
+ } else if (!getarg(3, true)) {
+ /* Spawn as passive */
+ freeloop(true);
+ for (.@i=0; .@i < getarg(1, 1); .@i++) {
+ .@m = areamonster(.@m$, 20, 20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20, getmapinfo(MAPINFO_SIZE_Y, .@m$)-20, strmobinfo(1, getarg(0)), getarg(0), 1, .@n$+"B");
+ unset_aggro(.@m);
+ }
+ freeloop(false);
+ }
/* Aqua Ticket Drops */
if (playerattached()) {
@@ -498,6 +508,9 @@ On1162:
On1130:
spawn(Moonshroom);
end;
+On1130B:
+ spawn(Moonshroom, 1, getmap(), false);
+ end;
/* Ice Caves */
On1093:
@@ -639,7 +652,7 @@ OnInit:
"#XMAS21Core"::spawn(WhiteSlime, 12, "081-1");
"#XMAS21Core"::spawn(SantaSlime, 4, "081-1");
"#XMAS21Core"::spawn(Moggun, 10, "081-1");
- "#XMAS21Core"::spawn(Moonshroom, 7, "081-1");
+ "#XMAS21Core"::spawn(Moonshroom, 7, "081-1", false);
end;
}