| 
		
			| storing cash in some sort of bank [message #464923] | Mon, 26 March 2012 04:09  |  
			| 
				
				
					|  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   |  
			| 
				
				|  |  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 #464995 is a reply to message #464923] | Tue, 27 March 2012 16:44   |  
			| 
				
				
					|  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 #465024 is a reply to message #464998] | Wed, 28 March 2012 04:09   |  
			| 
				
				
					|  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 #465032 is a reply to message #464923] | Wed, 28 March 2012 06:24   |  
			| 
				
				
					|  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   |  
			| 
				
				
					|  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
   
 Owner of kambot TT server
 
 kambot.freeforums.org
 |  
	|  |  | 
	|  | 
	|  | 
	|  |