I'm using a card trader script, and I want to add more card ids, from 27120 to 27126 (new brasilis card id).
what should I edit? could you lendme a hand? I dont understand how to add a new item range...
The trick is in this line, but am not scripter, and poorly understand.
if (@sold_nameid[.@i] > 4000 && @sold_nameid[.@i] < 4700) {
OnSellItem:
mes "Cards to sell:";
mes "-----------------------------------";
for(set .@i,0; .@i<getarraysize(@sold_nameid); set .@i,.@i+1)
if (@sold_nameid[.@i] > 4000 && @sold_nameid[.@i] < 4700) {
if (.Level) {
query_sql("SELECT `LV` FROM `mob_db` WHERE `DropCardid` = "+@sold_nameid[.@i],.@lv);
if (.@lv < .Level) {
dispbottom getitemname(@sold_nameid[.@i])+" is under the minimum level.";
continue;
}
}
set .@card_id[getarraysize(.@card_id)], @sold_nameid[.@i];
set .@card_amt[getarraysize(.@card_amt)], @sold_quantity[.@i];
set .@mvp, compare(.MVP$,""+@sold_nameid[.@i]);
mes ((.@mvp)?" ^FF0000":" ^777777")+@sold_quantity[.@i]+"x "+getitemname(@sold_nameid[.@i])+"^000000";
set .@card_total, .@card_total+(@sold_quantity[.@i]*((.@mvp)?.Points[1]:.Points[0]));
}
deletearray @sold_nameid[0], getarraysize(@sold_nameid);
deletearray @sold_quantity[0], getarraysize(@sold_quantity);
if (!.@card_id) {
mes " ^777777(none)^000000";
emotion ET_SWEAT;
close;
}
Question
iraciz
Good day, dear community,
I'm using a card trader script, and I want to add more card ids, from 27120 to 27126 (new brasilis card id).
what should I edit? could you lendme a hand? I dont understand how to add a new item range...
The trick is in this line, but am not scripter, and poorly understand.
if (@sold_nameid[.@i] > 4000 && @sold_nameid[.@i] < 4700) {
I want to add more card ids, from 27120 to 27126
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.