Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Use Item (from quest) on target

Featured Replies

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

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 :)

  • Author

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? :)

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);

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.