;$VER PowerInstall 0.49 bY JaWloG/FLD! (Call ThE TriP +45 55778835)
;install lib
(Complete 0)
(set old_level @user-level)
(set @default-dest "")
(transcript "Installing Spli7Chat ..")
(set @default-dest "")

(
	(
(message "\nSpli7Chat will be installed in \"Doors:FLD-Doors/Spli7Chat/\"")
(makedir "Doors:FLD-Doors/")
(makedir "Doors:FLD-Doors/Spli7Chat/")
(makedir "Doors:FLD-Doors/Spli7Chat/ScreenShots")
(set LocalDir "Doors:FLD-Doors/Spli7Chat")
	(copyfiles
		(prompt "Copying Spli7Chat...")
		(help "")
		(source "bbs/Doors/FLD-Doors/Spli7Chat")
		(Pattern "#?")
		(dest LocalDir )
	)

	(copyfiles
		(prompt "Copying Spli7Chat...")
		(help "")
		(source "ScreenShots")
		(Pattern "#?")
		(dest "Doors:FLD-Doors/Spli7Chat/ScreenShots/")
	)

		(set name
			(askstring
				(prompt "\nThe Command Icon will be placed in\n\n\"BBS:COMMANDS/SYSCMD/\"\n\nWhat would you like to call the command ?\n(Any existing command will be overwritten!)")
				(help "Leave the .info part out !")
				(default "CHAT")
			)
		)

		(set new ".info")

		(set namenew
		(cat name new)
		)

		(set new ".info")
		(Set name "/Spli7Chat")

		(set ldpath
			(cat Localdir name)
		)


		(tooltype
			(Prompt "")
	 		(Dest "BBS/Commands/Syscmd/CHAT")
			(settooltype "Location" ldpath)
			(settooltype "Type" "XIM")
		        (settooltype "Name" "Spli7Chat by Genius")
		        (settooltype "Access" "15")
		        (settooltype "MultiNode" "YES")
		        (settooltype "Stack" "4096")
		        (Help "")

		) 




		(copyfiles
			(prompt "\nCopying Files")
			(source "BBS/Commands/SysCmd/Chat.info")
			(dest "BBS:commands/SysCmd")
			(newname namenew)
		)

(Message "\nYou need to edit your \"BBS:NodeX/StartChat.TXT(.Gr)\" and insert the line \"~CC_CHAT\"\nThe line should be in the end of the file.\nYou may also choose only to have the above line in your Startchat.txt")

)
;end amix

)
(complete 100)
(Exit "Spli7Chat - All Code By:\n Genius/FlOoD\n\nInstaller By:\n Jawlog/FlOoD\n\n- FLOOD -\n  FOLLOW  THE  STREAM\n\nGreetz go out to: All FlOoD Members\n All CRX and HF members, and the people on #AmiElite")
