/skin change

/skin change

Postby Leeizazombie » 19 Jun 2013, 21:50

Hello!

So my idea here is to use the built in skins like in zombies, or botadd to be used on players within the server. This can be great for like Herobrine jokes to feel more realistic! also to give a list of skins /skin list to show what there is.
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: /skin change

Postby HETAL » 19 Jun 2013, 22:00

This command was posted by ismellike while I was attempting it as always ismellike likes to steal my ideas
Code: Select all
using System;

namespace MCDzienny
{
    public class CmdName : Command
    {
        public override string name { get { return "name"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "mod"; } }
        public override bool museumUsable { get { return false; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }
        public override void Use(Player p, string message)
        {
            if (message == "")
            {
                Help(p);
                return;
            }
            string[] split = message.Trim().Split(' ');
            Player who = Player.Find(split[0]);
            if (who == null)
            {
                Player.SendMessage(p, "Player not found");
                return;
            }
            try
            {
                if (p.group.Permission >= LevelPermission.Operator)
                {
                    Player.GlobalMessage(who.PublicName + " is now " + split[1]);
                    who.PublicName = split[1];
                }
            }
            catch { Help(p); }
        }
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/%aname %e[player] [name] -- Changes someone's name!");
        }
    }
}
It changes your name then you have to reload the map!! Then you have then name/skin you want..
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Re: /skin change

Postby lucasds12 » 19 Jun 2013, 22:05

Hello Leeizazombie, this command is kind of hard to structure.
1. Skins are only viewed in WOM (or XWOM).
2. There's probably no valid methods for this.
It actually is a very good suggestion, although as I said, this command is beyond impossible. It would be incredibly painstakingly process for the developer to create/structure this.
HETAL wrote:using System;

namespace MCDzienny
{
public class CmdName : Command
{
public override string name { get { return "name"; } }
public override string shortcut { get { return ""; } }
public override string type { get { return "mod"; } }
public override bool museumUsable { get { return false; } }
public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }
public override void Use(Player p, string message)
{
if (message == "")
{
Help(p);
return;
}
string[] split = message.Trim().Split(' ');
Player who = Player.Find(split[0]);
if (who == null)
{
Player.SendMessage(p, "Player not found");
return;
}
try
{
if (p.group.Permission >= LevelPermission.Operator)
{
Player.GlobalMessage(who.PublicName + " is now " + split[1]);
who.PublicName = split[1];
}
}
catch { Help(p); }
}
public override void Help(Player p)
{
Player.SendMessage(p, "/%aname %e[player] [name] -- Changes someone's name!");
}
}
}

He's talking about YOUR skin, not your nick.
-Lucas
There is only one thing I do in life, that's contributing here.
lucasds12
 
Posts: 334
Joined: 17 Apr 2013, 16:17
Location: In the deep caves.

Re: /skin change

Postby HETAL » 19 Jun 2013, 22:07

When your name changes your skin changes too with it and skins are only viewable on clients as you said..
Spoiler:
Last edited by HETAL on 19 Jun 2013, 22:11, edited 1 time in total.
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Re: /skin change

Postby ismellike » 19 Jun 2013, 22:09

lucasds12 wrote:1. Skins are only viewed in WOM (or XWOM).
2. There's probably no valid methods for this.


1.) That's not true; Go use any client and you will see.
2.) That's not true; Look at Hetal's post.

The command /name does the same thing the infection system does.

It changes your name to the zombie alias and it gives you the skin of it too.
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: /skin change

Postby lucasds12 » 19 Jun 2013, 22:14

Oh I am very sorry, I wasn't paying attention ismellike. I apologize for my invalid information LeeizaZombie, excuse my observation.
-Lucas
There is only one thing I do in life, that's contributing here.
lucasds12
 
Posts: 334
Joined: 17 Apr 2013, 16:17
Location: In the deep caves.

Re: /skin change

Postby Breakdown901 » 22 Jun 2013, 14:50

Hetal, is there anyway of making that code permanent? So when they leave, and come back there name will still be what they changed it to?
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: /skin change

Postby ismellike » 22 Jun 2013, 15:11

you can combine this command with a Player.Joined event and save the names/ nicknames to a text file.

When they join it checks if they have a nickname and it changes it for them.
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: /skin change

Postby Ultima » 22 Jun 2013, 15:19

Edit, nvm.
I read it wrong. :mrgreen:

Maybe handy to restore orignal name:

Code: Select all
string name = current.name;
if (name.Contains("@"))
{
   name = name.Remove(name.IndexOf('@') + 1);
}

current.PublicName = name
User avatar
Ultima
 
Posts: 953
Joined: 19 Aug 2011, 23:45

Re: /skin change

Postby Leeizazombie » 23 Jun 2013, 15:30

This was exactly what I was looking for, I was able to get my commands on the server thats being hosted for me, thanks! also Thank you Ultima for that little addon, haha that will be handy.
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.


Return to Requests for Addon

Who is online

Users browsing this forum: No registered users and 5 guests

cron