[Un-Official] CoEMU Help

11/12/2009 21:56 MexicanoCoder#31
This is very usefull >.<
11/12/2009 22:04 pro4never#32
Quote:
Originally Posted by darkichou View Post
i guys
i have the error : " the name 'face' doesn't exist the context".
what should i do to fix it?

add the face void. It's been posted a bunch of times on the forum already.


Simple explanation of voids:

Voids can be thought of a little bit like an equation. It lets you do the same thing over and over again without having to write the exact same code every time.


Example, adding an item to the server requires a significant amount of code. you have to set values for every stat the item has (itemid, itemuid, plus, progress, bless, enchant, gem1, gem2, position, color and anything else), you gotta save it to the database, you have to spawn it to the character and you gotta control how that's all done...

You could re-write the entire code for that EVERY TIME you want to add an item to a player but that would be stupid. Using a void you write the code once and then just invoke that code whenever you want to create an item and you provide it with the details it needs to run its "equation".... and by equation i mean function.

(I know anyone who knows terminology or coding is going to cringe, I am well aware that they are not equations, I just figured it might be a way to explain it easier to people)


Now, here's the face void you needed.

Code:
public static void Face(int Face, ClientSocket CSocket)
        {
            CSocket.Send(ConquerPacket.NPCTalk(2544, Face, 255, 4));
        }
And since you will be asking, it goes in the bottom section of gameserver>handlers>npctalk.cs where all the other voids are (there won't be many if you are just starting out but they are most definitely there lol.

Hope that helps you out.
11/12/2009 22:40 darkichou#33
i got same error with Convert, Hasitem, DeleteItem and some other things :S
i'm unable to fix it :S
i tried to remplace names but it don't work :(
11/12/2009 23:06 pro4never#34
Quote:
Originally Posted by darkichou View Post
i got same error with Convert, Hasitem, DeleteItem and some other things :S
i'm unable to fix it :S
i tried to remplace names but it don't work :(


That's because you don't have voids for convert, hasitem or delete item. You have to add them (I assume these are all from the thread "some needed things for CoEmu" or w/e the hell it's called?)


They have all the voids in the first post for the codes in there if I remember correctly.
12/03/2009 00:39 JordanIsPsychotic#35
Hello i need help adding Nobilty and mentor system if you can help please reply back i need this as soon as possible if you help you will get rewared staff postion for as long as our server is on (FORVER) . Once someone helps me figure it out i will release on how to fix pk system most server have it but they arent correct so system wnt give pkps for killing someone.
12/03/2009 08:31 Huseby#36
#Moved
12/04/2009 03:12 shadow8994#37
I need help i get this error public static byte[] NobleIcon(int CharID, ---->ClientSocket<---- CSocket)
01/24/2010 11:48 Pitylee#38
This is my error:

Error 1 'DimensionCO_v2_GameServer.Structs.Struct.ItemInfo ' does not contain a definition for 'Progress' and no extension method 'Progress' accepting a first argument of type 'DimensionCO_v2_GameServer.Structs.Struct.ItemInfo ' could be found (are you missing a using directive or an assembly reference?) C:\server\CoEmu v2 GameServer\PacketProcessor.cs 1917 139 CoEmu v2 GameServer

Where can I find the definition for Progress?
01/24/2010 16:04 pro4never#39
You have to define it yourself.

So basically the item structure you have to add progress to the list of values (follow the guide, it shows the main edits you have to make)

it's literally as simple as saying "int Progress" in the correct spots.