|
You last visited: Today at 13:45
Advertisement
Warning Message For Monster Boss
Discussion on Warning Message For Monster Boss within the CO2 Private Server forum part of the Conquer Online 2 category.
04/20/2015, 16:36
|
#1
|
elite*gold: 0
Join Date: Mar 2006
Posts: 598
Received Thanks: 69
|
Warning Message For Monster Boss
Hello mates, I want to ask a Noob question. If you are willing to help then, it would be nice..
I am using a EragonSource(Trinity Source). Correct me if Im wrong.
The Problem I want to solve is that. I want to make a Warning Message when a boss will be spawn.. Example are Ganoderma's and Titan's. That There's a warning message appear in a screen that the Ganoderma has been spawn.. (But in this source there's no Warning Message of Respawning Titan and Ganoderma so I can't Copy it). Could you help me please?
Thank You Mates.
|
|
|
04/20/2015, 17:36
|
#2
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
Map.cs
Timer void
just put it in the respwan code
|
|
|
04/20/2015, 18:53
|
#3
|
elite*gold: 0
Join Date: Mar 2006
Posts: 598
Received Thanks: 69
|
Yup I tested that. but still not working. Is there any suggestion?
|
|
|
04/20/2015, 19:05
|
#4
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
show me what u tried?
|
|
|
04/21/2015, 06:37
|
#5
|
elite*gold: 0
Join Date: Mar 2006
Posts: 598
Received Thanks: 69
|
Here Bro.. This is i've done
Code:
private void _timerCallBack(object myObject)
{
foreach (Entity monster in Companions.Values)
{
if (!monster.Owner.Socket.Connected)
{
RemoveEntity(monster);
break;
}
}
foreach (Entity monster in Entities.Values)
{
if (monster.Dead)
{
if (Time32.Now > monster.DeathStamp.AddSeconds(monster.MonsterInfo.RespawnTime))
{
monster.X = (ushort)(monster.MonsterInfo.BoundX + ServerBase.Kernel.Random.Next(0, monster.MonsterInfo.BoundCX));
monster.Y = (ushort)(monster.MonsterInfo.BoundY + ServerBase.Kernel.Random.Next(0, monster.MonsterInfo.BoundCY));
for (int count = 0; count < monster.MonsterInfo.BoundCX * monster.MonsterInfo.BoundCY; count++)
{
if (!Floor[monster.X, monster.Y, MapObjectType.Monster, null])
{
monster.X = (ushort)(monster.MonsterInfo.BoundX + ServerBase.Kernel.Random.Next(0, monster.MonsterInfo.BoundCX));
monster.Y = (ushort)(monster.MonsterInfo.BoundY + ServerBase.Kernel.Random.Next(0, monster.MonsterInfo.BoundCY));
}
else
break;
}
if (Floor[monster.X, monster.Y, MapObjectType.Monster, null] || monster.X == monster.MonsterInfo.BoundX && monster.Y == monster.MonsterInfo.BoundY)
{
monster.Hitpoints = monster.MonsterInfo.Hitpoints;
monster.RemoveFlag(monster.StatusFlag);
Network.GamePackets._String stringPacket = new Conquer_Online_Server.Network.GamePackets._String(true);
stringPacket.UID = monster.UID;
stringPacket.Type = Network.GamePackets._String.Effect;
stringPacket.Texts.Add("MBStandard");
monster.StatusFlag = 0;
if (monster.Body == 133 & monster.MapID == 1011)
{
Conquer_Online_Server.ServerBase.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Ganoderma has Spawn at PhoenixCastle 665, 779).", System.Drawing.Color.White, Conquer_Online_Server.Network.GamePackets.Message.Center), Program.GamePool);
}
if (monster.Body == 153 && monster.MapID == 1020)
{
Conquer_Online_Server.ServerBase.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Titan has Spawn at ApeCity(396, 588).", System.Drawing.Color.White, Conquer_Online_Server.Network.GamePackets.Message.Center), Program.GamePool);
}
foreach (Client.GameState client in ServerBase.Kernel.GamePool.Values)
{
if (client.Map.ID == ID)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, monster.X, monster.Y) < ServerBase.Constants.nScreenDistance)
{
monster.CauseOfDeathIsMagic = false;
monster.SendSpawn(client, false);
client.Send(stringPacket);
}
}
}
}
}
}
else
{
if (monster.ToxicFogLeft > 0)
{
if (Time32.Now >= monster.ToxicFogStamp.AddSeconds(2))
{
monster.ToxicFogLeft--;
monster.ToxicFogStamp = Time32.Now;
if (monster.Hitpoints > 1)
{
uint damage = Game.Attacking.Calculate.Percent(monster, monster.ToxicFogPercent);
monster.Hitpoints -= damage;
Network.GamePackets.SpellUse suse = new Conquer_Online_Server.Network.GamePackets.SpellUse(true);
suse.Attacker = monster.UID;
suse.SpellID = 10010;
suse.Targets.Add(monster.UID, damage);
monster.MonsterInfo.SendScreen(suse);
}
}
}
}
}
}
|
|
|
04/22/2015, 01:26
|
#6
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
if (monster.Body == 133 & monster.MapID == 1011)
{
Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Conquer_Online_Server.Network.GamePackets.Message( "Ganoderma has Spawn at PhoenixCastle 665, 779).", System.Drawing.Color.White, Conquer_Online_Server.Network.GamePackets.Message. Center), Program.GamePool);
}
if (monster.Body == 153 && monster.MapID == 1020)
{
Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Conquer_Online_Server.Network.GamePackets.Message( "Titan has Spawn at ApeCity(396, 588).", System.Drawing.Color.White, Conquer_Online_Server.Network.GamePackets.Message. Center), Program.GamePool);
}
breakpoint
|
|
|
04/22/2015, 02:16
|
#7
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
|
why do u fully qualify everything, use a using statement holy
|
|
|
04/22/2015, 06:43
|
#8
|
elite*gold: 0
Join Date: Mar 2006
Posts: 598
Received Thanks: 69
|
Quote:
Originally Posted by abdoumatrix
if (monster.Body == 133 & monster.MapID == 1011)
{
Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Conquer_Online_Server.Network.GamePackets.Message( "Ganoderma has Spawn at PhoenixCastle 665, 779).", System.Drawing.Color.White, Conquer_Online_Server.Network.GamePackets.Message. Center), Program.GamePool);
}
if (monster.Body == 153 && monster.MapID == 1020)
{
Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Conquer_Online_Server.Network.GamePackets.Message( "Titan has Spawn at ApeCity(396, 588).", System.Drawing.Color.White, Conquer_Online_Server.Network.GamePackets.Message. Center), Program.GamePool);
}
breakpoint
|
could you help me with this bro?
|
|
|
 |
Similar Threads
|
Help, cant sell Monster Boss Vadamagma in monster Legends
09/19/2014 - Facebook - 13 Replies
well im stupid and should have done more research on this matter
so i tried to use the monster legends tool in which you can buy a monster for 25 gems. being curious i bought boss vadamagma thinking its some kind of stronger version of the monster with the same name
got it and my surprise that it got no attack whatsoever. i tried to delete it but whenever i try to the game force to refresh and he is still there
how do it delete this son of a bitch?
edit: tried to sell it using...
|
Hack Boss Monster in Monster Legends
07/19/2013 - Facebook - 1 Replies
Please, give me the hack of boss monster in Monster legends
https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak -ash3/920371_209949525828043_1806674569_o.jpg
|
Boss or Monster.dat
11/09/2009 - Eudemons Online - 7 Replies
can some1 make us new monster.dat its invalid in patch1033
|
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
|
All times are GMT +1. The time now is 13:50.
|
|