Snooping
Datum: 27/07/2011 12:58:09
Staženo: 520x
Popis:
Příkazy:
- ,exec snooping
Kód:
using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using Phoenix.WorldData;
using System.Runtime.CompilerServices;
namespace Scripts.Train
{
public class Bag
{
/*private bool m_Opened;
public bool Opened
{
get { return m_Opened; }
set { m_Opened = value; }
}*/
[ServerMessageHandler(0x24)]
public CallbackResult BagIsOpened(byte[] data, CallbackResult prevResult)
{
/* Bag.Opened = true;*/
UO.Print("Bag Opened");
return 0;
}
}
public class Trainsasdsads
{
[Executable]
public void snooping()
{ Phoenix.Serial baglik = 0x40207C3E;
while (World.Player.Hits > 0) {
UO.DeleteJournal();
using (var BagOpened = new ItemOpenedEventWaiter(baglik)) {
UO.UseObject(baglik);
BagOpened.Wait(1000);
for (int i = 0; i < 400; i++) {
if (BagOpened.Wait(100) || UO.InJournal("You Fail to peek"))
break;
}
}
}
}
}
}

