Results 1 to 3 of 3
  1. #1
    toby2449's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    The Ocean
    Posts
    281
    Reputation
    10
    Thanks
    21
    My Mood
    Inspired

    Play tags don't work

    ^Player**^


    Yeah, they don't work on the AS3 Client. I added this into wServer > Realm > Entities > Player > Player.cs

    Btw the other code that doesn't have anything to do with it is just the rest of the function or whatever.

    Code:
    public Player(Client client)
                : base(client.Manager, (ushort) client.Character.ObjectType, client.Random)
            {
                this.client = client;
                statsMgr = new StatsManager(this);
                switch(client.Account.Rank) {
                    case 0:
                        Name = client.Account.Name; break;
                    case 1:
                        Name = "[Ranger] " + client.Account.Name; break;
                    case 2:
                        Name = "[Temp Moderator] " + client.Account.Name; break;
                    case 3:
                        Name = "[Temp Developer] " + client.Account.Name; break;
                    case 4:
                        Name = "[Artist] " + client.Account.Name; break;
                    case 5:
                        Name = "[Developer] " + client.Account.Name; break;
                    case 6:
                        Name = "[Moderator] " + client.Account.Name; break;
                    case 7:
                        Name = "[Team Lead] " + client.Account.Name; break;
                }
                Name = client.Account.Name;
                AccountId = client.Account.AccountId;
    
                Name = client.Account.Name;
                Level = client.Character.Level;
                Experience = client.Character.Exp;
                ExperienceGoal = GetExpGoal(client.Character.Level);
                Stars = GetStars();
                Texture1 = client.Character.Tex1;
                Texture2 = client.Character.Tex2;
                Effect = client.Character.Effect;
                XmlEffect = "";
                Skin = client.Character.Skin;
                PermaSkin = client.Character.PermaSkin != 0;
                XpBoost = client.Character.XpBoost;
                Credits = client.Account.Credits;
                Souls = client.Account.Souls;
                NameChosen = client.Account.NameChosen;
                CurrentFame = client.Account.Stats.Fame;
                Fame = client.Character.CurrentFame;
                ClassStats state = client.Account.Stats.ClassStates.SingleOrDefault(_ => _.ObjectType == ObjectType);
                FameGoal = GetFameGoal(state != null ? state******Fame : 0);
    
                Glowing = -1;
                Manager.Data.AddPendingAction(db =>
                {
                    if (db.IsUserInLegends(AccountId))
                        Glowing = 0xFF0000;
                    if (client.Account.Admin)
                        Glowing = 0xFF00FF;
                });
                Guild = client.Account.Guild.Name;
                GuildRank = client.Account.Guild.Rank;
                HP = client.Character.HitPoints;
                MP = client.Character.MagicPoints;
                Floors = client.Character.Floors;
                ConditionEffects = 0;
                OxygenBar = 100;
    
                Party = Party.GetParty(this);
                if(Party != null)
                    if (Party.Leader.AccountId == AccountId)
                        Party.Leader = this;
                    else
                        Party.Members.Add(this);
    
                if (HP <= 0)
                    HP = client.Character.MaxHitPoints;
    
                Locked = client.Account.Locked ?? new List<int>();
                Ignored = client.Account.Ignored ?? new List<int>();
                try
                {
                    Manager.Data.AddPendingAction(db =>
                    {
                        Locked = db.GetLockeds(AccountId);
                        Ignored = db.GetIgnoreds(AccountId);
                    });
                }
                catch
                {
                }
    
                Inventory = new Inventory(this,
                    client.Character.Equipment
                        .Select(_ => _ == 0xffff ? null : client.Manager.GameData.Items[_])
                        .ToArray(),
                    client.Character.EquipData);
                Inventory.InventoryChanged += (sender, e) => CalculateBoost();
                SlotTypes =
                    Utils.FromCommaSepString32(
                        client.Manager.GameData.ObjectTypeToElement[ObjectType].Element("SlotTypes").Value);
                Stats = new[]
                {
                    client.Character.MaxHitPoints,
                    client.Character.MaxMagicPoints,
                    client.Character.Attack,
                    client.Character.Defense,
                    client.Character.Speed,
                    client.Character.HpRegen,
                    client.Character.MpRegen,
                    client.Character.Dexterity
                };
    
                Pet = null;
                
                for (int i = 0; i < SlotTypes.Length; i++)
                    if (SlotTypes[i] == 0) SlotTypes[i] = 10;
    
                AddRecipes();
            }
    Anything on why it doesn't work?
     
    ded lol


     
     
    I don't have skype xd. Well, I used to before it got hacked. Go hack it some more - toby2449

  2. #2
    ossimc82's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    496
    Reputation
    42
    Thanks
    887
    My Mood
    In Love
    You have a logical error, first you set the player tag based on the rank, and then you set the name to the accounts name, just make the following changes

    Code:
                switch(client.Account.Rank) {
                    case 1:
                        Name = "[Ranger] " + client.Account.Name; break;
                    case 2:
                        Name = "[Temp Moderator] " + client.Account.Name; break;
                    case 3:
                        Name = "[Temp Developer] " + client.Account.Name; break;
                    case 4:
                        Name = "[Artist] " + client.Account.Name; break;
                    case 5:
                        Name = "[Developer] " + client.Account.Name; break;
                    case 6:
                        Name = "[Moderator] " + client.Account.Name; break;
                    case 7:
                        Name = "[Team Lead] " + client.Account.Name; break;
                    default:
                        Name = client.Account.Name; break;
                }
    
                //Name = client.Account.Name; //Remove this line
                AccountId = client.Account.AccountId;
    
                //Name = client.Account.Name; //Remove this line

  3. The Following User Says Thank You to ossimc82 For This Useful Post:

    toby2449 (06-21-2015)

  4. #3
    toby2449's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    The Ocean
    Posts
    281
    Reputation
    10
    Thanks
    21
    My Mood
    Inspired
    Thanks! @krazyshank close thread please!
     
    ded lol


     
     
    I don't have skype xd. Well, I used to before it got hacked. Go hack it some more - toby2449

Similar Threads

  1. [SOLVED]I play in COD MW2 With Steam The console don't work..
    By F-I-R-E in forum Call of Duty Modern Warfare 2 Help
    Replies: 9
    Last Post: 02-05-2011, 03:53 PM
  2. Why all hacks don't work for me
    By frits1 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 07-19-2008, 12:31 PM
  3. Search Tags isn't working.
    By wr194t in forum Suggestions, Requests & General Help
    Replies: 1
    Last Post: 01-29-2008, 04:21 PM
  4. HACKS DON'T WORK!! after 23-05-07
    By jaspertjuhh in forum WarRock - International Hacks
    Replies: 19
    Last Post: 05-25-2007, 09:31 AM
  5. GPS and InstaSpawn Don't Work On CQC
    By sirbannedalot in forum WarRock - International Hacks
    Replies: 7
    Last Post: 04-13-2007, 06:32 AM