ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: Papang- on December 21, 2017, 05:46:58 AM

Title: Equp weapon
Post by: Papang- on December 21, 2017, 05:46:58 AM
After a little analysis of the ScriptSDK, I am not sure how to open a cursor, target the object and then equip the target object.

I suppose it is obvious to create a "List", invoke a virtual cursor, retrieve the ID of the target object and put it in the "List", then find the function that allows to equip the object of the list by indicating its "Serial".

If anyone could enlighten me or give me a sample on how the procedure works?  I will be really grateful.

Post Merge: December 22, 2017, 02:47:32 PM
My idea was :

Quote
private static PlayerMobile Me = PlayerMobile.GetPlayer();
var weap = Me.Targeting.VCursorToObjectID();
Me.Equip(0x01, weap);

is VCursorToObjectID not the good option ? 

Post Merge: December 22, 2017, 02:52:17 PM
Edited the first post