Auto server notice

06/16/2011 13:42 Devlyn#1
Hi!
I would like to ask that,how can I make auto notice-s?I just dont get it:
Example: someone is joining he gets a greeting notice,or when a SA is online it says [SA]xy is online,you can ask questions form him..or something like that:D
06/16/2011 13:47 .Alessa#2
easy quest^^:
Code:
quest notice begin
	state start begin
		when login with pc.is_gm() begin
			local a = pc.get_name()
			notice.all(""..a.." is now online!")
			notice.all("He'll help you now!")
		end
		when login begin
			chat("Welocme to xy")
		end
	end
end
06/16/2011 13:52 Devlyn#3
okay,but where do i write this..thats what i dont know:|
06/16/2011 14:33 .Alessa#4
Create a textfile and name it something like notice.quest. The ending .quest is important. Then you navigate to your quest directory (on 2010 Files they are at /home/game/share/locale/english/quest or something like this). Then upload your .quest-file there. Download your listfile (in 2010 files it's called locale_list, on older files it's hongkong_list). Edit it and put the name of your created file in there (NOTE: Open it with a good text editor like Notepad++. Upload the list and open putty (if you are operating on a rootserver) or type in vpc:
cd "your-quest-directory"
and then type sh make.sh, when you are operating on the old files. IF your are on newer files then try python make.py