Total RP 3: Extended

Total RP 3: Extended

903k Downloads

Add API wrappers for IsIndoors, IsOutdoors, GetInventoryItemID

Seleves opened this issue ยท 2 comments

commented

Hi,

would it be possible to have the following WOW API functions available in conditions and variable assignments?

  • IsIndoors() - true/false whether the player is inside a building or not
  • IsOutdoors() - true/false whether the player is not inside a building or not
  • GetInventoryItemID("unit", slotId) - returns the item id of the item at a specific slot, or nil if no item is equipped

Rationale:
While one can check whether a player is close to a certain point, one cannot check whether he is actually inside (or not inside) a desired building. In my special case, I need to check whether the player is on the roof of a building. My current workaround: tell the player to mount up, because he woudn't be able to mount inside.
With GetInventoryItemID, I'd like to do checks similar to: is the player armed/unarmed?, does the player have item X equipped?, etc.

commented

Hey,

Sure thing for all of them (inventory check should already be on the list somewhere). Can't promise when but I'll see if I can add a bunch of conditions in the next major version.

commented

Thats great news! Thank you!