Calling individual job levels

Post Reply
Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Calling individual job levels

Post by Xephyr » Sat May 30, 2015 2:02 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Calling individual job levels

Post by kjLotus » Sat May 30, 2015 2:27 pm

I think you have to make a binding for that

Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Re: Calling individual job levels

Post by Xephyr » Sat May 30, 2015 3:20 pm

I'd love to make a binding, if I had any idea how. Any idea where I could find a decent tutorial?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Calling individual job levels

Post by kjLotus » Sat May 30, 2015 3:43 pm

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

Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Re: Calling individual job levels

Post by Xephyr » Sat May 30, 2015 3:48 pm

Great, I will give it a shot. Thanks!

Drinkie
Posts: 23
Joined: Thu Nov 21, 2013 6:19 am

Re: Calling individual job levels

Post by Drinkie » Tue Jul 07, 2015 4:21 am

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

Post Reply