summaryrefslogtreecommitdiff
path: root/npc/014-2-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-06-05 12:38:56 -0300
committerJesusaves <cpntb1@ymail.com>2022-06-05 12:38:56 -0300
commit9297c1320f1d0640b70b22d50c54ac3a346bbdf3 (patch)
tree98c2bbb6a453b6e5af880de502a7f6cfbefd74ed /npc/014-2-2
parent265087dcdc3accf4209762ad2e488c33540ec544 (diff)
downloadserverdata-9297c1320f1d0640b70b22d50c54ac3a346bbdf3.tar.gz
serverdata-9297c1320f1d0640b70b22d50c54ac3a346bbdf3.tar.bz2
serverdata-9297c1320f1d0640b70b22d50c54ac3a346bbdf3.tar.xz
serverdata-9297c1320f1d0640b70b22d50c54ac3a346bbdf3.zip
Control the overflow of goblins
Diffstat (limited to 'npc/014-2-2')
-rw-r--r--npc/014-2-2/valia.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/014-2-2/valia.txt b/npc/014-2-2/valia.txt
index c4911307e..a8eaa04af 100644
--- a/npc/014-2-2/valia.txt
+++ b/npc/014-2-2/valia.txt
@@ -242,10 +242,12 @@ OnMGoblin:
.@p = getcharid(1);
if (mobcount("val1@"+.@p, "Valia::OnMGoblin") > getmapusers("val1@"+.@p) * 50)
end;
- areamonster("val1@"+.@p, 100, 20, 170, 60, strmobinfo(1, MagicGoblin), MagicGoblin, 1, "Valia::OnMGoblin");
- // Spawn a high precision one as well
+ // Spawn a high precision one
.@mg=areamonster("val1@"+.@p, 100, 20, 170, 60, strmobinfo(1, MagicGoblin), MagicGoblin, 1, "Valia::OnMGoblin");
setunitdata(.@mg, UDT_HIT, 42 + mobcount("val1@"+.@p, "Valia::OnMGoblin") * 2);
+ // And randomly spawn another (33% chance)
+ if (!rand2(3))
+ areamonster("val1@"+.@p, 100, 20, 170, 60, strmobinfo(1, MagicGoblin), MagicGoblin, 1, "Valia::OnMGoblin");
end;
///////////////////////////////////