Jump to content
  • 0
Svanhild

how to get the vit of an enemy?

Question

So i'm making this custom card, that when the enemy has more than 50 Vit, the user of the card will give a bonus of 25% atk, is there a way to do this?

Share this post


Link to post
Share on other sites

21 answers to this question

Recommended Posts

  • 0

Currently no i don't think so. We need setmobdata/getmobdata for checking vitality of specified mob.

Share this post


Link to post
Share on other sites
  • 0

Yeah I was really so frustrated how to make this thing work, coz I was gonna make a card that it would depend on the target enemy player's vit or hp or other stats. Thana is perfect, but I want something that is more refined, thana only depends on the players def, if its used with grimtooth and tao gunka, thana is almost useless so im trying to build this custom card that would base depending on the enemy's vit, unfortunately..

Share this post


Link to post
Share on other sites
  • 0

yeah i am thinking of that too, i was also thinking of making a new const, so i could just use the readparam maybe? i don't have much time today, but i'll definitely give it a try.

Share this post


Link to post
Share on other sites
  • 0
Guest

So i'm making this custom card, that when the enemy has more than 50 Vit, the user of the card will give a bonus of 25% atk, is there a way to do this?

 

Currently no i don't think so. We need setmobdata/getmobdata for checking vitality of specified mob.

 

I started working on a plugin to achieve this. Its a nice idea  :rolleyes:

Share this post


Link to post
Share on other sites
  • 0

oh wow :D I haven't really tried making plugins so I guess I'm pretty much limited with the src/db right now. Looking forward for your success :D 

Share this post


Link to post
Share on other sites
  • 0
Guest

oh wow :D I haven't really tried making plugins so I guess I'm pretty much limited with the src/db right now. Looking forward for your success :D

 

Looks good, but takes some time :)

Share this post


Link to post
Share on other sites
  • 0
Guest

https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/bAtkEnemyVit.c

+1 to Normynator too, since he motivated me to do this..

And I also misunderstood the task, I made a plugin for a something a bit different.

Example: If enemy has 20 Str you do 20% more dmg.

 

So i'm making this custom card, that when the enemy has more than 50 Vit, the user of the card will give a bonus of 25% atk, is there a way to do this?

Finished my version too, took me a lot longer and its not exact the request but maybe still helpful :)

+1 to Dastgir for typs and tricks.

 

https://github.com/Normynator/Ragnarok/blob/master/HPM-Plugins/bonustargetstats.c

Share this post


Link to post
Share on other sites
  • 0

LOL guys you just made me smile today. That was fast! Btw, I need some clarification for this, does the damage bonus increase per every vit increase from the base vit that is set or does it give a fixed damage bonus once it meets the condition of x vit? I haven't tried the plugin, imma give it a try tonight.

Share this post


Link to post
Share on other sites
  • 0
Guest

LOL guys you just made me smile today. That was fast! Btw, I need some clarification for this, does the damage bonus increase per every vit increase from the base vit that is set or does it give a fixed damage bonus once it meets the condition of x vit? I haven't tried the plugin, imma give it a try tonight.

 

 

In my version: fixed percent of damage is increased once vit condition is satisfied

 

 

Same. My version increases the overall dmg, dastgir's version increases atk (as requested).

Share this post


Link to post
Share on other sites
  • 0

 

LOL guys you just made me smile today. That was fast! Btw, I need some clarification for this, does the damage bonus increase per every vit increase from the base vit that is set or does it give a fixed damage bonus once it meets the condition of x vit? I haven't tried the plugin, imma give it a try tonight.

 

 

>In my version: fixed percent of damage is increased once vit condition is satisfied

 

 

Same. My version increases the overall dmg, dastgir's version increases atk (as requested).

 

You misunderstood  :(  :(

My Version increase Percentage of Atk (i.e Overall Damage dealt to enemy)

Share this post


Link to post
Share on other sites
  • 0
Guest

 

 

 

 

 

 

 

 

 

 

LOL guys you just made me smile today. That was fast! Btw, I need some clarification for this, does the damage bonus increase per every vit increase from the base vit that is set or does it give a fixed damage bonus once it meets the condition of x vit? I haven't tried the plugin, imma give it a try tonight.

>

>

>

>

>>In my version: fixed percent of damage is increased once vit condition is satisfiedlockquote>

 

 

>
Same. My version increases the overall dmg, dastgir's version increases atk (as requested).>>>

You misunderstood :(:(

My Version increase Percentage of Atk (i.e Overall Damage dealt to enemy)

Dastgir is right, i made a mistake, thanks to my english skills.

I am sorry.

Hope you enjoy the plugins :)

Edited by Guest

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, Hadeszeus said:

@Dastgir not working on the latest stable version. If you have time hopefully you can update this awesome addition. :)

 

 

 

image.png

You used bonus instead of bonus2

Share this post


Link to post
Share on other sites
  • 0
Just now, Dastgir said:

You used bonus instead of bonus2

With this one, I used bonus2 and got similar if not the same.

bonus2 bAtkEnemyVit, 5, 1000;

image.png.10bbb501f282070b0035fc65aaf98ebb.png

Share this post


Link to post
Share on other sites
  • 0

in your server not exists constant bAtkEnemyVit. and server report error with type 0

 

Share this post


Link to post
Share on other sites
  • 0
19 minutes ago, 4144 said:

in your server not exists constant bAtkEnemyVit. and server report error with type 0

 

Hi 4144, thanks for your reply. I tried adding it and got lots of errors when I run the map server.

Can you confirm that this is not correct?
image.png.a15467fa206515176fdff175fdaead8c.png

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Hadeszeus said:

Hi 4144, thanks for your reply. I tried adding it and got lots of errors when I run the map server.

Can you confirm that this is not correct?
image.png.a15467fa206515176fdff175fdaead8c.png

Plugin adds it, your plugin is not enabled as well. (Check HPMHooking as well)

 

Also, the stacktrace shows pc_bonus instead of pc_bonus2, make sure the item doesn't have any other bonus to test this properly.

Share this post


Link to post
Share on other sites
  • 0
14 hours ago, Dastgir said:

Plugin adds it, your plugin is not enabled as well. (Check HPMHooking as well)

 

Also, the stacktrace shows pc_bonus instead of pc_bonus2, make sure the item doesn't have any other bonus to test this properly.

Hey Dastgir! Thanks for the guidance. I re-arranged the position of my plugins and it works perfectly now. Thank you!

@4144 thank you as well.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.