PDA

Click to See Complete Forum and Search --> : Text-based Mud Client


DaveP
Jul 30th, 2000, 12:50 AM
Hello all,

I've recently been making a mud client that i use to connect to purely text-MUDs. My problem lies within a few things.

1. I wish to 'filter/parse' The incoming text for predetermined words, then recolor these words before sending all the text to the textbox, but I am at a loss on how to do this.

2. Anyone happen to know how to calculate and display your current HP/Mana/Spirit? Mud players will understand what i mean ;) I've seen this on many MUD clients, but am at a loss on how to do it.

Thanks for any help, all was relatively easy on this project when i started, now it's just giving me headaches :p

EDIT : I had an idea of creating a real basic app that would display EVERYTHING that it received as text, so that i could try to figure out what commands were sent to list current mana/HP/Spirit etc. But I'm not too sure how to do this either, if someone knows of an app that I could do this last bit with, I would be real grateful for a URL :)

[Edited by DaveP on 07-30-2000 at 01:54 AM]

Fox
Jul 30th, 2000, 07:42 AM
If you have VB6 you can easily parse the text using the Split function. It works like this:


Dim Text() as String

Text = Split( "This is a text.", " " )

Print Text(0) '= This
Print Text(1) '= is
Print Text(2) '= a
Print Text(3) '= text.


To filter the words you can go thru each in a loop and compare with forbidden words of an array.

slashandburn
Aug 2nd, 2000, 11:34 PM
I had all this nice text all made out with a code example of how you should do everything but aol shutdown and i lost all my work(Darn aol)(America OFF LINE)

But here a simplified verson of my 500 line lost forever master work

SERVER CLIENT RELIATIONSHIP

CLIENTS SENDS -- "A1B291 SAY HELLO"

The Server KNows that the first 6 Letters is the player name
if it strings left 6 to get the number(I think 6)

Server DECODES USER NAME
STORES NAME IN TEMP SLOT

Server decodes rest of info

THis is using lots of left and right commands to find keywords then decode the the rest of the stuff after keyword
like "bsa511 SAY HELLO"

Server Does something with info

CLienT RECIVES "000000 DISPLEY MR.EVIL: HELLO ALL"

Must decode the first 6 letters knowing it is from the server.(not really but you could write the server into the client so there could be differnt server numbers.) Incase you plan to sell server

CLIENT DISPLEYS MR.EVIL: HELLO ALL

slashandburn
Aug 2nd, 2000, 11:49 PM
If you want a way for the mana and stuff to be displeyed then the first thing you need is a way to strre info

I would use an INI for quick to use

Heres the thing you ini needs

PLAYER NUMBER(EVERY ONE HAS ONE BUT THE NUMBER NEEDS TO BE DECODED TO FIND NAME)
NAME
MANA
MAX_HEALTH
HEALTH
STRENGHT
CLASS

THe INI WOULD LOOK LIKE

Note this would stop cheating if all info is stored on server so no client could mess with own stuff

[aa1122]
NAME=SIR SILLY
MANA=22
HEALTH= 52
MAX_HEALTH= 54
STRENGHT=2
CLASS= 1 really DWARVEN HORSE MAN WITH BIG EGO


Computing this is tricky, I would say the system best is like in diablo 2

Add points to dextriety to increase life, but only every 2 points would raise it up.

Or there is fractions, NO EXAMPLE IM TIRED

To displey this stuff use my other example and change around the ideas.


If you really want to take your idea farther make a pokemon type displey engion. Easy for a Know it all like me. Just would need to know Direct X,, Hay you might make the the next Ultima Online.

slashandburn
Aug 2nd, 2000, 11:53 PM
the stuff i posted is really if you were writing a server and a client. But for anyone thinking about this stuff you the ideas.

I miss read your post but the whole 1 post i made just leave outh the server thing and just use a decoder(if it really needs one lots of left and right commands) or i don't know im in to much advanced stuff.

Im a bad speller

[Edited by slashandburn on 08-03-2000 at 12:56 AM]