Poll

Which do you want?

I want them both!
1 (50%)
I want just RestoreAvatar.
1 (50%)
I want just RestoreNode
0 (0%)
I want neither.
0 (0%)
Other (Explain in post)
0 (0%)

Total Members Voted: 2

Author Topic: Event Request - RestoreAvatar and RestoreNode  (Read 490 times)

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

For instance,

Code: [Select]
OnActivate >> Player >> RestoreAvatar "Parameter"
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: [Select]
OnActivate >> Player >> RestoreNode "Parameter1" "Parameter2" "Parameter3"
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...  -.-
« Last Edit: November 09, 2013, 01:45:49 AM by SWAT One »

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

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

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

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

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

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

They could restore it by simply opening the options menu, then closing it.

They could, but this is for an RPG where I want players to have a special suit in a special area, when they exit, they get their old avatar back.

They could, but this is for an RPG where I want players to have a special suit in a special area, when they exit, they get their old avatar back.
Ah, okay.

/support