Page 1 of 1

Calling individual job levels

Posted: Sat May 30, 2015 2:02 pm
by Xephyr
I would like to edit advanced job quests to require specific basic jobs to be at certain levels, rather than the retail requirement of anything at 30.

I found the quests within the NPC lua files and know how to edit the requirements, however, I don't know how to call individual job levels. I see that there is a call getMainLvL(), is there already a call made for each job? Would anyone be able to explain to me how and where to create a call for individual levels? I know the table char_jobs holds all of a characters job levels, so I should just have to call the value from there.

Re: Calling individual job levels

Posted: Sat May 30, 2015 2:27 pm
by kjLotus
I think you have to make a binding for that

Re: Calling individual job levels

Posted: Sat May 30, 2015 3:20 pm
by Xephyr
I'd love to make a binding, if I had any idea how. Any idea where I could find a decent tutorial?

Re: Calling individual job levels

Posted: Sat May 30, 2015 3:43 pm
by kjLotus
just follow the other functions in lua_baseentity.cpp/.h - all you have to do is make the function, and then declare it at the bottom of lua_baseentity.cpp

Re: Calling individual job levels

Posted: Sat May 30, 2015 3:48 pm
by Xephyr
Great, I will give it a shot. Thanks!

Re: Calling individual job levels

Posted: Tue Jul 07, 2015 4:21 am
by Drinkie
This certainly sounds like a interesting idea how is this coming along then? i have a idea for a few requirements but you've probably thought of them already lol