I having getting this error and mvp ladder not working
My Script here
prontera,30,165,5 script MVP Shop 619,{
if(!.itemid[1])
donpcevent "::OnCustomInit";
while(1) {
mes .npcname$;
mes "Howdy "+strcharinfo(0)+", What do you want to do?";
switch(select("View MVP Ladder.:Exchange MVP Points.:Nothing, thanks.")) {
case 1:
next;
mes .npcname$;
mes "The Top 10 MVP's are:";
query_sql("SELECT `char_id`,`total_kills` FROM `mvp_ladder` ORDER BY `total_kills` DESC LIMIT 10",.@char_id,.@kills);
for (set .@i,0; .@i < getarraysize(.@char_id); set .@i,.@i + 1) {
query_sql("SELECT `name`,`class` FROM `char` WHERE `char_id` = '" + .@char_id[.@i] + "' LIMIT 1",.@char_name$,.@class_id);
mes .@i + 1 + ".^0000FF" + .@char_name$[0] + "^000000 -- (^cc55ff" + jobname(.@class_id[0]) + "^000000) - [^FF33CC" + .@kills[.@i] + "^000000]";
}
if( select( "Back to menu.:Bye bye.") == 1) {
next;
break;
} else
close;
case 2:
next;
mes .npcname$;
mes "Howdy "+strcharinfo(0)+", I can exchange the following items for MVP Points";
mes "Current MVP Points: ^ff0000"+#MVPPOINTS+"^000000.";
set .@i,select(.menuoptions$);
next;
if(!.@i) {
mes "^FF0000 Error Ocurred, please take a screenshot and report to gamemaster.";
close;
} else if( .@i > getarraysize( .itemid ) ) {
break;
}
mes .npcname$;
mes "To get ^9f80ff"+getitemname( .itemid[.@i] )+"^000000 you need: ^ff0000"+.mvppoints[.@i]+"^000000.";
mes "Do you want to exchange it?";
if( select("Yes, please.:No, thanks.") == 2) {
next;
break;
}
next;
mes .npcname$;
if( #MVPPOINTS < .mvppoints[.@i] ) {
mes "You dont have enough MVP Points, please get them and talk to me again.";
next;
break;
}
set .@tem_points,#MVPPOINTS - .mvppoints[.@i];
mes "Are you really sure that you want to Exchange ^9f80ff"+getitemname( .itemid[.@i] )+"^000000 for ^ff0000"+#MVPPOINTS+"^000000?";
mes "MVP Points after transaction: ^ff0000"+.@tem_points+"^000000.";
if( select("No, thanks.:Yes, please.") == 1) {
next;
break;
} if( #MVPPOINTS < .mvppoints[.@i] ) {
mes "You dont have enough MVP Points, please get them and talk to me again.";
next;
break;
}
set #MVPPOINTS,#MVPPOINTS - .mvppoints[.@i];
getitem .itemid[.@i],1;
logmes "AccountID: "+getcharid(3)+", CharID: "+getcharid(0)+", Bought "+getitemname(.itemid[.@i])+"("+.itemid[.@i]+")";
if( select( "Back to menu.:Bye bye.") == 2) {
next;
break;
} else
close;
break;
default:
mes "See ya.";
close;
}
}
end;
OnInit:
OnCustomInit:
setarray .itemid[1],7364,20405,7361,7363,4302,4441,7338,4367,4145,4357,4361,4359,4365,4363,20412,20411;
setarray .mvppoints[1],50,100,200,250,1000,1000,3500,3500,3500,3500,3500,3500,3500,3500,8000,15000;
set .npcname$,"^0000FF[Nyantastic Mob]^000000";
set .menuoptions$,"";
for(set .@i,1; .@i < getarraysize( .itemid ); set .@i,.@i+1) {
set .menuoptions$,.menuoptions$+"[^cc55ff "+ getitemname( .itemid[.@i] ) +" ^000000]->^ff0000"+.mvppoints[.@i]+"^000000";
if( .@i < getarraysize( .itemid ) )
set .menuoptions$, .menuoptions$+":";
}
set .menuoptions$, .menuoptions$+":Nothing thanks.";
end;
}
Question
JassMax
I having getting this error
and mvp ladder not working
My Script here
Error in CMD
and in the game its shows Empty
Link to comment
Share on other sites
5 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.