Register for your free account! | Forgot your password?

You last visited: Today at 14:19

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

Advertisement



Time Of Monster

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 52
Received Thanks: 0
Time Of Monster

How Can I make SnowBanche Apear Every xx:30 Min !!
I will Be Thx If U gave Me the Code or tell How to Do That !!!
meshoshow is offline  
Old 10/20/2012, 22:10   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Handle timed events in your source.

You've given us zero information to help us give you troubleshooting information so that's as specific as I can get.

What source are you using
How does it handle spawning monsters
How does it handle timed server events (if at all)


Most servers will have some form of thread responsible for controlling AI and re spawning of monsters.

Simply ensure that mob respawn time is not hard coded (loaded per mob type or individual spawn even) and apply it to your bosses so that they only spawn X min after being killed.

I know I did this just fine in albetros (if a touch messy)
pro4never is offline  
Thanks
1 User
Old 10/20/2012, 22:59   #3
 
elite*gold: 0
Join Date: Jun 2008
Posts: 52
Received Thanks: 0
Source 5620
meshoshow is offline  
Old 10/21/2012, 01:31   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
That is a patch number, not a source. And you haven't answered all of his questions.
Spirited is offline  
Old 10/21/2012, 01:50   #5
 
elite*gold: 0
Join Date: Jun 2008
Posts: 52
Received Thanks: 0
Dude ! Iam Beginner So step by step Please !
i Know No one Need To Help The Beginner ppl but i hope to under stand how to make that !
so what u mean by this question !!!
meshoshow is offline  
Old 10/21/2012, 01:57   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by meshoshow View Post
Dude ! Iam Beginner So step by step Please !
i Know No one Need To Help The Beginner ppl but i hope to under stand how to make that !
so what u mean by this question !!!
If you're "just a beginner", then don't attempt it at all. It's painfully obvious that you know nothing about programming... Why are you even doing this when you know you can't understand anything we say? Pro4Never tried helping you. If you can't understand him, then you need to learn how to understand him. Learn how to program.
Spirited is offline  
Thanks
1 User
Old 10/21/2012, 02:22   #7
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 327
okay here
1- summon banshe once server start
2- once it's killed run a timmer/raise an event after 30 min
3- this event summon another one

or even summon it every xx:30 , use a flag to determine if it's kill or not , once someone kill a monster called banashe u turn this flag to one , else this flag is zero , on every xx:30 u do check , if banashe flag is zero (by default) you don't need to summon another one , else you do summon it


if u didn't get what i've said above then yes as fang said , dun even bother hosting a server
go for it is offline  
Old 10/21/2012, 09:54   #8
 
2slam's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 586
Received Thanks: 335
Quote:
Originally Posted by go for it View Post
okay here
1- summon banshe once server start
2- once it's killed run a timmer/raise an event after 30 min
3- this event summon another one

or even summon it every xx:30 , use a flag to determine if it's kill or not , once someone kill a monster called banashe u turn this flag to one , else this flag is zero , on every xx:30 u do check , if banashe flag is zero (by default) you don't need to summon another one , else you do summon it


if u didn't get what i've said above then yes as fang said , dun even bother hosting a server
"whats an event or a timer?""what's a flag?and how to use 'em?""how to summon it " then yes u're right at your last part "if u didn't get what i've said above then yes as fang said , dun even bother hosting a server"but such ppls have their own mentality "oh *** i've made a server using C#" then he thought "IAM A C# Coder" even he doesnt know how to write a simple talking npc.

For the guy who wrote the thread how about handling a code that every xx:30 a monster respawn like
if
{
Date.Time.Now(xx:30)
}
monster.respawn

that's the easiest way as u're a beginner.

P.S: itsnt the right code it's just an example as far as i know u'll say "oh dude where to put that code,the code is giving me errors" and i gave up Co until i finish my high school .
2slam is offline  
Old 10/21/2012, 10:56   #9
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 327
yup , u got a point , after everything i've reached and i've done , so far i don't call myself c# coder cuz im not aware of 100% of the language and im not aware of the common techniques real coder use , so until someone really get to this point he can call himself a coder nonetheless , they will never understand that hosting a server with simple edits to the source isn't the **** , isn't even worth it to mention
go for it is offline  
Thanks
1 User
Old 10/21/2012, 20:18   #10
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by 2slam View Post
"whats an event or a timer?""what's a flag?and how to use 'em?""how to summon it " then yes u're right at your last part "if u didn't get what i've said above then yes as fang said , dun even bother hosting a server"but such ppls have their own mentality "oh *** i've made a server using C#" then he thought "IAM A C# Coder" even he doesnt know how to write a simple talking npc.

