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: 08 Aug 2010, 18:43

Bug in Peters scricpt

Post by argul »

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