Jump to content
  • 0

Stat and Skill Seller Error


tiradauno

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  50
  • Reputation:   1
  • Joined:  05/16/12
  • Last Seen:  

// = Script made by RIKIMARU on rathena.org

// = Profile Link :

// = http://rathena.org/board/user/434-rikimaru/

// = ENJOY THIS SCRIPT!

//===================================================================================

// //=====// /==/ /==/ /==/

// // // /==/ /==/ /=/ /==/

// //=====// /==/ /=/ /==============/ /========/ /==//===/ /==/ /==/

// //=////// /==/ /==//=/ /==/ /==/==/==/==/==/ / / / /==/ /==/ /==/

// // == /==/ /==//=/ /==/ /==/ /==/ /==/ ======/ / /==/ /==/ /==/

// // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/ /==/

// // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/=====/==/

// // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ /========/ /==/ /==///////==/

// ================ rAthena Script ==================================================

// ============== Information =======================================================

// = Stat and Skill Seller

// = Made by :

// = Rikimaru

//===== Current Version: ===================================================

//= 1.0

//===== Compatible With: ===================================================

//= with any rAthena Revision

//===== Description: =======================================================

//= This was a Requested Script,but it's useful for Newbie's /meh

//===== Additional Comments: ===============================================

//= 1.0 Finished the Script [Rikimaru]

//=========================================================================

//= DO NOT REMOVE MY AND CHRIS CREDITS AND CLAIM OUR WORK AS YOURS

//=========================================================================

prontera,164,142,5 script Stat and Skill Seller NID,{

// ===================== Settings ===========================

set .@skillname$,"^0000FF[ John ]^000000";

set .@zenyCost,100

// ================== End of Settings =======================

mes .@skillname$;

mes "Hello ^FF0000["+strcharinfo(0)+"]^000000!";

mes "What do you want to do?";

next;

switch(select("-Buy Stats:-Buy Skills:Cancel")) {

case 1:

mes .@skillname$;

mes "Okay input the Amount";

mes "of Points you want to buy!";

mes "1 Point has a cost of 100 Zenny!";

next;

mes .@skillname$;

input .@amount;

if( Zeny < ( .@amount * .@zenyCost ) ) {

mes "You don't have enough money!";

close;

} else {

set Zeny, Zeny - ( .@amount * .@zenyCost );

set StatusPoint, StatusPoint + .@amount;

mes "There,take them.";

}

case 2:

mes .@skillname$;

mes "Okay input the Amount";

mes "of Points you want to buy!";

mes "1 Point has a cost of 100 Zenny!";

next;

mes .@skillname$;

input .@amount;

if( Zeny < ( .@amount * .@zenyCost ) ) {

mes "You don't have enough money!";

close;

} else {

set Zeny, Zeny - ( .@amount * .@zenyCost );

set SkillPoint, SkillPoint + .@amount;

mes "There,take them.";

}

case 3:

close;

}

}errorbz.jpg

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

Please use the code tag for your scripts and you are missing a ";" at the end of this line:

set .@zenyCost,100

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  50
  • Reputation:   1
  • Joined:  05/16/12
  • Last Seen:  

thanks sir . problem fix .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  07/01/12
  • Last Seen:  

Please use the code tag for your scripts and you are missing a ";" at the end of this line:

set .@zenyCost,100

what do you mean by code tag?

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:  

what do you mean by code tag?

[code]............contents................
[/code]

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