For the guy who wrote the thread how about handling a code that every xx:30 a monster respawn like
if
{
Date.Time.Now(xx:30)
}
monster.respawn

that's the easiest way as u're a beginner.

P.S: itsnt the right code it's just an example as far as i know u'll say "oh dude where to put that code,the code is giving me errors" and i gave up Co until i finish my high school .

Or, using about 5 lines of code he could write it PROPERLY.

Your system will start stacking bosses ontop of eachother if one is already there.

Instead of making hacked together solutions that simply are not the correct way, take an hour or two to make sure you're doing it correctly. My initial reply listed exactly how to go about it.


The solution I provided requires virtually zero understanding of programming past basic boolean logic and operators.
pro4never is offline  
Old 10/23/2012, 18:35   #11
 
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
system threading, create a new thread for boss spawning, titan, dragon, snowbanshee, thrilling spook, if (client.Entity.Name == TeratoDragon) do something like umm client.Entity.Respawn = 10 idk just an example

if (client.Entity.Name = "TeratoDragon" && client.Entity.Dead = true)
{
client.Entity.Respawn += 10;
}


I think the respawn time is also in the SQL database on impulse base 5517 ?

Or try my example here:
sonofskeletor is offline  
Old 10/23/2012, 20:33   #12
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
hey fang, i want to ask u something related to this topic. hmmm if wer going to use the kernel to add a timer will it used more memory ? or does it even affect the memory usage>?
marcbacor6666 is offline  
Old 10/23/2012, 21:30   #13
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by marcbacor6666 View Post
hey fang, i want to ask u something related to this topic. hmmm if wer going to use the kernel to add a timer will it used more memory ? or does it even affect the memory usage>?
Everything in a source effects its performance. Memory has to be allocated for any new variable being declared and defined by the server. If you want to add a timer for boss monsters, that really isn't a problem. There are other, more efficient, ways of doing it... but timers aren't necessarily a bad way if you only have a handful of bosses running on timers. It makes for poor expandability though.
Spirited is offline  
Thanks
1 User
Old 10/24/2012, 21:18   #14
 
elite*gold: 0
Join Date: Oct 2011
Posts: 23
Received Thanks: 6
In trinity source i made this code :

Code:
#region SnowBanshee-RespawnTime
                if (Name == "SnowBanshee")
                {
                    RespawnTime += 1800;
                }
                #endregion
that means that snow banshee will appear after 30 mins of killing it ...

you should put that in MonsterTable.cs at Drop Void .

hope it helps ...
Sir~Samuel is offline  
Reply


Similar Threads Similar Threads
Monster Hunter tri zocker gesucht lvl 40+ high rank monster
10/13/2011 - Consoles - 5 Replies
Ich suche wie der titel schon sagt einen oder eine monster hunter zocker oder zockerin ^^ ich muss dringend ein paar high rank monster machen in tundra wie gigginox und andere Ich bitte nur um ein paar matches wo ich steine abbauen kann und anschliessend das monster töten kann
Magic Field of Crevice Max 45 Monster and Time Limit
08/01/2011 - Dekaron - 3 Replies
Magic Field of Crevice Max 45 Monster and Time Limit Is it possible to edit in csv the maximum monster in Magic Field of Crevice? Is it possible to edit in csv the time limit in Magic Field of Crevice? Where to find the csv file related to Magic Field of Crevice?
Monster.ini file - Boss Monster time and location
12/16/2008 - Zero - 2 Replies
does any1 have the monster.ini file that tell you wen the boss monster appears and where it appears cause i think they mightve patched over the other 1. if any1 can find a way to get it to work again id be grateful. if u think u can help i can send u the other monster.ini file that used to work. Or if this isnt possible does any1 have spawn times for the bosses in neptune/green planet? Either of those would be helpful Thanks in advance
Monster time?
05/11/2007 - Conquer Online 2 - 9 Replies
What time is the DB Devil spawned? In Eastern time? I can't find that devil for shiet...



All times are GMT +2. The time now is 14:19.


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.