ElSaher
2019-08-02, 07:18 PM
محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
علشان انا زهقت كل شويا يتقفلي موضوع وربنه زهقت
اول حاجا عايز npcيفتح wing and tita
وا npc راجل يبدل 4توكن وار بي كاس وا نفس الكلام عايز اخلي الوار يدي توكن
وا اضافت اولين بوينت لي السلفرات السهلا
وا حل مشكلة ان الفايبي 7 مش بيدي اي حاجا خالص ولما بحثت عليه في game state في سورس مار بندا الي نزلو فيروس
مش لاقيه ولا لاقي اي حاجا
محمد ياسر
2019-08-02, 07:29 PM
كل ده موجود في قسم التطوير
محمد ياسر
2019-08-02, 07:49 PM
ازاي مش موجودين ياجدع هههه
ElSaher
2019-08-02, 07:50 PM
طيب هتلي المواضيع بتاعتهم
محمد ياسر
2019-08-02, 08:01 PM
عفواً لايمكن عرض الروابط في الإرشيف
عفواً لايمكن عرض الروابط في الإرشيف
عفواً لايمكن عرض الروابط في الإرشيف
ElSaher
2019-08-02, 08:02 PM
اول واحد مش كامل بتاع الونج
محمد ياسر
2019-08-02, 08:06 PM
عفواً لايمكن عرض الروابط في الإرشيف
ElSaher
2019-08-02, 08:10 PM
يا حوبي يا حازم الموضوع بردو مش كامل انا عايزو يدي الونج وا التيتن
ElSaher
2019-08-02, 08:11 PM
,
وعايز موضوع بتاع الوحوش كامل
محمد ياسر
2019-08-02, 08:11 PM
شوف الرابط التاني وده متجرب وساحبه من سورسي كنت شغال عليه
محمد ياسر
2019-08-02, 08:12 PM
يخلص الانبي سهاات واقفل الموضوع قولنا للمره الالف ممنوع عددة مشاكل في الموضوع الواحد
تم طلب 3 ان بي سي هات
________________________
1 وينج و تيتل
هندخل علي PacketHandler.cs
هنبحث عن public static void LoginMessages(
تحتها هنضيف
new TitleStorage().GetAll(client);
بعدها هندخل علي Wardrobe.cs
هنضيف ده
public void GetAll(Client.GameState client)
{
foreach (var title in Database.WardrobeTable.Titles.Values)
{
AddTitle(client, (short)title.Type, (short)title.ID, false);
}
client.Entity.haveallTitles = true;
}
هنروح علي Entity.cs
هنضيف ده
public bool haveallTitles = false;
كده اول ما اي حد يفتح عندك هياخد الوينج و التيتل كاملين
---------------------------------------------------------------------
وا npc راجل يبدل 4توكن وار بي كاس
#region Prize Seller
case 200033:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Greetings! I'm a great seller, I have the most precious items in the entire ");
dialog.Text("world. What do you want to get?");
dialog.Option("GoldPrize [4 LordTokens]", 1);
//dialog.Option("Super|Cup| [2 LordTokens]", 2);
//dialog.Option("Elite|Cup| [1 LordTokens]", 3);
dialog.Option("Just passing by.", 255);
dialog.Avatar(85);
dialog.Send();
break;
}
case 1:
{
if (client.Inventory.Contains(723467, 4))
{
client.Inventory.Remove(723467, 4);
client.Inventory.Add(2100075, 0, 0, 0, 0, 0, 0, 1, true);
}
else
{
dialog.Text("You don't have enough 3 LordTokens ");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 2:
{
if (client.Inventory.Contains(723467, 2))
{
client.Inventory.Remove(723467, 2);
client.Inventory.Add(2100085, 0, 0, 0, 0, 0, 0, 1, true);
}
else
{
dialog.Text("You don't have enough 2 LordTokens ");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 3:
{
if (client.Inventory.Contains(723467, 1))
{
client.Inventory.Remove(723467, 1);
client.Inventory.Add(2100065, 0, 0, 0, 0, 0, 0, 1, true);
}
else
{
dialog.Text("You don't have enough 1 LordTokens ");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 4:
{
if (client.Inventory.Contains(723467, 2))
{
client.Inventory.Remove(723467, 2);
client.Inventory.Add(2100065, 0, 0, 0, 0, 0, 0, 1, true);
}
else
{
dialog.Text("You don't have enough 2 LordTokens !");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 5:
{
if (client.Inventory.Contains(723467, 1))
{
client.Inventory.Remove(723467, 1);
client.Inventory.Add(2100055, 0, 0, 0, 0, 0, 0, 1, true);
}
else
{
dialog.Text("You don't have enough 1 LordTokens !");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
}
break;
}
#endregion
-----------------------------------------------------------------------------------
3-اضافت اولين بوينت لي السلفرات السهلا رجاء تحديد مقصود بالاضافه
#region online points
case 1212129:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("IaM Online Points Master You Are Get 1 Points For online to 1 Mint You have " + client.Entity.OnlinePoints + " Point!");
// dialog.Option("Check My Piontes.", 1);
dialog.Option("1 Online Points For MeteorScroll.", 7);
// dialog.Option("Union 1 OnlinePoints..", 8);
dialog.Option("60 Online Points For ( VIP 2 ).", 2);
dialog.Option("120 Online Points For ( VIP 3 ).", 3);
dialog.Option("300 Online Points For ( VIP 4 ).", 4);
dialog.Option("60 Online Points For ( 50k cps ).", 5);
dialog.Option("10 Online Points For ( ToughDrill[2-Soc] ).", 6);
// dialog.Option("30 Online Points For ( 1 SvageBone[P7] ).", 9);
// dialog.Option("600 Online Points For ( Vip4 1day ).", 10);
dialog.Option("1500 Online Points For ( Mount:WFC(Strike&imm) ).", 11);
dialog.Option("1000 Online Points For ( Germant:Freedomsuit(strike&imm) ).", 12);
dialog.Option("Meh!", 255);
dialog.Send();
break;
}
case 1:
{
dialog.Text(" I see you have " + client.Entity.OnlinePoints + " Online Points");
dialog.Option("Oh I See!.", 255);
dialog.Send();
break;
}
case 2:
{
if (client.Entity.VIPLevel == 1)
{
uint cost = 60;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Entity.VIPLevel = 2;
dialog.Text("Congratulations. You Get VIP 2 for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
}
break;
}
case 3:
{
if (client.Entity.VIPLevel == 2)
{
uint cost = 120;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Entity.VIPLevel = 3;
dialog.Text("Congratulations. You Get VIP 3 for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
}
break;
}
case 4:
{
if (client.Entity.VIPLevel == 3)
{
uint cost = 300;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Entity.VIPLevel = 4;
dialog.Text("Congratulations. You Get VIP 4 for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
}
break;
}
case 5:
{
uint cost = 60;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Entity.ConquerPoints += 50000;
dialog.Text("Congratulations. You Get 50k cps for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 6:
{
uint cost = 10;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Inventory.Add(1200005, 0, 1);
dialog.Text("Congratulations. You Get ToughDrill for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 7:
{
uint cost = 1;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Inventory.Add(720027, 0, 1);
dialog.Text("Congratulations. You Get MeteorScroll for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 10:
{
uint cost = 600;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Inventory.Add(3004121, 0, 1);
dialog.Text("Congratulations. You Get Vip4 for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 11:
{
uint cost = 1500;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Inventory.Add(200221, 0, 1);
dialog.Text("Congratulations. You Get WingedMount for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 12:
{
uint cost = 1000;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Inventory.Add(192765, 0, 1);
dialog.Text("Congratulations. You Get FreedomSuit for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 8:
{
if (client.Entity.OnlinePoints >= 1)
{
client.Entity.OnlinePoints -= 1;
client.Inventory.Add(3007110, 0, 1);
}
else
{
dialog.Text("Please take 1 OnlinePoints.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
case 9:
{
uint cost = 30;
if (client.Entity.OnlinePoints >= cost)
{
client.Entity.OnlinePoints -= cost;
client.Inventory.Add(3004181, 0, 1);
dialog.Text("Congratulations. You Get SavageBone[P7] for " + cost + " Points.");
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
}
break;
}
#endregion