Register for your free account! | Forgot your password?

You last visited: Today at 03:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Monster UID Problem

Discussion on Monster UID Problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 603
Received Thanks: 69
Monster UID Problem

hello mates, Could you help me with my problem? with this UID of a monster.

Code:
  public void Spawnthis(Database.MonsterInformation mt, Client.GameState client, ushort ID, ushort x, ushort y)
        {
            if (mt == null) return;
            mt.RespawnTime += 5;
            Entity entity = new Entity(EntityFlag.Monster, false);
            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.Body = mt.Mesh;
            entity.Level = mt.Level;
            entity.UID = (uint)ServerBase.Kernel.Random.Next(6000000, 6100000);
            entity.MapID = 1024;
            entity.X = 79;
            entity.Y = 79;
            entity.SendUpdates = true;
            AddEntity(entity);
            entity.SendSpawn(client);
        }
when I use this entity.UID = (uint)ServerBase.Kernel.Random.Next(6000000, 6100000); there's a lot of monster would summon. but when I use 6000000 it only summon 1 but when I summon it back it will freeze. so if anyone willing to help me it would be nice


BTW, I want to summon a single Boss Monster that is like Sword Master.


thank You Mates
Soulfly25 is offline  
Old 05/15/2015, 14:59   #2


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,444
Received Thanks: 1,176
Shouldn't you at least make sure the UID isn't already used ?
CptSky is offline  
Old 05/15/2015, 15:36   #3
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Create a uint somewhere you can just increase the number when summoning a new monster?
With a check on the get, as if it is >= 610000 it will just go back to 600000, then you check if the ID is enabled
pintinho12 is offline  
Old 05/16/2015, 01:39   #4
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
EntityCounter.Next
abdoumatrix is offline  
Old 05/16/2015, 06:14   #5
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 603
Received Thanks: 69
I did that EntityCounter.Next yet still it summon lot's of monster maybe 10 or more.
Soulfly25 is offline  
Old 05/16/2015, 06:54   #6
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Well, I manually do it with get;set;
pintinho12 is offline  
Reply


Similar Threads Similar Threads
Monster Problem
10/25/2014 - Shaiya PServer Development - 4 Replies
Hello . I've problem with Dimension crack bosses and some bosses i have created. I've placed their Lua to attack and for cryptic back placed Lua to after he dies it will spawen cryptic the last. Now . Only When Fighter or Defender or any not ranged classes attack it . Boss attack them but. If you attack the boss and run he wont follow you + not attack so ranged classes can attack it and not recive damge from boss . Please tell me what's werong. (tryed all Monster.Sdata options...
Monster.dat Problem
11/15/2013 - CO2 Private Server - 4 Replies
Hello Elitepvpers, We have a problem ; error data: Demon of ini/Monster.dat -- Fri Nov 15 12:02:11 2013 How i can fix it's?
Monster Problem..
03/13/2013 - Metin2 Private Server - 1 Replies
Hallo Community, habn prob mit neuen mobs! Hab alles genauso eingefügt sowie es in HowTo´s steht sprich: Clientside mob_proto, serverside mob_proto, in der npclist und in die monster2.e**...hab sogar ne eigene .epk und .eix datei für die viecher...aber die sind unsichtbar. hier der syserr auszug: 0310 23:27:37458 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 30191 0310 23:27:37458 :: CPythonCharacterManager::CreateInstance VID Race
[HELP]Monster Problem
08/30/2012 - Dekaron Private Server - 18 Replies
Hello can anyone help me? Our monster is attacking but you cant see the damage, and no effect in players.
Monster Problem
06/04/2011 - Flyff Private Server - 0 Replies
Ich hab mal den Todesbringer von Apfelsuchtii gedownloadet und es in meinem Server hinzugefügt. Sobald ich ihn schlage und er hälfte HP hat, stürzt der World ab und ich bekomme DC. in der Error.txt steht lediglich das: 2011/ 6/ 4 23:46:10 mvr_FlyingDeath_.ani : ãÀ» ¼ö ¾øÀ½ 2011/ 6/ 4 23:46:10 mvr_FlyingDeath_.ani : ãÀ» ¼ö ¾øÀ½ 2011/ 6/ 4 23:46:11 mvr_FlyingDeath_.ani : ãÀ» ¼ö ¾øÀ½ 2011/ 6/ 4 23:46:11 mvr_FlyingDeath_.ani : ãÀ» ¼ö ¾øÀ½



All times are GMT +1. The time now is 03:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.