SalemEGY

Conquer Item Bug

Jun 28th, 2024
1,814
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.37 KB | Source Code | 0 0
  1. /**
  2. سورس اليكس فقط
  3.  
  4. خش علي
  5.  
  6. Game/MsgServer/MsgItemUsuagePacket.cs
  7.  
  8. اعمل سيرش علي
  9.  
  10. case ItemUsuageID.GemCompose:
  11.  
  12. بدلها بدي
  13. **/
  14.  
  15.  case ItemUsuageID.GemCompose:
  16.                     {
  17.                         if (client.IsConnectedInterServer())
  18.                             break;
  19.                         if (id % 1000 == 0)
  20.                         {
  21.                             Console.WriteLine(client.Player.Name + "This Player Youse Hack items");
  22.                             client.Socket.Disconnect();
  23.                             return;
  24.                         }
  25.                         if (id / 10000 == 70 && Enum.IsDefined(typeof(Role.Flags.Gem), (byte)(id % 1000)))
  26.                         {
  27.                             uint price = 0;
  28.                             if (id % 10 == 1)
  29.                                 price = 10000;
  30.                             else if (id % 10 == 2)
  31.                             {
  32.                                 price = 800000;
  33.                                 if (id % 100 == 72)
  34.                                     price = 1000000;
  35.                             }
  36.                             if (client.Player.Money >= price)
  37.                             {
  38.                                 if (client.Inventory.Contain(id, 15))
  39.                                 {
  40.                                     if (client.Inventory.Remove(id, 15, stream))
  41.                                     {
  42.                                         client.Inventory.Add(stream, (uint)(id + 1), 1);
  43.  
  44.                                         dwParam = 1;
  45.                                         client.Send(stream.ItemUsageCreate(action, id, dwParam, timestamp, dwParam2, dwParam3, dwparam4, args));
  46.  
  47.                                         client.Player.Money -= (int)price;
  48.                                         client.Player.SendUpdate(stream, client.Player.Money, MsgUpdate.DataType.Money);
  49.                                     }
  50.                                 }
  51.                             }
  52.                             else
  53.                                 client.SendSysMesage("Sorry you don`t have 100,000 silver!.");
  54.                         }
  55.                         else if (dwParam == 7 && dwParam2 == 5000000)
  56.                             client.Socket.Disconnect();
  57.                         break;
  58.                     }
Tags: Item_Bug
Advertisement
Add Comment
Please, Sign In to add comment