![]() |
Simple question... prob for most of you. - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Simple question... prob for most of you. (/showthread.php?tid=331) |
Simple question... prob for most of you. - halla - 28-09-2006 Ok im learning how MS works. I know how to send data with winsock myself but when with MS im confused. More less I want to add more stuff to the characters files. Like for my pokemon game pokemon and their info. So I want the client to send that to the server with the rest of the character info and then the server send it back when called for... could someone give me an example of adding just 1 thing and I can work from there. Thanks. - Kenko - 28-09-2006 Under your Pokemon type or class, add more variables for whatever you want. Like: Type Pokemon Name as String EvolutionPercent as Byte End Type That would be for both server-side and client-side. Send the data using winsock with SendData. When it reaches the server, save it to the file or database, and then you may call it or update it whenever you wish. Hopefully that helps. - Obsidian - 28-09-2006 Okay you're going to want to setup Pokemon for the player so you'll have something similar to Please Read Over This to make sense out of it. Code: Type PokemonAttackRec Now if you did it this way, you'd have to make "Pokemon" directly editable, like Items... unless you just replaced "Npcs" with them, but i figured you didnt so you could leave the people walking around as the NPCs, but whatever. You'd also have to make an "Attack Editor", so you could do things like name the attack, the damage that it does, etc. Hope this helps, and i hope you could make some sense out of it! - halla - 28-09-2006 I dont need all of that. Just how to send 1 thing of info when it makes the char and saves and all of that. for example when it sends your name or something everything you have to do to add that. Like help me just add 1 thing to the character file and I can work from there. Im going to add all their info to their character file. - William - 28-09-2006 Sounds like you dont know packets? If so, check this: http://ms.shannaracorp.com/forums/viewtopic.php?t=418 - halla - 28-09-2006 yeah but I mean to send it with the character info - Obsidian - 28-09-2006 I guess we just misunderstood... just update the "playerdata" packets... - William - 29-09-2006 Obsidian Wrote:I guess we just misunderstood... just update the "playerdata" packets...Basicly you just add: Code: SEP_CHAR & variable & SEP_CHAR & variable2 & SEP_CHAR & END_CHAR And then make sure to receive it in the server by using: Code: Dim test as long Do you understand? - halla - 29-09-2006 Yeah I understand I just want it to save with all the character info and load then as well I will figure it out I guess |