Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » storing cash in some sort of bank
storing cash in some sort of bank [message #464923] Mon, 26 March 2012 04:09 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
I want to create some sort of bank however i have no idea how i can create some sort of storage that can hold the money

i know there used to be a way to rebuild the nod turrets if you picked up a powerup i wanted to do some similar but with a chatcommand


Owner of kambot TT server

kambot.freeforums.org
Re: storing cash in some sort of bank [message #464959 is a reply to message #464923] Tue, 27 March 2012 00:34 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
is called refund powerup, was on BrenBot.dll, i made my own refund powerup on Lua. You need to attach a script to that turret and when dies, to create a powerup who have another script, that another script will have the refund script. maybe you need to make a invisible controller too for timer and refund store.

Creator of Mutant Co-Op
Developer of LuaTT
Re: storing cash in some sort of bank [message #464976 is a reply to message #464923] Tue, 27 March 2012 09:19 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
You'll have to be more specific if you want anyone to be able to help you.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: storing cash in some sort of bank [message #464995 is a reply to message #464923] Tue, 27 March 2012 16:44 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
i dont have anyhting more specifik

i want to create a script/object that can play as bank for me

and i want to be able for example use !store <amount>

to store money

i dont have more details then that sla.ro helped

if turret rebuild worked with just scripts i should be able to do it that way.
ill get into as soon as i get out of exams
if i get stuck then ill give more details and also code that way its easier to help


Owner of kambot TT server

kambot.freeforums.org
Re: storing cash in some sort of bank [message #464998 is a reply to message #464923] Tue, 27 March 2012 18:12 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Is the bank object, player or team specific and does this bank exist until the match ends/server restarts/indefinitely or w/e?

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: storing cash in some sort of bank [message #465007 is a reply to message #464923] Tue, 27 March 2012 19:19 Go to previous messageGo to next message
C4Smoke is currently offline  C4Smoke
Messages: 233
Registered: October 2011
Karma: 0
Recruit
DarkOrbit Owner of Cloud Gaming had his own bank system setup. Maybe you could pm him here and ask him to share.
Re: storing cash in some sort of bank [message #465024 is a reply to message #464998] Wed, 28 March 2012 04:09 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
iRANian wrote on Wed, 28 March 2012 03:12

Is the bank object, player or team specific and does this bank exist until the match ends/server restarts/indefinitely or w/e?


ban is supposed to exist for one game team specifik


C4Smoke wrote on Wed, 28 March 2012 04:19

DarkOrbit Owner of Cloud Gaming had his own bank system setup. Maybe you could pm him here and ask him to share.


i know but id like to get this up and running myself that way i might understand scripts better again


Owner of kambot TT server

kambot.freeforums.org
Re: storing cash in some sort of bank [message #465028 is a reply to message #464923] Wed, 28 March 2012 05:00 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
So what are you having issues with? This is extremely simple to do.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: storing cash in some sort of bank [message #465032 is a reply to message #464923] Wed, 28 March 2012 06:24 Go to previous messageGo to next message
triattack is currently offline  triattack
Messages: 14
Registered: May 2011
Karma: 0
Recruit
I use a really simple pool system for my building revival in apb if you mod it a bit more and make the pool store the ammount a player has in an array that uses the player ID you should have some sort of bank system.
if you split it and add a script to add interest to it you should have a bank system.

								if(Get_Money(PlayerID) >= fund_hp)
								{
									Set_Money(PlayerID,Get_Money(PlayerID)-fund_hp);
									money_hp[Get_Team(PlayerID)] ++;
									int temp = money_hp[Get_Team(PlayerID)];
									int temp1 =  temp * fund_hp;
									int temp2 = fund_hp * needed_amount_donations_hp;
									char funded[250];
									sprintf(funded,"%d has been added to the Helli Pad pool the Helli Pad pool now contains: %d / %d", fund_hp, temp1, temp2);
									Send_Message_Team(team,0,255,0,funded);
									bool restored = tri_Restore(hp,needed_amount_donations_wf,money_hp[Get_Team(PlayerID)],4);
									if(restored)
									{
										Send_Message_Team(team,0,255,5,"your hp is restored nice job");
									}
								}


this is a really short part of the plugin (it isn't released as the FDS isn't done yet and the plugin still needs to be cleaned once done i'll post it here and on the apb forums with source.
Re: storing cash in some sort of bank [message #465116 is a reply to message #465028] Fri, 30 March 2012 02:36 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
iRANian wrote on Wed, 28 March 2012 14:00

So what are you having issues with? This is extremely simple to do.



it might be easy but i didnt see a start and then its hard to do...

not everyone is an extremely well coder Wink


Owner of kambot TT server

kambot.freeforums.org
Re: storing cash in some sort of bank [message #465118 is a reply to message #464923] Fri, 30 March 2012 03:42 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
i'm terrible at programming

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: storing cash in some sort of bank [message #465123 is a reply to message #465118] Fri, 30 March 2012 06:19 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
well iranian at the amount you make i wouldnt say so

Owner of kambot TT server

kambot.freeforums.org
Re: storing cash in some sort of bank [message #465177 is a reply to message #465116] Sat, 31 March 2012 07:06 Go to previous message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

robbyke wrote on Fri, 30 March 2012 04:36

iRANian wrote on Wed, 28 March 2012 14:00

So what are you having issues with? This is extremely simple to do.



it might be easy but i didnt see a start and then its hard to do...

not everyone is an extremely well coder Wink

Neither am I dude, but what you're proposing is extremely simple. About as simple as reading a number from a file, adding to it, and saving it again. There's your bank.


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Previous Topic: C&C_Prototype *wip*
Next Topic: defense scripts when weapon changes
Goto Forum:
  


Current Time: Sat Dec 28 00:37:47 MST 2024

Total time taken to generate the page: 0.01404 seconds