Jump to content
Ximboliex

[QUESTION] Hit for Money

Recommended Posts

Hi! PKODev Need your help please'

 

This was a scripts that I intrigue, when you hit the mob you add an amount of money either based on your max or a formula credited by the scripter, the author of such scripts is Fisal Mohamed of GPKO, some of you have knowledge of How to create such scripts or tell me where you can run this scripts

 


xbx3.png

Share this post


Link to post
Share on other sites
18 minutes ago, Ximboliex said:

Hi! PKODev Need your help please'

 

This was a scripts that I intrigue, when you hit the mob you add an amount of money either based on your max or a formula credited by the scripter, the author of such scripts is Fisal Mohamed of GPKO, some of you have knowledge of How to create such scripts or tell me where you can run this scripts

 

 

You can either use the "is_friend" function or the function that is called upon dealing damage to players/monsters.

 

The "is_friend" function is triggered each time you attack another player/monster to check whether they are friendly or not (in other words if you can deal damage to them). If you want to just add money based on the attacker's minimum/maximum attack directly, you can use that.

 

I can't remember the exact name of the function that deals with all the dealt damage after all the reductions, it's somewhere within the file with all the skills. Within that function you can use the final damage output and add that as a money value as well.

  • Like 2

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
Reply to this topic...

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


×
×
  • Create New...