diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-04 18:02:08 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-04 18:02:08 -0700 |
commit | 6a85a72e083bc65d4a45f53aa6c6437ff6b11f7f (patch) | |
tree | 34649701476a045eba135bc59db91d94adc2ff56 /world/map/npc/001-1/rewards_master.txt | |
parent | a00579f57be4f02cd2a60ecd9468277ba6631e78 (diff) | |
download | serverdata-6a85a72e083bc65d4a45f53aa6c6437ff6b11f7f.tar.gz serverdata-6a85a72e083bc65d4a45f53aa6c6437ff6b11f7f.tar.bz2 serverdata-6a85a72e083bc65d4a45f53aa6c6437ff6b11f7f.tar.xz serverdata-6a85a72e083bc65d4a45f53aa6c6437ff6b11f7f.zip |
Clear (most) new warnings
Diffstat (limited to 'world/map/npc/001-1/rewards_master.txt')
-rw-r--r-- | world/map/npc/001-1/rewards_master.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/world/map/npc/001-1/rewards_master.txt b/world/map/npc/001-1/rewards_master.txt index f078c62b..0e8fbe1f 100644 --- a/world/map/npc/001-1/rewards_master.txt +++ b/world/map/npc/001-1/rewards_master.txt @@ -14,7 +14,7 @@ set @i, 0; setarray @Menu$, "", "", "", "", "", "", "", "", "", "", "", ""; - callsub SUB_prep_menu; + callsub S_prep_menu; menu @Menu$[0], L_MenuItems, @@ -43,7 +43,7 @@ L_MenuItems: L_Item_Loop: if (@rec == @req || Mobpt < tvis) goto L_Item_Done; - callsub SUB_give_item; + callsub S_give_item; set @rec, @rec + 1; goto L_Item_Loop; @@ -72,7 +72,7 @@ L_Give_all_loop: set @gotocounter, @gotocounter - 1; if (@gotocounter < 1) goto L_Give_all_next; set @itemgiveerror, 0; - callsub SUB_give_item; + callsub S_give_item; if (@itemgiveerror != 0) goto L_Close; goto L_Give_all_loop; @@ -98,7 +98,7 @@ L_Close: // Subroutines ////////////////////////////////////////////////// -SUB_prep_menu: +S_prep_menu: set @pts, Mobpt; set @dif, tvis; goto L_Menu_Loop; @@ -125,11 +125,11 @@ L_Menu_Done: set @Menu$[@i], "No thanks"; return; -SUB_give_item: +S_give_item: set @itemgiveerror, 0; getinventorylist; - if (@inventorylist_count == 100) goto SUB_give_noinv; - if (Mobpt < tvis) goto SUB_give_nomobpts; + if (@inventorylist_count == 100) goto S_give_noinv; + if (Mobpt < tvis) goto S_give_nomobpts; set Mobpt, Mobpt - tvis; set tvis, tvis + 1; set @item$, @Items$[rand(getarraysize(@Items$))]; @@ -139,12 +139,12 @@ SUB_give_item: mes "You received one " + getitemname(@item$) + "!"; return; -SUB_give_noinv: +S_give_noinv: mes "Your inventory is full!"; set @itemgiveerror, 1; return; -SUB_give_nomobpts: +S_give_nomobpts: mes "It looks like your Monster Points were over estimated."; set @itemgiveerror, 1; return; |