Author Topic: Equp weapon  (Read 2920 times)

0 Members and 1 Guest are viewing this topic.

Offline Papang-Topic starter

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 1
  • Papang- has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Equp weapon
« on: December 21, 2017, 05:46:58 AM »
0
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



« Last Edit: December 22, 2017, 02:52:17 PM by Papang- »

Tags: