PHP Code:
case 1:
{
dialog.Text("I`m gonna give you some items because I can!");
dialog.Option("SandalwoodPrayerBeads", 2 ); //ITEMID: 610029
dialog.Option("Bye bye!", 255);
dialog.Send();
break;
}
case 2: //firstweapon
{
uint itemid = 610029; //change with the Item ID for which item you`ll use.
{
if (client.Entity.Level <= 40) //40 or 70 the required level you should be to receive items.
{
ConquerItem item = new ConquerItem(true);
item.ID = itemid;
item.Color = Conquer_Online_Server.Game.Enums.Color.White;
item.Bound = true;
item.Bless = 0;
item.Plus = 0;
item.Socket = 2; //I`m not sure if this is correct
item.Durability = item.MaximDurability = Conquer_Online_Server.Database.ConquerItemInformation.BaseInformations[itemid].Durability;
if (client.Inventory.Add(item, Conquer_Online_Server.Game.Enums.ItemUse.CreateAndAdd))
{
client.Send(new Message("Enjoy your Item! Best regards!", System.Drawing.Color.White, Message.Center));
}
else
{
dialog.Text("You need atleast one free slot in your inventory.");
dialog.Option("Alright.", 255);
dialog.Send();
}
}
}
break;
}
I`m not sure about "item.Socket = 2;" if exists in your source. If you`re using Impulse base it should work. I think.