Jump to content
  • 0

Quest Login Magic Resistance


iRETEMAG

Question

5 answers to this question

Recommended Posts

  • 0
quest magicres begin
	when login begin
		if pc.getqf("magic_res") == 0 and pc.job ~= 2 then
			pc.setqf("magic_res",1)
                        --37 = magic resistance id
                        --10 = value
                        --60*60*24*365 = duration
			affect.add_collect(37,10,60*60*24*365)
		end
	end
end
  • Love 2
Link to comment
  • 0
quest magicres begin
    when login begin
        if pc.getqf("magic_res") == 0  then
            pc.setqf("magic_res",1)
                        --37 = magic resistance id
                        --10 = value
                        --60*60*24*365 = duration
            affect.add_collect(37,10,60*60*24*365)
        end
    end
end
  • Love 2
Link to comment
  • 0
  • VIP

Based at if pc.get_skill_level:
 

pc.set_skill_level("1", "59")
affect.add_collect(37,10,60*60*24*365)
pc.set_skill_level("16", "59")
affect.add_collect(37,20,60*60*24*365)

This is what I want.  B) Someone?

  • Love 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.