Jump to content
  • 0

Help Reward Max NPC !


Yugosh

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  


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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  05/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

if(Class == Job_Novice)
    // Novice
else if(Class == Job_Mage)
    // Mage
...

Check const.txt for more job constants.

Link to comment
Share on other sites

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.

×
×
  • Create New...