Jump to content
  • 0

Add Stats and Add Skill NPC


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Add Stats and Add Skill NPC, but you need to have pods if you want to add your stats and skills.

thanks in advanced.

Link to comment
Share on other sites

17 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Try this code...

prontera,155,181,5 script Sample 436,{
set .BuyCost,10;
set .Point,10;
switch(select("Buy Skill Points:Buy Stat Points")){
Case 1:
mes "How many Skill Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 7179 ) < @Amount * .BuyCost ){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Skill Points.";
set SkillPoint,SkillPoint + (@Amount * .Point);
delitem 7179,@Amount * .BuyCost;
close;
Case 2:
mes "How many Stat Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 7179 ) < @Amount * .BuyCost){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Stat Points.";
set StatusPoint,StatusPoint + (@Amount * .Point);
delitem 7179,@Amount * .BuyCost;
close;
}
}

So you'll just need to edit the value of .Point..:(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

What do you mean with "You need pods if you want to add stats and skills" ? What are pods and I'm going to do make it for you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

PODs are proof of donation.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

he need a npc that can give extra stat for player.

example: lv99 player.

buy pod then pay that npc to get extra stat. if that player are rich he can abuse his money to get all stat 99 or 999.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Try this.. it's working fine with me... It's set to 1 pod = 1 stat/skill

prontera,155,181,5 script Seller 436,{
set .BuyCost,1;
switch(select("Buy Skill Points:Buy Stat Points")){
Case 1:
mes "How many Skill Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
next;
mes "Gained "+@Amount+" Skill Points.";
set SkillPoint,SkillPoint + @Amount;
delitem 7179,@Amount;
close;
Case 2:
mes "How many Stat Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
next;
mes "Gained "+@Amount+" Stat Points.";
set StatusPoint,StatusPoint + @Amount;
delitem 7179,@Amount;
close;
}
}

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you should have add

if( countitem( 7179 ) < @Amount ){
mes "Not Enough POD";
close;
}

your script will return ERROR when they input a number that is large than their current POD amount.

or another way...

input @Amount,0,countitem( 7179 );

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

you should have add

if( countitem( 7179 ) < @Amount ){
mes "Not Enough POD";
close;
}

your script will return ERROR when they input a number that is large than their current POD amount.

Ohh thanks to that sir Emistry.. /no1 miss that part.. /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

not working. got some errors. i dont know where exact i put this line.

if( countitem( 7179 ) < @Amount ){

mes "Not Enough POD";

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

It should look like this.. /no1

prontera,155,181,5    script    Sample    436,{
set .BuyCost,1;
switch(select("Buy Skill Points:Buy Stat Points")){
Case 1:
mes "How many Skill Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 7179 ) < @Amount ){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Skill Points.";
set SkillPoint,SkillPoint + @Amount;
delitem 7179,@Amount;
close;
Case 2:
mes "How many Stat Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 7179 ) < @Amount ){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Stat Points.";
set StatusPoint,StatusPoint + (@Amount);
delitem 7179,@Amount;
close;
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

its working but i can't change into 10 pods npc exchange 1 pc only.

guild_vs3,51,51,5    script    Skills & Stats Seller    436,{
set .BuyCost,10;
switch(select("Buy Skill Points:Buy Stat Points")){
Case 1:
mes "How many Skill Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 7179 ) < @Amount ){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Skill Points.";
set SkillPoint,SkillPoint + @Amount;
delitem 7179,@Amount;
close;
Case 2:
mes "How many Stat Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Reunited Donation Ticket";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 30151 ) < @Amount ){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Stat Points.";
set StatusPoint,StatusPoint + (@Amount);
delitem 30151,@Amount;
close;
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

All you need to do is add the multiplier .Buycost

So it would be like this..

delitem 7179,@Amount * .BuyCost;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

so all the code like this

delitem 7179,@Amount;

i will change into this?

delitem 7179,@Amount * .BuyCost

is this correct?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

yes.. :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

i got some bug. when my Proof Of Donation is 2pcs or 3pcs in my inventory and i use this npc, my pods not deleted but my skill points added..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Forgot to add multiplier in the checker...

if( countitem( 7179 ) < @Amount * .BuyCost ){
mes "Not Enough POD";
close;
}

Edited by wakoko321
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

here's my script

its working now, but in stats i want to change 1 stats only give npc, i need to change into 10. how to put that 10 stats? thanks

guild_vs3,51,51,5    script    Skills & Stats Seller    436,{
set .BuyCost,10;
switch(select("Buy Skill Points:Buy Stat Points")){
Case 1:
mes "How many Skill Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Pod.";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 7179 ) < @Amount * .BuyCost ){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Skill Points.";
set SkillPoint,SkillPoint + @Amount;
delitem 7179,@Amount * .BuyCost;
close;
Case 2:
mes "How many Stat Points you want to Buy ?";
mes "Each Cost "+.BuyCost+" Reunited Donation Ticket";
input @Amount,0;
if( @Amount == 0 ) close;
if( countitem( 7179 ) < @Amount * .BuyCost ){
   mes "Not Enough POD";
   close;
}
next;
mes "Gained "+@Amount+" Stat Points.";
set StatusPoint,StatusPoint + (@Amount);
delitem 30151,@Amount * .BuyCost;
close;
}
}

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