ahloi007 Posted March 30, 2020 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 78 Reputation: 1 Joined: 10/15/12 Last Seen: May 23, 2023 Share Posted March 30, 2020 (edited) 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 March 30, 2020 by ahloi007 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 30, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 2 hours ago Share Posted March 30, 2020 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; } } Quote Link to comment Share on other sites More sharing options...
0 ahloi007 Posted March 30, 2020 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 78 Reputation: 1 Joined: 10/15/12 Last Seen: May 23, 2023 Author Share Posted March 30, 2020 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. Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 30, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 2 hours ago Share Posted March 30, 2020 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; } } Quote Link to comment Share on other sites More sharing options...
0 ahloi007 Posted March 30, 2020 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 78 Reputation: 1 Joined: 10/15/12 Last Seen: May 23, 2023 Author Share Posted March 30, 2020 (edited) 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 March 30, 2020 by ahloi007 Add on words Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 30, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 2 hours ago Share Posted March 30, 2020 (edited) 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 March 30, 2020 by sader1992 Quote Link to comment Share on other sites More sharing options...
0 ahloi007 Posted March 30, 2020 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 78 Reputation: 1 Joined: 10/15/12 Last Seen: May 23, 2023 Author Share Posted March 30, 2020 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!! Quote Link to comment Share on other sites More sharing options...
0 xixking Posted April 23, 2020 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 12/29/12 Last Seen: May 6, 2020 Share Posted April 23, 2020 How About Every Character what the script THANKS YOU Quote Link to comment Share on other sites More sharing options...
Question
ahloi007
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.
Link to comment
Share on other sites
7 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.