Jump to content
  • 0

Error when using the Script


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Hi rAthena ;)

I found Joseph's banker script here in the forum but when I use it Ingame errors keeps appearing. here it is.

Error:

mwr7ty.png

Script :


//===== rAthena Script =======================================
//= The Billion Banker
//===== By: ==================================================
//= Joseph
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena SVN, r15039+
//===== Description: =========================================
//= Withdraw and deposit large amount of Zeny
//===== Additional Comments: =================================
//= 1.0 - Released!
//============================================================
prontera,149,190,5 script Banker 503,{

function FailMessage;
function Transaction;
function Display;

// == Configurations =========================================
set .@mz, 2000000000; // Server Max Zeny (Default: 1000000000)
set .@n$, "[banker]"; // NPC Name
// ===========================================================

mes .@n$;
mes "Greetings!";
mes "How can I help you?";
mes " ";
mes "Balance: " + Display(#savings);
set .@menu$, "Withdraw:Deposit";
set .@j, select ( .@menu$ ) - 1;
explode(.@menu$,.@menu$,":");  
next;
mes .@n$;
mes "How much would you like to " + .@menu$[.@j] + "?";
input .@amt,0,.@mz;
if ( .@amt == 0 )
{
next;
mes .@n$;
mes "^FF0000Invalid input...^000000";
close;
}
next;
mes .@n$;
mes .@menu$[.@j] + ": " + Display(.@amt);
mes " ";
mes (.@j!=2)?"Would you like to proceed?":"Thank you!";
if ( select ( "Yes:No" ) == 2 ) close;
next;
mes .@n$;
if ( FailMessage(.@j,.@amt,.@mz) != "" )
{
mes "^FF0000" +@msg$+ "^000000";
set @msg$, "";
close;
}
Transaction(.@j,.@amt);
mes .@menu$[.@j] + " successful!";
close;

function FailMessage {

switch (getarg(0))
{
Case 0: // Withdraw
if ( getarg(2) < (Zeny + getarg(1)) ) set @msg$, "You can't hold that much Zeny.";
if ( #savings < getarg(1) ) set @msg$, "You have insufficient amount of Zeny in your bank account.";
break;

Case 1: // Deposit
if ( Zeny < getarg(1) ) set @msg$, "You have insufficient amount of Zeny on hand.";
break;
}
return @msg$;

}

function Transaction {

switch (getarg(0))
{
Case 0: // Withdraw
set Zeny, Zeny + getarg(1);
set #savings, #savings - getarg(1);
break;

Case 1: // Deposit
set Zeny, Zeny - getarg(1);
set #savings, #savings + getarg(1);
break;
}
return;

}

function Display {

set .@d$, getarg(0);
for ( set .@i, getstrlen(getarg(0)) - 3; .@i > 0; set .@i, .@i - 3 )
set .@d$, insertchar(.@d$,",",.@i);
set .@d$, "^0000FF" +.@d$+ "^000000 z";
return .@d$;

}

}

Please Help me Fix It. Thanks in Advance ! /no1

SlashGeeGee

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Thanks Joseph It's now Fixed

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