Total-RP / Total-RP-3-Extended

Extended module for the Total RP 3 add-on for World of Warcraft, adding creation tools.
http://extended.totalrp.com
11 stars 13 forks source link

Add API wrappers for IsIndoors, IsOutdoors, GetInventoryItemID #140

Open Seleves opened 5 years ago

Seleves commented 5 years ago

Hi,

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

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.

Solanya commented 5 years ago

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.

Seleves commented 5 years ago

Thats great news! Thank you!