Register for your free account! | Forgot your password?

You last visited: Today at 13:44

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

Advertisement



[Guide\Release]Guards attack mobs

Discussion on [Guide\Release]Guards attack mobs within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 09/17/2008, 20:32   #16
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Originally Posted by Rechocto View Post
you could either disable following, or add to Move() "If(Target == null && MType == 1 && (PosX != StartX || PosY != StartY)) { PosX = StartX; PosY = StartY; World.SurroundMobs(this); World.SpawnMobForPlayers(this, true); }"

or something
I will try, Thanks
YukiXian is offline  
Old 09/18/2008, 01:06   #17
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
don't just say thanks, use the *thanks button -.-
Rechocto is offline  
Old 09/19/2008, 06:53   #18
 
elite*gold: 0
Join Date: Aug 2008
Posts: 77
Received Thanks: 63
error items disappear

to make the guards kill the mods this error occurs, pulled the item not disappear.

The error was found in Entities.cs

go
Quote:
public void TimerElapsed(object source, ElapsedEventArgs e)
{
if (DateTime.Now > LastTargetting.AddMilliseconds(2000))
GetTarget();

if (Target != null)
if (Target.MyClient == null || !Target.MyClient.There || !Target.Alive || !Alive || Target.LocMap != Map)
Target = null;

if (Target != null)
if (MType != 1 && MType != 4 && MType != 5 && MType != 6)
if (Target.Flying)
Target = null;

if (Target != null)
{
Move();

}

else if (MType == 1)
{
Tgt = Other.MobNearest((uint)PosX, (uint)PosY, (uint)Map);
if (Tgt != null && Tgt.Alive == true && Tgt.MType != 1 && MyMath.PointDistance(PosX, PosY, Tgt.PosX, Tgt.PosY) <= 10)
Move2();
}


if (!Alive)
{
if (Revive == false)
{
if (DateTime.Now > Death.AddMilliseconds(3000))
Dissappear();
}
else
{
if (MType == 2)
{
if (Map == 1015)
{
if (DateTime.Now > Death.AddMilliseconds(60000))
ReSpawn();
}
if (Map != 1015)
{
if (DateTime.Now > Death.AddMilliseconds(600000))
ReSpawn();
}
}
if (MType == 0)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
if (MType == 1)
{
if (DateTime.Now > Death.AddMilliseconds(250))
ReSpawn();

}
if (MType == 4)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
if (MType == 3)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();

}
if (MType == 5)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
if (MType == 6)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
}
}
}
Does anyone know how to fix it?
konkizta is offline  
Old 09/19/2008, 11:10   #19
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
what items disapear?
Rechocto is offline  
Old 10/20/2008, 20:50   #20
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
added to (after request from the threadstarter)
XxArcherMasterxX is offline  
Old 10/21/2008, 10:29   #21
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
When I'm not using this code the process of the Server will be 0-9 randomly. But when i try to use this one the process of the server should be like 45-55 , it takes too much.
pauldexter is offline  
Old 10/21/2008, 20:25   #22
 
elite*gold: 0
Join Date: Dec 2006
Posts: 7
Received Thanks: 0
ToT donīt func for mi ToT i make it all and my guards donīt kill mobs XD
sorry for my bad inglish xD
AIOROSZ is offline  
Old 10/27/2008, 01:51   #23
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
wrong section man but nice release
XxArcherMasterxX is offline  
Old 10/27/2008, 06:49   #24
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
# Moved
tanelipe is offline  
Old 05/22/2009, 20:19   #25
 
elite*gold: 0
Join Date: Apr 2009
Posts: 1
Received Thanks: 0
Question Help....

Code:
(if you have a server with moving mobs, if not.. You'll need to write in a Move() Function, CharNearest() function, and a MobUseSkill() Function.. Come back when you have done this. (You can write some of that based on what you'll be adding)
I didnt understand...do you think you could help me?
Waley94 is offline  
Old 05/22/2009, 21:07   #26
 
IcedEarth's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 146
Received Thanks: 17
Quote:
Originally Posted by Waley94 View Post
Code:
(if you have a server with moving mobs, if not.. You'll need to write in a Move() Function, CharNearest() function, and a MobUseSkill() Function.. Come back when you have done this. (You can write some of that based on what you'll be adding)
I didnt understand...do you think you could help me?
This means if in your server the monsters are not moving you need to recode them and then come back to this topic
IcedEarth is offline  
Reply


Similar Threads Similar Threads
[Guide]Small Guide on how to change the name of Guards and Patrols
07/07/2009 - CO2 PServer Guides & Releases - 5 Replies
How to change the name of CoEmuGuard and CoEmuPatrol to what you want! Also GuardReviver if you want (Same thing as Guard and Patrol) Things we will change... Navicat: Monster Monsters
[Help]Guards attack Mobs & Mobs Drop for CoemuV2
07/04/2009 - CO2 Private Server - 0 Replies
Can any help me to make that guards attacks mobs and how can i change the drop rate in CoemuV2
[Release] Backup.SQL From Projekt-X Source For Stigma Guards And Other Mobs!
09/29/2008 - CO2 Private Server - 4 Replies
BACKUP.SQL FROM THE PROJEKT-X SOURCE FOR THE STIGMA GUARDS! RapidShare: Easy Filehosting
[TUT]No Mobs Cant Attack You
08/23/2008 - RFO Hacks, Bots, Cheats, Exploits & Guides - 53 Replies
this is not a quote. This works more well on mage's 1.Open CE 2.Search your name using text 3.Scan, then Find E9 D6, you can find them on with the FF FF adress XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX



All times are GMT +1. The time now is 13:44.


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.