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

    • Status: Fixed 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)



    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)


    Current behaviour:
    avatar: (random)#


    User Feedback

    Recommended Comments

    • Advanced Members

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

    Fix: @Admin

    File: xAvatar.as

    Function: xAvatar(constructor)



                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



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


    • Award 1
    Link to comment
    Share on other sites

    • Game Makers

    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
    Link to comment
    Share on other sites

    This is now closed for further comments

  • 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.

  • Create New...

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.