diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-02 11:06:32 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-02 22:21:29 -0700 |
commit | c0ba38cd4b68491e28e467889804ebc09c9c002e (patch) | |
tree | af2890e6fe20990d2a9b7c94b991be58f25a5d52 /world/map/npc/009-6 | |
parent | 514a2f05cb335c1e9210fea58bc9a9a58478283f (diff) | |
download | serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.gz serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.bz2 serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.xz serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.zip |
Clean up main scripts
Diffstat (limited to 'world/map/npc/009-6')
-rw-r--r-- | world/map/npc/009-6/brodomir.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/world/map/npc/009-6/brodomir.txt b/world/map/npc/009-6/brodomir.txt index ec05d50f..eadd7170 100644 --- a/world/map/npc/009-6/brodomir.txt +++ b/world/map/npc/009-6/brodomir.txt @@ -81,9 +81,11 @@ L_Item: mes "\"So the prize should be " + @brodomir_item_amount + " " + @brodomir_item$ + "?\""; mes "\"In case there aren't enough people to start the fight, I'll try to give it back to you. If you're not here then... well, then I'll keep it for myself.\""; menu - "Ok.", -, + "Ok.", L_Next, "No, you missunderstood me.", L_Item, "I changed my mind, forget it.", L_Close; + +L_Next: if ($@BRODOMIR_PVP_STATUS == 1) goto L_Wait; if (countitem(@brodomir_item$) < @brodomir_item_amount) @@ -91,6 +93,8 @@ L_Item: // we need this loop because for items that can't be stacked, delitem can only delete a single one set @loopcounter, @brodomir_item_amount; + goto L_Delitem; + L_Delitem: delitem @brodomir_item$, 1; set @loopcounter, @loopcounter - 1; @@ -177,11 +181,14 @@ L_Warpfail: goto L_SkipItemback; // we need this loop because for items that can't be stacked, getitem will stack them nevertheless + goto L_GetitemLoop; + L_GetitemLoop: getitem $@BRODOMIR_ITEM$, 1; set $@BRODOMIR_ITEM_AMOUNT, $@BRODOMIR_ITEM_AMOUNT - 1; if ($@BRODOMIR_ITEM_AMOUNT > 0) goto L_GetitemLoop; + goto L_SkipItemback; L_SkipItemback: set $@BRODOMIR_ITEM_AMOUNT, 0; @@ -204,11 +211,14 @@ OnReward: goto L_SkipItem; // we need this loop because for items that can't be stacked, getitem will stack them nevertheless + goto L_Getitem; + L_Getitem: getitem $@BRODOMIR_ITEM$, 1; set $@BRODOMIR_ITEM_AMOUNT, $@BRODOMIR_ITEM_AMOUNT - 1; if ($@BRODOMIR_ITEM_AMOUNT > 0) goto L_Getitem; + goto L_SkipItem; L_SkipItem: set $@BRODOMIR_ITEM$, ""; |