[Request] Weapon Master

10/01/2010 18:53 Arcо#16
Cause you got to go to IMan.IncreaseLevel(); void and change the check inside of there.
10/01/2010 19:30 BitzIn#17
Quote:
Originally Posted by Аrco View Post
Cause you got to go to IMan.IncreaseLevel(); void and change the check inside of there.
how do i do that o.0:confused:
10/01/2010 19:47 _Vodka#18
Quote:
Originally Posted by BitzIn View Post
how do i do that o.0:confused:
in character.cs search for public void IncreaseLevel()
10/01/2010 20:31 Arcо#19
Quote:
Originally Posted by BitzIn View Post
how do i do that o.0:confused:
Right click => go to definition
10/01/2010 22:59 BitzIn#20
PHP Code:
        public void IncreaseLevel()
        {
            if (
ID != 0)
            {
                if (
Database.DatabaseItems.ContainsKey(ID))
                {
                    
DatabaseItem Item = (DatabaseItem)Database.DatabaseItems[ID];
                    
byte Level Item.LevReq;
                    
string Type Item.ID.ToString().Remove(2Item.ID.ToString().Length 2);
                    
uint WeirdThing Convert.ToUInt32(Type);
                    if (
WeirdThing <= 60 && WeirdThing >= 42)//weapon
                    
{
                        if (
Level 150)
                        {
                            if (
Level >= 140)
                            {
                                
Level++;
                                foreach (
DatabaseItem I in Database.DatabaseItems.Values)
                                {
                                    if (
I.ID 1000 == Item.ID 1000)
                                        if (
I.ID 10 == Item.ID 10)
                                            if (
I.LevReq == Level)
                                            { 
ID I.ID; return; }
                                }
                            }
                            else
                            {
                            
Again:
                                
Level++;
                                foreach (
DatabaseItem I in Database.DatabaseItems.Values)
                                {
                                    if (
I.ID 1000 == Item.ID 1000)
                                        if (
I.ID 10 == Item.ID 10)
                                            if (
I.LevReq == Level)
                                            { 
ID I.ID; return; }
                                }
                                goto 
Again;
                            }
                        }
                    }
                    else
                    {
                        if (
WeirdThing == 20)
                            return;
                    
Again:
                        
Level++;
                        foreach (
DatabaseItem I in Database.DatabaseItems.Values)
                        {
                            if (
I.ID 1000 == Item.ID 1000)
                                if (
I.ID 10 == Item.ID 10)
                                    if (
I.LevReq == Level)
                                    { 
ID I.ID; return; }
                        }
                        goto 
Again;
                    }
                }
            }
        } 
It works for weapons now !! :P thanks ,, however i still cant upgrade fan/tower :confused: how can i fix this? shud i just lower fan back to 130 b/c right now its at lvl 150 :O