CoEmu and the Gaurds

07/01/2009 10:03 xXxTwiztedKidxXx#1
Hello This is TwiztedKid and I have a problem with the guards in CoEmu V2 Source. I tried to change there names and it didn't work and i now know thats the reason why the hit me is cause they are not programed to have their names changed, so they go wild. lol. But umm if u could please help me. My MSN is [Only registered and activated users can see links. Click Here To Register...]
07/01/2009 10:18 pro4never#2
Quote:
Originally Posted by xXxTwiztedKidxXx View Post
Hello This is TwiztedKid and I have a problem with the guards in CoEmu V2 Source. I tried to change there names and it didn't work and i now know thats the reason why the hit me is cause they are not programed to have their names changed, so they go wild. lol. But umm if u could please help me. My MSN is [Only registered and activated users can see links. Click Here To Register...]
I had the same problem when I changed their names. From what I've read on the forum you're best off just changing the names back.
07/01/2009 10:23 kinshi88#3
Just search the source for "Guard" and change it to whatever.

I would recommend using IDs instead of names too btw.
07/01/2009 10:42 pro4never#4
Quote:
Originally Posted by kinshi88 View Post
Just search the source for "Guard" and change it to whatever.

I would recommend using IDs instead of names too btw.
Works perfectly

Step by step for people


Step 1: Open source Game Server> Entities>Monsters.cs

Search CoEmuGuard, replace with new name, continue searching till you replace all of them (there are only 2)

Here is the code snipets for reference

Code:
if(Info.Name == "CoEmuGuard//CHANGE TO NEW NAME!!//")
							{
								if(Client.Client.Flashing)
								{
									CharToAttack = Client.Client.ID;
									break;
								}
							}
and

Code:
if(Info.Name == "CoEmuGuard//CHANGE TO NEW NAME!!//")
					ConquerPacket.ToLocal(ConquerPacket.Chat(0, Info.Name, "ALL", "How dare you try to PK here, " + Attacked.Client.Name + ", you must die!", Struct.ChatType.Talk), X, Y, Map, 0, 0);
Step 2: Open Database, go to the monsters table

Search CoEmuGuard, replace with new name

Rinse and repeat for other monsters.

Be sure to restart server/save after modifying database/source
07/01/2009 10:46 xXxTwiztedKidxXx#5
Quote:
Originally Posted by kinshi88 View Post
Just search the source for "Guard" and change it to whatever.

I would recommend using IDs instead of names too btw.
Yea i tried that they still attack me and Kinshi add my Email plz i had u on my old email lol

EDIT:
O well ill just start over lol
07/01/2009 11:32 xXxTwiztedKidxXx#6
Quote:
Originally Posted by pro4never View Post
Works perfectly

Step by step for people


Step 1: Open source Game Server> Entities>Monsters.cs

Search CoEmuGuard, replace with new name, continue searching till you replace all of them (there are only 2)

Here is the code snipets for reference

Code:
if(Info.Name == "CoEmuGuard//CHANGE TO NEW NAME!!//")
							{
								if(Client.Client.Flashing)
								{
									CharToAttack = Client.Client.ID;
									break;
								}
							}
and

Code:
if(Info.Name == "CoEmuGuard//CHANGE TO NEW NAME!!//")
					ConquerPacket.ToLocal(ConquerPacket.Chat(0, Info.Name, "ALL", "How dare you try to PK here, " + Attacked.Client.Name + ", you must die!", Struct.ChatType.Talk), X, Y, Map, 0, 0);
Step 2: Open Database, go to the monsters table

Search CoEmuGuard, replace with new name

Rinse and repeat for other monsters.

Be sure to restart server/save after modifying database/source
kk it didnt work for me but ill keep trying


EDIT: Ok I got it working Thx so much dude

#Request Close
07/01/2009 12:16 Kiyono#7
You could also use ctrl + h (replace all) if you don't feel like searching and retyping the name.
07/01/2009 12:19 andyd123#8
Quote:
Originally Posted by xXxTwiztedKidxXx View Post

#Request Close
.