diff options
author | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2022-11-19 10:11:04 +0000 |
---|---|---|
committer | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2022-11-19 10:11:04 +0000 |
commit | b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e (patch) | |
tree | f6f8e5189c711b0eadbfc2d0af53fc183af16de2 /world/map/npc/functions/mob_points.txt | |
parent | d48928c3e87c18ea11447117e307cf06f33829f6 (diff) | |
download | serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.tar.gz serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.tar.bz2 serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.tar.xz serverdata-b8dafc6736eb3f6fa60afcc41b5a71c9fa11bf2e.zip |
WIP: v2022.11.11 Update
Diffstat (limited to 'world/map/npc/functions/mob_points.txt')
-rw-r--r-- | world/map/npc/functions/mob_points.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/world/map/npc/functions/mob_points.txt b/world/map/npc/functions/mob_points.txt index cf93fdae..ecea5b82 100644 --- a/world/map/npc/functions/mob_points.txt +++ b/world/map/npc/functions/mob_points.txt @@ -4,6 +4,8 @@ function|script|MobPoints { if (@mobID < 1002) goto L_Return; + callsub S_Vault; + setarray @points, 1, // 1002 Maggot 2, // 1003 Scorpion @@ -176,7 +178,11 @@ function|script|MobPoints 0, // 1165 RESERVED 0, // 1166 RESERVED 0, // 1167 RESERVED - 0 // 1168 Floyd + 0, // 1168 Floyd + 0, // 1169 Crystal Spider + 0, // 1170 Crystal Golem + 0, // 1171 Black Crystal Golem + 0 // 1172 Bif ; if ((MPQUEST == 1) && (@mobID < 1128)) @@ -266,6 +272,13 @@ L_Terranite: set TERRAC, TERRAC + 1; goto L_Return; +S_Vault: + if (#EXP_CREDIT < 1) goto L_Return; + set @exp_bonus, min(#EXP_CREDIT, mobinfo(@mobID, MOB_BASEEXP) * 2); + set #EXP_CREDIT, #EXP_CREDIT - @exp_bonus; + getexp @exp_bonus, 0; + return; + L_Return: set @value, 0; return; |