[Help] Gems (CoEmu v2)

09/05/2009 20:44 12tails#1
Hi!

I'm making the Gens calculations... so take a look (who wanna help me)
and uhhh..... i wanna to know if i'm making then right!


Glory Gem:
I maked that Definitions:

Code:
        public int NGG = 0;
        public int RGG = 0;
        public int SGG = 0;

also that are the calculations:

Code:
            if (CSocket.Client.NGG > 0)
            {
                MaxAdd += CSocket.Client.Defense + 100;
                MagicAdd += CSocket.Client.MagicDefense + 100;
            }
            if (CSocket.Client.RGG > 0)
            {
                MaxAdd += CSocket.Client.Defense + 300;
                MagicAdd += CSocket.Client.MagicDefense + 300;
            }
            if (CSocket.Client.SGG > 0)
            {
                MaxAdd += CSocket.Client.Defense + 500;
                MagicAdd += CSocket.Client.MagicDefense + 500;
            }
            CSocket.Client.Defense += MaxAdd;
            CSocket.Client.MagicDefense += MagicAdd;
and this are the cases at ItemEquip.cs:

Code:
                        case 121:
                            {
                                CSocket.Client.NGG++;
                                break;
                            }
                        case 122:
                            {
                                CSocket.Client.RGG++;
                                break;
                            }
                        case 123:
                            {
                                CSocket.Client.SGG++;
                                break;
                            }
Edit:
Forgort it: and i maked one at packet processor too:

Code:
                                                case 121:
                                                    {
                                                        CSocket.Client.NGG++;
                                                        break;
                                                    }
                                                case 122:
                                                    {
                                                        CSocket.Client.RGG++;
                                                        break;
                                                    }
                                                case 123:
                                                    {
                                                        CSocket.Client.SGG++;
                                                        break;
                                                    }
i wanna to know if are right!! just it .. to continue making the others... or if i need to make more things...

waiting answers ... thanks to EPVPers members..
09/05/2009 21:16 hunterman01#2
Isnt this like the same exact post i made a long ass time ago?
09/05/2009 21:30 12tails#3
i searched and don't find anything about... so i maked that thread
: X
09/05/2009 21:53 samehvan#4
what help u need , the code looks fine ,the only thing i may say as an advice is that too much variables for one sort of gems ,that wont make any errors of course but will eat your Ram :p
so i think u can make it like
one variable for Glorygems (if normal then Character.GloryGems+=100,refine 300 super 500)
and same for ThunderGems

that will save you some free memory ,but ur code still good , ty
09/05/2009 22:15 12tails#5
also samehvan... i've another question...

my tornado don't hit players... only guards and mobs... and yhe spirit healing / meditation works only if i kill one player... how to solve that?
09/05/2009 22:36 samehvan#6
Quote:
Originally Posted by 12tails View Post
also samehvan... i've another question...

my tornado don't hit players... only guards and mobs... and yhe spirit healing / meditation works only if i kill one player... how to solve that?
for Tornado i think it's case doesn't have the Clients check or it's MagicCost case has some invalid values

do u have the Spirit and med at the Magic cases or someplace else ?
09/05/2009 22:48 12tails#7
smahvan... i've send a pv msg to u... please take a look and help : X
09/05/2009 23:14 samehvan#8
Quote:
Originally Posted by 12tails View Post
smahvan... i've send a pv msg to u... please take a look and help : X
done
09/05/2009 23:25 12tails#9
also about shuriken vortex can u help me with it?