Register for your free account! | Forgot your password?

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

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

Advertisement



Spawning a monster while on a quest

Discussion on Spawning a monster while on a quest within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
Spawning a monster while on a quest

Okay so im on my 3rd npc on my 3rd reborn quest, but im sort of stuck.. is there anyway of adding to the npc when you click "yes" to spawn a monster only when your on the quest?
My code:
#region Crystal
case 11889:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Are you sure you wish to release the dragon?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("No!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Good luck."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
}
break;
#endregion

Theres a release for adding a dragon somewhere around here, im going to look for it
2010mrsurfer is offline  
Old 08/03/2010, 15:41   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Use a char value for quest (personally i'd use a quest dictionary so more than 1 at a time) then in the code do like


If (gc.mmychar.quests.conntainskey(questnnumber)
//npc otions/text
else
//other npc text
pro4never is offline  
Old 08/04/2010, 09:29   #3
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168


Thats for Coemu but i think its what your looking for.
Santa is offline  
Old 08/04/2010, 10:20   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,764
Received Thanks: 5,291
Code:
 Mob Demon = new Mob("100 Demon 6 731 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
                            Demon.EntityID = 450;
                            Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[GC.MyChar.Loc.Map];
                            DMap D = (DMap)DMaps.H_DMaps[GC.MyChar.Loc.Map];
                            Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
                            _Mob.Loc = new NewestCOServer.Game.Location();
                            _Mob.Loc.Map = GC.MyChar.Loc.Map;
                            _Mob.Loc.X = GC.MyChar.Loc.X;
                            _Mob.Loc.Y = GC.MyChar.Loc.Y;


                            _Mob.StartLoc = _Mob.Loc;
                            _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
                            while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
                                _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);

                            MapMobs.Add(_Mob.EntityID, _Mob);
Arcо is offline  
Thanks
1 User
Old 08/04/2010, 22:33   #5
 
FrontBoy's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 275
Received Thanks: 142
Quote:
Originally Posted by .Arco View Post
Code:
 Mob Demon = new Mob("100 Demon 6 731 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False");
                            Demon.EntityID = 450;
                            Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[GC.MyChar.Loc.Map];
                            DMap D = (DMap)DMaps.H_DMaps[GC.MyChar.Loc.Map];
                            Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon);
                            _Mob.Loc = new NewestCOServer.Game.Location();
                            _Mob.Loc.Map = GC.MyChar.Loc.Map;
                            _Mob.Loc.X = GC.MyChar.Loc.X;
                            _Mob.Loc.Y = GC.MyChar.Loc.Y;


                            _Mob.StartLoc = _Mob.Loc;
                            _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
                            while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
                                _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);

                            MapMobs.Add(_Mob.EntityID, _Mob);
doesnt work
FrontBoy is offline  
Thanks
1 User
Old 08/04/2010, 23:02   #6
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by filip100456 View Post
doesnt work
what, it do works.
try again xD
Fish* is offline  
Old 08/05/2010, 11:09   #7
 
FrontBoy's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 275
Received Thanks: 142
can you help me to add it xD im kinda noob x.x
FrontBoy is offline  
Thanks
1 User
Old 08/05/2010, 12:11   #8
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
Thanks guys im sort of getting it to work, messing on where to put it xD
2010mrsurfer is offline  
Reply


Similar Threads Similar Threads
[Help]/[Request] Monster Spawning & Eudemons
08/19/2010 - EO PServer Hosting - 4 Replies
Alright guys, owner of moonlight here asking another more than likely simple fix but as we all know simple fixes are most difficult to find and fix of course. - For some reason, our monsters in the server seem to spawn and never STOP spawning. we let the server sit idle for about 5 min and around 200-500 madbulls end up in cronus and eventually the server crashes. ALL monsters spawn and never stop spawning. We are looking for input as to what could this be? Our limits in the generator...
[HELP] 5165 Monster Spawning
05/05/2010 - CO2 Private Server - 4 Replies
I need a code to spawn a monster at a certain time in a certain place. Example: Ganoderma and Titan. I can't find any codes for them and i am very bad a codeing. The source is coded in c# but i am looking for a Source that runs better. Please Help!
Monster Spawning
07/19/2009 - CO2 Private Server - 13 Replies
Could someone give me the command to spawn a monster?



All times are GMT +1. The time now is 15:25.


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