1
Stealth Client / [C#] Raw_Move
« on: January 20, 2016, 09:44:03 PM »
Does ScriptSDK support Raw_Move command?
I can't use Step / StepQ on the ship...
I can't use Step / StepQ on the ship...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
№: 13|ID:|$4074BD4D|type|$0DF0|Color|$0000|Name|black staff|Price|13|Cliloc||Quantity|19
....
№: 79|ID:|$408EBEA7|type|$0DF0|Color|$0000|Name|black staff|Price|13|Cliloc||Quantity|40 <-- this item's quantity should be 1 (that is I sell back to the vendor)
Console.WriteLine("Start");
Console.WriteLine("SDK Version : "+SDK.Revision);
ScriptSDK.SDK.Initialize();
Mobile a = new Mobile(new Serial(0x004230E2));
a.ContextMenu.Parse();
Console.WriteLine(a.ContextMenu.Entries.Count);
Mobile b = new Mobile(new Serial(0x00B14FC5));
b.AttachContextMenu();
Console.WriteLine(b.ContextMenu.Parse()); // Return False ?
Console.WriteLine(b.ContextMenu.Entries.Count);
a.ContextMenu.Click(3006123);
Console.WriteLine("End");
Console.ReadKey();
SDK Version : 0.9.0
4
False
0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ScriptSDK.API;
namespace StealthUO
{
class Program
{
static void Main(string[] args)
{
Stealth.Client.Buff_DebuffSystem += _onBuff;
Stealth.Client.CastSpell("Lightning Strike"); // Toggle On
Stealth.Client.CastSpell("Lightning Strike"); // Toggle Off
Console.ReadKey();
}
public static void _onBuff(object sender, Buff_DebuffSystemEventArgs e)
{
Console.WriteLine(e.AttributeId);
Console.WriteLine(e.IsEnabled);
}
}
}
1096
True
1096
False
But the result is1096
False
1096
False
520|3006123|Open Paperdoll|0|0
918|1115022|Open Titles Menu|0|0
915|1049594|Loyalty Rating|0|0
302|3006145|Open Backpack|0|0
416|1114299|Open Item Insurance Menu|0|0
418|3006201|Toggle Item Insurance|0|0
801|3006169|Toggle Quest Item|0|0
1014|1154113|Refuse Trades|0|0
Stealth.Script_SetFindDistance(2);
Stealth.Script_FindType(0xffff, 0x0000);
List<uint> _findlist = new List<uint>(Stealth.Script_GetFindList());
foreach (uint i in _findlist) { Console.WriteLine("{0:X}",i); }
Console.WriteLine("Total:{0}",_findlist.Count);
Console.ReadLine();
TMyPoint[] _path = Stealth.Script_GetPathArray(1011, 513, false, 0);
Console.WriteLine(_path.Length);
// Result : 0;
I can use Stealth.Script_MoveXY to move to the location but i can't get the path array..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ScriptDotNet;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
TExtendedInfo ExtInfo = Stealth.Script_GetExtInfo();
Console.Write(Convert.ToSingle(ExtInfo.FireResist));
// Output : 2304 , Real is 5
Console.ReadLine();
}
}
}