Bug in Peters scricpt

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
argul
Novice
Novice
Posts: 237
Joined: Sun Aug 08, 2010 7:43 pm

Bug in Peters scricpt

Post by argul » Sat Sep 25, 2010 9:25 am

Hello folks,

i was reading the sources to have an idea what i need for warlord plate.

And the zeny comparison needs to befixed.
(compare if >20k, but charge 100k)

What happens actually when i try to buy n armorplate with 21k?
The Light Plate needs to be fixed as well.

Code: Select all

L_Peter_Warlord_Plate:
    if (zeny <20000) goto L_Peter_NotEnough_Zeny;
    if (countitem("IngotIron") < 15) goto L_Peter_NotEnough_Ingot;
    if (countitem("Coal") < 30) goto L_Peter_NotEnough_Coal;
    getinventorylist;
    if (@inventorylist_count == 100) goto L_Peter_TooMany;
    set zeny, zeny - 100000;
    delitem "IngotIron", 15;
    getitem "WarlordPlate", 1;
    mes "[Peter]";
    mes "\"Here you go!\"";
    close;
Pjotr

EDIT:

and coal should be removed, when it is needed!
---
Post Reply