Jump to content
  • 0

Elemental Immunity Script not working


Question

Posted

I'm tring to create an item that will make users immunte to poison status and attack. The immunity to the status immunity works but for the immunity to status attack bit, it seems that instead of immunity, I'm getting reduction instead. My current script is:

 

Quote

bonus2 bSubEle,Ele_Poison,100;

When I tried it with an Assassin with Enchant Poison or A Sniper with Rusty Arrow, the damage the damage got reduced from 230 to 170. Shouldn't it mke the attack miss or make the damage 1? What's wrong with the script?

7 answers to this question

Recommended Posts

  • 0
Posted
8 hours ago, Winterfox said:
bonus2 bSubEle,e,x;       		+x% damage reduction against attack element e

I couldn't find a state bonus that gives immunity to an element. So I am not sure if something like that exists.

Wouldn't this script be it? I mean if the poison damage is 100 and you put bonus2 bSubEle,Ele_Poison,100; the damage reduction becomes 100% thus making the poison damage 0?

  • 0
Posted
27 minutes ago, EIysium said:

You can take a look: 
 

SC_ARMOR_RESIST


Reference item: 12279

It seems to only apply to the four major elements. How about for the other elements? Specifically poison?

 

Quote

SC_ARMOR_RESIST    ()
    desc: Adjust element resistance by percentage
    val1: Water resistance
    val2: Earth resistance
    val3: Fire resistance
    val4: Wind resistance

 

  • 0
Posted (edited)
11 hours ago, ran0120 said:

Wouldn't this script be it? I mean if the poison damage is 100 and you put bonus2 bSubEle,Ele_Poison,100; the damage reduction becomes 100% thus making the poison damage 0?

Logically, that would make sense, yes. But the calculations in ragnarok don't seem to always work exactly as one would expect under all circumstances.

Edited by Winterfox
  • 0
Posted
52 minutes ago, Winterfox said:

Logically, that would make sense, yes. But the calculations in ragnarok don't seem to always work exactly as one would expect under all circumstances.

I did try the script using other element and it did work (set it up to -100% Fire reduction and fire spells immunity has been reached.). Just wondering how it works in spells but not with physical attacks.

  • 0
Posted (edited)
15 hours ago, ran0120 said:

It seems to only apply to the four major elements. How about for the other elements? Specifically poison?

 

 

You can create your own bonus resist based on elemental resist potion for example SC_ARMOR_ELEMENT_EARTH

Edited by EIysium

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