Results 1 to 5 of 5

Thread: Text-based Mud Client

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    10

    Question

    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

    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]

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    If you have VB6 you can easily parse the text using the Split function. It works like this:

    Code:
    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.

  3. #3
    Addicted Member slashandburn's Avatar
    Join Date
    Aug 1999
    Location
    Marietta, Ga
    Posts
    229

    Unhappy HERES HOW(SIMPLE)

    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



  4. #4
    Addicted Member slashandburn's Avatar
    Join Date
    Aug 1999
    Location
    Marietta, Ga
    Posts
    229

    Talking More stuff MANA,HEALTH,ECT

    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.

  5. #5
    Addicted Member slashandburn's Avatar
    Join Date
    Aug 1999
    Location
    Marietta, Ga
    Posts
    229

    Unhappy

    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]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width