Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 23:48

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

Advertisement



Question: How do I make a monster spawn from a npc choice

Discussion on Question: How do I make a monster spawn from a npc choice within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
Question Question: How do I make a monster spawn from a npc choice

Title says it all.. I've searched and didn't see any answer to my question. I'm making custom quests and one of 'em would be like you need to talk to a npc, Then if you choose the wrong answer, A monster spawns right near the npc. Does someone have any idea on how to? I know this exists (I've already seen this before).

Thanks, Nova.

PS: Sorry for english faults, My original language is French.
Novakhan is offline  
Old 10/22/2013, 10:04   #2

 
GameHackerPM's Avatar
 
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
The Code will be :

Code:
MonsterInformation information3;
                                        Entity entity;
                                       
                                        _String str2;
                                        information3 = new MonsterInformation
                                        {
                                            Hitpoints = 50000000,
                                            Level = 140,
                                            Mesh = 954,
                                            Name = "NameOfMonster",
                                            MaxAttack = 10500,
                                            AttackRange = 5,
                                            AttackType = 2,
                                            AttackSpeed = 1000,
                                            ViewRange = 2,
                                            MoveSpeed = 500,
                                            RunSpeed = 500,
                                            MinAttack = 59000
                                        };
                                        entity = new Entity(EntityFlag.Monster, false)
                                        {
                                            MapObjType = MapObjectType.Monster,
                                            MonsterInfo = information3
                                        };
                                        entity.MonsterInfo.Owner = entity;
                                        entity.Name = "NameOfMonster";
                                        entity.MinAttack = information3.MinAttack;
                                        entity.MaxAttack = entity.MagicAttack = information3.MaxAttack;
                                        entity.Hitpoints = entity.MaxHitpoints = information3.Hitpoints;
                                        entity.Body = information3.Mesh;
                                        entity.Level = information3.Level;
                                        entity.Defence = 5000;
                                        entity.MapID = client.Entity.MapID;
                                        entity.X = client.Entity.X;
                                        entity.Y = client.Entity.Y;
                                        entity.EntityFlag = EntityFlag.Monster;
                                        entity.UID = (uint)Kernel.Random.Next(500000, 500100);
                                        entity.SendUpdates = true;
                                        str2 = new _String(true)
                                        {
                                            UID = information3.ID,
                                            Type = 10
                                        };
                                        str2.Texts.Add("MBStandard");
                                        client.Map.RemoveEntity(entity);
                                        client.Map.AddEntity(entity);
Don't forget to edit the name and the information.. and Map ID, X, Y!
GameHackerPM is offline  
Thanks
1 User
Old 10/22/2013, 10:36   #3

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
Thanks it works fine!
Novakhan is offline  
Reply


Similar Threads Similar Threads
quick question: monster spawn
10/27/2013 - Elsword - 25 Replies
item drop is ok, but I can't get any exp and ED. So, mind telling me what I did wrong? --------- nvm, found it, stupid me
[QUESTION] Monster Spawn
02/22/2010 - EO PServer Hosting - 8 Replies
Hi, title says it 95% I'll like to spawn a monster true the cq_action Only i have NO idea what type, data and param i need to use 0.0 Can someone help me? :bandit: Thanks. Example; Buy a bag, Right click on it and get an Wyner boss near you.
How do you make a monster spawn with a command?
01/10/2010 - CO2 Private Server - 19 Replies
Is there a way to spawn a monster with a command in game (instantly), maybe like Gano or Titan? Also is it possible to remove that monster after x amount of time? So far I have already gotten the Timer and spawned the monster on server start but I want to be able to command when I want to spawn the monster. Thanks.



All times are GMT +1. The time now is 23:51.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.