Aura.Channel.Scripting.Scripts.ItemScript.ActivateChatSticker C# (CSharp) Метод

ActivateChatSticker() защищенный Метод

Activates the sticker for the given duration.
protected ActivateChatSticker ( Creature creature, ChatSticker sticker, int duration ) : void
creature Aura.Channel.World.Entities.Creature
sticker ChatSticker Sticker to activate.
duration int Duration in seconds.
Результат void
		protected void ActivateChatSticker(Creature creature, ChatSticker sticker, int duration)
		{
			var end = DateTime.Now.AddSeconds(duration);

			creature.Vars.Perm["ChatStickerId"] = (int)sticker;
			creature.Vars.Perm["ChatStickerEnd"] = end;

			Send.ChatSticker(creature, sticker, end);
			Send.Notice(creature, Localization.Get("You carefully attach the sticker to your Chat Bubble."));
		}