I was wondering if anyone has had any experience with making your own chat system. I'd like to make one from scratch with a little help rather than use a premade script or a pay script. All of those just look cheesy anyway.
Simple aspects of the chat would be to connect to the user database for logins and have 3 types of chat. World, Guild, and Private. It doesn't have to show channel users or anything fancy either. Just your standard MMO chat setup.
Chat System
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Chat System
i havent, i always use the free scripts that are out there.
Re: Chat System
I made a chat in php and javascript for the old forsaken sanctum webpage. Quite simple, just read a few php and ajax tutorials and you should be able to make one.
--- Game Database ---
For all your game information needs!
Visit us at: http://www.gamedatabase.eu today!
For all your game information needs!
Visit us at: http://www.gamedatabase.eu today!
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Chat System
ah yes i remember that. It was very nice.
Re: Chat System
I've made one using ASP.Net and one with Silverlight, but I doubt those are useful in this case.
Re: Chat System
https://blueimp.net/ajax/
I have been playing around with this today
It is working as I wanted it to. I just need to figure out how to get it to open three different channels when i user logs in.
So on log in he joins World in one tab, Guild in the second, and have a pm window. The pm window isn't that important.
I have been playing around with this today
So on log in he joins World in one tab, Guild in the second, and have a pm window. The pm window isn't that important.
Re: Chat System
I started working on a very basic system. The only way to log in to it is from the site and it's tied to you user info. It's actually a lot easier than I thought it would be. It's a modified version of my mail system. So far it has world chat in one window and guild chat in the second.Falken wrote:I made a chat in php and javascript for the old forsaken sanctum webpage. Quite simple, just read a few php and ajax tutorials and you should be able to make one.
The guild chat doesn't use channels yet but uses a master table that sorts the players by guild name. Only players of that guild can see those messages. It's just clunky and sluggish right now and the history doesn't delet itself. So I ended up with 500 table entries last night after testing for 30 minutes. I'm sure there is a better way to do it.
My biggest problem with premade scripts is that they seem hard to integrate into your current setup as far as getting them to use your user database for login. I would love to use the one i listed in my last post but after 4 hours of trying yesterday I couldn't get it to work with my user list. The reason I like it so much is that I know how to modify the ui to fit my design. I've used this since it was first release on 4 phpbb3 sites and 1 vbulletin. Once integrated it's plain CSS for editing everything and its a breeze to work with.
Is there anyone willing to give it a try? I'm using the standard browser mmo tutorial tables.
Re: Chat System
A chat system would be pretty trivial to implement using Memotica stimuli. Guild chat would be a conditional stimulus with a plain text descriptor payload and a condition keyed to the presence of a particular landmark on the player representing the guild. During the stimulus filtering phase (see my latest blog post for an explanation of stimulus life cycle phases), any entity with the guild landmark would be eligible to receive the message.
You could do the same with any text; effectively creating channels for simulating in-game radio channels or creating area chat, global chat, marketplaces, etc.
You could also filter by language. Chat messages could be tagged with language, allowing players to filter language they don’t understand.
You could do the same with any text; effectively creating channels for simulating in-game radio channels or creating area chat, global chat, marketplaces, etc.
You could also filter by language. Chat messages could be tagged with language, allowing players to filter language they don’t understand.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Chat System
There is a pretty nice AJAX/PHP chat tutorial floating around on the web. I don't know who created it, but if you google "AJAX chat tutorial", it comes up on about 10 different websites.
The indelible lord of tl;dr