Jump to content

Question

Posted (edited)

TCG BANK THAT THEY CAN DEPOSIT, WITHDRAW AND IT HAS A LADDER LIKE PVP LADDER BUT THAT LADDER IS TOP 10 TCG RICHEST IN RAGNAROK

Edited by iTribal

10 answers to this question

Recommended Posts

Posted

i already did that

//--Credits to the maker:

//--Joseph from rAthena

prontera,139,176,5 script TCG Banker 831,{

set .@item, 7227; //Item ID

set .@n$,"["+strnpcinfo(0)+"]";

mes .@n$;

mes "Welcome to the "+getitemname(.@item)+" Bank!";

mes " ";

mes getitemname(.@item)+": "+asdf;

if (select(getitemname(.@item)+" Transaction:View Ladder") == 2) {

next;

set .@z, query_sql("SELECT `char_id`,`value` FROM `global_reg_value` WHERE `str`='asdf' ORDER BY `value` DESC LIMIT 10",.@c,.@v);

if (!.@z) {

mes .@n$;

mes "No records found.";

close;

}

mes " - Top 10 - ";

for (set .@i, 0; .@i < getarraysize(.@c); set .@i, .@i + 1) {

query_sql("SELECT `name` FROM `char` WHERE `char_id`="+.@c[.@i],.@p$);

mes "["+(.@i+1)+"] "+.@p$+" "+.@v[.@i];

}

close;

}

setarray .@m$, "Deposit","Widthdraw";

set .@m, select(implode(.@m$,":")) - 1;

next;

mes .@n$;

mes "Please insert the amount of "+getitemname(7227)+" you wish to "+.@m$[.@m]+".";

input .@a;

next;

if (!.@a) close;

if (!.@m && countitem(.@item) >= .@a) {

set asdf, asdf + .@a;

delitem .@item,.@a;

} else if (.@m && asdf >= .@a) {

set asdf, asdf - .@a;

getitem .@item,.@a;

} else {

mes .@n$;

mes "I'm sorry you have insufficient amount of "+getitemname(.@item)+" to "+.@m$[.@m]+".";

close;

}

mes .@n$;

mes .@m$[.@m]+" successful.";

close;

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...