Jump to content

Banker mit Zinsen gesucht.


Pysk

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  234
  • Reputation:   8
  • Joined:  01/19/12
  • Last Seen:  

Hallo.

Ich suche einen Banker der auf das Geld was man auf dem Konto auch Zinsen gibt, diese sollten einstellbar sein. Es reicht wenn man sie im Script einstellen kann, muss nicht über einen NPC gehen. Am besten sollte auch die Grenze des Normalen bankers aufgehoben sein.

Der NPC sollte nach Möglichkeit mit eAthena laufen da ich kein rAthena benutze. Ich habe zwar schon ein par Banker gefunden, aber diese haben meist nicht funktioniert.

Natürlich nutze ich einen SQL Server.

Die Zinses sollten täglich also alle 24 Stunden berechnet werden.

Der Banker kann auch gerne in Englisch sein, das übersetzen ist kein Problem.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   37
  • Joined:  12/30/11
  • Last Seen:  

damit kann ich dir leider ned dienlich sein , habe sowas auch ned gesehen hier bei Rathena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   34
  • Joined:  05/30/12
  • Last Seen:  

ist zwar ein altes script, erfüllt seinen zweck aber noch immer

//===== eAthena Script =======================================
//= The 2nd Bank of Prontera ( with daily 0.01% income! )
//===== By: ==================================================
//= Lupus (1.0)
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= eAthena 1.x
//===== Description: =========================================
//= A bank which has an interest %
//===== Additional Comments: =================================
// Look for this formula and setup your Bank daily % interest
// #kafrabank/1000 = 0.1% of interest per day
// #kafrabank/100  =  1%  of interest per day
// #kafrabank/10   =  10% of interest per day
//
// 1.1 Added log of bank operation -> logmes "some info";
// 1.2 Set max income to 100,000z. It would help to avoid
// zeny exploits when you change DATE at your server
// 1.2a Corrected bad duplicate names. (bugreport:921) [samuray22]
// 1.3 Added 1b Safety Net so you can't withdraw more than you can hold [Pelellyr]
//============================================================
prontera,111,190,1 script Bank Clerk::bankg 833,{
mes"[Maniss]";
mes strcharinfo(0)+", Welcome to the Central Bank of RareRO!";
set @kb_int,(gettime(6)*31)+gettime(5); //today's number
set @income,0;
//calculate %
if (#kafrabank<=0 || #kb_int>=@kb_int) goto L_NoIncomeToday;
set @income,(#kafrabank/1000)*(@kb_int-#kb_int); //@income == % of the sum
//max income constant:
if (@income>100000) set @income,100000;
L_NoIncomeToday:
set #kb_int,@kb_int; //reset days timer

if(#kafrabank==0) mes "We could open you an account.";
if(@income>0) mes "Today's income: ^135445" + @income + "^000000 zeny.";
set #kafrabank,#kafrabank+@income;
if(#kafrabank>0) mes "Your account: ^135445" + #kafrabank + "^000000 zeny.";
mes "What would you like?";
next;
if(#kafrabank==0) menu "-Open an account",-,"-Quit",B_EXIT2;
if(#kafrabank>0) menu "-Deposit money",-,"-Withdraw money",M_WITHDRAW,"-Quit",B_EXIT2;
mes"[Maniss]";
mes "Please, tell me how much zeny you would like to deposit.";
next;
input @kafrabank;

if(@kafrabank<1000) goto L_LESS_1000;
if(@kafrabank>10000000) goto L_TOO_BIG_AMOUNT;
if(@kafrabank>zeny) goto L_NOT_ENOUGH;
set zeny,zeny-@kafrabank;
set #kafrabank,#kafrabank+@kafrabank;
mes"[Maniss]";
mes "You've made a deposit of ^135445" + @kafrabank + "z^000000.";
//we log these zeny operations into the log db
logmes "Bank %: " + @income +"z, Deposit: "+ @kafrabank +"z, Final: "+ #kafrabank +"z";
goto B_EXIT;
M_WITHDRAW:
if(#kafrabank==0) goto L_ZERO_ACCOUNT;
mes"[Maniss]";
mes "Your account: ^135445" + #kafrabank + "^000000 zeny.";
mes "How much zeny would you like to withdraw?";
next;
input @kafrabank;

if(@kafrabank<1) goto B_EXIT2;
if(@kafrabank>10000000) goto L_TOO_BIG_AMOUNT;
if(@kafrabank>1000000000-zeny) goto L_2MUCH;
if(@kafrabank>#kafrabank) goto L_NOT_ENOUGH;
set #kafrabank,#kafrabank-@kafrabank;
set zeny,zeny+@kafrabank;
mes"[Maniss]";
mes "Here is your ^135445" + @kafrabank + "z^000000, put your sign here...";
//we log these zeny operations into the log db
logmes "Bank %: " + @income +"z, Withdraw: "+ @kafrabank +"z, Final: "+ #kafrabank +"z";
goto B_EXIT;

L_NOT_ENOUGH:
mes"[Maniss]";
mes "You don't have enough zeny for this operation.";
next;
goto B_EXIT2;
L_ZERO_ACCOUNT:
mes"[Maniss]";
mes "You don't have any zeny on your account!";
next;
goto B_EXIT2;
L_TOO_BIG_AMOUNT:
mes"[Maniss]";
mes "Sorry. The maximum deposit you can make on a time is 10,000,000 zeny.";
next;
goto B_EXIT2;
L_LESS_1000:
mes"[Maniss]";
mes "We're sorry, the minimum amount of zeny you can deposit is 1,000 zeny.";
next;
goto B_EXIT2;
L_2MUCH:
mes"[Maniss]";
mes "We're sorry, but you can only hold 1,000,000,000 zeny and if you withdraw that much you'll be over the limit.";
next;
goto B_EXIT2;

B_EXIT:
mes "Very well... Come again soon!";
next;
B_EXIT2:
mes"[Maniss]";
mes "Thank you for using our Bank Service. We hope to see you again soon.";
close;
}

bank.txt

Edited by Snow
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  234
  • Reputation:   8
  • Joined:  01/19/12
  • Last Seen:  

Danke ich werde es testen.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   119
  • Joined:  05/23/12
  • Last Seen:  

Habe ihn ein Script gemacht, da er auch wollte das der Banker auf die MySQL DB zugreift. Ich finde auch das der Script nicht sooo toll ist.

1tens: Ist er wirklich alt.

2tens: Greift er nicht auf ein MySQL DB zu.

und 3tens: Kann man die Prozentzahl nur durch verändern festlegen statt durch die Variablen.

Rynbef~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   34
  • Joined:  05/30/12
  • Last Seen:  

Ehrlich gesagt verstehe ich das problem nicht so ganz. Alles was er möchte kann er in dem Script editieren, ist sogar beschrieben wie.

Und wie er es gewünscht hat, ist es ein eAthena script.

Das mit dem SQL hab ich eher so verstanden, dass er einen SQL server benutzt (und keinen txt server) und nicht dass das script auf die sql db zugreift.

Sollte er das haben wollen, wäre eine genauere Beschreibung der gewünschten Funktion durchaus sinnvoll

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   119
  • Joined:  05/23/12
  • Last Seen:  

Hat sich erledigt. Ich habe ihn in Skype ,daher konnte ich genaueres erfragen und habe ihm ein NPC geschrieben. Sämtliche Copyrights obliegen ihm, daher bin ich nicht befugt den Script zu posten.

Rynbef~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  234
  • Reputation:   8
  • Joined:  01/19/12
  • Last Seen:  

So

@Snow

Es gibt kein Problem du hast auch alles richtig verstanden!

Bevor du aber gepostet hattest oder viel mehr kurz da nach hat sich hatte Rynbef mich via Skpye angeschrieben und hatte mir vorgeschlagen den Banker komplett über SQL zu betreiben da hier mehr Möglichkeiten sind.

Den Banker habe ich jetzt jedenfalls und er Funktioniert damit hat sich das Thema nun erledigt!

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
Reply to this topic...

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