There is a huge problem in the 5165 source regarding effects: they're all client side, meaning only the person who set it off can see them! Use my code to launch an effect:
Code:
if (Cmd[0] == "/effect")
{
Game.World.Effect = Cmd[1];
foreach (Game.Character Player in Game.World.H_Chars.Values)
{
Player.MyClient.AddSend(Packets.String(Player.EntityID, 10, Game.World.Effect));
}
}
Ok, so the problem is, we need to code some kind of class that will make effects appear on everyone's screens that are within range. Right now, if you set off an effect, even from a normal skill, it will only appear on your screen. This wouldn't be such a huge problem if it didn't mess with mostly all of the features in Conquer Online. =\
At the moment, these are the features being affected:
Marriage Fireworks
Skill Effects (including mount steed, shield, etc)
Fireworks from the Market
NightDevil and transformation effects
Night and Day Command
Flower Effects
and probably a lot more that I can't remember right now.
So I'm going to start us off, we all know that the "Level Up" effect is an effect that everyone can see. I'm trying to locate it right now, but if anyone is faster than i am, POST IT!
I will update this post every time we get further along.
Good Luck everyone! I'm sure we can all figure this out together!
(The effect above is NightDevil which is only a transformation as seen by the Person who performed the spell)
if (Cmd[0] == "/effect")
{
foreach (Game.Character Player in Game.World.H_Chars.Values)
{
Player.MyClient.AddSend(Packets.String(Player.EntityID, 10, Cmd[1]));
}
}
Try?
OMG! U're MAGIC!
So this in the fireworks release and all of the effect releases
MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "firework-1love"));
Should be replaced with stuff like that code?
**** dude! HIGH FIVE (i'm a noob - but i think that rocks.) lol
But there's a second part to the problem:
Lets say we have my character (Fang) who has a fairy going around him using one of the effects. How do we target players so that the effect is on one person BUT everyone can see?
So this in the fireworks release and all of the effect releases
MyClient.AddSend(Packets.String(MyClient.MyChar.En tityID, 10, "firework-1love"));
Should be replaced with stuff like that code?
**** dude! HIGH FIVE (i'm a noob - but i think that rocks.) lol
But there's a second part to the problem:
Lets say we have my character (Fang) who has a fairy going around him using one of the effects. How do we target players so that the effect is on one person BUT everyone can see?
When would I use this? To target an individual that has the effect but everyone can see it? =\?
Quote:
Originally Posted by .Arco
The effect command I gave you works for EVERY command just so you know.
I WOULD use your command for effects like fireworks and roses... but i tested it on my server and all my beta testers on any map can see it. How can I prevent that?
EDIT: I came up with this:
Code:
if (Cmd[0] == "/effect")
{
foreach (Game.Character Player in Game.World.H_Chars.Values)
{
if (Player.Loc.Map == GC.MyChar.Loc.Map)
{
if (MyMath.InBox(GC.MyChar.Loc.X, GC.MyChar.Loc.Y, Player.Loc.X, Player.Loc.Y, 12))
Player.MyClient.AddSend(Packets.String(Player.EntityID, 10, Cmd[1]));
}
}
}
Still no idea how to make that a firework though to replace this file:
Code:
#region Firwork
case 720030:
{
RemoveItem(I);
{
foreach (Game.Character Player in Game.World.H_Chars.Values)
{
Player.MyClient.AddSend(Packets.String(Player.EntityID, 10, "firework-like"));
}
}
}
break;
#endregion
Well, we got fireworks working now with the help of this thread:
Now the only remaining effects problem that we need to conquer is how to make it so that an effect is targeted meaning someone can be standing by you and see an effect go off on you instead of themselves. (Fireworks over their head for example - not that we want this effect to happen BUT let just use it as an example.)
So ramix, what exactly does your code do? "World.Action" means that it will effect all maps and all characters right?
Well, we got fireworks working now with the help of this thread:
Now the only remaining effects problem that we need to conquer is how to make it so that an effect is targeted meaning someone can be standing by you and see an effect go off on you instead of themselves. (Fireworks over their head for example - not that we want this effect to happen BUT let just use it as an example.)
So ramix, what exactly does your code do? "World.Action" means that it will effect all maps and all characters right?
Code:
if (Cmd[0] == "/effect")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
{
foreach (Game.Character Player in Game.World.H_Chars.Values)
{
C.MyClient.AddSend(Packets.String(C.EntityID, 10, Cmd[2]));
}
}
}
Try that, not 100% sure it will work as its untested.
ex:/effect Arco effectname
Then have something else that will read from that list and send the effect packets of all active effects in MyClient to TheirClient using
Code:
public static void Action(Character C, byte[] Data)
{
try
{
foreach (Character CC in H_Chars.Values)
{
if (CC.Loc.Map == C.Loc.Map && MyMath.InBox(C.Loc.X, C.Loc.Y, CC.Loc.X, CC.Loc.Y, 20))
CC.MyClient.AddSend(Data);
}
}
catch { }
}
I think that would work... ish? Ish if at all? -.-
I've found nothing that would tell me NCS is currently capable of reading the current effects of MyClient and send the same effects to TheirClient within a range of 20.... but then again, I really don't even know what I'm looking for
... I'm thinking too damn hard now...
Does anyone know what I'm talking about more than me?
I'm thinking of the new KGB commercial now. I've got my head up my 'you know what'.....
But I'm learning
From the inside of my 'you know what' I guess ...
Anyway, if this was made to work... It wouldn't just make /effect viewable to all other clients.
It would fix gem,bless... cool... All effects. But the scripts that initialize those effects would have to be re written to write to the array list and then cleared when the effect is over..?
Well, we got fireworks working now with the help of this thread:
Now the only remaining effects problem that we need to conquer is how to make it so that an effect is targeted meaning someone can be standing by you and see an effect go off on you instead of themselves. (Fireworks over their head for example - not that we want this effect to happen BUT let just use it as an example.)
So ramix, what exactly does your code do? "World.Action" means that it will effect all maps and all characters right?
yes all characters can see your effect... that works for me i tested... i chance in cool effect too for all characters see the effect
Better Cool and Super Cool Effects for 5165 source 10/13/2011 - CO2 PServer Guides & Releases - 26 Replies Hello all.
Here is my code for better procedure for Cool Effects for 5165 source.
it's work good like 90pct same at global CQ.
For perfectly working we need add some checks for all class 1h-2hweapons handled.
Open Characters.cs file and find:
if (Vigor < MaxVigor)
Vigor += 6;
if (!GettingLuckyTime)
[request] 5165 soul gear with effects 07/02/2010 - CO2 Private Server - 8 Replies Well just like the threads name says i need soul gear for the 5165 source
Someone of our staff is working his ass off to get the soul gear tho he does not know how to convert .wdb files..
does anybody have an link or any ideah on how to fix this problem.
Also an direct link with soul gear and the effects that can be implemented is welcome.
I will be verry thankfull and im pretty sure that alot of 5165 source owners would be happy with it :)
Our site is www.crankco.nl and we are...
Effects. 5165 01/11/2010 - CO2 Private Server - 8 Replies Hello. I serch and can't find cool , lucky , and super gems effect can somebody help me make it ? Also need to fix pvp and blessing i thing about Revive Here.
Thanks and greet kacol.