Ignore:
Timestamp:
Jun 19, 2016, 1:52:31 PM (8 years ago)
Author:
alloc
Message:

Mod stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/CoppisAdditions/src/Commands/GiveXP.cs

    r273 r279  
    99                public override string GetDescription ()
    1010                {
    11                         return "give an amount XP to a player (entity id or name)";
     11                        return "give XP to the skill of a player";
    1212                }
    1313
    1414                public override string GetHelp ()
    1515                {
    16                         return "Give XP to a player\n" +
     16                        return "Give XP to the skill of a player\n" +
    1717                        "Usage:\n" +
    1818                        "   givexp <name / entity id> <amount xp> <skill name>\n" +
     
    5454                                        return;
    5555                                }
    56                                 EntityPlayer ep = GameManager.Instance.World.Players.dict [ci.entityId];
    57                                 GameManager.Instance.AddExpServer (ci.entityId, skill.Id, xp);
     56
     57                                ci.SendPackage (new NetPackageConsoleCmdClient ("giveselfskillxp " + skillName + " " + xp, true));
     58
    5859                                SdtdConsole.Instance.Output (xp + " xp was given on skill " + skillName + " to player " + ci.playerName);
    5960                        } catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.