Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- سورس اليكس فقط
- خش علي
- Game/MsgServer/MsgItemUsuagePacket.cs
- اعمل سيرش علي
- case ItemUsuageID.GemCompose:
- بدلها بدي
- **/
- case ItemUsuageID.GemCompose:
- {
- if (client.IsConnectedInterServer())
- break;
- if (id % 1000 == 0)
- {
- Console.WriteLine(client.Player.Name + "This Player Youse Hack items");
- client.Socket.Disconnect();
- return;
- }
- if (id / 10000 == 70 && Enum.IsDefined(typeof(Role.Flags.Gem), (byte)(id % 1000)))
- {
- uint price = 0;
- if (id % 10 == 1)
- price = 10000;
- else if (id % 10 == 2)
- {
- price = 800000;
- if (id % 100 == 72)
- price = 1000000;
- }
- if (client.Player.Money >= price)
- {
- if (client.Inventory.Contain(id, 15))
- {
- if (client.Inventory.Remove(id, 15, stream))
- {
- client.Inventory.Add(stream, (uint)(id + 1), 1);
- dwParam = 1;
- client.Send(stream.ItemUsageCreate(action, id, dwParam, timestamp, dwParam2, dwParam3, dwparam4, args));
- client.Player.Money -= (int)price;
- client.Player.SendUpdate(stream, client.Player.Money, MsgUpdate.DataType.Money);
- }
- }
- }
- else
- client.SendSysMesage("Sorry you don`t have 100,000 silver!.");
- }
- else if (dwParam == 7 && dwParam2 == 5000000)
- client.Socket.Disconnect();
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment