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
This commit is contained in:
Atemo 2021-10-12 23:41:31 +02:00 committed by GitHub
parent 7a0233388a
commit e0c27fed03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,7 @@ L_Start:
if (getd("@autopot_" + .@type$ + "_Min") < 1 || getd("@autopot_" + .@type$ + "_Min") > 100) setd "@autopot_" + .@type$ + "_Min",90; 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 (@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."; dispbottom getitemname(.@potion) + " is not a healing item.";
end; end;
} }

View File

@ -69,7 +69,7 @@
close; close;
} }
.@equip_id = getequipid(.@part); .@equip_id = getequipid(.@part);
.@itemtype = getiteminfo( .@equip_id ); .@itemtype = getiteminfo( .@equip_id, ITEMINFO_TYPE );
.@equip_refine = getequiprefinerycnt(.@part); .@equip_refine = getequiprefinerycnt(.@part);
setarray .@card[0], getequipcardid(.@part,0), getequipcardid(.@part,1), getequipcardid(.@part,2), getequipcardid(.@part,3); setarray .@card[0], getequipcardid(.@part,0), getequipcardid(.@part,1), getequipcardid(.@part,2), getequipcardid(.@part,3);

View File

@ -79,7 +79,7 @@ prontera,184,177,6 script Refine Master 851,{
.@refineitemid = getequipid(.@part); // save id of the item .@refineitemid = getequipid(.@part); // save id of the item
.@refinerycnt = getequiprefinerycnt(.@part); //save refinery count .@refinerycnt = getequiprefinerycnt(.@part); //save refinery count
setarray .@card[0], getequipcardid(.@part,0), getequipcardid(.@part,1), getequipcardid(.@part,2), getequipcardid(.@part,3); 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 ){ if( .@itemtype == IT_WEAPON ){
switch( getequipweaponlv( .@part ) ){ switch( getequipweaponlv( .@part ) ){
case 1: case 1:
@ -106,6 +106,7 @@ prontera,184,177,6 script Refine Master 851,{
default: default:
// TODO: // TODO:
close; close;
}
}else{ }else{
// TODO: // TODO:
close; close;