|
You last visited: Today at 12:00
Advertisement
[Release] Adding SuperGemEffect's
Discussion on [Release] Adding SuperGemEffect's within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
05/04/2009, 22:28
|
#1
|
elite*gold: 0
Join Date: May 2008
Posts: 248
Received Thanks: 279
|
[Release] Adding SuperGemEffect's
Hello people, this is my tuturial " How to add SG Effect's! "
For LOTF, Posted Because Pete1990 sort of requested me lawl
Lets start!
Goto Character.cs Find ;
Code:
public void GemEffect()
{
}
Delete it and replace it with ;
Code:
public void GemEffect()
{
int into = 0;
if (Equips[1] != null && Equips[1] != "0")
into = 1;
else if (Equips[2] != null && Equips[2] != "0")
into = 2;
else if (Equips[3] != null && Equips[3] != "0")
into = 3;
else if (Equips[6] != null && Equips[6] != "0")
into = 6;
else if (Equips[8] != null && Equips[8] != "0")
into = 8;
else
return;
string[] item = Equips[into].Split('-');
if (item[4] == "13")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
}
}
if (item[5] == "13")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoegoldendragonnix"));
}
}
if (item[4] == "3")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
if (item[5] == "3")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
if (item[4] == "33")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
if (item[5] == "33")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
if (item[4] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
if (item[5] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
if (item[4] == "63")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
if (item[5] == "63")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
if (item[4] == "43")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
if (item[5] == "43")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
if (item[5] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
if (item[4] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
if (item[4] == "73")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
if (item[4] == "73")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
}
Next go to Client.cs Search
Code:
void TimerElapsed(object source, ElapsedEventArgs e)
After the first " { "
Code:
if (Attacking)
GemEffect();
Attack();
And now u finished Super Gem Effect's!
If u use this click thanks button!
|
|
|
05/04/2009, 22:34
|
#2
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by w00tare
Hello people, this is my tuturial " How to add SG Effect's! "
For LOTF
Lets start!
Goto Character.cs Find ;
Code:
public void GemEffect()
{
}
Delete it and replace it with ;
Code:
public void GemEffect()
{
int into = 0;
if (Equips[1] != null && Equips[1] != "0")
into = 1;
else if (Equips[2] != null && Equips[2] != "0")
into = 2;
else if (Equips[3] != null && Equips[3] != "0")
into = 3;
else if (Equips[6] != null && Equips[6] != "0")
into = 6;
else if (Equips[8] != null && Equips[8] != "0")
into = 8;
else
return;
string[] item = Equips[into].Split('-');
if (item[4] == "13")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
}
}
if (item[5] == "13")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldendragon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoegoldendragonnix"));
}
}
if (item[4] == "3")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
if (item[5] == "3")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "phoenix"));
}
}
if (item[4] == "33")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
if (item[5] == "33")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "rainbow"));
}
}
if (item[4] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
if (item[5] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fastflash"));
}
}
if (item[4] == "63")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
if (item[5] == "63")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "moon"));
}
}
if (item[4] == "43")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
if (item[5] == "43")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "goldenkylin"));
}
}
if (item[5] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
if (item[4] == "53")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "purpleray"));
}
}
if (item[4] == "73")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
if (item[4] == "73")
{
if (Other.ChanceSuccess(10))
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "recovery"));
}
}
}
Next go to Client.cs Search
Code:
void TimerElapsed(object source, ElapsedEventArgs e)
After the first " { "
Code:
if (Attacking)
GemEffect();
Attack();
And now u finished Super Gem Effect's!
If u use this click thanks button!
|
Been released already couple of times.
|
|
|
05/04/2009, 22:39
|
#3
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Good Job
|
|
|
05/04/2009, 22:42
|
#4
|
elite*gold: 0
Join Date: May 2008
Posts: 248
Received Thanks: 279
|
@ damain ; I found only some (not even full) codes in threads, And i dindt say this whas the only thread with SG effect's...
@ Pete ; Thanks
|
|
|
05/04/2009, 23:07
|
#5
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Quote:
Originally Posted by w00tare
@ damain ; I found only some (not even full) codes in threads, And i dindt say this whas the only thread with SG effect's...
@ Pete ; Thanks
|
Just one small Problem For archers if you use Scatter the effects wont work
|
|
|
05/04/2009, 23:12
|
#6
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by w00tare
@ damain ; I found only some (not even full) codes in threads, And i dindt say this whas the only thread with SG effect's...
@ Pete ; Thanks
|
noo way... i've seen it in tonnes of other threads and im there for rlly long and i've seen a lot of them for sure , just search.
|
|
|
05/05/2009, 05:24
|
#7
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Any ideal how to make this work with Scatter? i tryed but didnt work lol.
|
|
|
05/05/2009, 06:31
|
#8
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Here's my way doing it, may help you re-code it:
In attacktype 21;
Quote:
for (int i = 0; i < 10; i++)
{
Extra.Item s = C.MyChar.Equipment[i];
Extra.Gem s1 = s.Soc1;
Extra.Gem s2 = s.Soc2;
if ((int)s.Soc1 % 10 == 3 || (int)s.Soc2 % 10 == 3)
{
string e = "";
if ((int)s1 == 3 || (int)s2 == 3)
e = "phoenix";
else if ((int)s1 == 13 || (int)s2 == 13)
e = "goldendragon";
else if ((int)s1 == 23 || (int)s2 == 23)
e = "lounder1";
else if ((int)s1 == 33 || (int)s2 == 33)
e = "rainbow";
else if ((int)s1 == 43 || (int)s2 == 43)
e = "goldenkylin";
else if ((int)s1 == 53 || (int)s2 == 53)
e = "purpleray";
else if ((int)s1 == 63 || (int)s2 == 63)
e = "moon";
else if ((int)s1 == 73 || (int)s2 == 73)
e = "recovery";
if (Mess.ChanceSuccess(4))
{
C.SendData(Packets.String(C.MyChar.EntityID, 10, e));
}
}
}
|
|
|
|
05/05/2009, 06:48
|
#9
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Quote:
Originally Posted by EmmeTheCoder
Here's my way doing it, may help you re-code it:
In attacktype 21;
|
I dont have Attcktype 21? im useing Lotf Ini files one should it be in Char.cs?
|
|
|
05/05/2009, 06:54
|
#10
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2
Received Thanks: 0
|
thankss
|
|
|
05/05/2009, 06:56
|
#11
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
|
Quote:
Originally Posted by Pete1990
I dont have Attcktype 21? im useing Lotf Ini files one should it be in Char.cs?
|
Lol, yes you do, or else Magic Attacking wouldn't work.
I'm pretty sure its in Character.cs in Lotf (AtkType == 21)
|
|
|
05/05/2009, 07:06
|
#12
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Thank you
|
|
|
05/05/2009, 12:38
|
#13
|
elite*gold: 0
Join Date: May 2008
Posts: 248
Received Thanks: 279
|
Quote:
Originally Posted by kinshi88
Lol, yes you do, or else Magic Attacking wouldn't work.
I'm pretty sure its in Character.cs in Lotf (AtkType == 21)
|
Ok, I will look / update my thread thanks.
|
|
|
05/12/2009, 13:49
|
#14
|
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
|
I cant find
Code:
void TimerElapsed(object source, ElapsedEventArgs e)
|
|
|
05/12/2009, 15:37
|
#15
|
elite*gold: 0
Join Date: Feb 2009
Posts: 59
Received Thanks: 7
|
Quote:
Originally Posted by Vortex.
I cant find
Code:
void TimerElapsed(object source, ElapsedEventArgs e)
|
Same here, I can find it only in Character.cs and Entities.cs...
|
|
|
|
|
Similar Threads
|
[Release/Guide] adding more than 100 pets
07/30/2013 - EO PServer Guides & Releases - 42 Replies
Well seeing as how i kinda put my foot in it already i figured i may as well go ahead and make this thread.
As most of you know we are only supposed to be able to have 100 pets total on our p-servers, Well thats not exactly true.
As we all know there are 8 ids for 1 pet.
example:
1071100
1071101
1071102
|
[Release] Adding Ninja LOTF
07/04/2011 - CO2 PServer Guides & Releases - 73 Replies
You can add (Ninja , New Character ) Items , Skills , NPcs ...... By following the links and info
And i can call it
It isn't code or something like that .. i can help you to add ninja on LOTF (5017)
-------------------
First go to YourConquerFolder/ini/ProfessionalName.ini in it add
50 means Character id . The command will be /job 50 for internNinja
Now you added the character
|
[Release] Old Explorer V2 (Adding Instructions)
09/25/2009 - CO2 PServer Guides & Releases - 3 Replies
Here is an update to Old Explorer, he now charges 100 cps to get to meteor zone.
Place in GameServer Handlers NpcTalk.cs
#region Old Explorer
case 999:
{
if (LinkBack == 0)
{
Face(30, CSocket);
|
[Release]adding npc giving +12 item
08/09/2009 - CO2 PServer Guides & Releases - 19 Replies
hi guys i will tell you how to add npc in CoEmu v2.0
first source side
go to handlers then npctalk.cs
search for
case 390:
before add
|
[Release] Adding Form to your Server
09/21/2008 - CO2 Private Server - 35 Replies
You wanna have an Form like on CoFuture?
-Then you are here right.
Info: Says nothing about my English, I've tried my best
1) Create a new form "Control.cs"
2) Look in General.cs for:
"public static System.IO.StreamWriter sw = new System.IO.StreamWriter(Application.StartupPath + @"\ServerLog.txt", true);"
|
All times are GMT +2. The time now is 12:00.
|
|