Jump to content

Use Item (from quest) on target


NvD

Recommended Posts

Hello All,

Anyone can help me out with this:

- problem: i am trying to make a quest and i need to use an item *from quest" but i have two problems:

1 - the below uses the item (from quest) but is not working all the time (i believe worked once after i have dismounted first)

2 - the below kills the target (and shouldn't)

What i have used:

RunCode:

if (ObjectManager.Target.IsValid && !ObjectManager.Target.IsAlive)
   {
    ItemsManager.UseItem(itemId);
   }
  }
  Thread.Sleep(3000);

Pulse:

simple quest with InteractWithNPC

Regards,

N

Link to comment
Share on other sites

I can't help you with that, but can give you another solution :)

On the bottom of the InteractWithNpc there is a field called "Macro when interact. Full lua code".

Just insert 

UseItemByName(itemID)

and you are done.

And it is a lot faster during the start of your profile :)

Link to comment
Share on other sites

Hello, to ignore fight, you can run this c# code before pulse quest: http://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=13088 

To use item on hostile npc, you can also use this: http://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=12204 

What version of Wow do you play?

Link to comment
Share on other sites

also, i found out that i need to use gatherer since the item id http://www.wowhead.com/item=35123/microfilm is dropping and i have to loot them

any suggestions on how to achieve this?

 

quest: http://www.wowhead.com/quest=11728/lupus-pupus

item from quest (that needs to be used 1st): http://www.wowhead.com/item=35121/wolf-bait

item that needs to be garthere from mob (after few seconds): http://www.wowhead.com/object=187981/wolf-droppings (when you open this you get http://www.wowhead.com/item=35123/microfilm)

 

and i need 8 of these :D so it needs to be something that repeats. never used If statements, any tutorials for this? :)

Link to comment
Share on other sites

On 4/5/2016 at 2:10 AM, NvD said:

and Droidz, the code from http://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/#comment-12204 is working only if the cast is instant, but what about if the cast needs 2-3 sec to finalize?

After 

ItemsManager.UseItem(itemId);

add 

 Usefuls.WaitIsCasting();

 

On 3/5/2016 at 11:51 AM, NvD said:

also, i found out that i need to use gatherer since the item id Microfilm is dropping and i have to loot them

any suggestions on how to achieve this?

 

quest: Lupus Pupus

item from quest (that needs to be used 1st): Wolf Bait

item that needs to be garthere from mob (after few seconds): Wolf Droppings (when you open this you get Microfilm)

 

and i need 8 of these :D so it needs to be something that repeats. never used If statements, any tutorials for this? :)

Before pulse this quest, add step type "RunCode" with param:

wManager.wManagerSetting.CurrentSetting.ListHarvest.Add(187981);

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...