diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-06-05 12:37:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-06-05 12:37:08 -0300 |
commit | 265087dcdc3accf4209762ad2e488c33540ec544 (patch) | |
tree | bcd4fb48fe986aa34400089ed1f5c389d5887983 /npc/014-2-2 | |
parent | 2dc247874b70818f9d5a8f5008c0ce370980de03 (diff) | |
download | serverdata-265087dcdc3accf4209762ad2e488c33540ec544.tar.gz serverdata-265087dcdc3accf4209762ad2e488c33540ec544.tar.bz2 serverdata-265087dcdc3accf4209762ad2e488c33540ec544.tar.xz serverdata-265087dcdc3accf4209762ad2e488c33540ec544.zip |
Do not allow infinite magic goblins to spawn at Gemini, and raise their accuracy
Diffstat (limited to 'npc/014-2-2')
-rw-r--r-- | npc/014-2-2/valia.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/014-2-2/valia.txt b/npc/014-2-2/valia.txt index 8bdb4e890..c4911307e 100644 --- a/npc/014-2-2/valia.txt +++ b/npc/014-2-2/valia.txt @@ -240,7 +240,12 @@ OnCSnake: OnMGoblin: fix_mobkill(MagicGoblin); .@p = getcharid(1); - areamonster("val1@"+.@p, 100, 20, 170, 60, strmobinfo(1, MagicGoblin), MagicGoblin, 2, "Valia::OnMGoblin"); + 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 + .@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); end; /////////////////////////////////// |