Jump to content
  • 0

mob.get_damage function ?



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






if mob.get_damage(101) >= 3000 then



will be awesome if possible.

best regard.



Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

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


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Read our Rules
  • Activity

    1. 0

      Help with quest

    2. 0

      Will anyone modify the mount?Mounts need to be mounted to increase their stats.

    3. 11

      Lock Picking Skill + Missions

    4. 4

      Quest Deleter

    5. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    6. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    7. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    8. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    9. 6

      Skill Book Combination System

  • Recently Browsing

    No registered users viewing this page.

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