Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 01:40

  • Please register to post and access all features, it's quick, easy and FREE!

 

Seeking some assistance

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2011
Posts: 184
Received Thanks: 27
Seeking some assistance

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



superiorflame is offline  
Old   #2
 
elite*gold: 0
Join Date: Jun 2011
Posts: 304
Received Thanks: 177
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.


SilentBill is offline  
Old   #3
 
elite*gold: 0
Join Date: Oct 2011
Posts: 184
Received Thanks: 27
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?
superiorflame is offline  
Old   #4
 
elite*gold: 0
Join Date: Jun 2011
Posts: 304
Received Thanks: 177
Now that you mention it, yes, no quotation marks should go in the add_state function, they're numbers.


SilentBill is offline  
Old   #5
 
elite*gold: 0
Join Date: Oct 2011
Posts: 184
Received Thanks: 27
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 :/


superiorflame is offline  
Reply



« Previous Thread | Next Thread »



All times are GMT +2. The time now is 01:40.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.