|
You last visited: Today at 00:29
Advertisement
[Coding] Cool Effects
Discussion on [Coding] Cool Effects within the CO2 Private Server forum part of the Conquer Online 2 category.
08/24/2008, 12:30
|
#1
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
[Coding] Cool Effects
Completed.
|
|
|
08/24/2008, 12:34
|
#2
|
elite*gold: 0
Join Date: Aug 2006
Posts: 227
Received Thanks: 57
|
haha only you can see the Effect.
On my Server everybody can see it :P
|
|
|
08/24/2008, 12:37
|
#3
|
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
|
Quote:
Originally Posted by keving
haha only you can see the Effect.
On my Server everybody can see it :P
|
thats a very simple adjustment, anyone can do it.
|
|
|
08/24/2008, 12:41
|
#4
|
elite*gold: 0
Join Date: Aug 2006
Posts: 227
Received Thanks: 57
|
Sure its simple but not anybody knows how to code
|
|
|
08/24/2008, 13:14
|
#5
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
@keving
I know how to make so everyone can see it, I know how to completely finish it.
What I posted is just the basic, so that people can help me with what I need; to make it so the effect only happens once.
If you have done it, then can you help me with my simple request?
|
|
|
08/24/2008, 13:15
|
#6
|
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
|
Quote:
Originally Posted by kinshi88
I've been working on the cool effects and, for the most part, I got them working.
I just can't figure out how to make the cool effect only happen once.
This is what I have so far:
Code:
if (Action == 230)//Cool Effect
{
string TheEquip = Equips[3];
string[] Splitter = TheEquip.Split('-');
uint ItemId = uint.Parse(Splitter[0]);
int ClassType = (int)Job;
if (Other.ItemQuality(ItemId) == 9)
{
if (Job == 10 || Job == 11 || Job == 12 || Job == 13 || Job == 14 || Job == 15)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
}
if (Job == 40 || Job == 41 || Job == 42 || Job == 43 || Job == 44 || Job == 45)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
}
if (Job == 20 || Job == 21 || Job == 22 || Job == 23 || Job == 24 || Job == 25)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
}
if (Job == 132 || Job == 133 || Job == 134 || Job == 135)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
if (Job == 142 || Job == 143 || Job == 144 || Job == 145)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
if (Job == 100 || Job == 101)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
}
}
I've tried with cases, but they wouldn't work.
Any help would be greatly appreciated.
|
lol...after 1 thing like : MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
add Action = 100;
|
|
|
08/24/2008, 13:29
|
#7
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Yes I have thought of that. But that means that the player cannot use cool while doing cool, like in Official Conquer.
|
|
|
08/24/2008, 17:07
|
#8
|
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
|
lol...what do u mean?
|
|
|
08/24/2008, 20:44
|
#9
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Nevermind, I wasn't thinking last night =P
Code:
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
Action = 100;
Works perfect, thanks. I'll release when I'm done.
|
|
|
08/24/2008, 21:00
|
#10
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
Easier?
Code:
if (Action == 230)//Cool Effect
{
string TheEquip = Equips[3];
string[] Splitter = TheEquip.Split('-');
uint ItemId = uint.Parse(Splitter[0]);
int ClassType = (int)Job;
if (Other.ItemQuality(ItemId) == 9)
{
if (Job >= 10 && Job <= 15)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
}
if (Job >= 40 && Job <= 45)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
}
if (Job >= 20 && Job <= 25)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
}
if (Job >= 132 && Job <= 135)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
if (Job >= 142 && Job <= 145)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
if (Job == 100 || Job == 101)
{
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
}
}
|
|
|
08/24/2008, 21:39
|
#11
|
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
|
Quote:
Originally Posted by kinshi88
Nevermind, I wasn't thinking last night =P
Code:
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
Action = 100;
Works perfect, thanks. I'll release when I'm done.
|
You`re welcome!
|
|
|
08/25/2008, 01:28
|
#12
|
elite*gold: 0
Join Date: Oct 2006
Posts: 40
Received Thanks: 0
|
Hey, I did this and works well, BUT, I got an error at that :
string[] Splitter = TheEquip.Split('-');
help ?
|
|
|
08/25/2008, 05:55
|
#13
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Actually, doesn't work perfect, but, meh =P
Works just fine.
|
|
|
08/25/2008, 14:15
|
#14
|
elite*gold: 40
Join Date: Sep 2006
Posts: 1,890
Received Thanks: 805
|
can you post the finial product?
|
|
|
08/25/2008, 15:42
|
#15
|
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
|
How to show the Effect to everyone?
|
|
|
 |
|
Similar Threads
|
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)
|
[HELLP] anyone can give me cool code(cool off super or full super only)5165
01/22/2010 - CO2 Private Server - 6 Replies
I really need it!5165:confused::confused::confused:
|
Release: Cool effects.Everyone see them.
05/06/2009 - CO2 PServer Guides & Releases - 34 Replies
Well...because a lot of ppl...was waiting for it..and because i stopped coding....im gonna post it.
here it comes:
In character.cs at line 100 add
public bool AllSuper = false;
in the "void TimerElapsed(object source, ElapsedEventArgs e)" you should find something like
if (Action == 250)
|
Taoist Cool Move Effects
10/20/2006 - Conquer Online 2 - 27 Replies
open folder conquer/c3/effects then paste overwrite
|
All times are GMT +1. The time now is 00:29.
|
|