Add /buff <buff id/name>

This commit is contained in:
Deathmax 2011-08-20 12:14:49 +08:00
parent 2cdb9dc953
commit 2c1c75db2b
4 changed files with 65 additions and 0 deletions

View file

@ -337,6 +337,11 @@ namespace TShockAPI
SendData(PacketTypes.PlayerSlot, oriinv.name, player, 0f);
}
public virtual void SetBuff(int type, int time = 3600)
{
SendData(PacketTypes.PlayerAddBuff, number: Index, number2: (float)type, number3: (float)time);
}
//Todo: Separate this into a few functions. SendTo, SendToAll, etc
public virtual void SendData(PacketTypes msgType, string text = "", int number = 0, float number2 = 0f, float number3 = 0f, float number4 = 0f, int number5 = 0)
{