|
You last visited: Today at 22:32
Advertisement
[Help] WeaponMaster Npc
Discussion on [Help] WeaponMaster Npc within the CO2 Private Server forum part of the Conquer Online 2 category.
07/22/2012, 19:59
|
#1
|
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
|
[Help] WeaponMaster Npc
Hello, the NPC Weaponmaster that the upgrade in equipment among others, is not giving the bracelet upgrade level 127+, I tried several times but could not. Someone could help me.
|
|
|
07/22/2012, 23:12
|
#2
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
You could post your weaponmaster code at least or we won't be able to help...
|
|
|
07/23/2012, 01:20
|
#3
|
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
|
I am using a base of kimo. the NPC code below:
Code:
case 7050:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("My brothers, Magic Artisan and Artisan Wind, both need meteors to upgrade, but I need only dragonballs.");
dialog.Text("I upgrade item's level only and I want only one dragonball for my service.");
dialog.Option("Upgrade level.", 1);
dialog.Option("I'll just leave", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
break;
}
case 1:
{
int aut = npcRequest.OptionID * 10;
dialog.Text("Select which item's details you want to change?");
dialog.Option("Headgear.", (byte)(aut + 1));
dialog.Option("Necklace.", (byte)(aut + 2));
dialog.Option("Armor.", (byte)(aut + 3));
dialog.Option("Main Weapon.", (byte)(aut + 4));
dialog.Option("Left Weapon/Shield.", (byte)(aut + 5));
dialog.Option("Ring.", (byte)(aut + 6));
dialog.Option("Boots.", (byte)(aut + 8));
dialog.Option("I'll just leave", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
break;
}
case 100:
{
if (client.SelectedItem == 0)
return;
var item = client.Equipment.TryGetItem(client.SelectedItem);
var itemdetail = Kijo.Database.ConquerItemInformation.BaseInformations[item.ID];
Kijo.Database.ConquerItemInformation infos = new Kijo.Database.ConquerItemInformation(item.ID, item.Plus);
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
switch (client.UpdateType)
{
case 1:
case 2:
{
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
byte cost = (byte)(itemdetail.Level / 6);
cost += (byte)((item.ID % 10) / 3);
uint id = 1088001;
if (client.UpdateType == 2)
id++;
if (client.Inventory.Contains(id, cost))
{
client.Inventory.Remove(id, cost);
//client.UnloadItemStats(item, false);
if (client.UpdateType == 1)
item.ID = infos.CalculateUplevel();
else
item.ID = infos.CalculateDownlevel();
if (infos.BaseInformation.ID == item.ID)
return;
Kijo.Database.ConquerItemTable.UpdateItemID(item, client);
item.Mode = Kijo.Game.Enums.ItemMode.Update;
item.Send(client);
client.LoadItemStats(item);
client.Equipment.UpdateEntityPacket();
}
break;
}
case 3:
{
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
byte cost = (byte)(itemdetail.Level / 30);
cost += (byte)((item.ID % 10) / 2);
uint id = 1088000;
if (client.Inventory.Contains(id, cost))
{
client.Inventory.Remove(id, cost);
//client.UnloadItemStats(item, false);
item.ID++;
Kijo.Database.ConquerItemTable.UpdateItemID(item, client);
item.Mode = Kijo.Game.Enums.ItemMode.Update;
item.Send(client);
client.LoadItemStats(item);
client.Equipment.UpdateEntityPacket();
}
break;
}
}
break;
}
default:
{
if (npcRequest.OptionID == 255)
break;
byte SelectedItem = (byte)(npcRequest.OptionID % 10);
byte NowType = (byte)(npcRequest.OptionID / 10);
if (client.Equipment.Free(SelectedItem))
{
dialog.Text("You have to be wearing the selected item.");
dialog.Option("I'll just leave", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
return;
}
var item = client.Equipment.TryGetItem(SelectedItem);
var itemdetail = Kijo.Database.ConquerItemInformation.BaseInformations[item.ID];
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (NowType == 1)
{
dialog.Text("It will cost you one dragonball. Do you accept the Amount?");
dialog.Option("Yes.", (byte)(20 + SelectedItem));
dialog.Option("No thank you.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
}
else
{
Kijo.Database.ConquerItemInformation infos = new Kijo.Database.ConquerItemInformation(item.ID, item.Plus);
Kijo.Database.ConquerItemInformation infos2 = new Kijo.Database.ConquerItemInformation(infos.CalculateUplevel(), item.Plus);
if (client.Entity.Level < infos2.BaseInformation.Level)
{
dialog.Text("You need level " + infos2.BaseInformation.Level + " first.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (client.Inventory.Contains(1088000, 1))
{
client.Inventory.Remove(1088000, 1);
//client.UnloadItemStats(item, false);
item.ID = infos.CalculateUplevel();
Kijo.Database.ConquerItemTable.UpdateItemID(item, client);
item.Mode = Kijo.Game.Enums.ItemMode.Update;
item.Send(client);
client.LoadItemStats(item);
client.Equipment.UpdateEntityPacket();
}
}
}
break;
}
break;
}
I am using a base of kimo. the NPC code below:
Code:
case 7050:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("My brothers, Magic Artisan and Artisan Wind, both need meteors to upgrade, but I need only dragonballs.");
dialog.Text("I upgrade item's level only and I want only one dragonball for my service.");
dialog.Option("Upgrade level.", 1);
dialog.Option("I'll just leave", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
break;
}
case 1:
{
int aut = npcRequest.OptionID * 10;
dialog.Text("Select which item's details you want to change?");
dialog.Option("Headgear.", (byte)(aut + 1));
dialog.Option("Necklace.", (byte)(aut + 2));
dialog.Option("Armor.", (byte)(aut + 3));
dialog.Option("Main Weapon.", (byte)(aut + 4));
dialog.Option("Left Weapon/Shield.", (byte)(aut + 5));
dialog.Option("Ring.", (byte)(aut + 6));
dialog.Option("Boots.", (byte)(aut + 8));
dialog.Option("I'll just leave", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
break;
}
case 100:
{
if (client.SelectedItem == 0)
return;
var item = client.Equipment.TryGetItem(client.SelectedItem);
var itemdetail = Kijo.Database.ConquerItemInformation.BaseInformations[item.ID];
Kijo.Database.ConquerItemInformation infos = new Kijo.Database.ConquerItemInformation(item.ID, item.Plus);
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
switch (client.UpdateType)
{
case 1:
case 2:
{
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
byte cost = (byte)(itemdetail.Level / 6);
cost += (byte)((item.ID % 10) / 3);
uint id = 1088001;
if (client.UpdateType == 2)
id++;
if (client.Inventory.Contains(id, cost))
{
client.Inventory.Remove(id, cost);
//client.UnloadItemStats(item, false);
if (client.UpdateType == 1)
item.ID = infos.CalculateUplevel();
else
item.ID = infos.CalculateDownlevel();
if (infos.BaseInformation.ID == item.ID)
return;
Kijo.Database.ConquerItemTable.UpdateItemID(item, client);
item.Mode = Kijo.Game.Enums.ItemMode.Update;
item.Send(client);
client.LoadItemStats(item);
client.Equipment.UpdateEntityPacket();
}
break;
}
case 3:
{
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
byte cost = (byte)(itemdetail.Level / 30);
cost += (byte)((item.ID % 10) / 2);
uint id = 1088000;
if (client.Inventory.Contains(id, cost))
{
client.Inventory.Remove(id, cost);
//client.UnloadItemStats(item, false);
item.ID++;
Kijo.Database.ConquerItemTable.UpdateItemID(item, client);
item.Mode = Kijo.Game.Enums.ItemMode.Update;
item.Send(client);
client.LoadItemStats(item);
client.Equipment.UpdateEntityPacket();
}
break;
}
}
break;
}
default:
{
if (npcRequest.OptionID == 255)
break;
byte SelectedItem = (byte)(npcRequest.OptionID % 10);
byte NowType = (byte)(npcRequest.OptionID / 10);
if (client.Equipment.Free(SelectedItem))
{
dialog.Text("You have to be wearing the selected item.");
dialog.Option("I'll just leave", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
return;
}
var item = client.Equipment.TryGetItem(SelectedItem);
var itemdetail = Kijo.Database.ConquerItemInformation.BaseInformations[item.ID];
if (!item.ID.ToString().EndsWith("9"))
{
dialog.Text("Sorry you can only levelup Super Items.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120269 || item.ID == 121269 || item.ID == 150269 || item.ID == 160249 || item.ID == 151269 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117309 || item.ID == 118309 || item.ID == 111309 || item.ID == 114309 || item.ID == 112309 || item.ID == 152279)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120268 || item.ID == 121268 || item.ID == 150268 || item.ID == 160248 || item.ID == 151268 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117308 || item.ID == 118308 || item.ID == 111308 || item.ID == 114308 || item.ID == 112308 || item.ID == 152278)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120267 || item.ID == 121267 || item.ID == 150267 || item.ID == 160247 || item.ID == 151267 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117307 || item.ID == 118307 || item.ID == 111307 || item.ID == 114307 || item.ID == 112307 || item.ID == 152277)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 120265 || item.ID == 121265 || item.ID == 150265 || item.ID == 160245 || item.ID == 151265 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (item.ID == 117305 || item.ID == 118305 || item.ID == 111305 || item.ID == 114305 || item.ID == 112305 || item.ID == 152275)
{
dialog.Text("This item's level cannot be upgraded anymore.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (NowType == 1)
{
dialog.Text("It will cost you one dragonball. Do you accept the Amount?");
dialog.Option("Yes.", (byte)(20 + SelectedItem));
dialog.Option("No thank you.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
}
else
{
Kijo.Database.ConquerItemInformation infos = new Kijo.Database.ConquerItemInformation(item.ID, item.Plus);
Kijo.Database.ConquerItemInformation infos2 = new Kijo.Database.ConquerItemInformation(infos.CalculateUplevel(), item.Plus);
if (client.Entity.Level < infos2.BaseInformation.Level)
{
dialog.Text("You need level " + infos2.BaseInformation.Level + " first.");
dialog.Option("Ahh sorry.", 255);
dialog.Avatar((ushort)Kernel.Random.Next(1, 100));
dialog.Send();
client.SelectedItem = 0;
client.UpdateType = 0;
return;
}
if (client.Inventory.Contains(1088000, 1))
{
client.Inventory.Remove(1088000, 1);
//client.UnloadItemStats(item, false);
item.ID = infos.CalculateUplevel();
Kijo.Database.ConquerItemTable.UpdateItemID(item, client);
item.Mode = Kijo.Game.Enums.ItemMode.Update;
item.Send(client);
client.LoadItemStats(item);
client.Equipment.UpdateEntityPacket();
}
}
}
break;
}
break;
}
|
|
|
07/23/2012, 01:48
|
#4
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Does it say "This item's level cannot be upgraded anymore."?
Because then you just need to remove the check you have for it
|
|
|
07/23/2012, 03:25
|
#5
|
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
|
What happens is that does not appear any message, not just the item level up.
|
|
|
07/23/2012, 03:40
|
#6
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Have you tried breakpointing it?
|
|
|
08/01/2012, 00:13
|
#7
|
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
|
i'm have that problem too... some one know how to fix it ?
|
|
|
08/06/2012, 06:06
|
#8
|
elite*gold: 0
Join Date: Aug 2012
Posts: 21
Received Thanks: 0
|
الحل
انا عارف الحل الح كلو فى الايتم دوت اى اكس اى الى فى الوسوس رقم البركتلك ناقص حط ارقام و هوا هيعلى
|
|
|
08/06/2012, 12:00
|
#9
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by ameralzlam10
انا عارف الحل الح كلو فى الايتم دوت اى اكس اى الى فى الوسوس رقم البركتلك ناقص حط ارقام و هوا هيعلى
|
english Only Please
|
|
|
 |
Similar Threads
|
[Release] Fix for WeaponMaster (5165)
11/18/2013 - CO2 PServer Guides & Releases - 19 Replies
Heya!
here is the fixed npc : P (without DC or anything else : D)
#region WeaponMaster
case 7050:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Choose the equipment you want to upgrade."));
|
MagicArtisan/WeaponMaster upgrade to lvl 130+?
01/13/2011 - CO2 Private Server - 5 Replies
I was wondering if there was any way to make MagicArtisan or WeaponMaster upgrade items to lvl 130-137. Because I have other gears I've added that are lvl 137 but can't upgrade to them. I have no clue how do do this, I've tried some other ways but nothing works in the end. Looking at the codes to those npc is complicating and I dont understand, soz =\
|
Code MagicArtisan or WeaponMaster
07/06/2009 - CO2 Private Server - 0 Replies
please emmethe codder, andyd123 anyone ..who know code for MAgicArtisan or Weapon Master Post Here Please ! Or New Codes FoR coemu2 :X:)
|
[Help]I Need Up New Item in Weaponmaster
04/28/2009 - CO2 Private Server - 4 Replies
Hello , I need up new item by WeaponMaster , i Have ring lvl 135 , Necklace 132 , Earring 120 and Boot lvl 133.
Thank !
|
All times are GMT +1. The time now is 22:32.
|
|