Necro-Přeměna roby při summu
Datum: 27/07/2011 13:21:05
Staženo: 494x
Popis:
Do dungu, změní se roba vyčaruje se sum a změní se zpět roba
Příkazy:
- ,exec necrohlava
- ,roby "string summon" " serial target" " int timer"
- ,robys
Kód:
using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using Phoenix.WorldData;
using Phoenix.Communication;
namespace Phoenix.Plugins
{
public static partial class Commands
{
[Command("roby")]
public static void robese(string summon, Serial target, int timer)
{//by smoce
UOItem robes1 = new UOItem(Aliases.GetObject("robe1"));
UOItem robes2 = new UOItem(Aliases.GetObject("robe2"));
UO.PrintInformation("Predelavam robku a kouzlim Summona:" + summon + " ");
UOObject t = World.GetObject(target);
robes1.Use();
if (target == World.Player.Serial || !t.Exist || t.Distance > 20)
target = Serial.Invalid;
UO.Print(0x0480, "Summon Creature: " + summon);
UO.SummonCreature(summon, target);
UO.Wait(timer);
robes2.Use();
UO.PrintInformation("Hotovo roba zpet.");
}
[Command("robys")]
public static void robess()
{//by smoce
UO.Print(0x00B3, "Musis zvolit Robky 1 a 2");
UO.Wait(100);
UO.Print(0x0435, "Vyber robe 1");
UOCharacter aaw = new UOCharacter(UIManager.TargetObject());
UO.AddObject("robe1", aaw);
UO.Wait(200);
UO.Print(0x0435, "Vyber robe 2");
UOCharacter aw = new UOCharacter(UIManager.TargetObject());
UO.AddObject("robe2", aw);
UO.Wait(200);
UO.Print(0x00B3, "OKej robky byli zvolene...");
}
[Executable]
public static void necrohlava()
{
UO.Say("Xarx heal/boost prosim");
UO.UseType(0x1F0B);
UO.Wait(500);
UO.UseType(0x1451);
}
}
}

