Show Posts

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.


Topics - rwo001

Pages: [1]
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...

2
Stealth Client / NPC Shop problem
« on: January 13, 2016, 07:50:42 PM »
Using GetShopList() to get string of ShopList
Code: [Select]
№: 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)

Also, if the shop have more than 1 item with same type and color like above. You may buy more item that you set in AutoBuy(type,color,quantity)

In above case, if you AutoBuy(0x0DF0, 0x0000, 1) , you will buy 2 items.



3
Stealth Client / [C#] ContextMenus Question
« on: January 13, 2016, 07:34:23 PM »
Code: [Select]
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();

Code: [Select]
SDK Version : 0.9.0
4
False
0

How can i do to parse the context menu of b?

4
Stealth Client / [C#] Buff Event Question
« on: December 30, 2015, 05:57:10 PM »
Code: [Select]
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);           
        }
    }
}

I expected the about code shoud return
Code: [Select]
1096
True
1096
False
But the result is
Code: [Select]
1096
False
1096
False

Anyone knows what the problem is?

5
Stealth archive / Stealth.Script_GetLandTileData
« on: December 18, 2013, 07:52:45 PM »
When i try to use
Code: [Select]
TLandTileData _tiledata = Stealth.Script_GetLandTileData(169);


Error on debug window

Code: [Select]
A first chance exception of type 'System.AccessViolationException' occurred in mscorlib.dll

6
Stealth archive / Stealth.Script_SetContextMenuHook()
« on: December 08, 2013, 07:19:32 PM »
Code: [Select]
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_SetContextMenuHook(id,Entry Number)
Is Entry Number using the first split value? e.g. Stealth.Script_SetContextMenuHook(Self.ID,302) for Open Backpack?
But it will over flow...

7
Stealth archive / Stealth 6.1.5
« on: December 08, 2013, 05:40:42 PM »
C# script cannot run after update to 6.1.5... :-X

8
Stealth archive / Stealth.Script_FindType
« on: December 02, 2013, 07:01:11 AM »
Code: [Select]
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();

i found the result is different from i see in StealthUO as attached.

9
Stealth archive / How to use Script_GetPathArray (C#)
« on: November 30, 2013, 08:09:57 PM »
Code: [Select]
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..

10
Code: [Select]
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();

        }
    }
}

What the problem is ? I'm is OSI shard

Pages: [1]