this is for both lotf and coemu
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 CoolEffects 2.0

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts : 56
Join date : 2009-08-20

PostSubject: CoolEffects 2.0   Sun Aug 23, 2009 1:00 pm

this is from project samhaven the forums is not dead i think so i'll post them on here. so credits to the samhaven forums

[GUIDE] editing cool effects!
Well i was looking around and i found that i am not sure if it works or not but the people tryed tolled me it works well so here you go..

In character.cs at line 100 add

Code:

public bool AllSuper = false;


in the "void TimerElapsed(object source, ElapsedEventArgs e)" you should find something like

Code:

if (Action == 250)


after it add

Code:

if (Action == 100)
if (Stamina < 100)
{
Stamina += 5;
if (Stamina > 100)
Stamina = 100;
MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina));
}
if (Action == 230)
{
if (Equips[3] != null)
{
FullSuper();
string TheEquip = Equips[3];
string[] Splitter = TheEquip.Split('-');
uint ItemId = uint.Parse(Splitter[0]);
if (Other.ItemQuality(ItemId) == 9 && (Equips[1] != null || Equips[4] == null) && (Equips[2] != null || Equips[2] == null) && (Equips[4] != null || Equips[4] == null) && (Equips[8] != null || Equips[8] == null) && (Equips[6] != null || Equips[6] == null))
{
if (Job <= 16 && Job >= 9)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
Action = 100;
}
if (Job <= 26 && Job >= 19)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
Action = 100;

}
if (Job <= 46 && Job >= 39)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
Action = 100;
}
if (Job <= 146 && Job >= 100)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
Action = 100;
}
}
if (AllSuper == true && Other.ItemQuality(ItemId) == 9 && Equips[1] != null && Equips[2] != null && Equips[3] != null && Equips[4] != null && Equips[8] != null && Equips[6] != null)
{
if (Job <= 16 && Job >= 9)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior"));
Action = 100;
}
if (Job <= 26 && Job >= 19)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter"));
Action = 100;

}
if (Job <= 46 && Job >= 39)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer"));
Action = 100;
}
if (Job <= 146 && Job >= 100)
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Chaar = (Character)DE.Value;
if (Chaar.Name != Name)
{
Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist"));
}
}
MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist"));
Action = 100;
}
}
}
}




search for public Character()
before it add


Code:

public void FullSuper()
{
if (Equips[1] != null && Equips[2] != null && Equips[3] != null && Equips[4] != null && Equips[8] != null && Equips[6] != null)
{
string TheEquip1 = Equips[1];
string TheEquip2 = Equips[2];
string TheEquip3 = Equips[3];
string TheEquip4 = Equips[4];
string TheEquip8 = Equips[8];
string TheEquip6 = Equips[6];

string[] Splitter1 = TheEquip1.Split('-');
uint ItemId1 = uint.Parse(Splitter1[0]);

string[] Splitter2 = TheEquip2.Split('-');
uint ItemId2 = uint.Parse(Splitter2[0]);

string[] Splitter3 = TheEquip3.Split('-');
uint ItemId3 = uint.Parse(Splitter3[0]);

string[] Splitter4 = TheEquip4.Split('-');
uint ItemId4 = uint.Parse(Splitter4[0]);

string[] Splitter8 = TheEquip8.Split('-');
uint ItemId8 = uint.Parse(Splitter8[0]);

string[] Splitter6 = TheEquip6.Split('-');
uint ItemId6 = uint.Parse(Splitter6[0]);

if (Other.ItemQuality(ItemId1) == 9 && Other.ItemQuality(ItemId2) == 9 && Other.ItemQuality(ItemId3) == 9 && Other.ItemQuality(ItemId4) == 9 && Other.ItemQuality(ItemId8) == 9 && Other.ItemQuality(ItemId6) == 9)
{
AllSuper = true;
}
}
}
Back to top Go down
View user profile http://openprojects.forumotions.net
 
CoolEffects 2.0
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
lotf/coemu project :: LOTF :: Codes-
Jump to: