Hi hi Hercules.
I have a small issue, I'm using a query to fetch data but the issue is with weight. As we all know the script display weight is different from the text display, I.e: 200 weight in item_db would in fact only be 20 in RO which causes issues at the following:
Im using this query to fetch data (which works perfect):
.@amount = query_sql ("SELECT ID, weight, attack, defence, slots, equip_level FROM item_db WHERE name_japanese = '"+ escape_sql(.@itemname$) +"'", @iid, .@weight, .@attack, .@defence, .@slots, .@elvl);
and this in the NPC dialogue box:
mes "Weight: "+.@weight[.@i];
It both works, but the weight is not correct. For example with white potion, the NPC dialogue box displays 130 instead of 13. How to make it display only 13?
Thank you so much, god bless.
I have a small issue, I'm using a query to fetch data but the issue is with weight. As we all know the script display weight is different from the text display, I.e: 200 weight in item_db would in fact only be 20 in RO which causes issues at the following:
Im using this query to fetch data (which works perfect):
.@amount = query_sql ("SELECT ID, weight, attack, defence, slots, equip_level FROM item_db WHERE name_japanese = '"+ escape_sql(.@itemname$) +"'", @iid, .@weight, .@attack, .@defence, .@slots, .@elvl);
and this in the NPC dialogue box:
mes "Weight: "+.@weight[.@i];
It both works, but the weight is not correct. For example with white potion, the NPC dialogue box displays 130 instead of 13. How to make it display only 13?
Thank you so much, god bless.