|
You last visited: Today at 16:00
Advertisement
Cool Effect
Discussion on Cool Effect within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
01/09/2010, 16:21
|
#1
|
elite*gold: 0
Join Date: Sep 2006
Posts: 36
Received Thanks: 27
|
Cool Effect
Works now, try it you want it on your server.
Here's the code I added in Characters.cs
Code:
if (Action == 230)//Cool Effect
{
if (Job >= 10 && Job <= 15)//Trojan Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "warrior"));
Action = 100;
}
if (Job >= 40 && Job <= 45)//Archer Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "archer"));
Action = 100;
}
if (Job >= 20 && Job <= 25)//Warrior Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "fighter"));
Action = 100;
}
if (Job >= 132 && Job <= 135)//Water Tao Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "taoist"));
Action = 100;
}
if (Job >= 142 && Job <= 145)//Fire Tao Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "taoist"));
Action = 100;
}
if (Job == 100 || Job == 101)//Tao Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "taoist"));
Action = 100;
}
if (Job >= 10 && Job <= 15)//Trojan Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "warrior-s"));
Action = 100;
}
if (Job >= 40 && Job <= 45)//Archer Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "archer-s"));
Action = 100;
}
if (Job >= 20 && Job <= 25)//Warrior Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "fighter-s"));
Action = 100;
}
if (Job >= 132 && Job <= 135)//Water Tao Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "taoist-s"));
Action = 100;
}
if (Job >= 142 && Job <= 145)//Fire Tao Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "taoist-s"));
Action = 100;
}
if (Job == 100 || Job == 101)//Tao Cool
{
MyClient.AddSend(Packets.String(EntityID, 10, "taoist-s"));
Action = 100;
}
}
}
I put it at the bottom above this
Code:
catch (Exception Exc) { Program.WriteLine(Exc); }
It is basically a copy/paste from PazeCo source with some changes.
EDIT: Works now with this code, follow those directions and your all set.
|
|
|
01/09/2010, 16:38
|
#2
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
great  bro
|
|
|
01/09/2010, 16:40
|
#3
|
elite*gold: 0
Join Date: Jan 2010
Posts: 3,617
Received Thanks: 460
|
nice.. Thx..
|
|
|
01/09/2010, 16:59
|
#4
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Code:
if(Action == 230)
{
// Cool effects
}
else // There shouldn't be an else.
Simple.
|
|
|
01/09/2010, 17:19
|
#5
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by ImmuneOne
Code:
if(Action == 230)
{
// Cool effects
}
else // There shouldn't be an else.
Simple.
|
lol I got a simple prob that I need help with...when I copy/pasted (i'm a noob i know...) this into the character.cs the last things suddenly got underlined red o.0...any reason why or where should I put it? thnx
|
|
|
01/09/2010, 17:45
|
#6
|
elite*gold: 0
Join Date: Sep 2006
Posts: 36
Received Thanks: 27
|
Quote:
Originally Posted by ImmuneOne
Code:
if(Action == 230)
{
// Cool effects
}
else // There shouldn't be an else.
Simple.
|
Fixed and thanks, now a bit more testing and I'll have it working 100% then onto gem effects.
|
|
|
01/09/2010, 18:01
|
#7
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
good work hanibal keep it up
|
|
|
01/09/2010, 18:23
|
#8
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
dont u gotah make an if statement checking if ur wearing full super?
|
|
|
01/09/2010, 18:28
|
#9
|
elite*gold: 0
Join Date: Sep 2006
Posts: 36
Received Thanks: 27
|
Quote:
Originally Posted by -Shunsui-
dont u gotah make an if statement checking if ur wearing full super?
|
Most p servers give out free supers so I don't see it being needed and when I tried to add that from the paze source to this one it caused errors I didn't feel like fixing, was just trying to get it to work and well it does, thanks again ImmuneOne for that simple fix.
|
|
|
01/09/2010, 18:52
|
#10
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Quote:
Originally Posted by -Shunsui-
dont u gotah make an if statement checking if ur wearing full super?
|
Totally what I was thinking lol.
easy enough to do though. I assume lotf has some sort of quality detection calculation for use in upgrades? If so just add a if statement checking equipment slots and it would work just as well.
Ooh, you may also want to add a cooldown... if not wouldn't you end up with people being able to spam super effects by toggling between 2 actions? That could be rather annoying.
|
|
|
01/09/2010, 21:05
|
#11
|
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
|
THANK YOU!!!
|
|
|
01/10/2010, 01:22
|
#12
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Just check how the cool effects are being done in conqueremu and try to convert it.
|
|
|
01/10/2010, 02:04
|
#13
|
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
|
if (Equipt != null) I thought maybe this kind of thing should be placed in there somewhere but MEH I added it and it did nothing rofl.
Before anybody starts laughing at me for it for whatever reasons remember I am working blindly without knowing what it means. This kind of thing though still helped me sort the marriage **** lol
|
|
|
01/10/2010, 04:26
|
#14
|
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
|
oeioeie, this is my code, is not complete...
First > Create file Cool Effects.cs and add
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NewestCOServer.PacketHandling
{
class CoolEffect
{
public static void ActiveCool(Main.GameClient MyClient)
{
Game.Item I = MyClient.MyChar.Equips.Get(3);
Game.ItemIDManipulation Q = new NewestCOServer.Game.ItemIDManipulation(I.ID);
if (Q.Quality == NewestCOServer.Game.Item.ItemQuality.Super)
{
if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior-s"));
if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter-s"));
if (MyClient.MyChar.Job >= 100)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist-s"));
if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer-s"));
}
if (MyClient.MyChar.AllSuper == true)
{
if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior"));
if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior"));
if (MyClient.MyChar.Job >= 100)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist"));
if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer"));
}
MyClient.MyChar.Action = 100;
}
}
}
Need create a variable to check the others position of equips!
|
|
|
01/10/2010, 04:29
|
#15
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by felipeboladao
...
|
Looks like for your code all you need to do now is make a definiton for AllSuper?
|
|
|
 |
|
Similar Threads
|
PurpLe CooL EffecT .. !
06/17/2010 - CO2 Weapon, Armor, Effects & Interface edits - 9 Replies
PurpLe CooL Effect ...
Created ßy Me|TQ.SeLeNa ... x)
http://i48.tinypic.com/152p6r9.jpg
|
ninja cool effect
06/12/2010 - CO2 Weapon, Armor, Effects & Interface edits - 6 Replies
does any of you have a ninja effect if so...can you share it with us
I can't seem to work it out.. I have a full super gear
|
help me to find the cool effect in c3 folder
02/14/2010 - Conquer Online 2 - 1 Replies
i need the original cool effect for the trojan the yellow one
can any one tell me how can i find it in the c3 in real co folder
|
[RELEASE] Cool Effect
09/18/2009 - CO2 PServer Guides & Releases - 20 Replies
Hey guys, was bored and thought I would release this. So let's get started.
In character.cs at line 100 add
in the "void TimerElapsed(object source, ElapsedEventArgs e)" you should find something like
|
Red Cool Trojan Effect?
06/19/2007 - Conquer Online 2 - 0 Replies
Can someone link me to this please? It matches my weapons etc. but can't seem to find it :( I would do one myself but my photoshop isn't letting me edit things :/
|
All times are GMT +1. The time now is 16:00.
|
|