Register for your free account! | Forgot your password?

You last visited: Today at 13:14

  • Please register to post and access all features, it's quick, easy and FREE!


Good day members !

Discussion on Good day members ! within the CO2 PServer - Discussions / Questions forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2016
Posts: 6
Received Thanks: 0
Post Good day members !

Hi there. I am using a tofan 3d source version, but i've manage to downgrade it to the 2d version. Now I am trying to stop the forging to upgrade items after level 130. I understand that the are that I need to change it's this one :

case MsgDataArray.DragonBallUpgrade:
{
if (compose.Mode == MsgDataArray.DragonBallUpgrade)
{
Item = client.GetItem(compose[0]);
if (Item != null)
{
pos = ItemPosition(Item.ID);
if (pos == MsgItemInfo.Bottle || pos == MsgItemInfo.Garment || pos == MsgItemInfo.LeftWeaponAccessory || pos == MsgItemInfo.RightWeaponAccessory || pos == MsgItemInfo.SteedArmor) //mohsen.. i'm remove crop
return;


Minors = new MsgItemInfo[compose.Count - 2];
for (int i = 0; i < compose.Count - 2; i++)
{
if (!client.Inventory.TryGetItem(compose.GetItem(i + 1), out Minors[i]))
return;
else
if (Minors[i].UID == Item.UID) return;
}

byte counts_itsm = (byte)Minors.Length;
if (Item.ID % 10 < 9)
{
var itemdetail = Database.ConquerItemInformation.BaseInformations[Item.ID];
byte cost = (byte)(itemdetail.Level / 30);
cost += (byte)((Item.ID % 10) / 2);

if (Minors.Length < cost)
{
byte rand = (byte)Kernel.Random.Next(1, 100);
if (rand < 45)
{
if (Item.ID % 10 < 5)
Item.ID += 5 - Item.ID % 10;
Item.ID++;
Network.GamePackets.MsgItem iu = new Network.GamePackets.MsgItem(true);
iu.UID = Item.UID;
iu.dwParam = 1;
iu.Action = (uint)Network.GamePackets.MsgItem.Mode.DragonBallU pgrade;
client.Send(iu.ToArray());

Item.Mode = Game.Enums.ItemMode.Update;
Database.ConquerItemTable.UpdateItemID(Item, client);
Item.Send(client);
client.LoadItemStats();
client.Equipment.UpdateEntityPacket();
}
else
{
Network.GamePackets.MsgItem iu = new Network.GamePackets.MsgItem(true);
iu.UID = Item.UID;
iu.dwParam = 2;
iu.Action = (uint)Network.GamePackets.MsgItem.Mode.DragonBallU pgrade;
client.Send(iu.ToArray());

Item.Mode = Game.Enums.ItemMode.Update;
Database.ConquerItemTable.UpdateItemID(Item, client);
Item.Send(client);
client.LoadItemStats();
client.Equipment.UpdateEntityPacket();
}

}
else
{
if (Item.ID % 10 < 5)
Item.ID += 5 - Item.ID % 10;
Item.ID++;

Network.GamePackets.MsgItem iu = new Network.GamePackets.MsgItem(true);
iu.UID = Item.UID;
iu.dwParam = 1;
iu.Action = (uint)Network.GamePackets.MsgItem.Mode.DragonBallU pgrade;
client.Send(iu.ToArray());

Item.Mode = Game.Enums.ItemMode.Update;
Database.ConquerItemTable.UpdateItemID(Item, client);
Item.Send(client);
client.LoadItemStats();
client.Equipment.UpdateEntityPacket();
}

foreach (var Ite in Minors)
client.Inventory.Remove(Ite, Enums.ItemUse.Remove);
}

}
}
break;
}

If anyone has an idea what I need to change in this code to stop the item upgrading after level 130. Sorry, but I am new do this type of coding.

Cheer's for all you're help and sorry if I've bored you ! Have a nice day colleagues.



iordach3 is offline  
Old 04/23/2019, 17:57   #2
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,254
Received Thanks: 3,518
What in ***'s name is a tofan 3d source... Also, do you mean 3.0 and 2.0 as in the client versions and not dimensions? Conquer is a 2.5D game. Sounds like cancer and complete incompetence from whatever community you downloaded that from. Not to mention that it's based on a leaked private source from a member in our community. When you say you're new to programming... Have you ever write a line of code before? Do you know how to edit C# code and compile it? What are we working with here? Honestly, there's not much we can really do since you downloaded this from another community. We're missing context.


Spirited is offline  
Thanks
1 User
Old 04/23/2019, 18:46   #3
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,688
Received Thanks: 879
delete this
Super Aids is offline  
Reply



« 5165 house error | What was the name of the daily quest NPC way back »

Similar Threads
Powerleveling Service - members and non-members - cheap
05/15/2010 - Runescape Trading - 0 Replies
My services are cheap and do NOT involve botting or macroing of any kind. I know money is tight right now so I will keep prices as low as possible and of course all prices are negotiable. Skills I will powerlevel for you: Woodcutting Defense Constitution Strength



All times are GMT +2. The time now is 13:14.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 3KeUpz52VCbhmLwuwydqxu6U1xsgbT8YT5
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.