Quantcast
Ghostwheelai Shortcuts simple test required - ESOUI
Thread Tools Display Modes
08/04/20, 04:00 AM   #1
GhostwheelAI
 
GhostwheelAI's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 10
Ghostwheelai Shortcuts simple test required

Hi.

I made a simple addon. And plan to keep developing it. One of the functions is to jump to primary house. I tried to keep the code as simple as possible, so this function doesn't check for null.

I've just thought that maybe if player doesn't own any house it would get an exception and throw nil error in the ui. Can somebody who doesn't have a house check this please?

Last edited by GhostwheelAI : 08/04/20 at 04:03 AM.
  Reply With Quote
08/04/20, 04:54 AM   #2
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,041
Sure, provide the function here so we can run it with /script funcName ingame
But I doubt it will return nil (if it's an API function). It might return 0 or false I guess.
  Reply With Quote
08/04/20, 05:52 AM   #3
GhostwheelAI
 
GhostwheelAI's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 10
Originally Posted by Baertram View Post
Sure, provide the function here so we can run it with /script funcName ingame
But I doubt it will return nil (if it's an API function). It might return 0 or false I guess.
It's 2 API functions combined. I think it will fail.

Code:
RequestJumpToHouse(GetHousingPrimaryHouse())

Last edited by GhostwheelAI : 08/04/20 at 05:59 AM.
  Reply With Quote
08/04/20, 04:25 PM   #4
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,041
d(GetHousingPrimaryHouse()) returns 0 if you do not own any house and
RequestJumpToHouse(0) does nothing.
So no error message as it seems.
  Reply With Quote

ESOUI » AddOns » Alpha/Beta AddOns » Ghostwheelai Shortcuts simple test required

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off