Jump to content
  • 0

Help me with this script.


Zayn Anthony

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  04/20/17
  • Last Seen:  

Can you revise this script. Its is possible to make this script 2 per jobs only race to max. and then the npc will broadcast whos that person is? Thank you :)

prontera,155,170,5	script	Reward NPC	99,{

set .@MaxBLevel,255; //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) end;
mes "Congratulations, you've achieve the max level in the server, here's your reward!";
getitem .@item,1;
close;

}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   2
  • Joined:  03/30/16
  • Last Seen:  

Quote

prontera,155,170,5	script	Reward NPC	99,{

set .@MaxBLevel,255; //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) end;
//check how many players
if ($@countMaxPlayers >= 2) {
   mes "Sorry I can only give rewards to two players";
   end;
}
mes "Congratulations, you've achieve the max level in the server, here's your reward!";
getitem .@item,1;
set $@countMaxPlayers, $@countMaxPlayers+1;
close;

Please test it first before implementing to your live server. 

Edited by akosivinmark
  • Upvote 1
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...