From e0c27fed034d2ec8711d793080fcbc3000732114 Mon Sep 17 00:00:00 2001 From: Atemo Date: Tue, 12 Oct 2021 23:41:31 +0200 Subject: [PATCH] Added a missing argument of getiteminfo script command in some script (#6307) * Added a missing argument of getiteminfo script command in some script * Fixed the missing curly in ticket_refiner.txt Thanks to @Lemongrass3110 @aleos89 @Daegaladh @Skystar18 --- npc/custom/etc/autopot.txt | 2 +- npc/re/merchants/blessed_refiner.txt | 2 +- npc/re/merchants/ticket_refiner.txt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/npc/custom/etc/autopot.txt b/npc/custom/etc/autopot.txt index 30afa532d9..65d858d60d 100644 --- a/npc/custom/etc/autopot.txt +++ b/npc/custom/etc/autopot.txt @@ -60,7 +60,7 @@ L_Start: if (getd("@autopot_" + .@type$ + "_Min") < 1 || getd("@autopot_" + .@type$ + "_Min") > 100) setd "@autopot_" + .@type$ + "_Min",90; if (@autopot_delay < 50 || @autopot_delay > 1000) @autopot_delay = .MinDelay; - if (getiteminfo(.@potion,2) != IT_HEALING) { + if (getiteminfo(.@potion, ITEMINFO_TYPE) != IT_HEALING) { dispbottom getitemname(.@potion) + " is not a healing item."; end; } diff --git a/npc/re/merchants/blessed_refiner.txt b/npc/re/merchants/blessed_refiner.txt index 5ae282d15e..7c9461164f 100644 --- a/npc/re/merchants/blessed_refiner.txt +++ b/npc/re/merchants/blessed_refiner.txt @@ -69,7 +69,7 @@ close; } .@equip_id = getequipid(.@part); - .@itemtype = getiteminfo( .@equip_id ); + .@itemtype = getiteminfo( .@equip_id, ITEMINFO_TYPE ); .@equip_refine = getequiprefinerycnt(.@part); setarray .@card[0], getequipcardid(.@part,0), getequipcardid(.@part,1), getequipcardid(.@part,2), getequipcardid(.@part,3); diff --git a/npc/re/merchants/ticket_refiner.txt b/npc/re/merchants/ticket_refiner.txt index 26e817b604..9b9df14fdc 100644 --- a/npc/re/merchants/ticket_refiner.txt +++ b/npc/re/merchants/ticket_refiner.txt @@ -79,7 +79,7 @@ prontera,184,177,6 script Refine Master 851,{ .@refineitemid = getequipid(.@part); // save id of the item .@refinerycnt = getequiprefinerycnt(.@part); //save refinery count setarray .@card[0], getequipcardid(.@part,0), getequipcardid(.@part,1), getequipcardid(.@part,2), getequipcardid(.@part,3); - .@itemtype = getiteminfo( .@refineitemid ); + .@itemtype = getiteminfo( .@refineitemid, ITEMINFO_TYPE ); if( .@itemtype == IT_WEAPON ){ switch( getequipweaponlv( .@part ) ){ case 1: @@ -106,6 +106,7 @@ prontera,184,177,6 script Refine Master 851,{ default: // TODO: close; + } }else{ // TODO: close;