Jump to content
  • (random) + pcback = (RANDOM)


    XeR
    • Status: Open Priority: Normal

    There seems to be a bug with the (random) power.
    Using (random) as an avatar with a pcback does not display a random
    smiley. Instead, it displays (RANDOM)

     

    Quote

    If you attempt to use (random) as your avatar while using PCBack, it will show as (RANDOM), the power smiley.


    Source (xat wiki)

     

    Expected behaviour:
    avatar: (random)
    Seven-10-38-10.png

     

    Current behaviour:
    avatar: (random)#
    Seven-10-38-52.png




    User Feedback

    Recommended Comments

    This will fix two problems (not being able to do (RANDOM) and the problem listed above)

    Fix: @Admin

    File: xAvatar.as

    Function: xAvatar(constructor)

    Replace

    XSoTYfWRQrqVkBhbMinfvw.png
    with

                if ((((((_arg_2.charAt(0) === "(")) && ((_arg_2.toLowerCase().indexOf("random") >= 0)))) && (todo.HasPower(_arg_5, 272)))){
    				var randavy = _arg_2.split("#");
    				for (var i:Number = 0; i < randavy.length; i++) {
    					randavy[i] = xmessage.DoRandom(randavy[i], _arg_5);
    				}
    				_arg_2 = randavy.join("#");
                };


    File: xmessage.as

    Function: DoRandom

    Replace
    WPGFWWBUTOWdqHq6VflTYQ.png

    with

    var _local_3:* = _arg_1.split(/random/gi);

     

    • Like 1

    Share this comment


    Link to comment
    Share on other sites

    I have hidden the previous answers because my fix wasn't valid.

     

    @Techy I have tested your fix on my side:

     

    • It works on avatar, but when you repeat 3 times (random#) it will show the main smiley and random smilies.
    • On chat, you can't do the main smiley anymore (RANDOM).
    Edited by SlOom

    Share this comment


    Link to comment
    Share on other sites


    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign in now

  • Priority Definitions

     

    Trivial The issue is considered low priority.

    Normal This is the default priority.

    High A feature or service is not working properly, and it impacts a lot of people. The issue should be fixed in the near future.

    Critical The issue is show-stopping, meaning that a certain feature or service is completely broken with no available workaround. The issue impacts a lot of people and requires immediate repair.

  • Status Definitions

     

    Open The issue is pending, or we are still working on the issue.

    Fixed The issue has been resolved. The fix may not be immediately noticeable and may be released in a future version or update.

    Closed This record is either not considered an issue or is better suited as a suggestion. If it is an issue, it may not be reproducible.

    Won't Fix The issue will not be fixed because it is too low in priority. The issue is very minor. The resources required to fix the issue cannot justify the benefits received from fixing the issue. This means the issue is closed.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.