|
|
المشاركات 203 |
+التقييم 0.12 |
تاريخ التسجيل Feb 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 3471 |
#region ConquerQuest
if (Name == "ConquerQuest")
{
//killer.Owner.Inventory.Add(3302815, 0, 1);
//killer.ConquerPoints += 10000;
//killer.Owner.Send(new Network.GamePackets.MsgTalk("Drop 10,000 Cps.", System.Drawing.Color.Yellow, 2005));
#region Item ID
uint ItemID = 0;
byte type1 = 15;
for (int i = 0; i < 1; i++)
{
type1 = (byte)Kernel.Random.Next(1, 15);
switch (type1)
{
case 1:
ItemID = 711214;
break;
case 2:
ItemID = 711215;
break;
case 3:
ItemID = 711216;
break;
case 4:
ItemID = 711217;
break;
case 5:
ItemID = 711218;
break;
case 6:
ItemID = 711219;
break;
case 7:
ItemID = 711220;
break;
case 8:
ItemID = 700103;
break;
case 9:
ItemID = 700123;
break;
case 10:
ItemID = 730008;
break;
case 11:
ItemID = 730007;
break;
case 12:
ItemID = 730006;
break;
case 13:
ItemID = 730005;
break;
case 14:
ItemID = 723744;
break;
case 15:
ItemID = 723700;
break;
}
if (ItemID != 0)
{
#endregion
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem floorItem = new Network.GamePackets.MsgMapItem(true);
floorItem.Item = new Network.GamePackets.MsgItemInfo(true);
floorItem.Item.Color = (COServer.Game.Enums.Color)Kernel.Random.Next(1, 4);
floorItem.Item.ID = ItemID;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Server.NextItemID; ;
floorItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
floorItem.ItemID = ItemID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.MsgMapItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
#endregion
BitConverter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
BitConverter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
BitConverter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rayzo
{
public unsafe class BitConverter
{
public static ulong ToUInt64(byte[] buffer, int offset)
{
if (offset > buffer.Length - 8) return 0;
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static Boolean ToBoolean(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return false;
fixed (byte* Buffer = buffer)
{
return *((Boolean*)(Buffer + offset));
}
}
public static uint ToUInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static int ToInt32(byte[] buffer, int offset)
{
if (offset > buffer.Length - 4) return 0;
fixed (byte* Buffer = buffer)
{
return *((int*)(Buffer + offset));
}
}
public static ushort ToUInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
public static short ToInt16(byte[] buffer, int offset)
{
if (offset > buffer.Length - 2) return 0;
fixed (byte* Buffer = buffer)
{
return *((short*)(Buffer + offset));
}
}
public static ulong ReadUlong(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ulong*)(Buffer + offset));
}
}
public static uint ReadUint(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((uint*)(Buffer + offset));
}
}
public static ushort ReadUshort(byte[] buffer, int offset)
{
fixed (byte* Buffer = buffer)
{
return *((ushort*)(Buffer + offset));
}
}
}
}
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ضرورى و النبي بخصوص الرنك سورس rayz | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-02-20 12:35 AM |
طلب ان بي سي لسيرفر rayz v2 اسطف بالشخصية الجديد +7 او +5 مفهاش صول | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-02-19 03:16 PM |
فجأه السوكت ضرب سورس Rayz 3.0 | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-02-18 11:03 PM |
بوابات الجليد وير | MRonlineGvrix | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-02-17 02:44 AM |
مشكله فى باب الجليد وار | taha | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2019-12-12 09:32 AM |