|
You last visited: Today at 12:59
Advertisement
[request]CoEmu..Help
Discussion on [request]CoEmu..Help within the CO2 Private Server forum part of the Conquer Online 2 category.
07/10/2009, 22:38
|
#1
|
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
|
[request]CoEmu..Help
can someone give me the
Definitions for these
Code:
Calculation.GetItem
Calculation.DeleteItem
and help me with blacktolip. here is what i got on it
Code:
case 723584://BlackTulip
{
if (CSocket.Client.Equipment.ContainsKey(3))
{
Struct.ItemInfo itm = CSocket.Client.Equipment[3];
CSocket.Send(ConquerPacket.ItemInfo(itm.UID,itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, itm.Position, 2));
Database.Database.UpdateItem(Item);
CSocket.Send(ConquerPacket.ItemUsage(itm.ItemID, 255, Struct.ItemUsage.RemoveItem));
CSocket.Send(ConquerPacket.ItemInfo(itm.UID, itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, itm.Position, 2));
ItemUpdate(itm.UID, itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, 3, 2);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Your Armor is now black!", Struct.ChatType.Top));
}
else
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "you Do not have armor on!", Struct.ChatType.Top));
Delete = false;
}
break;
}
it will tarn armor black it if you drop the item or relog or somting it will go back normail some
and can someone help me with adding weppon skill like rage.. NOT GIVE ME THE CODE FOR IT just help me with it
help on this to plz??
|
|
|
07/11/2009, 04:21
|
#2
|
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
|
Will no one help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
07/11/2009, 05:15
|
#3
|
elite*gold: 0
Join Date: Jun 2006
Posts: 114
Received Thanks: 30
|
I WOULD... but were both looking for it cause were both working together haha...
|
|
|
07/11/2009, 05:25
|
#4
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
|
Code:
public static void GetItem(
CoEmu_v2_GameServer.Connections.ClientSocket CSocket,
int ID,
int Plus,
int Bless,
int Enchant,
int Soc1,
int Soc2,
int Color,
int Free,
int Amount)
{
int i = 0;
while (i < Amount)
{
Struct.ItemInfo NewItem = new Struct.ItemInfo();
NewItem.ItemID = ID;
NewItem.Plus = Plus;
NewItem.Bless = Bless;
NewItem.Enchant = Enchant;
NewItem.Soc1 = Soc1;
NewItem.Soc2 = Soc2;
NewItem.Color = Color;
NewItem.Free = Free;
NewItem.Dura = 1;
NewItem.MaxDura = 1;
NewItem.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(NewItem, CSocket);
while (!created)
{
NewItem.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(NewItem, CSocket);
}
CSocket.Client.Inventory.Add(NewItem.UID, NewItem);
CSocket.Send(ConquerPacket.ItemInfo(NewItem.UID, NewItem.ItemID, NewItem.Plus, NewItem.Bless, NewItem.Enchant, NewItem.Soc1, NewItem.Soc2, NewItem.Dura, NewItem.MaxDura, NewItem.Position, NewItem.Color, NewItem.Effect, NewItem.Free, NewItem.Progress, NewItem.Suspicious, NewItem.Locked));
i++;
}
}
Code:
public static void DeleteItem(int ItemUID, ClientSocket CSocket)
{
CSocket.Client.Inventory.Remove(ItemUID);
CSocket.Send(ConquerPacket.ItemUsage(ItemUID, 255, Struct.ItemUsage.RemoveItem));
Database.Database.DeleteItem(ItemUID);
}
|
|
|
07/11/2009, 06:07
|
#5
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
Quote:
Originally Posted by taylor2846
and can someone help me with adding weppon skill like rage.. NOT GIVE ME THE CODE FOR IT just help me with it
help on this to plz??
|
Just copy and paste herc and change the case to rages id and change the rages for each level???
|
|
|
07/11/2009, 07:13
|
#6
|
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
|
i was thanking that but.. what would handle the chance of getting rage?
|
|
|
07/12/2009, 10:47
|
#7
|
elite*gold: 0
Join Date: May 2008
Posts: 103
Received Thanks: 3
|
i have 2 errors
1- The name 'ConquerPacket' does not exist in the current context
2- The type or namespace name 'Struct' could not be found (are you missing a using directive or an assembly reference?)
|
|
|
07/12/2009, 18:23
|
#8
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
ROFL you put it in the wrong place? duh?
|
|
|
07/12/2009, 20:08
|
#9
|
elite*gold: 0
Join Date: May 2008
Posts: 103
Received Thanks: 3
|
Quote:
Originally Posted by CIRASH
ROFL you put it in the wrong place? duh?
|
i put in Calculation
|
|
|
07/12/2009, 20:10
|
#10
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
this is for using items i believe
|
|
|
|
Similar Threads
|
[Request]CoEmu v2
09/11/2009 - CO2 Private Server - 5 Replies
hy can anyone post here a coemu v2 source that has the xp skills on it and some npc's so that all of us can download it. I know it's a hard work to code them but many people don't know how to code ;)
|
[Request] CoEmu V2
07/22/2009 - CO2 Private Server - 2 Replies
can anyone give me a source of coemu v2 that have some npcs done,not sources was posted....a source that have wuxing oven,..and more because when i try to use releases i have to much erors,private message me please!
I want to change items,i can do most items to works for npcs,private message me!
|
[request]CoEmu help
07/10/2009 - CO2 Private Server - 6 Replies
OK i dont no how to us what you got so it will tarn my armor black.. but it will not stay black if i drop it on the ground it will go back normail color or if i relogin it will go back to its normail color
here is the code i am using
a lil bit of random stuff in in it from my trying to get it to work :( plz help me
|
[request]help {CoEmu}
07/09/2009 - CO2 Private Server - 2 Replies
ok how would i add status in on CoEmu so when you level you get the status like
i no it gives the i got a ini file like lotf has with all the stat points for all classes up to level 120 but i dont no how to make CoEmu read it and give the player that much status. or is a ini file even the best way to do it if not tell me a batter way to do it and help me out with it
kk.. plz help me and ty if you do
|
[Help/Request] CoEmu 2 FB exp level
06/17/2009 - CO2 Private Server - 3 Replies
anyone can start with on how to level the exp of FB...
it'll be a reference to some of the skills exp coding...
thanks
|
All times are GMT +2. The time now is 12:59.
|
|