[Release] Some needed stuff for Coemu

09/03/2009 22:39 jynxter23#76
Quote:
Originally Posted by 12tails View Post
you should make all the definitions...

also face have fxed a long time ago... just search for pete's post you will see
Ok, I can figure out the definitions.. and what do you mean by pete's post? PeTe Ninja? I've been searching all over the forum for the face fix.. And I searched almost all of pete ninja's posts containing the word face and I have found nothing.. So being a little bit more specific would help. If i knew how to do all of this i wouldnt be asking for help. :rolleyes: Anyway.. I'll attempt the definitions.. But seeing as how im still learning c# i'm pretty sure i'll fail.

*Edit
Alright I added a definition for Progress which fixed 3 errors.. But created another one..
Code:
Error	14	No overload for method 'ItemInfo' takes '14' arguments	C:\Documents and Settings\Owner\Desktop\My server\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs	2758	30	CoEmu v2 GameServer
Any idea's? and yes sorry.. Im still new at this.. But at least im attempting to do shit on my own and not pure leech.
09/04/2009 00:17 12tails#77
of course....

search for all those erros... you will see that they are like this:

Code:
CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Progress, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color, Item.SocketProgress, Item.Free, Item.Locked));
Obs.: mine have some added things... so don't copy and paste....

backing:

add the Item.Progress... some thimes will be Item.Value.Progress... or SubItem.Progress just see the others and make the same but name it Progress... just that... i think u can do it ^^

Edit:

for face just put this in the end of NpcTalk.cs

Code:
        public static void Face(int Face, ClientSocket CSocket)
        {
            CSocket.Send(ConquerPacket.NPCTalk(2544, Face, 255, 4));
        }
them your npcs can become like this:

Code:
                            Text("", CSocket);
                            Link("", 0, CSocket);
                            Link("", 0, CSocket);
                            Face(HERE u put a number for example 30(u can put from 1 to 255, CSocket);
                            End(CSocket);
09/05/2009 15:30 Kiyono#78
So I was away for a week, any progress?
09/14/2009 16:31 pintser#79
samehvan,
My project doesnt herecognice:

hasitem and delete item

And this voids are a little complicated to make for me..(i quitted at 5017 patch)
Could u help me make them and tell me where to put, these voids?
09/21/2009 08:06 Illustria#80
hey great codes but i seem to be having some issues in regards to upgrading equipment.

Quote:
Error 1 The call is ambiguous between the following methods or properties: 'CoEmu_v2_GameServer.Calculations.Calculation.Next EquipLevel(int)' and 'CoEmu_v2_GameServer.Calculations.Calculation.Next EquipLevel(int)' D:\Users\Isharu\Desktop\CoEmu v2\CoEmu v2 GameServer\PacketProcessor.cs 730 31 CoEmu v2 GameServer

Error 2 The call is ambiguous between the following methods or properties: 'CoEmu_v2_GameServer.Calculations.Calculation.Next EquipLevel(int)' and 'CoEmu_v2_GameServer.Calculations.Calculation.Next EquipLevel(int)' D:\Users\Isharu\Desktop\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs 473 53 CoEmu v2 GameServer

Error 3 The name 'ReqLvl' does not exist in the current context D:\Users\Isharu\Desktop\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs 474 64 CoEmu v2 GameServer
Any ideas, im completely out. I realize reqlvl isnt defined but im not entirely sure how to define that. Seems like something each item would have to be individually redone for or something
09/21/2009 08:46 $HaDoW#81
I have 1 small Error :S
Code:
Error	1	'CoEmu_v2_GameServer.Nano' does not contain a definition for 'Lotto'	C:\Documents and Settings\HaKaShi\Desktop\SrCoS\CoEmu v2 GameServer\Database\Database.cs	75	30	CoEmu v2 GameServer
09/21/2009 08:54 Illustria#82
Quote:
Originally Posted by $HaDoW View Post
I have 1 small Error :S
Code:
Error	1	'CoEmu_v2_GameServer.Nano' does not contain a definition for 'Lotto'	C:\Documents and Settings\HaKaShi\Desktop\SrCoS\CoEmu v2 GameServer\Database\Database.cs	75	30	CoEmu v2 GameServer
I dunno this code too well but did you remember to define lotto in character.cs?

with

public bool Lotto = false;

If that doesnt work stick the public bool Lotto = false; in your nano.cs in your gameserver files
09/21/2009 09:14 $HaDoW#83
Tryed few dif codes that one to still nothing :(
09/21/2009 09:22 Illustria#84
Sorry i couldnt help, i fixed my issue, i stupidly double defined the same codes in the calculations.cs as i did the leveling one...
09/21/2009 09:47 $HaDoW#85
well maybe samehvan Or someone else who has this working can help me :)
09/21/2009 10:38 Illustria#86
Hopefully, damn i spoke too soon, i got a few problems now, the wuxing oven i snagged keeps freezing my server everytime i buy an item. Which i checked i should have all the properly defined variables for that... or maybe i screwed up elsewhere, also

Quote:
Error 1 The name 'ReqLvl' does not exist in the current context D:\Users\Isharu\Desktop\CoEmu v2\CoEmu v2 GameServer\Handlers\NpcTalk.cs 1087 68 CoEmu v2 GameServer
09/21/2009 12:09 12tails#87
here is:

Code:
        private static bool ReqLvl(int NewItemId, ClientSocket CSocket)
        {
            if (Nano.Items.ContainsKey(NewItemId))
            {
                Struct.ItemData Item = Nano.Items[NewItemId];
                if (Item.Level <= CSocket.Client.Level) return true;
            }
            return false;
        }
& for item issue, see this thread :

[Only registered and activated users can see links. Click Here To Register...]
09/21/2009 19:50 samehvan#88
Sorry all i haven't been here lately , it was our Fasting month , i am back now
09/21/2009 20:57 Illustria#89
Quote:
Originally Posted by samehvan View Post
Sorry all i haven't been here lately , it was our Fasting month , i am back now
No worries, i doubt anyone assumed you took off out of shear annoyance or anything like that.
09/21/2009 21:37 $HaDoW#90
samehvan so can you help me with my prob ?