Seeking some assistance

11/27/2011 04:12 superiorflame#1
Ok basically what I'm trying to do is set a specific buff to be activated when any character ascends to that specific class. I have been fidgeting around with the lua file and can't seem to get the buff to activate. Anyone better at lua scripting that can share some insight on what my problem might be, I'd be very thankful. This is what I've come up with so far :

local job = get_value("job")
if job == 303 then
add_state("145219, 1, 60480000")
end
11/27/2011 06:28 SilentBill#2
Look for this function in your Job Change LUA
Code:
function Run_JobChange_common( job_name , job_id )
This is the one that actually changes jobs, everywhere but TI.
Just add your ifs in there, it should work. I added a notice that announces to everyone who changed job and to what.
11/27/2011 07:05 superiorflame#3
Hmm found the function and tried my if statements in there, but upon my job change the buff effect is not activated. I'm obviously guessing its my If statement, do you see an error in the statement I posted above?
11/27/2011 08:03 SilentBill#4
Now that you mention it, yes, no quotation marks should go in the add_state function, they're numbers.
11/27/2011 15:32 superiorflame#5
Yea removed the quotes and that does not work, tried changing up the if statement can't get it to work, can't seem to figure out where I'm going wrong lol. Went to sleep at 3 am this morning trying hard to get it to work :/