elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   CO2 PServer Guides & Releases (https://www.elitepvpers.com/forum/co2-pserver-guides-releases/)
-   -   [Guide\Release]Guards attack mobs (https://www.elitepvpers.com/forum/co2-pserver-guides-releases/167292-guide-release-guards-attack-mobs.html)

YukiXian 09/17/2008 20:32

Quote:

Originally Posted by Rechocto (Post 1448594)
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 :handsdown::handsdown::handsdown:

Rechocto 09/18/2008 01:06

don't just say thanks, use the *thanks button -.-

konkizta 09/19/2008 06:53

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?:confused:

Rechocto 09/19/2008 11:10

what items disapear?

XxArcherMasterxX 10/20/2008 20:50

added to [Only registered and activated users can see links. Click Here To Register...] (after request from the threadstarter)

pauldexter 10/21/2008 10:29

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 :o , it takes too much.

AIOROSZ 10/21/2008 20:25

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

XxArcherMasterxX 10/27/2008 01:51

wrong section man but nice release

tanelipe 10/27/2008 06:49

# Moved

Waley94 05/22/2009 20:19

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?:confused:

IcedEarth 05/22/2009 21:07

Quote:

Originally Posted by Waley94 (Post 2250199)
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?:confused:

This means if in your server the monsters are not moving you need to recode them and then come back to this topic :)


All times are GMT +2. The time now is 23:06.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.