Jump to content
  • 0

Script request


Question

Posted

- 5% chance to cast lv 10 lord of vermillion on the enemy (ID# 85) when dealing magical damage

pls help me

- 5% chance to cast Lv 5 Earthquake when attacking

bonus3 bAutoSpell,"NPC_EARTHQUAKE",5,50

got wrong??

3 answers to this question

Recommended Posts

Posted

read this

trunk/doc/item_bonus.txt

bonus5 bAutoSpell,x,y,n,t,i;  n/10% chance to cast skill x of level y when attacking (supports skill names)
 t: Trigger criteria:
    BF_SHORT: Trigger on melee attack
    BF_LONG: Trigger on ranged attack
    ( Default: BF_SHORT+BF_LONG )

    BF_WEAPON: Trigger on weapon skills
    BF_MAGIC: Trigger on magic skills
    BF_MISC: Trigger on misc skills
    ( Default: BF_WEAPON )

    BF_NORMAL: Trigger on normal
    attacks.
    BF_SKILL: Trigger on skills
    (Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)

    i:
    0=cast on self
    1=cast on enemy, not on self
    2=use random skill lv in [1..y]
    3=1+2 (random lv on enemy)

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...