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

Mod stuff

Location:
binary-improvements/CoppisAdditions
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/CoppisAdditions/CoppisAdditions.csproj

    r273 r279  
    5050    <Compile Include="src\Commands\Physics.cs" />
    5151    <Compile Include="src\Commands\SpawnMultipleEntity.cs" />
    52     <Compile Include="src\Commands\SpawnScouts.cs" />
    5352    <Compile Include="src\Commands\UnlockAll.cs" />
    54     <Compile Include="src\Commands\SpawnHorde.cs" />
    5553    <Compile Include="src\API.cs" />
    5654    <Compile Include="src\ChatFilter.cs" />
     
    5856    <Compile Include="src\Commands\PlayerChatMaxLength.cs" />
    5957    <Compile Include="src\Commands\TeleportPlayerHome.cs" />
    60     <Compile Include="src\Commands\ToogleChatCommandHide.cs" />
    6158    <Compile Include="src\Commands\SayToPlayer2.cs" />
     59    <Compile Include="src\Commands\ToggleChatCommandHide.cs" />
     60    <Compile Include="src\Commands\SpawnHorde.cs" />
     61    <Compile Include="src\Commands\SpawnScouts.cs" />
    6262  </ItemGroup>
    6363  <ItemGroup>
  • 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) {
  • binary-improvements/CoppisAdditions/src/Commands/SpawnScouts.cs

    r273 r279  
    2424                public override string[] GetCommands ()
    2525                {
    26                         return new string[] { "spawnscouts", "ss" };
     26                        return new string[] { "ss" };
    2727                }
    2828
Note: See TracChangeset for help on using the changeset viewer.