Rage Guy Posted July 5, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Share Posted July 5, 2013 (edited) Can some one help me on thise npc npc that gives 1 level up for ----> 1 [ 6011 ] and it can be used only for ppl in lvl 80 to max 90 only 10 cards can be used Edited July 7, 2013 by SpongeBOB Quote Link to comment Share on other sites More sharing options...
0 pzdcomgwtf Posted August 24, 2017 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 10/28/16 Last Seen: September 15, 2017 Share Posted August 24, 2017 (edited) And how to do what 2rd would give 1 time, and 3rd 1 time? Having the 98th level Edited August 24, 2017 by pzdcomgwtf Quote Link to comment Share on other sites More sharing options...
Patskie Posted July 5, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share Posted July 5, 2013 Test prontera,150,150,0 script Leveler 100,{ if ( BaseLevel < 80 || BaseLevel > 90 || #GAIN == 10 ) end; mes .npc$; mes "Want to gain 1 level?"; next; if (select("Yes:No") - 1) end; if (!countitem(.id)) { mes .npc$; mes "Sorry but you need a " +getitemname(.id)+ " to gain 1 level"; close; } BaseLevel = BaseLevel + 1; #GAIN = #GAIN + 1; mes .npc$; mes "Gained 1 level!"; close; OnInit: .npc$ = "[ " +strnpcinfo(1)+ " ]"; #GAIN = 0; .id = 6011; end; } Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 5, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 5, 2013 TestBecause there are only 10 levels between 80 and 90 you don't need the account variable, besides it wouldn't work inside the OnInit label because no player is attached. I recommend just removing it. Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 5, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 5, 2013 Because there are only 10 levels between 80 and 90 you don't need the account variable If the player rebirth he can use the npc 20 times and only 10 cards can be used @Patskie You forgot to delete the item. I use your script if you don't mind prontera,155,180,0 script Leveler 100,{ if ( BaseLevel < 80 || BaseLevel > 90 || #GAIN == 10 ) end; .@item_id = 6011; // your item id required .@npc_name$ = strnpcinfo(1); mes "[ " + .@npc_name$ + " ]"; mes "Want to gain 1 level?"; next; if (select("Yes:No") - 1) end; if (!countitem(.@item_id)) { mes "[ " + .@npc_name$ + " ]"; mes "Sorry but you need a " +getitemname(.@item_id)+ " to gain 1 level"; close; } BaseLevel = BaseLevel + 1; #GAIN = #GAIN + 1; delitem .@item_id,1; mes "[ " + .@npc_name$ + " ]"; mes "Gained 1 level!"; close; } 1 Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 5, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 5, 2013 (edited) If the player rebirth he can use the npc 20 times andGood point sometimes these things escape me. Edited July 5, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
Patskie Posted July 6, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share Posted July 6, 2013 @Patskie You forgot to delete the item. I use your script if you don't mind Yaa forgot to add a delitem function lol. Thanks! Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted July 6, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted July 6, 2013 I Get this message when i load the npc Quote Link to comment Share on other sites More sharing options...
Patskie Posted July 6, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share Posted July 6, 2013 I Get this message when i load the npc Are you using rAthena? Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted July 7, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted July 7, 2013 3ceam Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 7, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 7, 2013 prontera,155,180,0 script Leveler 100,{ if ( BaseLevel < 80 || BaseLevel > 90 || #GAIN == 10 ) end; set .@item_id, 6011; // your item id required set .@npc_name$, strnpcinfo(1); mes "[ " + .@npc_name$ + " ]"; mes "Want to gain 1 level?"; next; if (select("Yes:No") - 1) end; if (!countitem(.@item_id)) { mes "[ " + .@npc_name$ + " ]"; mes "Sorry but you need a " +getitemname(.@item_id)+ " to gain 1 level"; close; } set BaseLevel, BaseLevel + 1; set #GAIN, #GAIN + 1; delitem .@item_id,1; mes "[ " + .@npc_name$ + " ]"; mes "Gained 1 level!"; close; } Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted July 7, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted July 7, 2013 (edited) thanks alot its working ^_____^ Edited July 7, 2013 by SpongeBOB Quote Link to comment Share on other sites More sharing options...
Question
Rage Guy
Can some one help me on thise npc
npc that gives 1 level up for ----> 1 [ 6011 ] and it can be used only for ppl in lvl 80 to max 90
only 10 cards can be used
Edited by SpongeBOBLink to comment
Share on other sites
11 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.