[Release] CoolEffects Update...

03/02/2010 09:08 ramix#16
dont work why? -.-

in mine works all players can see
03/02/2010 10:27 kamote#17
Quote:
Originally Posted by killersub View Post
pardon my newbie error XD...

I get this error



btw nice job
just change it to NewestCOServer or the namespace you use in your project...


Quote:
Originally Posted by -NewDawn- View Post
I tried yours first. lol, didn't work for me.
Are you sure it goes in the Features folder Arco?
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();   
        }
    }
}
03/02/2010 15:01 Arcо#18
Quote:
Originally Posted by -NewDawn- View Post
I tried yours first. lol, didn't work for me.
Are you sure it goes in the Features folder Arco?
Try packethandling.
03/02/2010 15:34 -NewDawn-#19
Quote:
Originally Posted by kamote View Post
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();   
        }
    }
}
Quote:
Originally Posted by .Arco View Post
Try packethandling.
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.
03/02/2010 21:54 chester6#20
Can you publish some screenshots to see the effects?
03/02/2010 22:32 -NewDawn-#21
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.
03/02/2010 22:43 chester6#22
Ramix- in your post about Ethereal... where i should put the code? Into NPCs.dialog?
03/02/2010 23:42 ramix#23
yes you need put in npcdialog.cs...

and -newdawn- go see the release cool effect by glove... because this is only update for ppl see the cool effect ;)
03/03/2010 01:35 kamote#24
Quote:
Originally Posted by -NewDawn- View Post
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.
did you try to execute the Cool function in your client? the effect will occur when player activated the Cool Effect in their client...
03/03/2010 07:51 killerbee#25
awesome been waiting for it. thanks
how can you make it so others can see your SuperGem effects?
03/03/2010 08:57 kamote#26
Quote:
Originally Posted by killerbee View Post
awesome been waiting for it. thanks
how can you make it so others can see your SuperGem effects?
can you post your SuperGem Effect code here?
03/03/2010 08:57 ramix#27
Quote:
Originally Posted by -NewDawn- View Post
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 cooleffect

[Only registered and activated users can see links. Click Here To Register...]
03/04/2010 01:34 felipeboladao#28
good, full work ;D
03/04/2010 04:10 kamote#29
Quote:
Originally Posted by felipeboladao View Post
good, full work ;D
great!
03/04/2010 09:16 ramix#30
is there the supergems effect for all see


Code:
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
            }
        }
    }
}