Преглед на файлове

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
Atemo преди 3 години
родител
ревизия
e0c27fed03
променени са 3 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 1 1
      npc/custom/etc/autopot.txt
  2. 1 1
      npc/re/merchants/blessed_refiner.txt
  3. 2 1
      npc/re/merchants/ticket_refiner.txt

+ 1 - 1
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;
 	}

+ 1 - 1
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);
 

+ 2 - 1
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;