Island Buff?

oly0015

Member
By chance is there a way to use an island buff without crashing a script if it happens that the user does not have the quest completed?

I was thinking of using something like cli_execute("concert wink"); which works fine if you have the buff available even if the cast has been used. The problem is that if you don't have the quest completed and run that command it aborts the script so i need to figure out a way to check against that.
 

heeheehee

Developer
Staff member
cli_execute() returns a boolean, true if the command was successfully executed, false if the command was not. You have a handful of options -- capture the return value somehow (save to a variable or place inside an if statement, for instance) or check the related properties (sidequestArenaCompleted, sideDefeated, and concertVisited) beforehand.
 

oly0015

Member
slyz got me the property i needed to check for it already, i was looking on the property list but its listed under sidequestareacompleted and i was searching for other words
 
Top