مشاهدة النسخة كاملة : محتاج كود ال myesty fruit (التقاط التعزيزية لرفع الدم او الخفة)
Abod ayman
2020-03-29, 06:53 AM
محتاج اضيف في الشوب المايستي فروت الي هيا بنرفع منها. الدم بتكون او الخفة او القوة لان مش لاقيها فالشوب وهيا ضرورية جدا لرفع الدم
للتوضيح ... mysty fruit الي بتكون في ال status وبتدي من 1 نقطة ل 3 واخرك تجيب منها 901 نقطة
PacketHandler
هتبحث عن #region Misc
هتضيف في الريجون ده
#region MysteryFruit
case 3001044:
{
Npcs dialog = new Npcs(client);
dialog.Text("You~can~directly~use~Mystery~Fruit~to~receive~1 - 3~Attribute~Points. You~can");
dialog.Text("also~use~it~with~Mystery~Dew~or~Pay~270~CPs~to~get ~the~best~effect~(3");
dialog.Text("attribute~points~without~fail). What~do~you~Think");
dialog.Option("Use~Mystery~Dew!", 1);
dialog.Option("Pay~270~Cps!", 2);
dialog.Option("Use~Mystery~Fruit~directly.", 3);
dialog.Option("i'll~think~about~it.", 255);
dialog.Send();
client.ActiveNpc = item.ID;
break;
}
#endregion
بعد كده هتبحث عن
#region NpcDialog
وهتضيف الكود ده
#region MysteryFruit
if (client.ActiveNpc == 3001044)
{
if (req.OptionID == 255) return;
switch (req.OptionID)
{
case 1:
{
dialog.Text("Are~you~sure~youwant~to~use~a~Mystery~Dew~gain~the ~best~effect");
dialog.Option("OK.", 5);
dialog.Option("Cancel.", 255);
dialog.Send();
break;
}
case 2:
{
dialog.Text("Are~you~sure~youwant~to~pay~270~CPs~to~gain~the~be st~effect");
dialog.Option("OK.", 6);
dialog.Option("Cancel.", 255);
dialog.Send();
break;
}
case 3:
{
dialog.Text("You~will~randomly~gain~1 - 3~attribute~points~by~directly~using~the~Mystery~F ruit.~if");
dialog.Text("you~use~it~together~with~a~Mystery~Dew,you~will~ga in~3~attribute~points~without");
dialog.Text("fail!~Would~you~like~to~use~fruit~right~away?");
dialog.Text("Tip:Mystery~Dew~can~be~bought~from~aren");
dialog.Option("OK.", 7);
dialog.Option("Cancel", 255);
dialog.Send();
break;
}
case 5:
{
if (client.Inventory.Contains(3001045, 1))
{
Random random3 = new Random();
switch (random3.Next(1, 5))
{
#region Fruit
case 1:
client.Entity.Agility += 3;
client.Entity.MysteryFruit += 3;
client.Inventory.Remove(3001045, 1);
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~3~!", null, null, 0);
break;
case 2:
client.Entity.Strength += 3;
client.Entity.MysteryFruit += 3;
client.Inventory.Remove(3001045, 1);
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strength~incre ased~by~3~!", null, null, 0);
break;
case 3:
client.Entity.Vitality += 3;
client.Entity.MysteryFruit += 3;
client.Inventory.Remove(3001045, 1);
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~3~!", null, null, 0);
break;
case 4:
client.Entity.Spirit += 3;
client.Entity.MysteryFruit += 3;
client.Inventory.Remove(3001045, 1);
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~3~!", null, null, 0);
break;
#endregion
}
}
else
{
client.MessageBox("You~don't~have~a~Mystery~Dew~to~gain~the~best~effe cts!~The~dew~can~be~bought~in~Arena~Store.", null, null, 0);
}
break;
}
case 6:
{
if (client.Entity.ConquerPoints >= 270)
{
Random random3 = new Random();
switch (random3.Next(1, 5))
{
#region Fruit
case 1:
client.Entity.Agility += 3;
client.Entity.MysteryFruit += 3;
client.Entity.ConquerPoints -= 270;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~3~!", null, null, 0);
break;
case 2:
client.Entity.Strength += 3;
client.Entity.MysteryFruit += 3;
client.Entity.ConquerPoints -= 270;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strength~incre ased~by~3~!", null, null, 0);
break;
case 3:
client.Entity.Vitality += 3;
client.Entity.MysteryFruit += 3;
client.Entity.ConquerPoints -= 270;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~3~!", null, null, 0);
break;
case 4:
client.Entity.Spirit += 3;
client.Entity.MysteryFruit += 3;
client.Entity.ConquerPoints -= 270;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~3~!", null, null, 0);
break;
#endregion
}
}
else
{
client.MessageBox("You~don't~have~a~270~CPs~to~gain~the~best~effects! ~The~dew~can~be~bought~in~Arena~Store.", null, null, 0);
break;
}
break;
}
case 7:
{
Random random3 = new Random();
switch (random3.Next(1, 44))
{
#region Agility
case 1:
client.Entity.Agility += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~1~!", null, null, 0);
break;
case 2:
client.Entity.Agility += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~1~!", null, null, 0);
break;
case 3:
client.Entity.Agility += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~1~!", null, null, 0);
break;
case 4:
client.Entity.Agility += 2;
client.Entity.MysteryFruit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~2~!", null, null, 0);
break;
case 5:
client.Entity.Agility += 2;
client.Entity.MysteryFruit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~2~!", null, null, 0);
break;
case 6:
client.Entity.Agility += 3;
client.Entity.MysteryFruit += 3;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~3~!", null, null, 0);
break;
case 7:
client.Entity.Agility += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~1~!", null, null, 0);
break;
case 8:
client.Entity.Agility += 2;
client.Entity.MysteryFruit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~2~!", null, null, 0);
break;
case 9:
client.Entity.Agility += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Agility~increa sed~by~1~!", null, null, 0);
break;
#endregion
#region Strength
case 10:
client.Entity.Strength += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~1~!", null, null, 0);
break;
case 11:
client.Entity.Strength += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~1~!", null, null, 0);
break;
case 12:
client.Entity.Strength += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~1~!", null, null, 0);
break;
case 13:
client.Entity.Strength += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~1~!", null, null, 0);
break;
case 14:
client.Entity.Strength += 2;
client.Entity.MysteryFruit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~2~!", null, null, 0);
break;
case 15:
client.Entity.Strength += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~1~!", null, null, 0);
break;
case 16:
client.Entity.Strength += 2;
client.Entity.MysteryFruit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~2~!", null, null, 0);
break;
case 17:
client.Entity.Strength += 3;
client.Entity.MysteryFruit += 3;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~3~!", null, null, 0);
break;
case 18:
client.Entity.Strength += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~1~!", null, null, 0);
break;
case 19:
client.Entity.Strength += 1;
client.Entity.MysteryFruit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Strenght~incre ased~by~1~!", null, null, 0);
break;
#endregion
#region Vitality
case 20:
client.Entity.MysteryFruit += 1;
client.Entity.Vitality += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~1~!", null, null, 0);
break;
case 21:
client.Entity.MysteryFruit += 1;
client.Entity.Vitality += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~1~!", null, null, 0);
break;
case 22:
client.Entity.MysteryFruit += 1;
client.Entity.Vitality += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~1~!", null, null, 0);
break;
case 23:
client.Entity.MysteryFruit += 2;
client.Entity.Vitality += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~2~!", null, null, 0);
break;
case 24:
client.Entity.MysteryFruit += 1;
client.Entity.Vitality += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~1~!", null, null, 0);
break;
case 25:
client.Entity.MysteryFruit += 1;
client.Entity.Vitality += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~1~!", null, null, 0);
break;
case 26:
client.Entity.MysteryFruit += 3;
client.Entity.Vitality += 3;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~3~!", null, null, 0);
break;
case 27:
client.Entity.MysteryFruit += 2;
client.Entity.Vitality += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~2~!", null, null, 0);
break;
case 28:
client.Entity.MysteryFruit += 1;
client.Entity.Vitality += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~1~!", null, null, 0);
break;
case 29:
client.Entity.MysteryFruit += 1;
client.Entity.Vitality += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Vitality~incre ased~by~1~!", null, null, 0);
break;
#endregion
#region Spirit
case 30:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 31:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 32:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 33:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 34:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 35:
client.Entity.MysteryFruit += 2;
client.Entity.Spirit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~2~!", null, null, 0);
break;
case 36:
client.Entity.MysteryFruit += 3;
client.Entity.Spirit += 3;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~3~!", null, null, 0);
break;
case 37:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 38:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 39:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 40:
client.Entity.MysteryFruit += 2;
client.Entity.Spirit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~2~!", null, null, 0);
break;
case 41:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 42:
client.Entity.MysteryFruit += 1;
client.Entity.Spirit += 1;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~1~!", null, null, 0);
break;
case 43:
client.Entity.MysteryFruit += 2;
client.Entity.Spirit += 2;
client.Inventory.Remove(3001044, 1);
client.MessageBox("You~used~the~Mystery~Fruit~and~your~Spirit~increas ed~by~2~!", null, null, 0);
break;
#endregion
}
break;
}
}
return;
}
#endregion
لحد هنا تمام اوووي نخش علي لود وسيف
هتبحث في EntityTable عن
client.Entity.ConquerPoints = reader.ReadUInt64("ConquerPoints");
وهتضيف تحتها دي
client.Entity.MysteryFruit = reader.ReadUInt16("MysteryFruit");
بعد كده هتبحث في نفس الكلاس عن
.Set("Strength", e.Strength)
وهتضيف تحتها
.Set("MysteryFruit", e.MysteryFruit)
صح نسيت عشان تعملها save لما تغير الشخصيه او ترستر البوينتات ضيف ده
في كلاس Handle بس مش بتاع الاتاك التاني
ابحث عن
(ushort)(client.ExtraAtributePoints(client.Entity. FirstRebornLevel, client.Entity.FirstRebornClass) +
وخلي الكود كلو كده بقا
(ushort)(client.ExtraAtributePoints(client.Entity. FirstRebornLevel, client.Entity.FirstRebornClass) +
client.ExtraAtributePoints(client.Entity.SecondReb ornLevel, client.Entity.SecondRebornClass) +62 + client.Entity.MysteryFruit);
بعد كده هنخش علي الريسترت ابحث عن في كلاس Npc
case 59558:
وهتنزل لحد
#region attribute 8
case 4:
وهتبدل الكود الي شبه الكود ده هتبدلو في Else
client.Entity.Atributes = (ushort)(client.ExtraAtributePoints(client.Entity. FirstRebornLevel, client.Entity.FirstRebornClass) +
client.ExtraAtributePoints(client.Entity.SecondReb ornLevel, client.Entity.SecondRebornClass) + 52 + client.Entity.MysteryFruit + 3 * (client.Entity.Level - 15));
Users
2020-03-29, 02:11 PM
packethandler
هتبحث عن #region misc
هتضيف في الريجون ده
#region mysteryfruit
case 3001044:
{
npcs dialog = new npcs(client);
dialog.text("you~can~directly~use~mystery~fruit~to~receive~1 - 3~attribute~points. You~can");
dialog.text("also~use~it~with~mystery~dew~or~pay~270~cps~to~get ~the~best~effect~(3");
dialog.text("attribute~points~without~fail). What~do~you~think");
dialog.option("use~mystery~dew!", 1);
dialog.option("pay~270~cps!", 2);
dialog.option("use~mystery~fruit~directly.", 3);
dialog.option("i'll~think~about~it.", 255);
dialog.send();
client.activenpc = item.id;
break;
}
#endregion
بعد كده هتبحث عن
#region npcdialog
وهتضيف الكود ده
#region mysteryfruit
if (client.activenpc == 3001044)
{
if (req.optionid == 255) return;
switch (req.optionid)
{
case 1:
{
dialog.text("are~you~sure~youwant~to~use~a~mystery~dew~gain~the ~best~effect");
dialog.option("ok.", 5);
dialog.option("cancel.", 255);
dialog.send();
break;
}
case 2:
{
dialog.text("are~you~sure~youwant~to~pay~270~cps~to~gain~the~be st~effect");
dialog.option("ok.", 6);
dialog.option("cancel.", 255);
dialog.send();
break;
}
case 3:
{
dialog.text("you~will~randomly~gain~1 - 3~attribute~points~by~directly~using~the~mystery~f ruit.~if");
dialog.text("you~use~it~together~with~a~mystery~dew,you~will~ga in~3~attribute~points~without");
dialog.text("fail!~would~you~like~to~use~fruit~right~away?");
dialog.text("tip:mystery~dew~can~be~bought~from~aren");
dialog.option("ok.", 7);
dialog.option("cancel", 255);
dialog.send();
break;
}
case 5:
{
if (client.inventory.contains(3001045, 1))
{
random random3 = new random();
switch (random3.next(1, 5))
{
#region fruit
case 1:
Client.entity.agility += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~3~!", null, null, 0);
break;
case 2:
Client.entity.strength += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strength~incre ased~by~3~!", null, null, 0);
break;
case 3:
Client.entity.vitality += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~3~!", null, null, 0);
break;
case 4:
Client.entity.spirit += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~3~!", null, null, 0);
break;
#endregion
}
}
else
{
client.messagebox("you~don't~have~a~mystery~dew~to~gain~the~best~effe cts!~the~dew~can~be~bought~in~arena~store.", null, null, 0);
}
break;
}
case 6:
{
if (client.entity.conquerpoints >= 270)
{
random random3 = new random();
switch (random3.next(1, 5))
{
#region fruit
case 1:
Client.entity.agility += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~3~!", null, null, 0);
break;
case 2:
Client.entity.strength += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strength~incre ased~by~3~!", null, null, 0);
break;
case 3:
Client.entity.vitality += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~3~!", null, null, 0);
break;
case 4:
Client.entity.spirit += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~3~!", null, null, 0);
break;
#endregion
}
}
else
{
client.messagebox("you~don't~have~a~270~cps~to~gain~the~best~effects! ~the~dew~can~be~bought~in~arena~store.", null, null, 0);
break;
}
break;
}
case 7:
{
random random3 = new random();
switch (random3.next(1, 44))
{
#region agility
case 1:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 2:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 3:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 4:
Client.entity.agility += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~2~!", null, null, 0);
break;
case 5:
Client.entity.agility += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~2~!", null, null, 0);
break;
case 6:
Client.entity.agility += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~3~!", null, null, 0);
break;
case 7:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 8:
Client.entity.agility += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~2~!", null, null, 0);
break;
case 9:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
#endregion
#region strength
case 10:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 11:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 12:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 13:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 14:
Client.entity.strength += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~2~!", null, null, 0);
break;
case 15:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 16:
Client.entity.strength += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~2~!", null, null, 0);
break;
case 17:
Client.entity.strength += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~3~!", null, null, 0);
break;
case 18:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 19:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
#endregion
#region vitality
case 20:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 21:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 22:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 23:
Client.entity.mysteryfruit += 2;
client.entity.vitality += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~2~!", null, null, 0);
break;
case 24:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 25:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 26:
Client.entity.mysteryfruit += 3;
client.entity.vitality += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~3~!", null, null, 0);
break;
case 27:
Client.entity.mysteryfruit += 2;
client.entity.vitality += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~2~!", null, null, 0);
break;
case 28:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 29:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
#endregion
#region spirit
case 30:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 31:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 32:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 33:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 34:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 35:
Client.entity.mysteryfruit += 2;
client.entity.spirit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~2~!", null, null, 0);
break;
case 36:
Client.entity.mysteryfruit += 3;
client.entity.spirit += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~3~!", null, null, 0);
break;
case 37:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 38:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 39:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 40:
Client.entity.mysteryfruit += 2;
client.entity.spirit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~2~!", null, null, 0);
break;
case 41:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 42:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 43:
Client.entity.mysteryfruit += 2;
client.entity.spirit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~2~!", null, null, 0);
break;
#endregion
}
break;
}
}
return;
}
#endregion
لحد هنا تمام اوووي نخش علي لود وسيف
هتبحث في entitytable عن
client.entity.conquerpoints = reader.readuint64("conquerpoints");
وهتضيف تحتها دي
client.entity.mysteryfruit = reader.readuint16("mysteryfruit");
بعد كده هتبحث في نفس الكلاس عن
.set("strength", e.strength)
وهتضيف تحتها
.set("mysteryfruit", e.mysteryfruit)
صح نسيت عشان تعملها save لما تغير الشخصيه او ترستر البوينتات ضيف ده
في كلاس handle بس مش بتاع الاتاك التاني
ابحث عن
(ushort)(client.extraatributepoints(client.entity. firstrebornlevel, client.entity.firstrebornclass) +
وخلي الكود كلو كده بقا
(ushort)(client.extraatributepoints(client.entity. firstrebornlevel, client.entity.firstrebornclass) +
client.extraatributepoints(client.entity.secondreb ornlevel, client.entity.secondrebornclass) +62 + client.entity.mysteryfruit);
بعد كده هنخش علي الريسترت ابحث عن في كلاس npc
case 59558:
وهتنزل لحد
#region attribute 8
case 4:
وهتبدل الكود الي شبه الكود ده هتبدلو في else
client.entity.atributes = (ushort)(client.extraatributepoints(client.entity. firstrebornlevel, client.entity.firstrebornclass) +
client.extraatributepoints(client.entity.secondreb ornlevel, client.entity.secondrebornclass) + 52 + client.entity.mysteryfruit + 3 * (client.entity.level - 15));
شكراا يا رايس على تعبك بس استهدى بالله كده الوا\ هيتوه منك هى موجوده عندو وعاوز يعملها شوب مش اكتر ههههههههه امال مبنشوفش منك كده ليه
شكراا يا رايس على تعبك بس استهدى بالله كده الوا\ هيتوه منك هى موجوده عندو وعاوز يعملها شوب مش اكتر ههههههههه امال مبنشوفش منك كده ليه
هههههههههه
Abod ayman
2020-03-29, 05:12 PM
packethandler
هتبحث عن #region misc
هتضيف في الريجون ده
#region mysteryfruit
case 3001044:
{
npcs dialog = new npcs(client);
dialog.text("you~can~directly~use~mystery~fruit~to~receive~1 - 3~attribute~points. You~can");
dialog.text("also~use~it~with~mystery~dew~or~pay~270~cps~to~get ~the~best~effect~(3");
dialog.text("attribute~points~without~fail). What~do~you~think");
dialog.option("use~mystery~dew!", 1);
dialog.option("pay~270~cps!", 2);
dialog.option("use~mystery~fruit~directly.", 3);
dialog.option("i'll~think~about~it.", 255);
dialog.send();
client.activenpc = item.id;
break;
}
#endregion
بعد كده هتبحث عن
#region npcdialog
وهتضيف الكود ده
#region mysteryfruit
if (client.activenpc == 3001044)
{
if (req.optionid == 255) return;
switch (req.optionid)
{
case 1:
{
dialog.text("are~you~sure~youwant~to~use~a~mystery~dew~gain~the ~best~effect");
dialog.option("ok.", 5);
dialog.option("cancel.", 255);
dialog.send();
break;
}
case 2:
{
dialog.text("are~you~sure~youwant~to~pay~270~cps~to~gain~the~be st~effect");
dialog.option("ok.", 6);
dialog.option("cancel.", 255);
dialog.send();
break;
}
case 3:
{
dialog.text("you~will~randomly~gain~1 - 3~attribute~points~by~directly~using~the~mystery~f ruit.~if");
dialog.text("you~use~it~together~with~a~mystery~dew,you~will~ga in~3~attribute~points~without");
dialog.text("fail!~would~you~like~to~use~fruit~right~away?");
dialog.text("tip:mystery~dew~can~be~bought~from~aren");
dialog.option("ok.", 7);
dialog.option("cancel", 255);
dialog.send();
break;
}
case 5:
{
if (client.inventory.contains(3001045, 1))
{
random random3 = new random();
switch (random3.next(1, 5))
{
#region fruit
case 1:
Client.entity.agility += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~3~!", null, null, 0);
break;
case 2:
Client.entity.strength += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strength~incre ased~by~3~!", null, null, 0);
break;
case 3:
Client.entity.vitality += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~3~!", null, null, 0);
break;
case 4:
Client.entity.spirit += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001045, 1);
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~3~!", null, null, 0);
break;
#endregion
}
}
else
{
client.messagebox("you~don't~have~a~mystery~dew~to~gain~the~best~effe cts!~the~dew~can~be~bought~in~arena~store.", null, null, 0);
}
break;
}
case 6:
{
if (client.entity.conquerpoints >= 270)
{
random random3 = new random();
switch (random3.next(1, 5))
{
#region fruit
case 1:
Client.entity.agility += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~3~!", null, null, 0);
break;
case 2:
Client.entity.strength += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strength~incre ased~by~3~!", null, null, 0);
break;
case 3:
Client.entity.vitality += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~3~!", null, null, 0);
break;
case 4:
Client.entity.spirit += 3;
client.entity.mysteryfruit += 3;
client.entity.conquerpoints -= 270;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~3~!", null, null, 0);
break;
#endregion
}
}
else
{
client.messagebox("you~don't~have~a~270~cps~to~gain~the~best~effects! ~the~dew~can~be~bought~in~arena~store.", null, null, 0);
break;
}
break;
}
case 7:
{
random random3 = new random();
switch (random3.next(1, 44))
{
#region agility
case 1:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 2:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 3:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 4:
Client.entity.agility += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~2~!", null, null, 0);
break;
case 5:
Client.entity.agility += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~2~!", null, null, 0);
break;
case 6:
Client.entity.agility += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~3~!", null, null, 0);
break;
case 7:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
case 8:
Client.entity.agility += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~2~!", null, null, 0);
break;
case 9:
Client.entity.agility += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increa sed~by~1~!", null, null, 0);
break;
#endregion
#region strength
case 10:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 11:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 12:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 13:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 14:
Client.entity.strength += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~2~!", null, null, 0);
break;
case 15:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 16:
Client.entity.strength += 2;
client.entity.mysteryfruit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~2~!", null, null, 0);
break;
case 17:
Client.entity.strength += 3;
client.entity.mysteryfruit += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~3~!", null, null, 0);
break;
case 18:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
case 19:
Client.entity.strength += 1;
client.entity.mysteryfruit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~incre ased~by~1~!", null, null, 0);
break;
#endregion
#region vitality
case 20:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 21:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 22:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 23:
Client.entity.mysteryfruit += 2;
client.entity.vitality += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~2~!", null, null, 0);
break;
case 24:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 25:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 26:
Client.entity.mysteryfruit += 3;
client.entity.vitality += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~3~!", null, null, 0);
break;
case 27:
Client.entity.mysteryfruit += 2;
client.entity.vitality += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~2~!", null, null, 0);
break;
case 28:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
case 29:
Client.entity.mysteryfruit += 1;
client.entity.vitality += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~incre ased~by~1~!", null, null, 0);
break;
#endregion
#region spirit
case 30:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 31:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 32:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 33:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 34:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 35:
Client.entity.mysteryfruit += 2;
client.entity.spirit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~2~!", null, null, 0);
break;
case 36:
Client.entity.mysteryfruit += 3;
client.entity.spirit += 3;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~3~!", null, null, 0);
break;
case 37:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 38:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 39:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 40:
Client.entity.mysteryfruit += 2;
client.entity.spirit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~2~!", null, null, 0);
break;
case 41:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 42:
Client.entity.mysteryfruit += 1;
client.entity.spirit += 1;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~1~!", null, null, 0);
break;
case 43:
Client.entity.mysteryfruit += 2;
client.entity.spirit += 2;
client.inventory.remove(3001044, 1);
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increas ed~by~2~!", null, null, 0);
break;
#endregion
}
break;
}
}
return;
}
#endregion
لحد هنا تمام اوووي نخش علي لود وسيف
هتبحث في entitytable عن
client.entity.conquerpoints = reader.readuint64("conquerpoints");
وهتضيف تحتها دي
client.entity.mysteryfruit = reader.readuint16("mysteryfruit");
بعد كده هتبحث في نفس الكلاس عن
.set("strength", e.strength)
وهتضيف تحتها
.set("mysteryfruit", e.mysteryfruit)
صح نسيت عشان تعملها save لما تغير الشخصيه او ترستر البوينتات ضيف ده
في كلاس handle بس مش بتاع الاتاك التاني
ابحث عن
(ushort)(client.extraatributepoints(client.entity. firstrebornlevel, client.entity.firstrebornclass) +
وخلي الكود كلو كده بقا
(ushort)(client.extraatributepoints(client.entity. firstrebornlevel, client.entity.firstrebornclass) +
client.extraatributepoints(client.entity.secondreb ornlevel, client.entity.secondrebornclass) +62 + client.entity.mysteryfruit);
بعد كده هنخش علي الريسترت ابحث عن في كلاس npc
case 59558:
وهتنزل لحد
#region attribute 8
case 4:
وهتبدل الكود الي شبه الكود ده هتبدلو في else
client.entity.atributes = (ushort)(client.extraatributepoints(client.entity. firstrebornlevel, client.entity.firstrebornclass) +
client.extraatributepoints(client.entity.secondreb ornlevel, client.entity.secondrebornclass) + 52 + client.entity.mysteryfruit + 3 * (client.entity.level - 15));
.
شكرا جداا لمجهودك الرائع وجاري التجربة
vBulletin® v3.8.8 Beta 1, Copyright ©2000-2024, TranZ by code