Official 5165 FAQ/Question thread

01/08/2010 03:05 Arcо#586
Quote:
Originally Posted by bart2712 View Post
no i mean once i edit the .cs files then compile the server project...where would i find the NewestCOServer.exe that i would have to run to get the server running?

I mean so that the server will be running, and i can see the changes i made once i login to the client.

Ah it should be in Fixed Source -> rikardo updated -> bin -> debug -> NewestCOServer.exe.
01/08/2010 03:09 bart2712#587
ok sweet...thanks a lot...now that itll actually compile i can do some work on it, and actually check in game on my progress.
01/08/2010 03:24 Arcо#588
Quote:
Originally Posted by bart2712 View Post
ok sweet...thanks a lot...now that itll actually compile i can do some work on it, and actually check in game on my progress.

Sweet, need anymore help with it just post here.
I'll be glad to help you out!
01/08/2010 04:17 bart2712#589
sweet, thx.

Got it working, and even edited some code so one of the non working NPCs actually has a conversation now.(Im so proud lol)

Just one thing, could you plz explain how to read the info on monsters in the txt file? eg. I get this line -

1 cow 1 235 1 33 0 0 0 5 6 1 36 2 True 2 1 50 1000 12 True
01/08/2010 04:20 [GM]#590
in my server guys can wear girls garment and go invisible how can i fix it plz
01/08/2010 04:26 copz1337#591
Quote:
Originally Posted by [GM] View Post
in my server guys can wear girls garment and go invisible how can i fix it plz
Probably just code something that doesn't allow males to wear it?
01/08/2010 04:29 NoFatChicks#592
#Moved
01/08/2010 04:54 bart2712#593
ok so i have a question...

I added in a script someone posted for Simon(the guy to goto lab), which works.

Now I added into my MobSpawns.txt like they said, the info for the mobs to spawn in lab...yet when i compile it, start the server, login to the client, and goto the lab, theres no mobs there....anyone know why this is?

Also, could someone plz explain how to use the /spawn command from the client?
01/08/2010 06:27 Pitylee#594
Quote:
Originally Posted by bart2712 View Post
ok so i have a question...

I added in a script someone posted for Simon(the guy to goto lab), which works.

Now I added into my MobSpawns.txt like they said, the info for the mobs to spawn in lab...yet when i compile it, start the server, login to the client, and goto the lab, theres no mobs there....anyone know why this is?

Also, could someone plz explain how to use the /spawn command from the client?
Could you please post or pm me the link where you found how to implement the lab?:D
01/08/2010 06:45 dragon89928#595
Quote:
Originally Posted by bart2712 View Post
ok so i have a question...

I added in a script someone posted for Simon(the guy to goto lab), which works.

Now I added into my MobSpawns.txt like they said, the info for the mobs to spawn in lab...yet when i compile it, start the server, login to the client, and goto the lab, theres no mobs there....anyone know why this is?

Also, could someone plz explain how to use the /spawn command from the client?
For the lab spawns you need to edit your mobspawns.txt. Make sure you restart your server every time you edit mobspawns.txt. also be sure to load the lab maps.

/spawn [mob id] [amount of the monsters you want to spawn]

you need to restart server for it to take effect. oh and you also need to do it twice to start and stop. And the code doesn't really work, you need to add a newline at the start of the string.
01/08/2010 06:50 bart2712#596
hmmm ok, i made sure i had them in mobinfo.txt

so why is it whether i add them in mobspawns.txt or by using the spawn command, i cant see them in client?

Oh, and ive restarted server a few times.

EDIT: Ok, nvm, /spawn command worked...but now im curious why it doesnt work if i just add them into monsterspawns.txt
Same with NPCs...they wont show if i add them to the NPCs.txt, and im not sure how to use the /addnpc command
01/08/2010 07:14 dragon89928#597
er I'm sure you did but ill ask anyway, did you save before restarting? I actually tried adding mobs to the mobspawn and got pissed off when all that was wrong was that I hadn't saved before restarting the server. Also make sure that mobinfo.txt has info on slingers, etc..

Npcs are the same also, Just have a different ID for each npc you add. I think i started using npc id 50000, 50001,... and have a valid mesh id map coord etc.
01/08/2010 07:24 NoFatChicks#598
Quote:
#region Gw Winner npc
case 8888:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello if you win guild war you can recive good prizes!"));
GC.AddSend(Packets.NPCSay("I Can Give You 100k Cps For Wining!!"));
GC.AddSend(Packets.NPCLink("My guild won give me my reward please", 1));
GC.AddSend(Packets.NPCLink("Thats cool", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeade r);
GC.MyChar.CPs += 100000;
GC.Message(2005, GC.MyChar.Name + "Claimed 100000cps from GuildWar");
}
else
{
GC.AddSend(Packets.NPCLink("You Didn`t Won On GW !!", 1));
GC.AddSend(Packets.NPCLink("WAHT!?.. we suck", 255));
}
}
break;
}
#endregion
This npc is only in project, i want to See this npc in game.. so i'm gessing i have just to add the npc line for this case in NPC.ini.
I dont know if thats all cus when i add the npc line like "8888 1200 2 0 1002 426 387", save the npc.txt and go debug the project it says that ID error.
(to me seems the npc line is wrong or i have to add something else i dont know in anywhere)
Any help?.

Also how can i change things on characters like atributte poins, hp/mana points?


Thanks



#Searching#
01/08/2010 07:31 bart2712#599
hmmm you mean each time i do an edit in one of the .txt files for the database, i have to recompile the server project?

And for saving, yes i saved the .txt file anytime i changed anything in it
01/08/2010 07:41 dragon89928#600
@ NoFatChicks
Its ../oldcodb/NPCs.txt and not ..oldcodb/ini/npc.ini
and yes just add it to the end of the file NPCs.txt it should spawn

@bart2712
You dont need to recompile as long as you didnt change any part of your source when you changed mobspawn.txt. However you do need to restart the server to load the mobspawn that you changed. And it should work.