New bank script

smoochy boys on tour

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
65
I saw a bank npc script a while ago.
Ive changed it to use global variables so the amount of cash you can store is unlimted as using creditpoints can only go up to 255.
ive also added in a change pin number,so you have to make a pin to use it but you can change the pin number if you want.
ive also added in the option to store gold chests and with drawyour cash as goldchests etc etc..I hope you like it.

you will also need to make 1-39.txt files in your M2Server\Envir\Market_Def
folder and a made.txt

hope you can get some use out of this.

Also you will need to add this to your Qmanage folder

[@Login]
#IF
#ACT
Var Integer Human BankOfMir 0
LoadVar HUMAN BankOfMir ../QuestDiary/Variables/Integral.txt
 

Attachments

  • Bank NPC.txt
    36.9 KB · Views: 172

Koriban

Addict
Legendary
Loyal Member
Aug 18, 2006
5,840
211
280
Brighton
Wow looks nice, thanks!

This could also if it stores items etc, stop people from losing everything if theyre hacked.

Keep up the good work.
 

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
65
Wow looks nice, thanks!

This could also if it stores items etc, stop people from losing everything if theyre hacked.

Keep up the good work.

i have actualy been thinking of a way to to get a global variable to be able to store items.I do have an idea but its gunna be a long script.
When i have finished this weeks updated for Darkrealm ill have a look in to it
 

Grinch

Dedicated Member
Dedicated Member
Dec 30, 2008
115
0
43
New bank script errors!!!

Are this script with bugs, like in the rows @10mc-@150mc. You can use for multi-identicly scripts (2 much wast of space) like:
[@store10...200]
.....
.....
@elsesay
U dont have enought...
......
.....

with:
[@store10...200]
.....
.....
@elseact
goto @error

[@error]
U dont have enought....


I hope to understand the Ideea.;)
 

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
So does this just store cash?

Why not just increase bag gold?


storing items would be a bad idea, purely because it would giv eu a new item, eg store a dura2 item it will give u the orignal dura7 back lol
 

Grinch

Dedicated Member
Dedicated Member
Dec 30, 2008
115
0
43
Is the problems surely at the storing a goldchest for example. :tongue1: Anyway the ideea are very GOOD, and i apreciate a lot, coz are a very long script. I fix all problems , but i cant put here , coz I change a lot there, who include and translating all speaks in other 2 language.
 
Last edited:

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
65
Is the problems surely at the storing a goldchest for example. :tongue1: Anyway the ideea are very GOOD, and i apreciate a lot, coz are a very long script. I fix all problems , but i cant put here , coz I change a lot there, who include and translating all speaks in other 2 language.

there are no problems at all in this script
i have it running on my live server now and its been tested 100% .

The players who use it have reported no errors
 

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
65
So does this just store cash?

Why not just increase bag gold?


storing items would be a bad idea, purely because it would giv eu a new item, eg store a dura2 item it will give u the orignal dura7 back lol

bag gold only goes up to a certain amount.
Darkrealm has a high cash traffic.Some people have 20-30 billion gold.That will not fit in your bag i don't think.
Also this allows me to see what cash is ingame very quickly and is a easy way to tur chests in to gold and back etc
 

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
Oh, can hold 2bil on our files in ur bag.

dunno why u dont just make 10bil / 20bil / 30bil scrolls a lot easier than some massive script like that :x but meh i guess its ok
 

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
65
Oh, can hold 2bil on our files in ur bag.

dunno why u dont just make 10bil / 20bil / 30bil scrolls a lot easier than some massive script like that :x but meh i guess its ok

I like getting in deep with scripts.it opens up new ideas and inspires the mind.
Makeing a complex script like this not only makes it easier to keep track of the ingame cash but it will help me to devlope my scripting skills further (if possible).
I love new challenges and inspire to be unique.
 

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
hi, ive added this npc added the txt files [made.txt 1-39.txt]
but when i click balance i get variables not found :S

thanks
 

DeanTurner

Dedicated Member
Dedicated Member
Feb 27, 2009
37
0
32
is that all you did add the 1-39.txt files and made.txt then add the script to a npc ?
o and

[@Login]
#IF
#ACT
Var Integer Human BankOfMir 0
LoadVar HUMAN BankOfMir ../QuestDiary/Variables/Integral.txt

to Qmanage?
 
Last edited:

iJam

To the rhythm
VIP
Oct 8, 2007
1,522
99
195
London
Made.txt and 1-39.txt files in Market-Def

[@Login]
#IF
#ACT
Var Integer Human BankOfMir 0
LoadVar HUMAN BankOfMir ../QuestDiary/Variables/Integral.txt

tht Q-Manage

Script on npc


yep works fine
u musta dun sumit rong :confused1:
 
Last edited:

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
65
is that all you did add the 1-39.txt files and made.txt then add the script to a npc ?
o and

[@Login]
#IF
#ACT
Var Integer Human BankOfMir 0
LoadVar HUMAN BankOfMir ../QuestDiary/Variables/Integral.txt

to Qmanage?

i have an even better script i made shortly after releasing this one.
if yiur havn problems with this one pm me on msn and ill helpo you fix it.

[email protected]
 

Zen2

LOMCN Veteran
Veteran
Jul 26, 2007
1,818
18
145
Looks very simular to the one released in our torozor set of server files.

Venom Orignaly created it if so.
 

stonecold316

Dedicated Member
Dedicated Member
Nov 2, 2009
657
55
115
I saw a bank npc script a while ago.
Ive changed it to use global variables so the amount of cash you can store is unlimted as using creditpoints can only go up to 255.
ive also added in a change pin number,so you have to make a pin to use it but you can change the pin number if you want.
ive also added in the option to store gold chests and with drawyour cash as goldchests etc etc..I hope you like it.

you will also need to make 1-39.txt files in your M2Server\Envir\Market_Def
folder and a made.txt

hope you can get some use out of this.



Also you will need to add this to your Qmanage folder

[@Login]
#IF
#ACT
Var Integer Human BankOfMir 0
LoadVar HUMAN BankOfMir ../QuestDiary/Variables/Integral.txt


hi there right i tried this and i made the MADE.TXT and the 1-39txtfiles (39 different txt files starting from 1.txt up to 39.txt)
and put all that other stuff in qmanage but all im getting is variables not found ....

what am i doing wrong lol
any help would be appreciated lol
ty
stonecold