Blockland Forums > Suggestions & Requests

Event Request - RestoreAvatar and RestoreNode

Pages: (1/2) > >>

SWAT One:

This is a request for an event, targeting players, that detects past avatars, and restores them.

For instance,


--- Code: ---OnActivate >> Player >> RestoreAvatar "Parameter"
--- End code ---

In the parameter, there would be multiple options in a drop down box that gives you the choice between the avatar that they were using by default, and any avatars forced to them during a minigame.  If possible, maybe include another option for AvatarSlot and another parameter, defined by 1 to 0 for selecting a player's avatar in their favorites slot with said value.

When restoring player nodes,


--- Code: ---OnActivate >> Player >> RestoreNode "Parameter1" "Parameter2" "Parameter3"
--- End code ---

The first parameter in this would be a drop-down menu with a list of all nodes.  The second parameter would be the source, IE player preference, minigame defined or player slot.  The third parameter would be for the player slot option only.

15 people checked this page in 7 hours and no replies, c'mon...  -.-

alex dude:

Restore avatar sounds like a good idea, It would be pretty damn useful.

TB2:

Wait, why would you need this, exactly? To prevent people from changing avatars in mini-games... What?

SWAT One:

Say I switch a user to an avatar using the old bot events.
How would I detect and restore their avatar?

Xalos:

Code-wise, restoring a client's original avatar is pretty simple.


--- Code: ---function GameConnection::ResetAvatar(%cl)
{
    %cl.lastUpdateBodyColorsTime = 0;
    %cl.lastUpdateBodyPartsTime = 0;
    %cl.applyBodyColors();
    %cl.applyBodyParts();
}

--- End code ---

Someone make that an event and package it for him. I'm busy working on a gamemode.

Pages: (1/2) > >>

Go to full version