Jump to content
  • 0

Elemental Immunity Script not working


ran0120

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.04
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/18/23
  • Last Seen:  

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?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  236
  • Reputation:   87
  • Joined:  06/30/18
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.04
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/18/23
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  155
  • Reputation:   51
  • Joined:  07/15/13
  • Last Seen:  

You can take a look: 
 

SC_ARMOR_RESIST


Reference item: 12279

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.04
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/18/23
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  236
  • Reputation:   87
  • Joined:  06/30/18
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.04
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/18/23
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  155
  • Reputation:   51
  • Joined:  07/15/13
  • Last Seen:  

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
Link to comment
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.   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.

×
×
  • Create New...