[NSremu (my edited emu)] Coding Help

10/18/2010 17:10 vpegas1234#1
Hello all, so first thanks to all admins for make this corner xD

Im editing DSREMU last Source code for a week +/-, and i got some ideas and stuff xD.

First i think about making a NPC auto Spawn when server starts so i check the code for the NPC and they arE:

Code:
Call HotanNpc(index)
Call JanganNpc(index)
Call DowhangNpc(index)

So i say: "hum so easy, form load xD" but it doesnt work..

So i check and that code is in a function.
My idea is to make a call for a function that im gonna create just for this code.


PS: i check the rules, and i dont understand the part that it says i can ask for help for code but not for programs?
If my topic is Off-rule please delete it, and sorry :S


Screens:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
10/18/2010 17:16 chea77er#2
Why you want use Functions like HotanNpc() JanganNpc() .. You can use Media.Pk2/Textdata/../npcpos.txt There are all Monsters and NPCs + Positions.

So you can write a little Parser for the file. And add all Spawns to a List. And use the List for youre Spawn Logic.
10/18/2010 17:18 vpegas1234#3
WTF. WHY NO ONE TOLD ME THAT ITS SO THAT FREAKIN EASY???
hey can you teach me doing that or be my partner xD?
10/18/2010 17:23 chea77er#4
:)

This "npcpos.txt" is in a CSV Format. In .NET you can parse every line via. String.Split('\t');

Look here for the npcpos -> [Only registered and activated users can see links. Click Here To Register...]
10/18/2010 17:25 vpegas1234#5
hum, if i understood that, you are saying that only vb.net emus can read it? thats bad news... :(
theres no other way?
10/18/2010 17:27 chea77er#6
Nope thats not what i said :)

You can parse them in every language. Just Google: {YourLanguage} CSV Files
10/18/2010 17:29 vpegas1234#7
but how to make the emu read it and spawn them on these locations?
10/18/2010 17:33 lesderid#8
Quote:
Originally Posted by chea77er View Post
Nope thats not what i said :)

You can parse them in every language. Just Google: {YourLanguage} CSV Files
Indeed. A quick google brings me to this: [Only registered and activated users can see links. Click Here To Register...].
This is for Visual Basic 6 only.
10/19/2010 19:26 vpegas1234#9
@ontopic (to lesderid) : so, thanks for the link, but how can i make my emu read it and spawn the NPC on theire spots just reading that crapy file xD?
PS: its applyed to mobs too?

@offtopic (to lesderid too) : i try to play Csro but when it loads that "load screen" in chinese b4 the user input it crashes.. do u know why? xD


thanks all, i will cred all people who helped.
10/21/2010 22:01 LastThief#10
hey vpegas look interface look rlly ugly (if you need my suggestions)

you can make menu with this control panel
10/21/2010 22:18 Yo123#11
csro has other opcodes + a security system called rdm + a way more updated client..... :rolleyes:
10/22/2010 22:36 vpegas1234#12
@lastthief
lol, im gonna improve the visual part, now im more busy with adding fkin autospawn, you said that u gonna help me and u can see that ur in cred page xD
When u are thinking say xDDD

@yo123
i check ur emu, but i cant understand the vb.net emu yet.. but thanks again (i dont know if you were talkin about that emu that u release here xd but if yes cool )
10/22/2010 22:44 LastThief#13
im still figuring out how to add it
10/22/2010 23:04 vpegas1234#14
ah sorry, :S but thanks for the help =D

everyone who wanna join our "clan" is fine for me.