Inscription
Datum: 23/11/2014 23:14:10
Staženo: 1554x
Popis:
Nastavuje se:
- Meditace - ANO/NE
- Meditace bez lektvaru ANO/NE
- Pití TMR/MR 0-TMR | 1-MR
Příkazy:
- ,exec insc_nightsight
- ,exec insc_nightsight
- ,exec insc_magicarrow
- ,exec insc_heal
- ,exec insc_agilitka
- ,exec insc_harm
- ,exec insc_fireball
- ,exec insc_teleport
- ,exec insc_wall_of_stone
- ,exec insc_lightning
- ,exec insc_recall
- ,exec insc_mark
- ,exec insc_greater_heal
- ,exec insc_magic_reflect
- ,exec insc_paralyze
- ,exec insc_blade_spirit
- ,exec insc_paralyzefield
- ,exec insc__flame_strike
- ,exec insc__resurrectio
Kód:
using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using Phoenix.WorldData;
using System.Linq;
using Phoenix.Communication;
using Phoenix.Runtime;
using Phoenix.Runtime.Reflection;
namespace Script.Inscript
{//by smoce
public class Inscripters
{//by smoce
public struct BP
{
public const ushort type = 0x0F7A;
public const string name = "Black Pearl";
}
public struct BM
{
public const ushort type = 0x0F7B;
public const string name = "Blood Moss";
}
public struct GA
{
public const ushort type = 0x0F84;
public const string name = "Garlic";
}
public struct GI
{
public const ushort type = 0x0F85;
public const string name = "Ginseng";
}
public struct MR
{
public const ushort type = 0x0F86;
public const string name = "Mandrake Root";
}
public struct NS
{
public const ushort type = 0x0F88;
public const string name = "Night Shade";
}
public struct SA
{
public const ushort type = 0x0F8C;
public const string name = "Surfurous Ash";
}
public struct SS
{
public const ushort type = 0x0F8D;
public const string name = "Spider Silk";
}
public struct nic
{
public const ushort type = 0x0000;
public const string name = "Proste nic";
}
public struct TManaR
{
public const ushort Keg_t = 0x1843;
public const ushort Keg_c = 0x0003;
public const ushort type = 0x0F09;
public const ushort color = 0x0003;
}
public struct ManaR
{
public const ushort Keg_t = 0x1843;
public const ushort Keg_c = 0x0005;
public const ushort type = 0x0F09;
public const ushort color = 0x0005;
}
public struct Nastaveni
{
public const bool Meditace_bez_tmr_mr = true;
public const bool Meditace = true;
public const int Napoj = 0; // 0- TMR 1-MR
public const int Timer_Medit = 2000;
public const ushort blanky = 0x0E34;
public const int Blanku = 50;
public const int Regu = 100;
public const int Vyrobku = 50;
}
public int ok = 0;
public int fizz = 0;
public int celkem = 0;
#region Svitky
//sablona jak na to **************************************************************
// [Executable]
// public void insc_NightSight()
// {
// UO.PrintInformation("ZVOL BOX S BLANKY !!!");
// UOItem box = new UOItem(UIManager.TargetObject());
// UO.Wait(500);
// Inscript("Spell Circle 1<kruh ve kterém je kouzlo >", "Night Sight<název svítku>", 1<pocet regu 1>, SS.type<nazev regu 1 .. REG.type>, 1<pocet regu 2>,1, SA.type,0 , nic.type, 0, nic.type, 0x1F33<type svítku>, 4<minimalni pocet many na svitek>, box);
// }
//********************************************************************************
[Executable]
public void insc_NightSight()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 1", "Night Sight", 1, SS.type, 1, SA.type, 0, nic.type, 0, nic.type, 0x1F33, 4, box);
}
[Executable]
public void insc_MagicArrow()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 1", "Magic Arrow", 1, BP.type, 1, NS.type, 0, nic.type, 0, nic.type, 0x1F32, 4, box);
}
[Executable]
public void insc_heal()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 1", "Heal", 1, GA.type, 1, SS.type, 1, GI.type, 0, nic.type, 0x1F31, 4, box);
}
[Executable]
public void insc_Agilitka()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 2", "Agility", 1, BM.type, 1, MR.type, 0, GI.type, 0, nic.type, 0x1F32, 4, box);
}
[Executable]
public void insc_Harm()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 2", "Harm", 1, SS.type, 1, SS.type, 0, nic.type, 0, nic.type, 0x1F38, 6, box);
}
[Executable]
public void insc_Fireball()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 3", "Fireball", 1, BP.type, 1, SA.type, 0, nic.type, 0, nic.type, 0x1F3E, 9, box);
}
[Executable]
public void insc_Teleport()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 3", "Teleport", 1, BM.type, 1, MR.type, 0, nic.type, 0, nic.type, 0x1F42, 9, box);
}
[Executable]
public void insc_Wall_of_Stone()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 3", "Wall of Stone", 5, BM.type, 5, GA.type, 0, nic.type, 0, nic.type, 0x1F44, 9, box);
}
[Executable]
public void insc_Lightning()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 4", "Lightning", 1, BP.type, 1, MR.type, 1, SA.type, 0, nic.type, 0x1F4A, 11, box);
}
[Executable]
public void insc_Recall()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 4", "Recall", 1, BP.type, 1, MR.type, 1, BM.type, 0, nic.type, 0x1F4C, 11, box);
}
[Executable]
public void insc_Mark()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 6", "Mark", 1, BP.type, 1, MR.type, 1, BM.type, 0, nic.type, 0x1F4C, 11, box);
}
[Executable]
public void insc_Greater_Heal()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 4", "Greater Heal", 1, GA.type, 1, GI.type, 1, MR.type, 1, SS.type, 0x1F49, 11, box);
}
[Executable]
public void insc_Magic_Reflect()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 5", "Magic Reflect", 1, GA.type, 1, SS.type, 1, MR.type, 0, nic.type, 0x1F50, 14, box);
}
[Executable]
public void insc_Paralyze()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 5", "Paralyze", 1, GA.type, 1, SS.type, 1, MR.type, 0, nic.type, 0x1F52, 14, box);
}
[Executable]
public void insc_Blade_Spirit()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 5", "Blade Spirit", 1, NS.type, 1, BP.type, 1, MR.type, 0, nic.type, 0x1F52, 40, box);
}
[Executable]
public void insc_ParalyzeField()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 6", "Paralyze Field", 5, BP.type, 5, GI.type, 5, SS.type, 0, nic.type, 0x1F5B, 20, box);
}
[Executable]
public void insc__Flame_Strike()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 7", "Flame Strike", 5, SS.type, 5, SA.type, 0, nic.type, 0, nic.type, 0x1F5F, 40, box);
}
[Executable]
public void insc__Resurrectio()
{
UO.PrintInformation("ZVOL BOX S BLANKY !!!");
UOItem box = new UOItem(UIManager.TargetObject());
UO.Wait(500);
Inscript("Spell Circle 8", "Resurrection", 1, BM.type, 1, GA.type, 1, GI.type, 0, nic.type, 0x1F67, 50, box);
}
#endregion
public void Inscript(string circle, string name, int reg1_pocet, ushort reg1, int reg2_pocet, ushort reg2, int reg3_pocet, ushort reg3, int reg4_pocet, ushort reg4, ushort scroll, ushort min_mana, UOItem box)
{
int assw = 0;
UO.Print(0x00BC, "Inscript svitku {0} zahajen", name);
UO.Wait(100);
while (!World.Player.Dead)
{
if (!box.Exist)
{
UO.PrintWarning("Target BOX neni zadan!");
UO.TerminateAll();
}
if (assw>3)
{
UO.PrintWarning("V cilovem Boxu ani u sebe nemas regy!");
UO.TerminateAll();
}
if (UO.Count(scroll) >= Nastaveni.Vyrobku)
{
UOItem vyrobeksq = new UOItem(World.Player.Backpack.AllItems.FindType(scroll));
vyrobeksq.Move(0,box.Serial);
UO.PrintInformation("Presouvam hotove vyrobky..");
}
if ((UO.Count(Nastaveni.blanky) > 0) && ((UO.Count(reg1) >= reg1_pocet) || reg1 == 0x0000) && ((UO.Count(reg2) >= reg2_pocet) || reg2 == 0x0000) && ((UO.Count(reg3) >= reg3_pocet) || reg2 == 0x0000) && ((UO.Count(reg4) >= reg4_pocet) || reg4 == 0x0000))
{
assw = 0;
if (World.Player.Mana <= min_mana)
{
mana();
}
UO.Print(0x0017, "Inscript svitku {0} stav {1}", name,celkem);
UO.DeleteJournal();
string[] incs = { "Spell Circles", circle, circle, name };
UO.WaitMenu(incs);
UOItem blankya = World.Player.Backpack.AllItems.FindType(0x0E34);
blankya.Use();
string[] hlaskys = { "You put", "You fail" };
Journal.WaitForText(true, hlaskys);
if (UO.InJournal("You put"))
{
ok++;
}
else
{
fizz++;
}
celkem++;
statistics(ok, fizz);
}
else
{
assw++;
if (UO.Count(Nastaveni.blanky) == 0)
{
UO.Print(0x0030,"Dosly blanky");
move_material(box, Nastaveni.blanky, 0x0000, Nastaveni.Blanku);
}
if (reg1 != 0x0000)
{
if (UO.Count(reg1) < reg1_pocet)
{
UO.Print(0x0030,"Dosly reagenty 1");
move_material(box, reg1, 0x0000, Nastaveni.Regu);
}
}
if (reg2 != 0x0000)
{
if (UO.Count(reg2) < reg2_pocet)
{
UO.Print(0x0030,"Dosly reagenty 2");
move_material(box, reg2, 0x0000, Nastaveni.Regu);
}
}
if (reg3 != 0x0000)
{
if (UO.Count(reg3) < reg3_pocet)
{
UO.Print(0x0030,"Dosly reagenty 3");
move_material(box, reg3, 0x0000, Nastaveni.Regu);
}
}
if (reg4 != 0x0000)
{
if (UO.Count(reg4) < reg4_pocet)
{
UO.Print(0x0030,"Dosly reagenty 4");
move_material(box, reg4, 0x0000, Nastaveni.Regu);
}
}
}
}
}
public void move_material(UOItem box,ushort graphic, ushort color,int pocet)
{
box.Use();
UOItem a = new UOItem(box.AllItems.FindType(graphic,color));
MoveItem(a, pocet, World.Player.Backpack);
}
private static void MoveItem(UOItem item, int count, UOItem dest)
{
if (!item.Exist)
return;
ushort tomove = Math.Min((ushort)Math.Abs(count), item.Amount);
using (ItemUpdateEventWaiter ew = new ItemUpdateEventWaiter(item))
{
item.Move(tomove, dest);
if (ew.Wait(5000))
UO.PrintInformation(item.Graphic + " - " + tomove);
UO.Wait(500);
}
}
public void statistics(int ok, int fizz)
{
int uspesnostssa;
if (ok > 0)
{
uspesnostssa = (ok / (ok + fizz)) * 100;
}
else
{
uspesnostssa = 0;
}
UO.Print(0x0116,"Povedene: " + ok);
UO.Print(0x0085,"Nepovedene: " + fizz);
UO.Print(0x00BC,"Uspesnost: " + uspesnostssa + "%");
}
public void mana()
{
UO.Print("Nalejvam/Piju TMR/MR");
if (Nastaveni.Meditace_bez_tmr_mr)
{
#pragma warning disable
if (Nastaveni.Meditace)
{
do
{
UO.Print("Medituju {0}/{1}", World.Player.Mana, World.Player.MaxMana);
meditation();
}
while (World.Player.Mana < World.Player.MaxMana);
}
else
{
UO.Print("Nemas nastaveny zpusob nabrani many. CEKAM NA MANU!");
}
#pragma warning restore
}
else
{
if(Nastaveni.Napoj == 0)
{
if (UO.Count(TManaR.type, TManaR.color) > 0)
{
UO.UseType(TManaR.type, TManaR.color);
UO.Wait(500);
UO.Print(0x0480, "Zbyva " + UO.Count(TManaR.type, TManaR.color) + " Total Mana Refresh.");
}
else
{
if (UO.Count(TManaR.Keg_t, TManaR.Keg_c) > 0)
{
if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
{
World.Player.ChangeWarmode(WarmodeChange.Switch);
UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
UO.UseType(TManaR.Keg_t, TManaR.Keg_c);
UO.Print(0x0480, "Cepnuto TMR (" + UO.Count(TManaR.type, TManaR.color) + ")");
UO.Wait(100);
UO.UseType(TManaR.type, TManaR.color);
UO.Wait(500);
UO.Print(0x0480, "Zbyva " + UO.Count(TManaR.type, TManaR.color) + " Total Mana Refresh.");
}
else
{
UO.Print("Nemas lahvicky.");
}
}
else
{
UO.Print("Nemas kad s TMR");
}
}
}
if (Nastaveni.Napoj == 1)
{
#pragma warning disable
if (UO.Count(ManaR.type, ManaR.color) > 0)
{
UO.UseType(ManaR.type, ManaR.color);
UO.Wait(500);
UO.Print(0x0480, "Zbyva " + UO.Count(ManaR.type, ManaR.color) + " Mana Refresh.");
}
else
{
if (UO.Count(ManaR.Keg_t, ManaR.Keg_c) > 0)
{
if (World.Player.Backpack.AllItems.Count(0x0F0E) > 0)
{
World.Player.ChangeWarmode(WarmodeChange.Switch);
UO.WaitTargetObject(World.Player.Backpack.AllItems.FindType(0x0F0E));
UO.UseType(ManaR.Keg_t, ManaR.Keg_c);
UO.Print(0x0480, "Cepnuto MR (" + UO.Count(ManaR.type, ManaR.color) + ")");
UO.Wait(100);
UO.UseType(ManaR.type, ManaR.color);
UO.Wait(500);
UO.Print(0x0480, "Zbyva " + UO.Count(ManaR.type, ManaR.color) + " Mana Refresh.");
}
else
{
UO.Print("Nemas lahvicky.");
}
}
else
{
UO.Print("Nemas kad s TMR");
}
}
#pragma warning restore
}
if (Nastaveni.Meditace)
{
do
{
UO.Print("Medituju {0}/{1}", World.Player.Mana, World.Player.MaxMana);
meditation();
}
while (World.Player.Mana < World.Player.MaxMana);
}
}
}
public void meditation()
{
while (World.Player.Mana < World.Player.MaxMana)
{
World.Player.ChangeWarmode(WarmodeChange.Peace);
UO.DeleteJournal();
UO.UseSkill("Meditation");
Journal.WaitForText(true, "You must wait", "You lose", "You are preoccupied", "You enter");
UO.Wait(Nastaveni.Timer_Medit);
UO.Print(0x0480,"Medituju {0}/{1}", World.Player.Mana, World.Player.MaxMana);
}
}
}
}


Dive into engaging สล็อตเว็บตรง 100% gameplay and exciting rewards, while discovering helpful techniques that improve ทางเข้าหลัก strategy and gaming effectiveness over time.