Hidden Atributes in weapons

01/23/2010 16:30 glover#1
Hi all.

Here is a simple code how to make the hidden attribute of the item.

Open your Chat.cs file.
In function /item" try find:
Code:
I.Effect = NewestCOServer.Game.Item.RebornEffect.None;
Now replace this line with my code:

Code:
                                try
                                {
                                    if (Cmd[8] == "Poison")
                                    {
                                        I.Effect = NewestCOServer.Game.Item.RebornEffect.Poison;
                                    }
                                    else if (Cmd[8] == "HP")
                                    {
                                        I.Effect = NewestCOServer.Game.Item.RebornEffect.HP;
                                    }
                                    else if (Cmd[8] == "MP")
                                    {
                                        I.Effect = NewestCOServer.Game.Item.RebornEffect.MP;
                                    }
                                    else if (Cmd[8] == "Shield")
                                    {
                                        I.Effect = NewestCOServer.Game.Item.RebornEffect.Shield ;
                                    }
                                    else if (Cmd[8] == "Horsie")
                                    {
                                        I.Effect = NewestCOServer.Game.Item.RebornEffect.Horsie;
                                    }
                                    else
                                        I.Effect = NewestCOServer.Game.Item.RebornEffect.None;
                                }
                                catch { }
Try to get item with a Hidden atribute, use this command:

/item BuriedBlade Super 12 7 255 13 13 Poison

Other commands is: Shield, HP, MP.
You can add it into your 2 rb code as a reward item.
Now you need to write source code to use this function in your attack when you use this item.
01/23/2010 16:32 Vultix#2
Good Job!
01/23/2010 17:19 killersub#3
can prove really helpful for most newbies(like me) Thanks!
01/23/2010 18:15 stiwen#4
yup very nice :D
01/23/2010 18:58 .Ryu#5

Wow now this is a very goodjob :D
01/23/2010 20:15 ~*NewDuuDe*~#6
Urm, this is not the actual hidden attributes, it is just text on the weapon.
And why are you using the try/catch block in a command for effects? That's completely useless, all it does is take up memory.
01/23/2010 20:23 glover#7
Quote:
Originally Posted by ~*NewDuuDe*~ View Post
Urm, this is not the actual hidden attributes, it is just text on the weapon.
And why are you using the try/catch block in a command for effects? That's completely useless, all it does is take up memory.
It's true it can only show you hidden attributes, but for usage we need to write code to using it perfectly :rolleyes:
I am not only one who trying fix this source most people trying fix to
If we added this attribute to item, we must to check this value in attack, and write procedure to work this function.
Why i used the try/catch ? i still trying remind programing(in year 1993-2003 i was programing in Assembler and Ansi-C) C# i never learn i only watching for this source and trying a bit help to all.
02/21/2010 10:36 gulpi_de_gulat#8
nice dude
02/26/2026 18:19 78746361#9
But there is no 5165 source code, can we release a 5165 source code?