theodorg 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 44 
	Threads: 11 
	Joined: Aug 2013
	
 Reputation: 
0
		
	 | 
	
		
			
Amnesia simple script help 
			 
			
				Sooooo i forgot the script for adding a lantern to players inventory....... 
I googled around for quite a bit but still couldent find it anywhere, help is appreciated.   
			 
			
			
			
		 |  
	 
 | 
 
	| 08-27-2014, 03:47 PM  | 
	
		
	 | 
 
 
	
		
		PutraenusAlivius 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119
		
	 | 
	
		
			
RE: Amnesia simple script help 
			 
			
				NOTE: Works on any item
void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
 asName - internal name 
asType - item to give 
asSubTypeName - item name for .lang file 
asImageName - For exemple: void GiveItem(string& asName, string& asType, “chemical_container_full”, “chemical_container_full.tga” , float afAmount); The image is from <nowiki> <nowiki> <nowiki>\ </nowiki> </nowiki> </nowiki> graphics\Item\chemical_container_full.tga : is the image which will appear in Inventory - img155.imageshack.us/img155/6871/20806785.jpg 
afAmount - amount to give
			  
			
			
 
"Veni, vidi, vici." 
"I came, I saw, I conquered." 
			
		 |  
	 
 | 
 
	| 08-27-2014, 03:53 PM  | 
	
		
	 | 
 
 
	
		
		theodorg 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 44 
	Threads: 11 
	Joined: Aug 2013
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Amnesia simple script help 
			 
			
				 (08-27-2014, 03:53 PM)First Captain Wrote:  NOTE: Works on any item 
void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
  asName - internal name 
asType - item to give 
asSubTypeName - item name for .lang file 
asImageName - For exemple: void GiveItem(string& asName, string& asType, “chemical_container_full”, “chemical_container_full.tga” , float afAmount); The image is from <nowiki> <nowiki> <nowiki>\ </nowiki> </nowiki> </nowiki> graphics\Item\chemical_container_full.tga : is the image which will appear in Inventory - img155.imageshack.us/img155/6871/20806785.jpg 
afAmount - amount to give 
Thanks
  
 (08-27-2014, 03:53 PM)First Captain Wrote:  NOTE: Works on any item 
void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
  asName - internal name 
asType - item to give 
asSubTypeName - item name for .lang file 
asImageName - For exemple: void GiveItem(string& asName, string& asType, “chemical_container_full”, “chemical_container_full.tga” , float afAmount); The image is from <nowiki> <nowiki> <nowiki>\ </nowiki> </nowiki> </nowiki> graphics\Item\chemical_container_full.tga : is the image which will appear in Inventory - img155.imageshack.us/img155/6871/20806785.jpg 
afAmount - amount to give 
Okay actully what i want to do is making the lantern unavailble for the player with timers under a certain time thats kinda scary.
			  
			
			
			
				
(This post was last modified: 08-27-2014, 04:01 PM by theodorg.)
 
				
			 
		 |  
	 
 | 
 
	| 08-27-2014, 03:54 PM  | 
	
		
	 | 
 
 
	
		
		PutraenusAlivius 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119
		
	 | 
	
		
			
RE: Amnesia simple script help 
			 
			
				 (08-27-2014, 03:54 PM)theodorg Wrote:  Okay actullyactually what i want to do is making the lantern unavailbleunavailable for the player with timers under a certain time thatsthat's kinda scary. 
void SetLanternDisabled(bool abX);
 
Enables/Disables the player's ability to use his lantern.
			  
			
			
 
"Veni, vidi, vici." 
"I came, I saw, I conquered." 
			
		 |  
	 
 | 
 
	| 08-27-2014, 04:03 PM  | 
	
		
	 | 
 
 
	
		
		theodorg 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 44 
	Threads: 11 
	Joined: Aug 2013
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Amnesia simple script help 
			 
			
				 (08-27-2014, 04:03 PM)First Captain Wrote:   (08-27-2014, 03:54 PM)theodorg Wrote:  Okay actullyactually what i want to do is making the lantern unavailbleunavailable for the player with timers under a certain time thatsthat's kinda scary.  
void SetLanternDisabled(bool abX);
  
Enables/Disables the player's ability to use his lantern. 
Ahhh thanks man!
			  
			
			
			
		 |  
	 
 | 
 
	| 08-27-2014, 04:04 PM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
 | 
 
	| 08-27-2014, 08:45 PM  | 
	
		
	 | 
 
 
	 
 |