Jump to content

Recommended Posts

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
https://metin2.dev/topic/4180-quest-login-magic-resistance/#findComment-26714
Share on other sites

  • 2 weeks later...
  • Premium

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
https://metin2.dev/topic/4180-quest-login-magic-resistance/#findComment-27933
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.