Rage Guy Posted July 5, 2013 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
0 pzdcomgwtf Posted August 24, 2017 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
Patskie Posted July 5, 2013 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
Skorm Posted July 5, 2013 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
Capuche Posted July 5, 2013 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
Skorm Posted July 5, 2013 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
Patskie Posted July 6, 2013 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
Patskie Posted July 6, 2013 Posted July 6, 2013 I Get this message when i load the npc Are you using rAthena? Quote
Skorm Posted July 7, 2013 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
Rage Guy Posted July 7, 2013 Author Posted July 7, 2013 (edited) thanks alot its working ^_____^ Edited July 7, 2013 by SpongeBOB Quote
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 SpongeBOB11 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.