Jump to content
  • 0

Help Reward Max NPC !


Question

Posted


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

3 answers to this question

Recommended Posts

Posted

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 BaseLevel
OR

- JobLevel is not max JobLevel

OR

LReward equals 1 (reward already obtained)

  • Upvote 1
Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...