Warewolf - Grunt
Datum: 27/07/2011 12:41:51
Staženo: 677x
Popis:
Někdy okolo září listopadu 2010 dělano, je možné, že už je to jinak, Psa jsem od té doby neměl:)
Příkazy:
- ,diflanu
- ,werewolf_svetlo_odhad_famy
- ,werewolf_rezani_target
- ,fortitude
- ,feralboost
- ,rebirth
- ,werewolf_rage
- ,crino_wolf
- ,rabbid_wolf
- ,guardian_wolf
- ,protector_wolf
- ,loot
Kód:
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Phoenix;
using Phoenix.Communication;
using Phoenix.WorldData;
namespace Scripts.pejsanekprvni
{
public class gruntak
{
[Command]
public static void Diflanu()
{
UO.Print("Zbyva " + UO.Count(0x099B,0x0000) + " Goralky.");
string[] incs = { "Choose a prayer", "Vanish" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void werewolf_svetlo_odhad_famy()
{
UO.WaitTargetSelf();
UO.UseType(0x20EA, 0x0B77);
}
[Command]
public static void werewolf_rezani_target()
{
UO.UseType(0x20EA, 0x0B77);
}
[Command]
public static void Fortitude()
{
string[] incs = { "Choose a prayer", "Fortitude" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void Feralboost()
{
string[] incs = { "Choose a prayer", "Feral Wisdom" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void Rebirth()
{
string[] incs = { "Choose a prayer", "Rebirth" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void Werewolf_Rage()
{
string[] incs = { "Choose a prayer", "Werewolf Rage" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void Crino_wolf()
{
string[] incs = { "Choose a prayer", "Crino wolf" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void Rabbid_wolf()
{
string[] incs = { "Choose a prayer", "Rabbid wolf" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void Guardian_wolf()
{
string[] incs = { "Choose a prayer","Guardian wolf" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public static void Protector_wolf()
{
string[] incs = { "Choose a prayer", "Protector wolf" };
UO.WaitMenu(incs);
UO.UseType(0x14ED, 0x0B8A);
}
[Command]
public void loot()
{
// script by Wizzy, Smoce by edit for psa
/* Pouzivat k rezani draw knife? Defaultne pouzivani ekvipnute zbrane*/
int draw = 2;
/* 0 = pouzivani ekvipnute zbrane
1 = pouzivani draw knife
2= vlkodlak */
ushort[] loot = new ushort[18];
loot[0] = 0x0E76; //bag
loot[1] = 0x0F87; //eon
loot[2] = 0x0F84; //garlic
loot[3] = 0x0F7A; //blackpearls
loot[4] = 0x0F8C; //sulforous ash
loot[5] = 0x0F85; //Ginseng
loot[6] = 0x0F86; //mandrake root
loot[7] = 0x0F88; //Nightshade
loot[8] = 0x0F7B; //Blood Moss
loot[9] = 0x0F8D; //spider silk
loot[10] = 0x0F7D; //Blood Vial
loot[11] = 0x0F83; //Execution's Cap
loot[12] = 0x0F79; //Blackmoor
loot[13] = 0x0F89; //Obsidian
loot[14] = 0x0F7E; //Bone
loot[15] = 0x0F7F; //Brimstone
loot[16] = 0x0F7C; //BloodSpawn
loot[17] = 0x1BD1; //peri
for (int i = 0; i < loot.Length; i++)
{
foreach (UOItem item in from q in World.Ground where q.Distance < 5 && q.Graphic == loot[i] select q)
{
item.Move(0, World.Player.Backpack);
UO.Wait(500);
UO.Print("Lootim ze zeme!");
}
}
UOItem lootCorpse = World.GetItem(Aliases.LastObject);
if (lootCorpse.Graphic == 0x2006)
{
lootCorpse.Use();
if ( ((draw ==2) && (World.Player.Backpack.AllItems.Count(0x20EA, 0x0B77) > 0)) || ((draw ==1) && (World.Player.Backpack.AllItems.Count(0x10E4, 0x0000) > 0)) || (World.Player.Layers[Layer.RightHand].Exist))
{
if ((lootCorpse.Amount != 400) && (lootCorpse.Amount != 401))
{
if (draw == 2)
{
UO.WaitTargetObject(lootCorpse);
UO.UseType(0x20EA, 0x0B77);
}
else {
if (draw == 0)
{
UO.WaitTargetObject(lootCorpse);
UO.UseObject(World.Player.Layers[Layer.RightHand].Serial);
}
else
{
UO.WaitTargetObject(lootCorpse);
UO.UseType(0x10E4);
} }
UO.Wait(500);
}
}
else
UO.Print("Neni cim rezat, pouze lootim...");
for (int i = 0; i < loot.Length; i++)
{
if (lootCorpse.Items.Count(loot[i]) > 0)
{
UO.MoveItem(lootCorpse.Items.FindType(loot[i]), 0, World.Player.Backpack);
UO.Wait(500);
}
}
UO.Print("Loot finished.");
}
}
}
}

