منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   ان بى سى يدخلك البوكر (https://code.vpscairo.com/showthread.php?t=195)

محمد ياسر 2019-04-25 11:31 AM

ان بى سى يدخلك البوكر
 

في كلاس انبي سي ضيف دول
كود PHP:

#region Poker
#region GameManager
case 19930:
{
switch (
Request.LinkID)
{
case 
0:
{
dialog.Text("Hi, I can teleport you to poker room . Where you can enjoy yourself in the Texas Hold'em Poker. Wish you a good luck and good health. For 100 Silvers.");
dialog.Link("Enter Poker Room"1);
dialog.Link("Enter VIP Hall"2);
dialog.Link("Not interested."255);
dialog.Send();
break;
}
case 
1:
{
if (
client.Entity.Money >= 100)
{
client.Entity.Money -= 100;
client.Entity.Teleport(18585664);
}
else
{
dialog.Text("You do not have 100 silvers.");
dialog.Link("Ok sorry!"255);
dialog.Send();
}
break;
}
case 
2:
{
if (
client.Entity.Money >= 100)
{
client.Entity.Money -= 100;
client.Entity.Teleport(18605765);
}
else
{
dialog.Text("You do not have 100 silvers.");
dialog.Link("Ok sorry!"255);
dialog.Send();
}
break;
}

}
break;
}
#endregion

#region Poker
case 19941:
case 
19951:
{
switch (
Request.LinkID)
{
case 
0:
{
dialog.Text("Hi, I can teleport you to poker room . Where you can enjoy yourself in the Texas Hold'em Poker. Wish you a good luck and good health. For 100 Silvers.");
dialog.Link("Enter Poker Room"1);
dialog.Link("Enter VIP Hall"2);
dialog.Link("Go back to the Market"3);
dialog.Link("Not interested."255);
dialog.Send();
break;
}
case 
1:
{
if (
client.Entity.Money >= 100)
{
client.Entity.Money -= 100;
client.Entity.Teleport(18585664);
}
else
{
dialog.Text("You do not have 100 silvers.");
dialog.Link("Ok sorry!"255);
dialog.Send();
}
break;
}
case 
2:
{
if (
client.Entity.Money >= 100)
{
client.Entity.Money -= 100;
client.Entity.Teleport(18605765);
}
else
{
dialog.Text("You do not have 100 silvers.");
dialog.Link("Ok sorry!"255);
dialog.Send();
}
break;
}
case 
3:
{
if (
client.Entity.Money >= 100)
{
client.Entity.Money -= 100;
client.Entity.Teleport(1036195185);
}
else
{
dialog.Text("You do not have 100 silvers.");
dialog.Link("Ok sorry!"255);
dialog.Send();
}
break;
}
}
break;
}
#endregion
#endregion 


saad 2019-06-18 10:54 AM

رد: ان بى سى يدخلك البوكر
 
يا حازم انا دخلت على الموضوع بتعاك الى منزلوا ده تمام حملت البتشات الى فى الموضوع ده
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
عملت زى ما انتا كتب بس مرحتش لا
نيجي شوية للاكواد
كلاس Program.cs
كلاس PacketBuilder.cs في Game
مضيفتش دول

saad 2019-06-18 11:05 AM

رد: ان بى سى يدخلك البوكر
 
وضفت ان بى سهين مفهوش مشاكل وسيفت وتمام وحطيتهم فى النفى كات ومفيش اى مشاكل مش بيردوا وفيه ان بى سيهات ضفتها ردات ومشكله الكى ياحازم الان بى سيهات مش بتتكلم وترد جوه الكى

محمد ياسر 2019-06-18 11:29 AM

رد: ان بى سى يدخلك البوكر
 
باختصار كده انت متقدرش تضيف البوكر انت لسه جديد في المجال ده وصعب انك تحل مشاكل الي اتوجهك


الساعة الآن 02:57 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب