Yugosh Posted October 11, 2013 Posted October 11, 2013 prontera,150,150,5 script Reward NPC 99,{ set .@MaxBLevel,99; //Set your servers max base level here. set .@MaxJLevel,70; //Set your servers max job level here. set .@item,501; //Set your reward item here. if (BaseLevel != .@MaxBLevel && JobLevel != .@MaxJLevel && LReward != 1) end; mes "Congratulations, you've achieve the max level in the server, here's your reward!"; announce "Selamat, "+strcharinfo(0)+" telah mencapai level 99.",0; getitem .@item,1; set LReward,1; close; } I have a problem here when I reached level 99 and take the reward and I still can take continuous reward. I would like to add a set # lastTimeTalked, gettimetick (2), but I do not quite understand. please its support I just wanted to take 1x reward player max level thanks Quote
Kenpachi Posted October 11, 2013 Posted October 11, 2013 Change if (BaseLevel != .@MaxBLevel && JobLevel != .@MaxJLevel && LReward != 1) end; to if (BaseLevel != .@MaxBLevel || JobLevel != .@MaxJLevel || LReward == 1) end; That means, don't give the reward if: - BaseLevel is not max BaseLevelOR - JobLevel is not max JobLevel OR LReward equals 1 (reward already obtained) 1 Quote
Yugosh Posted October 11, 2013 Author Posted October 11, 2013 so if you appropriate the job? for example if lordknight will get blah blah ... and that the priest will get blah blah ... and so forth ..... thanks kenpachi Quote
Kenpachi Posted October 11, 2013 Posted October 11, 2013 if(Class == Job_Novice) // Novice else if(Class == Job_Mage) // Mage ... Check const.txt for more job constants. Quote
Question
Yugosh
prontera,150,150,5 script Reward NPC 99,{
set .@MaxBLevel,99; //Set your servers max base level here.
set .@MaxJLevel,70; //Set your servers max job level here.
set .@item,501; //Set your reward item here.
if (BaseLevel != .@MaxBLevel && JobLevel != .@MaxJLevel && LReward != 1) end;
mes "Congratulations, you've achieve the max level in the server, here's your reward!";
announce "Selamat, "+strcharinfo(0)+" telah mencapai level 99.",0;
getitem .@item,1;
set LReward,1;
close;
}
3 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.