SUG: QuestIsComplete and SetStepComplete + others
Posted: Wed Mar 27, 2019 4:27 pm
these two lua functions always require you to check to see if you have the quest with hasquest first unless you are absolutely sure you already have it
if you dont check and you dont have the quest it will crash the server
I have in testing and so far it is working when these to functions are executed the lua function will check if you have the quest and just return 0 if it doesnt, no more crashes, and as a sid benifit
you do not have to have a if hasquest state prior to using the above functions, which will make our scripts much cleaner
thoughts comments, are welcome, ie there is a situation where this might not work. before i commit
there are other functions as well i just didnt list them
if you dont check and you dont have the quest it will crash the server
I have in testing and so far it is working when these to functions are executed the lua function will check if you have the quest and just return 0 if it doesnt, no more crashes, and as a sid benifit
you do not have to have a if hasquest state prior to using the above functions, which will make our scripts much cleaner
thoughts comments, are welcome, ie there is a situation where this might not work. before i commit
there are other functions as well i just didnt list them