Jump to content
  • 0

Immunity to Hallucination


Yuna

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   5
  • Joined:  03/16/16
  • Last Seen:  

I'm looking for a way to have Immunity for Hallucination since there in no script for this in item_bonus.txt

I know that you are able to disable the hallucination effect through client diffing, but this is not what I am looking for.
 

Can this be done through a script perhaps?

Edited by Lilo
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  818
  • Reputation:   237
  • Joined:  01/30/13
  • Last Seen:  

Doesn't bResEff works for this?

bonus2 bResEff,eff,n; Adds a n/100% tolerance to status eff

Probably requires an "Eff_" define here: https://github.com/rathena/rathena/blob/master/src/map/script_constants.h

I haven't tried, so not sure if another part needs to be modified.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   5
  • Joined:  03/16/16
  • Last Seen:  

So, I added the following:

script_set_constant("Eff_Hallucination",SC_HALLUCINATION,false);

Tested it out, but got the following error:

[Error]: pc_bonus2: SP_RESEFF: 52 is invalid effect.

There seems to be more to edit. I am playin around tryna figure out. Meanwhile, if you have any other suggestions let me know, thanks!

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  818
  • Reputation:   237
  • Joined:  01/30/13
  • Last Seen:  

Hmm yeah if you look at the function the error points to:

		if (type2 < SC_COMMON_MIN || type2 > SC_COMMON_MAX) {
			ShowError("pc_bonus2: SP_RESEFF: %d is invalid effect.\n", type2);
			break;
		}

It only works for status changes that are considered a common status change.

The IDs are defined in status.h. You'll need to rewrite the status change into a common status change.

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