الموضوع: طلب في انبسي
عرض مشاركة واحدة
قديم 2020-01-28, 07:30 PM
المشاركة 8
مجدى
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: طلب في انبسي
بعد ما تظبط كود مره في يوم ده كود وحش و مابه ملحوظه انا عندي uid لكل يكونت مليون و شويه فعشان كده نقصت مليون طب انته عندك مئة الف و شويه ارقام جنبها هتخلي مليون في كود 100 الف

كود:
ushort rider;
                                                    
rider = (ushort)(client.player.uid 1000000);
                                                    new 
game.map(riderdatabase.dmaps.mappaths[rider]);
                                                    if (
dmaps.loadmap(rider))
                                                    {
                                                        
#region nemesistyrant
                                                        
if ((datetime.now.minute == 28 && datetime.now.second == 05))
                                                        {
                                                            
ushort x 00;
                                                            
ushort mapid rider;
                                                            
293;
                                                            
281;
                                                            
uint id 4220;
                                                            
string name "nemesistyrant";
                                                            if (
database.dmaps.loadmap(mapid))
                                                            {
                                                                
                                                                    
                                                                        var 
map kernel.maps[mapid];
                                                                        if (
database.monsterinformation.monsterinformations.containskey(id))
                                                                        {
                                                                            
database.monsterinformation mt database.monsterinformation.monsterinformations[id];
                                                                            
mt.boundx x;
                                                                            
program.nemesis false;
                                                                            
mt.boundy y;
                                                                            
mt.respawntime 36000;
                                                                            
entity entity = new entity(entityflag.monsterfalse);
                                                                            
entity.mapobjtype mapobjecttype.monster;
                                                                            
entity.monsterinfo mt.copy();
                                                                            
entity.monsterinfo.owner entity;
                                                                            
entity.name mt.name;
                                                                            
entity.minattack mt.minattack;
                                                                            
entity.maxattack entity.magicattack mt.maxattack;
                                                                            
entity.hitpoints entity.maxhitpoints mt.hitpoints;
                                                                            
entity.defence mt.defence;
                                                                            
entity.body mt.mesh;
                                                                            
entity.level mt.level;
                                                                            
entity.uid map.entityuidcounter.next;
                                                                            
entity.mapid mapid;
                                                                            
entity.x;
                                                                            
entity.boss 1;
                                                                            
entity.y;
                                                                            if (
== || == 0)
                                                                            {
                                                                                var 
cord map.randomcoordinates();
                                                                                
entity.cord.item1;
                                                                                
entity.cord.item2;
                                                                                do
                                                                                {
                                                                                    
cord map.randomcoordinates();
                                                                                    
entity.cord.item1;
                                                                                    
entity.cord.item2;
                                                                                }
                                                                                while (!
map.floor[entity.xentity.ymapobjecttype.monster]);
                                                                            }

                                                                            
map.addentity(entity);
                                                                            
network.gamepackets._string stringpacket =
                                                                            new 
network.gamepackets._string(true);
                                                                            
stringpacket.uid entity.uid;
                                                                            
stringpacket.type network.gamepackets._string.effect;
                                                                            
stringpacket.texts.add("mbstandard");
                                                                            
data data = new data(true);
                                                                            
data.uid entity.uid;
                                                                            
data.id network.gamepackets.data.addentity;
                                                                            
data.wparam1 entity.x;
                                                                            
data.wparam2 entity.y;
                                                                            foreach (
client.gamestate clllient in program.values)
                                                                            {
                                                                                if (
clllient.map.id == entity.mapid)
                                                                                {
                                                                                    if (
kernel.getdistance(clllient.player.xclllient.player.yentity.xentity.y) <
                                                                                        
constants.nscreendistance)
                                                                                    {
                                                                                        
entity.sendspawn(clllientfalse);
                                                                                        
clllient.send(stringpacket);
                                                                                        
clllient.send(data);
                                                                                        if (
entity.maxhitpoints 65535)
                                                                                        {
                                                                                            
update upd = new update(true) { uid entity.uid };
                                                                                            
upd.append(update.maxhitpointsentity.maxhitpoints);
                                                                                            
upd.append(update.hitpointsentity.hitpoints);
                                                                                            
clllient.send(upd);
                                                                                        }

                                                                                    }
                                                                                }
                                                                            
                                                                            
                                                                        }
                                                                    
                                                                }
                                                            }
                                                        }
                                                        
#endregion
                                                        
client.player.teleport(rider5050);
                                                    } 


مش فاهم قصدي
بص انا عملت الانبسي وكلو تمام والوحش بيطلع بأيتم بتضربو يطلعلك الوحش
انا بقا عايز الانبسي دا يدخل كل واحد مابة لواحدة