Yugosh Posted October 11, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 65 Reputation: 0 Joined: 05/09/12 Last Seen: April 3, 2023 Share 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 Link to comment Share on other sites More sharing options...
Kenpachi Posted October 11, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 764 Reputation: 220 Joined: 11/14/11 Last Seen: November 19, 2020 Share 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 Link to comment Share on other sites More sharing options...
Yugosh Posted October 11, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 65 Reputation: 0 Joined: 05/09/12 Last Seen: April 3, 2023 Author Share 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 Link to comment Share on other sites More sharing options...
Kenpachi Posted October 11, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 764 Reputation: 220 Joined: 11/14/11 Last Seen: November 19, 2020 Share Posted October 11, 2013 if(Class == Job_Novice) // Novice else if(Class == Job_Mage) // Mage ... Check const.txt for more job constants. Quote Link to comment Share on other sites More sharing options...
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;
}
Link to comment
Share on other sites
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.