Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP]Monsters time to spawn

Discussion on [HELP]Monsters time to spawn within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
[HELP]Monsters time to spawn

Can anyone tell me how to make a timer (example to spawn ganoderma/titan) every 1 hour?

I have the ganoderma and titan inserted in the database but I don't know how to spawn them from the source (LOTF)

The thing I want is how to create a timer to spawn them (1 of the 4 ganodermas/titans inserted in the db (differing by level))
ryuchetval is offline  
Old 05/02/2010, 22:19   #2
 
elite*gold: 0
Join Date: Mar 2010
Posts: 133
Received Thanks: 22
LOTF which version?
herekorvac is offline  
Old 05/03/2010, 00:15   #3
 
Luiz01's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 110
Received Thanks: 32
Quote:
Originally Posted by ryuchetval View Post
Can anyone tell me how to make a timer (example to spawn ganoderma/titan) every 1 hour?

I have the ganoderma and titan inserted in the database but I don't know how to spawn them from the source (LOTF)

The thing I want is how to create a timer to spawn them (1 of the 4 ganodermas/titans inserted in the db (differing by level))
I think
Code:
if (DateTime.Now.Minute  == 15)
{
... here te rest of code
Obs: Worked for me !
Luiz01 is offline  
Old 05/03/2010, 06:53   #4
 
TheGuyWithTheCodes's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 122
Received Thanks: 24
go to General.cs and search for Thetimer = new System.Timers.Timer();
then under it paste:
Code:
                System.Timers.Timer MobTimer = new System.Timers.Timer(1000.0);
                MobTimer.Start();
                MobTimer.Elapsed += delegate { MobSpawnTime(); };
then find public static void DoStuff()
and above it paste:
Code:
        public static void MobSpawnTime()
        {
            if (DateTime.Now.Minute == 00)
            {
                MobSpawnTimer = true;
                TitanSpawn();
            }
            else if (DateTime.Now.Minute == 30)
            {
                MobSpawnTimer = true;
                GanodermaSpawn();
            }
        }

        public static void TitanSpawn()
        {
            if (MobSpawnTimer == true)
            {
            //The methode for spawning titan here
                MobSpawnTimer = false;
            }
        }

        public static void GanodermaSpawn()
        {
            if (MobSpawnTimer == true)
            {
                //The methode for spawning ganoderma here
                MobSpawnTimer = false;
            }
        }
now find: public unsafe General()
above that paste:
Code:
public static bool MobSpawnTimer = false;
Hope it was useful.
TheGuyWithTheCodes is offline  
Thanks
1 User
Old 05/03/2010, 07:58   #5
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
I think that's gonna help me Thanks

EDIT:...How do I take some monsters to spawn from the database in C# I mean.... with codes not database cause they will spawn every few seconds if I spawn them in the DB
ryuchetval is offline  
Old 05/03/2010, 08:00   #6
 
TheGuyWithTheCodes's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 122
Received Thanks: 24
No problem, tell me if you got problems with it.
but it should work.
TheGuyWithTheCodes is offline  
Old 05/03/2010, 08:45   #7
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Quote:
Originally Posted by TheGuyWithTheCodes View Post
No problem, tell me if you got problems with it.
but it should work.
I'm having problems with the spawning part...

It's because I can't find a way to put the data ...."short x, short y, short map, uint maxhp, uint curhp, short minatk, short maxatk, uint uid, string name, int mech, short lvl, byte pos, byte Type, uint owner, bool Alive, int magicskill" so that they can spawn


EDIT: OK i did this but it ain't good...the titans and ganodermas keep spawning during the 15th minute of every hour...(like 20 ganodermas and titans)...ideas?

EDIT2: I think I fixed it thanks :P

EDIT 3: The monster summons but I can't attack it/ and it dissapears after a while (it becomes invisible)
ryuchetval is offline  
Old 05/03/2010, 20:33   #8
 
TheGuyWithTheCodes's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 122
Received Thanks: 24
as in my code i putted a bool with true & false.
It is because it keeps check if the time is right when the time is at xx.
you will have to make it check that it only spawn at true and then after a spawn it makes it false.
TheGuyWithTheCodes is offline  
Old 05/03/2010, 21:22   #9
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Quote:
Originally Posted by TheGuyWithTheCodes View Post
as in my code i putted a bool with true & false.
It is because it keeps check if the time is right when the time is at xx.
you will have to make it check that it only spawn at true and then after a spawn it makes it false.
I'm at edit 3 atm.... the monster spawns (1 time) but it's invisible(after a few sec) and you can't attack it!
ryuchetval is offline  
Old 05/03/2010, 21:24   #10
 
TheGuyWithTheCodes's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 122
Received Thanks: 24
have you added it in entities.cs also?
TheGuyWithTheCodes is offline  
Old 05/03/2010, 23:12   #11
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Quote:
Originally Posted by TheGuyWithTheCodes View Post
have you added it in entities.cs also?
What for? I'm just using the SingleMob function to spawn the mobs but it is just as I said...invisible...unhittable...and if I have to add it there then how and where?:O
ryuchetval is offline  
Old 05/03/2010, 23:29   #12
 
TheGuyWithTheCodes's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 122
Received Thanks: 24
It is because you will need to add the state for it in entities.cs
You will need to make a methode for attacking the mob.
TheGuyWithTheCodes is offline  
Old 05/04/2010, 07:28   #13
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Quote:
Originally Posted by TheGuyWithTheCodes View Post
It is because you will need to add the state for it in entities.cs
You will need to make a methode for attacking the mob.
shouldn't I be able to attack him? he is spawned in C# but it's the same as it would be in MySQL (the stats)
ryuchetval is offline  
Old 05/04/2010, 20:12   #14
 
TheGuyWithTheCodes's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 122
Received Thanks: 24
it spawned, but you didnt add it as a mob, only as a model that can attack. You will need to make it possible to be attacked.
TheGuyWithTheCodes is offline  
Reply


Similar Threads Similar Threads
PM Item: Spawn Monsters
01/20/2011 - EO PServer Hosting - 15 Replies
Hey guys, this is like version 2 or whatever of my moderator item release. Now i'll explain how it works: Awhile ago I released an item that spawns monsters but some people didn't use it because they had to completely replace their cq_action tables and itemtype.dats so I changed the way to do it and this time ill just edit what an item does. Okay so, theres an item thats called HoneyCake. I assume that TQ has used it for a christmas events but because we don't use it anymore I'll show you...
Spawn Location With The New Boss Monsters
05/15/2010 - Conquer Online 2 - 0 Replies
Does anyone know most of the spawn locations of the monsters that have the chance of dropping dragon souls etc? The new ones that are in tc, ac,dc, etc.
Spawn Locations For Monsters
06/11/2009 - RFO Hacks, Bots, Cheats, Exploits & Guides - 11 Replies
ACC Spawn Locations These are on the main Acc Map Name Coordinates Adult Stinkbug J11-12 , K10, K12 Arghol T-U 8 Arghol Drone (Pitboss) V6 ArgholGuard V6 Argholquich S-R 10-11 Argholquich (ACE) D12
[Release] Moderator Item: Spawn Monsters!
12/18/2008 - EO PServer Guides & Releases - 10 Replies
This item that I have released will spawn a monster wherever the person is standing. Simply download the database and client side files via the atachment and then spawn the item: /awarditem 724031 To change the monster that you would like to spawn follow these steps. Through Navicat Lite open cq_monstertype. If you have a certain monster that you would like to spawn then press ctrl+f and type in the name of that monster, then look to the left to find the ID. Copy it because you will need...
Spawn Monsters does not work.. WHY ?!
11/16/2008 - EO PServer Hosting - 2 Replies
Hey all.... I made my own PServer yesterday.. all warks good. But i have 1 PROBLEM i cant spawn Monster. i used these commands but nothing happens: /testmonster /createmonster Is there anything i should know ?! plz hel me :(



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


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.