Jump to content
  • 0

(Request)Max level rewards npc


ahloi007

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  10/15/12
  • Last Seen:  

Need your help!

I need a Max level rewards NPC.

1 account can redeem once and its only for the 50 players. An announcement will be made when a player redeem the rewards.

 

Edited by ahloi007
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

prontera,0,0,0	script	npc_name	444,{
	if($MAX_LEVEL_REWARDS_50 < 50){
		if(!#MAX_LEVEL_REWARDS_50){
			if(BaseLevel == 99){
				mes "you can redeem the reward once per account!";
				if(select("redeem with this char:close") == 2)
					end;
				#MAX_LEVEL_REWARDS_50 = true;
				$MAX_LEVEL_REWARDS_50++;
				mes "you got the reward!";
				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
				//===========================
				getitem 502,1;//add what you want to give like this.
				
				//===========================
				close;
			}else{
				mes "you are not at the max level!";
				close;
			}
		}else{
			mes "you alewady redeemed the reward with another char!";
			close;
		}
		
	}else{
		mes "All the rewards has been redeemed!";
		close;
	}
}

 

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

prontera,0,0,0	script	npc_name	444,{
	if($MAX_LEVEL_REWARDS_50 < 50){
		if(!#MAX_LEVEL_REWARDS_50){
			if(BaseLevel == MAX_LEVEL){
				mes "you can redeem the reward once per account!";
				if(select("redeem with this char:close") == 2)
					end;
				#MAX_LEVEL_REWARDS_50 = true;
				$MAX_LEVEL_REWARDS_50++;
				mes "you got the reward!";
				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
				//===========================
				getitem 502,1;//add what you want to give like this.
				
				//===========================
			}else{
				mes "you are not at the max level!";
				close;
			}
		}else{
			mes "you alewady redeemed the reward with another char!";
			close;
		}
		
	}else{
		mes "All the rewards has been redeemed!";
		close;
	}
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  10/15/12
  • Last Seen:  

1 hour ago, sader1992 said:

prontera,0,0,0	script	npc_name	444,{
	if($MAX_LEVEL_REWARDS_50 < 50){
		if(!#MAX_LEVEL_REWARDS_50){
			if(BaseLevel == MAX_LEVEL){
				mes "you can redeem the reward once per account!";
				if(select("redeem with this char:close") == 2)
					end;
				#MAX_LEVEL_REWARDS_50 = true;
				$MAX_LEVEL_REWARDS_50++;
				mes "you got the reward!";
				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
				//===========================
				getitem 502,1;//add what you want to give like this.
				
				//===========================
			}else{
				mes "you are not at the max level!";
				close;
			}
		}else{
			mes "you alewady redeemed the reward with another char!";
			close;
		}
		
	}else{
		mes "All the rewards has been redeemed!";
		close;
	}
}

 

Hi sader, thanks for your reply.

This script doesn't work when I was redeem with my max level character,

it said that "you are not at the max level!"

What should I do?

Sorry Im still in learning stage.

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

replace 

MAX_LEVEL

with a number , the max level you have 

for example if 99

prontera,0,0,0	script	npc_name	444,{
	if($MAX_LEVEL_REWARDS_50 < 50){
		if(!#MAX_LEVEL_REWARDS_50){
			if(BaseLevel == 99){
				mes "you can redeem the reward once per account!";
				if(select("redeem with this char:close") == 2)
					end;
				#MAX_LEVEL_REWARDS_50 = true;
				$MAX_LEVEL_REWARDS_50++;
				mes "you got the reward!";
				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
				//===========================
				getitem 502,1;//add what you want to give like this.
				
				//===========================
			}else{
				mes "you are not at the max level!";
				close;
			}
		}else{
			mes "you alewady redeemed the reward with another char!";
			close;
		}
		
	}else{
		mes "All the rewards has been redeemed!";
		close;
	}
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  10/15/12
  • Last Seen:  

11 minutes ago, sader1992 said:

replace 


MAX_LEVEL

with a number , the max level you have 

for example if 99


prontera,0,0,0	script	npc_name	444,{
	if($MAX_LEVEL_REWARDS_50 < 50){
		if(!#MAX_LEVEL_REWARDS_50){
			if(BaseLevel == 99){
				mes "you can redeem the reward once per account!";
				if(select("redeem with this char:close") == 2)
					end;
				#MAX_LEVEL_REWARDS_50 = true;
				$MAX_LEVEL_REWARDS_50++;
				mes "you got the reward!";
				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
				//===========================
				getitem 502,1;//add what you want to give like this.
				
				//===========================
			}else{
				mes "you are not at the max level!";
				close;
			}
		}else{
			mes "you alewady redeemed the reward with another char!";
			close;
		}
		
	}else{
		mes "All the rewards has been redeemed!";
		close;
	}
}

 

The npc works! thanks!

but I found a bug, when I was succeed to redeem, it stuck at the npc chat box there without a "close" button.

Should I add on 

				mes "you got the reward!";
				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
				//===========================
				getitem 502,1;//add what you want to give like this.
				close;

 

Edited by ahloi007
Add on words
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  10/15/12
  • Last Seen:  

2 minutes ago, sader1992 said:

prontera,0,0,0	script	npc_name	444,{
	if($MAX_LEVEL_REWARDS_50 < 50){
		if(!#MAX_LEVEL_REWARDS_50){
			if(BaseLevel == 99){
				mes "you can redeem the reward once per account!";
				if(select("redeem with this char:close") == 2)
					end;
				#MAX_LEVEL_REWARDS_50 = true;
				$MAX_LEVEL_REWARDS_50++;
				mes "you got the reward!";
				announce "Player '" + strcharinfo(0) + "' has redeemed his max level reward!",0;
				//===========================
				getitem 502,1;//add what you want to give like this.
				
				//===========================
				close;
			}else{
				mes "you are not at the max level!";
				close;
			}
		}else{
			mes "you alewady redeemed the reward with another char!";
			close;
		}
		
	}else{
		mes "All the rewards has been redeemed!";
		close;
	}
}

 

Okay Got it xD 

TQVM!!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  12/29/12
  • Last Seen:  

How About Every Character what the script THANKS YOU

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...