عرض مشاركة واحدة
قديم 2020-04-01, 12:18 AM
المشاركة 12
stevenayman1
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة في سورس mr online
هتضيف الكود دا في entity

كود:
  public void send(ipacket buffer)
        {
            
send(buffer.toarray());
        } 

ودا كمان هتضيف الكود دا في entity

كود:
  public void die(entity killer)
        {
            try
            {
                    
#region unique killer
                
if (entityflag == entityflag.entity && killer.entityflag == entityflag.entity)
                {
                    if (
killer.mapid == 2014)
                    {
                        if (
killer.mapid == 2014)
                        {
                            
killer.owner.uniquepoints += 1;
                            if (
killer.owner.uniquepoints >= 20)
                            {
                                
network.gamepackets.npcreply npc = new network.gamepackets.npcreply(6"congratulations, you have now " killer.owner.uniquepoints "  points you can claim your prize now!");
                                
npc.optionid 255;
                                
killer.owner.send(npc.toarray());
                            }
                            else
                            {
                                
network.gamepackets.npcreply npc = new network.gamepackets.npcreply(6"you have now " killer.owner.uniquepoints "  points congratz you still need " + (20 killer.owner.uniquepoints) + " more!");
                                
npc.optionid 255;
                                
killer.owner.send(npc.toarray());
                            }
                        }
                    }
                
#endregion 

وهتبجث عن الكود دا

كود:
                                    killer.addflag(network.gamepackets.update.flags.cursed); 

في entity
وهتضيف دا تحتو

كود:
killer.owner.send(update.toarray()); 

في كلاس
الكود

كود:
 public byte[] toarray()
        {
            return 
buffer;
        } 

كلهم موجودين مفيش غير اخر كود مش موجود