Spiritual
Datum: 23/11/2014 23:22:33
Staženo: 647x
Popis:
Spustíš, zobrazí se ti hláška:
Start detection directory - Activated (Lilith na Stone Human)
potom máš 10 sekund na to, aby v jurnálu se objevili světové strany.
TimeOut Script je 10sec.
Nelze spustit 2x
Příkazy:
- ,lilith
Kód:
using System; using System.Collections.Generic; using System.Text; using Phoenix; using Phoenix.WorldData; using System.Linq; using System.Windows.Forms; using System.Threading; using Phoenix.Collections; using System.Security.Permissions; using System.IO; namespace Phoenix.Scripts { public class Spirits { /* * Step master for Lilith na Stone Human * Autor:Smoce */ string[] dirf = { "North East", "South East", "South West", "North West", "North", "East", "South", "West", }; bool ignoreCase = true; int timeout = 10000; [Command("Lilith")] [BlockMultipleExecutions("Lilith")] public void Lilithstep() { bool ends = false; UO.Print(0x00B3, "Start detection directory - Activated (Lilith na Stone Human)"); UO.DeleteJournal(); do { UO.DeleteJournal(); bool sa = funcas(); if (sa == true) { UO.Print(0x00B3, "OK - Detect successful"); } else { ends = true; UO.Print("FAIL- Detect successful"); } UO.Wait(50); } while (!ends); } public bool funcas() { UO.DeleteJournal(); int select = 0; using (JournalEventWaiter obj = new JournalEventWaiter(ignoreCase, dirf)) { obj.Wait(timeout); } foreach (string value in dirf) { if (Journal.Contains(value)) { MakeStep((byte)select); UO.Print("KROK!"); return true; } select++; } return false; } #region Movement private MessageCallback RegisterMessageCallback(bool client, MessageCallback callback, params byte[] opcodes) { foreach (byte opcode in opcodes) if (client) Core.RegisterClientMessageCallback(opcode, callback); else Core.RegisterServerMessageCallback(opcode, callback); return callback; } private bool MakeStep(byte direction) { return MakeStep(direction, 0); } private bool MakeStep(byte direction, int depth) { if (depth >= 8) return false; while (!Step(direction)) MakeStep((byte)((direction + 1) % 8), ++depth); return true; } public bool Step(byte direction) { Keys[] directions = { Keys.Right, // 1 Keys.Down, // 3 Keys.Left, // 5 Keys.Up, // 7 Keys.PageUp, // 0 Keys.PageDown, // 2 Keys.End, // 4 Keys.Home, // 6 }; Keys key = directions[direction]; int cost = 0; switch (World.Player.Direction) { case 0: cost = 4; break; case 1: cost = 0; break; case 2: cost = 5; break; case 3: cost = 1; break; case 4: cost = 6; break; case 5: cost = 2; break; case 6: cost = 7; break; case 7: cost = 3; break; default: cost = 0; break; } if (cost != Convert.ToInt32(direction)) { Step(key); } Step(key); return true; } public bool Step(Keys key) { UO.Press(key); return true; /* * Slouží k zabezpečení proti problémům, u tohoto scriptu nevyžaduje bool result = false; using (ManualResetEvent handled = new ManualResetEvent(false)) { using (ManualResetEvent requested = new ManualResetEvent(false)) { MessageCallback requestedCallback = RegisterMessageCallback(true, (d, p) => { requested.Set(); handled.WaitOne(200); return p; }, 0x02); try { UO.Press(key); if (!requested.WaitOne(500)) return false; } finally { handled.Set(); Core.UnregisterClientMessageCallback(0x02, requestedCallback); } } handled.Reset(); using (ManualResetEvent responded = new ManualResetEvent(false)) { MessageCallback respondedCallback = RegisterMessageCallback(false, (d, p) => { result = d[0] == 0x22; responded.Set(); handled.WaitOne(500); return p; }, 0x21, 0x22); try { if (!responded.WaitOne(40000)) { UO.PrintWarning("Walk response timeout"); return false; } } finally { handled.Set(); Core.UnregisterServerMessageCallback(0x21, respondedCallback); Core.UnregisterServerMessageCallback(0x22, respondedCallback); } } } UO.Wait(400); return result; */ } #endregion } }
supreme clothing
red bottom shoes
coach outlet online
ecco shoes
ugg boots
coach canada outlet
nike outlet online
canada goose outlet
los angeles dodgers jerseys
moncler outlet
moncler outlet
kate spade handbags
coach factory outlet
gucci handbags
timberland boots
kate spade
birkenstock sandals
coach factorty outlet
adidas superstar
nike cortez
uggs canada
ugg outlet
florida marlins jerseys
adidas shoes
ugg boots
birkenstock outlet
ugg boots
timberland boots
nike shoes
birkenstock sandals
moncler outlet
cheap oakley sunglasses
nike cortez
pandora store
kate spade handbags
nike air max zero
coach outlet
nike air max 1
nike outlet
adidas shoes
birkenstock sandals
air max 97
coach outlet
adidas outlet
coach outlet
canada goose outlet
ray ban sunglasses
jordans
canada goose outlet
kate spade outlet
hermes birkin
pandora charms sale clearance
louboutin shoes
coach outlet
cheap jordans
ugg outlet
adidas yeezy
nike air max
coach outlet
kyrie 4 shoes
ugg outlet
oakley sunglasses
michael kors outlet clearance
nike free run
arizona diamondbacks jerseys
christian louboutin
jordan shoes
coach outlet store online
kate spade outlet store
moncler outlet
ecco shoes
pandora charms sale clearance
canada goose outlet
nike air max shoes
uggs
salomon shoes
mont blanc
pandora charms
adidas nmd
longchamp outlet
coach outlet
kansas city royals jerseys
skechers shoes
coach outlet store
oakley sunglasses
canada goose outlet
cartier outlet
nike dunks
coach outlet
tampa bay devil rays jerseys
columbia shoes
coach outlet
pandora jewelry
asics shoes
seattle mariners jerseys
adidas nmd shoes
ugg boots
michael kors outlet online
coach factorty outlet
pandora outlet
uggs canada
ralph lauren outlet
ugg outlet
coach outlet
air max 2019
polo ralph lauren outlet online
uggs
cheap mlb jerseys
ugg outlet
canada goose jackets
ecco outlet
michael kors outlet
ugg outlet
michael kors outlet clearance
air jordan shoes
polo ralph lauren outlet online
fitflops
louis vuitton
pandora jewelry
moncler outlet
ysl handbags
coach outlet
pandora jewelry
nike shoes