|
-
Jul 30th, 2000, 12:50 AM
#1
Thread Starter
New Member
-
Jul 30th, 2000, 07:42 AM
#2
PowerPoster
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.
-
Aug 2nd, 2000, 11:34 PM
#3
Addicted Member
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
-
Aug 2nd, 2000, 11:49 PM
#4
Addicted Member
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.
-
Aug 2nd, 2000, 11:53 PM
#5
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|