Jump to content
  • 0

How to check mob hp


S4nta

Question

Hello!

How can I check mob hp in quest? Like meley - 75% hp statue and statue blocks.

I know that function is d.unique_get_hp_perc, but I don't know how to use it 😕

*Sorry for my English*

Link to post

3 answers to this question

Recommended Posts

  • 0
1 hour ago, DeltaD said:

C++ bro

The meley lair dungeon work on src

I know XD But I want to try make dungeon like Meley but on only quest.

 

/edit. Is there a tutorial how to make similar system in c++?

Edited by S4nta
Link to post
  • 0
12 hours ago, S4nta said:

I know XD But I want to try make dungeon like Meley but on only quest.

 

/edit. Is there a tutorial how to make similar system in c++?

Hello, 

 

It's possible to do something like that in LUA, but you'll find some problems. Here you have all the function you need to make something like you want:

 


local mob_1 = d.spawn_mob(VNUM, X, Y)
d.set_unique("mob_1_unique", mob_1)
d.unique_set_maxhp("mob_1_unique", HP)
d.unique_set_hp("mob_1_unique", HP)
d.unique_get_hp_perc("mob_1_unique")
d.unique_set_def_grade("mob_1_unique", 99999)

 

All the functions are self-explanatory, you just need to use some triggers to call them (like server_timer, kill, login, etc).

There isn't a way (with the actual functions) to block the hp from the mob you want, but you can use the last function to increase it's defense. Doing this, you'll find one problem: piercing damage will take affect on the defense given to the mob, so this isn't a good method.

 

Hope I helped you in some way. If you have any question, you can send me a message on my discord: Doka#5676

 

Sincerely,

Esculpe

 

  • Metin2 Dev 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

×
×
  • 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.