Jump to content

Recommended Posts

Hi guys,

 

someone know if there is some quest function that we can get the player damage on a mob?

 

if not, can someone creat it?

 

something like this:

 

when 101.get_damage() >= 3000 begin

 

 

or

 

 

if mob.get_damage(101) >= 3000 then

 

 

will be awesome if possible.

best regard.

 

 

Link to comment
https://metin2.dev/topic/1929-mobget_damage-function/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can't get exact value, because it's random and changes each time mob attacks you. You might get and set npc's damage multiplier by using those functions
npc.get_vid_attack_mul
npc.set_vid_attack_mul
npc.get_vid_damage_mul
npc.set_vid_damage_mul

 

as a first argument for all of these, you have to pass selected npc's VID (obtained either by find_npc_by_vnum for npc like merchants, or just npc.get_vid() while in example attacking a mob), the second one is only for set functions and it might be float or integer. Remember, float's separator is ONLY dot (.), not a comma (,).

 

 

 

//edit: it's possible to create such quest trigger, which will activate quest on NPC attack. In fact, you will have huge problems with lags, because more quests with such trigger you have, the lags are bigger. You will just have to add new quest trigger, activated when npc attacks you.

Link to comment
https://metin2.dev/topic/1929-mobget_damage-function/#findComment-13618
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.