Jump to content

Ho to set apply or point as a quest reward.


Go to solution Solved by jking,

Recommended Posts

Helo guys, im making biological quest reward and i need to get as reward att bonus against monsters 10%.


I tried a few variations of that code, but when i try to get the reward it doesnt raise the value in the value bar next to inventory.
Also i got same problem with  +10% att bonus.

Can somebody explain to me when to use apply and when to use point? Ty for response. Heres the actual code.

Monster:
affect.add_collect(APPLY_ATTBONUS_MONSTER,10,60*60*24*365*60)
+10% att dmg:
  affect.add_collect(APPLY_ATTBONUS,10,60*60*24*365*60) 

Link to comment
https://metin2.dev/topic/33259-ho-to-set-apply-or-point-as-a-quest-reward/
Share on other sites

On 11/26/2024 at 8:43 PM, kriplxen said:

Helo guys, im making biological quest reward and i need to get as reward att bonus against monsters 10%.


I tried a few variations of that code, but when i try to get the reward it doesnt raise the value in the value bar next to inventory.
Also i got same problem with  +10% att bonus.

Can somebody explain to me when to use apply and when to use point? Ty for response. Heres the actual code.

Monster:
affect.add_collect(APPLY_ATTBONUS_MONSTER,10,60*60*24*365*60)
+10% att dmg:
  affect.add_collect(APPLY_ATTBONUS,10,60*60*24*365*60) 

affect.add_collect_point(POINT_ATTBONUS_MONSTER,10,60*60*24*365*60)
affect.add_collect_point(POINT_ATT_BONUS,10,60*60*24*365*60)

Try this and use the points. For me it is the easiest way

  • Love 1
  • Active Member
  • Solution

Do you have defined APPLY_ATTBONUS_MONSTER anywhere (for example in questlib.lua)? I think this is the problem, for me it looks like this:

affect.add_collect(apply.DEF_GRADE_BONUS, 60, 60*60*24*365*60)

and in questlib.lua I have:

apply = {
	["MAX_HP"]		= 1,
	["MAX_SP"]		= 2,
	....
	["DEF_GRADE_BONUS"]	= 54,
	...
}

 

Edited by jking
  • Love 1
  • 2 weeks later...
On 11/28/2024 at 9:35 AM, Nuzzo said:
affect.add_collect_point(POINT_ATTBONUS_MONSTER,10,60*60*24*365*60)
affect.add_collect_point(POINT_ATT_BONUS,10,60*60*24*365*60)

Try this and use the points. For me it is the easiest way

Yeah worked thank you guys.

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.