[Release] Some needed stuff for Coemu

10/03/2009 14:12 lukejonesy#166
Quote:
Originally Posted by gad-legion View Post
luke there is a trick on sql table , it doesn't alowe u to change color so go to items table and make the color not null, mine is like this :
Code:
Field          
Color
Code:
Type
INT
Code:
Length/Values
5
Code:
Null
not null
Code:
Default
3








i had same problem as u when i implemented black tulip and this is the way i made it works 100%
i think many ppl got this problem im sorry i didnt release it earlier i got a break from this project, dont know if ill continue cuz i got stuck on skills fb, ss all of them :( , as i work on andys source not on any other source released after that, i guess i have to work more then most ppl so i got bored


thanks bro, with the skills where u stuck? i can implentment them, i just haven't figured out the the exp for them.

thanks again =)


Edit:
ok that solved my item diserpearing, but not the coloring =(

i believe i have to add this:

CSocket.Client.Inventory.Remove(uid);
CSocket.Send(ConquerPacket.ItemUsage(uid, 255, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(uid);


into it, but i get this error:

Error 2: The name 'uid' does not exist in the current context.

i fixed my last error which was the same, but this one is different becuase its a ConquerPacket.ItemUsage... which i cannont find atm.

EDIT 2:
nevermind those problems i solved them, cept, the armour wont stay black! rofl
10/03/2009 16:34 12tails#167
need to update the item in the database when use black tulip.....
10/03/2009 17:24 Kiyono#168
Quote:
Originally Posted by 12tails View Post
????

who said i'm using alex source???

lol i'm using the coemu clean source with my edits......
Oh, I thought that you said that you used Alex's source.
10/03/2009 18:33 samehvan#169
Quote:
Originally Posted by killerdiggs View Post
1. i added your talisman socketing but that is missing the definitions for 'SocketProgress' and 'UpdateItem' can your pls post those?
it's the 3rd line in SocketProgress section at post 3, how couldn't u c it :p just kidding
read it again and u will fix it

and i posted the updateitem void be4 in this thread but here it is again
put it anywhere under Handlers classes (mine at NpcTalk.cs)
Code:
public static void UpDateItem(Struct.ItemInfo Item,ClientSocket CSocket)
        {
            if (Item.UID == 0)
            {
                Item.UID = Nano.Rand.Next(1, 9999999);
                bool created = Database.Database.NewItem(Item, CSocket);
                while (!created)
                {
                    Item.UID = Nano.Rand.Next(1, 9999999);
                    created = Database.Database.NewItem(Item, CSocket);
                }

                CSocket.Client.Inventory.Add(Item.UID, Item);
                CSocket.Send(ConquerPacket.ItemInfo(Item));
            }
            else
            {
                CSocket.Send(ConquerPacket.ItemUsage(Item.UID, Item.Position, Struct.ItemUsage.UpdateItem));
                CSocket.Send(ConquerPacket.ItemInfo(Item));
                Database.Database.UpdateItem(Item, CSocket.Client.ID);
            }
        }
Quote:
Originally Posted by killerdiggs View Post
2. I used your codes for the etheral but he doesnt exist in my server. i tried to add him using the mysql database but i dont know the UID or Type

3. how do I change the ip in the Server.dat file because if i change it from my local ip: 127.0.0.1, it says "error could not open server.dat please re-install the game."

someone pls help me!!
Ethereal
Code:
SubType 	MapID 	Xcord 	Ycord 	Direction 	Flag
6690           1036       320    228     2              0
the ID and Type any 2 unused numbers , mine are 896 , 450

about the IP and server.dat thing , they killed that answering it u will find the exact question and the answers for it at any Coemu V2 related thread

Quote:
Originally Posted by 12tails View Post
when i buy an item .... this item come's broken (dura 0).... can someone help me?

also i got lag when use the teleport void : X
at ItmeInfo make the default dura/maxdura up to 25 or anything u want ,or u can simply call the real dura (at itembuy.cs there is a line getting the ItemData )
Code:
Struct.ItemData NewItem = Nano.Items[ID];
search there for
Code:
Item.ItemID = NewItem.ID;
then u just need to add after the 2 match lines this line

Code:
Item.MaxDura = Item.Dura = NewItem.Dura;
10/03/2009 18:33 12tails#170
no.... i already saw his coded source..... but i don't use it have too many bugs .... : X

@samehvan
thanks
10/04/2009 01:51 lukejonesy#171
forget shop boy for now lol,

i've been trying to get reborn to work, but i seem to have this error:

Error 1 'CoEmu_v2_GameServer.Structs.Struct.SkillIds.Cruel Shade': cannot declare instance members in a static class

anyways, off to work for 5 hours ><

see what i can do after work =)


EDIT:
Nevermind!

fixed the reborn! =D

had to add this:

public class SkillIds
{
public static int (skill name) lol, which i found easy once i figured out how =)


awwws... reborn kinda works, it dont reborn me, only gives me the gem ><
10/05/2009 22:12 killerdiggs#172
[QUOTE=samehvan;3146415]it's the 3rd line in SocketProgress section at post 3, how couldn't u c it :p just kidding
read it again and u will fix it[QUOTE]

well i looked through it and nowhere do u have the solution to this error:
Code:
Error	1	'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' does not contain a definition for 'SocketProgress' and no extension method 'SocketProgress' accepting a first argument of type 'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' could be found (are you missing a using directive or an assembly reference?)	C:\Users\Diego\Desktop\Diggs\server 5095\CoEmu v2\CoEmu v2 GameServer\Database\Database.cs	427	22	CoEmu v2 GameServer
so can u pls explain to me how to fix this because i get errors like this from almost every single post about coemuV2 source code releases
thx
10/05/2009 23:23 samehvan#173
[quote=killerdiggs;3161233][QUOTE=samehvan;3146415]it's the 3rd line in SocketProgress section at post 3, how couldn't u c it :p just kidding
read it again and u will fix it
Quote:

well i looked through it and nowhere do u have the solution to this error:
Code:
Error	1	'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' does not contain a definition for 'SocketProgress' and no extension method 'SocketProgress' accepting a first argument of type 'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' could be found (are you missing a using directive or an assembly reference?)	C:\Users\Diego\Desktop\Diggs\server 5095\CoEmu v2\CoEmu v2 GameServer\Database\Database.cs	427	22	CoEmu v2 GameServer
so can u pls explain to me how to fix this because i get errors like this from almost every single post about coemuV2 source code releases
thx
search for
Code:
public int Color = 4;
after it add
Code:
public int SocketProgress = 0;
10/06/2009 03:44 samehvan#174
Quote:
Originally Posted by lukejonesy View Post
forget shop boy for now lol,
><
added to the 3rd post :P , i am a dumb at dialogs and this dialoge is a copy of someone dialog as i think so no flames about it :D ,if anyone know the exact dialog then plz post it , for shopboy or anyother NPC
10/06/2009 07:48 lukejonesy#175
lols, if i knew u in real life samehvan i would kiss you! LOL

ur the best!

EDIT:
OMG!!!! my friend deleted mySQL local host connection!! ><
gotta get that up and running again ><
10/07/2009 07:34 samehvan#176
anyone knows a good packet logger ? ,i heard about them but never try one :p ,i think it would make it much easier r8?
10/07/2009 11:53 12tails#177
yes..... i think so!

i've heard that too ...

i just don't maked one yet because i stopped tgo code for a little time : D
10/07/2009 13:24 Kiyono#178
Quote:
Originally Posted by samehvan View Post
anyone knows a good packet logger ? ,i heard about them but never try one :p ,i think it would make it much easier r8?
JProxy has a packet logger.
10/08/2009 12:18 lukejonesy#179
Quote:
Originally Posted by samehvan View Post
added to the 3rd post :P , i am a dumb at dialogs and this dialoge is a copy of someone dialog as i think so no flames about it :D ,if anyone know the exact dialog then plz post it , for shopboy or anyother NPC
shop boy colors my armor, but i have to take armor off and put it back on and when i log off and on, it either diserpears or changes back to its orignal color =(
awwhs wells lol thanks for th epost anyway =)

EDIT:
anyone know how to add npcs? i am using MySQL, if you have any idea how, please help me, coz i wonna get dis city working lol just need the npc's inside (i have solar saint in ac)
10/08/2009 17:38 samehvan#180
Quote:
Originally Posted by lukejonesy View Post
shop boy colors my armor, but i have to take armor off and put it back on and when i log off and on, it either diserpears or changes back to its orignal color =(
awwhs wells lol thanks for th epost anyway =)

EDIT:
anyone know how to add npcs? i am using MySQL, if you have any idea how, please help me, coz i wonna get dis city working lol just need the npc's inside (i have solar saint in ac)
it works well with me , i tried it again after reading your post , it works perfectly here , check if ur Updateitem saves the color