dont work why? -.-
in mine works all players can see
in mine works all players can see
just change it to NewestCOServer or the namespace you use in your project...Quote:
pardon my newbie error XD...
I get this error
btw nice job
No, it should be in PacketHandling... try this full code..Quote:
I tried yours first. lol, didn't work for me.
Are you sure it goes in the Features folder Arco?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace NewestCOServer.PacketHandling
{
class CoolEffect
{
public static void ActiveCool(Main.GameClient MyClient)
{
byte counter = 0;
for (byte i = 1; i < 9; i++)
{
if (i == 7) i++;
Game.Item I = MyClient.MyChar.Equips.Get(i);
if (I.ID != 0)
{
Game.ItemIDManipulation Q = new NewestCOServer.Game.ItemIDManipulation(I.ID);
if (Q.Quality == Game.Item.ItemQuality.Super)
counter += 1;
}
}
if (MyClient.MyChar.Job >= 100)
if (counter == 6)
counter = 7;
if (MyClient.MyChar.Job >= 40 && MyClient.MyChar.Job <= 45)
if (counter == 6)
{
Game.Item I = MyClient.MyChar.Equips.Get(5);
I.ID = MyClient.MyChar.Equips.LeftHand.ID;
if (I.ID == 0)
counter = 7;
}
new Thread(delegate()
{
foreach (Game.Character CC in Game.World.H_Chars.Values)
{
if (CC.Loc.Map == MyClient.MyChar.Loc.Map && MyMath.InBox(MyClient.MyChar.Loc.X, MyClient.MyChar.Loc.Y, CC.Loc.X, CC.Loc.Y, 100))
{
if (counter == 7)
{
if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior"));
else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter"));
else if (MyClient.MyChar.Job >= 100)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist"));
else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer"));
else if (MyClient.MyChar.Job >= 50 && MyClient.MyChar.Job <= 55)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "Ninja120"));
}
else
{
if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior-s"));
else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter-s"));
else if (MyClient.MyChar.Job >= 100)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist-s"));
else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer-s"));
else if (MyClient.MyChar.Job >= 50 && MyClient.MyChar.Job <= 55)
CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "Ninja120"));
}
}
MyClient.MyChar.Action = 100;
}
}).Start();
}
}
}
Quote:
just change it to NewestCOServer or the namespace you use in your project...
No, it should be in PacketHandling... try this full code..
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace NewestCOServer.PacketHandling { class CoolEffect { public static void ActiveCool(Main.GameClient MyClient) { byte counter = 0; for (byte i = 1; i < 9; i++) { if (i == 7) i++; Game.Item I = MyClient.MyChar.Equips.Get(i); if (I.ID != 0) { Game.ItemIDManipulation Q = new NewestCOServer.Game.ItemIDManipulation(I.ID); if (Q.Quality == Game.Item.ItemQuality.Super) counter += 1; } } if (MyClient.MyChar.Job >= 100) if (counter == 6) counter = 7; if (MyClient.MyChar.Job >= 40 && MyClient.MyChar.Job <= 45) if (counter == 6) { Game.Item I = MyClient.MyChar.Equips.Get(5); I.ID = MyClient.MyChar.Equips.LeftHand.ID; if (I.ID == 0) counter = 7; } new Thread(delegate() { foreach (Game.Character CC in Game.World.H_Chars.Values) { if (CC.Loc.Map == MyClient.MyChar.Loc.Map && MyMath.InBox(MyClient.MyChar.Loc.X, MyClient.MyChar.Loc.Y, CC.Loc.X, CC.Loc.Y, 100)) { if (counter == 7) { if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior")); else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter")); else if (MyClient.MyChar.Job >= 100) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist")); else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer")); else if (MyClient.MyChar.Job >= 50 && MyClient.MyChar.Job <= 55) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "Ninja120")); } else { if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior-s")); else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter-s")); else if (MyClient.MyChar.Job >= 100) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist-s")); else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer-s")); else if (MyClient.MyChar.Job >= 50 && MyClient.MyChar.Job <= 55) CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "Ninja120")); } } MyClient.MyChar.Action = 100; } }).Start(); } } }
Ok, I will later- I'm going to class now. I'll tell you if it works. If you are are quite sure it will work then it probably will. I'm starting to remember seeing Thread in Packethandling now too.Quote:
Try packethandling.
did you try to execute the Cool function in your client? the effect will occur when player activated the Cool Effect in their client...Quote:
still doesn't work.
I put it in PacketHandling.
Nothing happens still...
EDIT: Oh, btw... I deleted Talismans. Would that have any effect on it? I don't think it would since it should at least do the small effect.
EDIT EDIT: And my signature isn't me with the cool effect. It's me commanding the effect to appear. It still doesn't work.
go to this topic to active the cool effect this topic is only update for all ppl see your cooleffectQuote:
still doesn't work.
I put it in PacketHandling.
Nothing happens still...
EDIT: Oh, btw... I deleted Talismans. Would that have any effect on it? I don't think it would since it should at least do the small effect.
EDIT EDIT: And my signature isn't me with the cool effect. It's me commanding the effect to appear. It still doesn't work.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using NewestCOServer.Game;
namespace NewestCOServer.Features
{
class GemEffect
{
public static void GemEffects(Game.Item.Gem Gem, Main.GameClient GC)
{
switch (Gem)
{
#region GemEffects
case Game.Item.Gem.SuperDragonGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "goldendragon").Get);
break;
}
case Game.Item.Gem.SuperPhoenixGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "phoenix").Get);
break;
}
case Game.Item.Gem.SuperRainbowGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "rainbow").Get);
break;
}
case Game.Item.Gem.SuperMoonGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "moon").Get);
break;
}
case Game.Item.Gem.SuperFuryGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "fastflash").Get);
break;
}
case Game.Item.Gem.SuperKylinGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "goldenkylin").Get);
break;
}
case Game.Item.Gem.SuperVioletGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "purpleray").Get);
break;
}
case Game.Item.Gem.SuperTortoiseGem:
{
if (MyMath.ChanceSuccess(1.0))
Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "recovery").Get);
break;
}
#endregion
}
}
}
}