Ir para o fundo do MobInfos.txt e acrescentar o seguinte:
Code:
100 Demon 6 731 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
101 AncientDemon 6 556 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
102 FloodDemon 6 217 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
103 HeavenDemon 6 252 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
104 ChaosDemon 6 225 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
105 SacredDemon 6 251 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
Agora vá para o fundo do items.txt e acrescentar o seguinte:
723991 DemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723992 AncientDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723993 FloodDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723994 HeavenDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723995 ChaosDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723996 SacredDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
Agora vá para a pasta ini clientes, e fazer uma pasta txt itemtype.txt novo chamado.
Faça o Download Clickando Aqui
Abra o decrypter itemtype e para a primeira linha pick itemtype.dat e itemtype.txt escolha de segunda linha, em seguida, clique em fazê-lo.
Agora abra seu itemtype.txt e vá para a parte inferior e adicionar:
723991 DemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723992 AncientDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723993 FloodDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723994 HeavenDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723995 ChaosDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723996 SacredDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
Agora abra o backup decrypter itemtype e desta vez para a primeira linha pick itemtype.txt e itemtype.dat pick segunda linha, e verificar a caixa de seleção para criptografia, clique em fazê-lo.
Ok agora extrair isso para seu cliente.Click Aqui e Baixe
Agora abra a pasta e abra ani ItemMinIcon.Ani e ao acrescentar muito inferior:
[Item723991]
FrameAmount=1
Frame0=data/ItemMinIcon/723991.dds
[Item723992]
FrameAmount=1
Frame0=data/ItemMinIcon/723992.dds
[Item723993]
FrameAmount=1
Frame0=data/ItemMinIcon/723993.dds
[Item723994]
FrameAmount=1
Frame0=data/ItemMinIcon/723994.dds
[Item723995]
FrameAmount=1
Frame0=data/ItemMinIcon/723995.dds
[Item723996]
FrameAmount=1
Frame0=data/ItemMinIcon/723996.dds
Agora ainda na pasta ani MapItemIcon.Ani aberto e ao acrescentar muito inferior:
[Item723991]
FrameAmount=1
Frame0=data/MapItemIcon/723991.dds
[Item723992]
FrameAmount=1
Frame0=data/MapItemIcon/723992.dds
[Item723993]
FrameAmount=1
Frame0=data/MapItemIcon/723993.dds
[Item723994]
FrameAmount=1
Frame0=data/MapItemIcon/723994.dds
[Item723995]
FrameAmount=1
Frame0=data/MapItemIcon/723995.dds
[Item723996]
FrameAmount=1
Frame0=data/MapItemIcon/723996.dds
Agora abra seu projeto de origem e ir para o Mob.cs, procure:
DI2.Info.ID = 729910;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
A seguir acrescentar que:
if (Name.Contains("Demon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("AncientDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("FloodDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("HeavenDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("ChaosDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("SacredDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
Agora vá para NPCDialog.cs e acrescentar:
#region DemonBoxDealer
case 12677:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I am the DemonBoxDealer. To buy a DemonBox you need 50k CP's. Please choose:"));
GC.AddSend(Packets.NPCLink("DemonBox", 1));
GC.AddSend(Packets.NPCLink("AncientDemon", 2));
GC.AddSend(Packets.NPCLink("FloodDemon", 3));
GC.AddSend(Packets.NPCLink("HeavenDemon", 4));
GC.AddSend(Packets.NPCLink("ChaosDemon", 5));
GC.AddSend(Packets.NPCLink("SacredDemon", 6));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723991);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723992);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 3)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723993);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 4)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723994);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 5)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723995);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 6)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723996);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
Agora vá para Character.cs e acima Disso:
default:
{
MyClient.LocalMessage(2005, "Unable to use the item.");
MyClient.LocalMessage(2011, " ItemID: " + I.ID);
break;
}
Cole isso
#region DemonBox
case 720125:
{
Mob Demon = new Mob("100 Demon 6 731 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region AncientDemonBox
case 720125:
{
Mob Demon = new Mob("101 AncientDemon 6 556 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region FloodDemonBox
case 720125:
{
Mob Demon = new Mob("102 FloodDemon 6 217 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region HeavenDemonBox
case 720125:
{
Mob Demon = new Mob("103 HeavenDemon 6 252 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region ChaosDemonBox
case 720125:
{
Mob Demon = new Mob("104 ChaosDemon 6 225 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region SacredDemonBox
case 720125:
{
Mob Demon = new Mob("105 SacredDemon 6 251 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
Creditos ao 4Bottes e Thanks para Mim por postar aki
Code:
100 Demon 6 731 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
101 AncientDemon 6 556 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
102 FloodDemon 6 217 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
103 HeavenDemon 6 252 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
104 ChaosDemon 6 225 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
105 SacredDemon 6 251 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
Agora vá para o fundo do items.txt e acrescentar o seguinte:
723991 DemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723992 AncientDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723993 FloodDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723994 HeavenDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723995 ChaosDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723996 SacredDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
Agora vá para a pasta ini clientes, e fazer uma pasta txt itemtype.txt novo chamado.
Faça o Download Clickando Aqui
Abra o decrypter itemtype e para a primeira linha pick itemtype.dat e itemtype.txt escolha de segunda linha, em seguida, clique em fazê-lo.
Agora abra seu itemtype.txt e vá para a parte inferior e adicionar:
723991 DemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723992 AncientDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723993 FloodDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723994 HeavenDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723995 ChaosDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
723996 SacredDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5
Agora abra o backup decrypter itemtype e desta vez para a primeira linha pick itemtype.txt e itemtype.dat pick segunda linha, e verificar a caixa de seleção para criptografia, clique em fazê-lo.
Ok agora extrair isso para seu cliente.Click Aqui e Baixe
Agora abra a pasta e abra ani ItemMinIcon.Ani e ao acrescentar muito inferior:
[Item723991]
FrameAmount=1
Frame0=data/ItemMinIcon/723991.dds
[Item723992]
FrameAmount=1
Frame0=data/ItemMinIcon/723992.dds
[Item723993]
FrameAmount=1
Frame0=data/ItemMinIcon/723993.dds
[Item723994]
FrameAmount=1
Frame0=data/ItemMinIcon/723994.dds
[Item723995]
FrameAmount=1
Frame0=data/ItemMinIcon/723995.dds
[Item723996]
FrameAmount=1
Frame0=data/ItemMinIcon/723996.dds
Agora ainda na pasta ani MapItemIcon.Ani aberto e ao acrescentar muito inferior:
[Item723991]
FrameAmount=1
Frame0=data/MapItemIcon/723991.dds
[Item723992]
FrameAmount=1
Frame0=data/MapItemIcon/723992.dds
[Item723993]
FrameAmount=1
Frame0=data/MapItemIcon/723993.dds
[Item723994]
FrameAmount=1
Frame0=data/MapItemIcon/723994.dds
[Item723995]
FrameAmount=1
Frame0=data/MapItemIcon/723995.dds
[Item723996]
FrameAmount=1
Frame0=data/MapItemIcon/723996.dds
Agora abra seu projeto de origem e ir para o Mob.cs, procure:
DI2.Info.ID = 729910;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
A seguir acrescentar que:
if (Name.Contains("Demon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("AncientDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("FloodDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("HeavenDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("ChaosDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
if (Name.Contains("SacredDemon") && MyMath.ChanceSuccess(100000))
{
Char.CPs += 150000;
}
Agora vá para NPCDialog.cs e acrescentar:
#region DemonBoxDealer
case 12677:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I am the DemonBoxDealer. To buy a DemonBox you need 50k CP's. Please choose:"));
GC.AddSend(Packets.NPCLink("DemonBox", 1));
GC.AddSend(Packets.NPCLink("AncientDemon", 2));
GC.AddSend(Packets.NPCLink("FloodDemon", 3));
GC.AddSend(Packets.NPCLink("HeavenDemon", 4));
GC.AddSend(Packets.NPCLink("ChaosDemon", 5));
GC.AddSend(Packets.NPCLink("SacredDemon", 6));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723991);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723992);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 3)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723993);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 4)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723994);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 5)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723995);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 6)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.AddItem(723996);
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You do not have enough CP's"));
GC.AddSend(Packets.NPCLink("Damn", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
Agora vá para Character.cs e acima Disso:
default:
{
MyClient.LocalMessage(2005, "Unable to use the item.");
MyClient.LocalMessage(2011, " ItemID: " + I.ID);
break;
}
Cole isso
#region DemonBox
case 720125:
{
Mob Demon = new Mob("100 Demon 6 731 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region AncientDemonBox
case 720125:
{
Mob Demon = new Mob("101 AncientDemon 6 556 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region FloodDemonBox
case 720125:
{
Mob Demon = new Mob("102 FloodDemon 6 217 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region HeavenDemonBox
case 720125:
{
Mob Demon = new Mob("103 HeavenDemon 6 252 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region ChaosDemonBox
case 720125:
{
Mob Demon = new Mob("104 ChaosDemon 6 225 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
#region SacredDemonBox
case 720125:
{
Mob Demon = new Mob("105 SacredDemon 6 251 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
Demon.EntityID = 450;
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map];
DMap D = (DMap)DMaps.H_DMaps[Loc.Map];
Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
_Mob.Loc = new NewestCOServer.Game.Location();
_Mob.Loc.Map = Loc.Map;
_Mob.Loc.X = Loc.X;
_Mob.Loc.Y = Loc.Y;
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
RemoveItem(I);
break;
}
#endregion
Creditos ao 4Bottes e Thanks para Mim por postar aki