Yuna Posted November 25, 2016 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 96 Reputation: 5 Joined: 03/16/16 Last Seen: May 30, 2023 Share Posted November 25, 2016 (edited) 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 November 25, 2016 by Lilo Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted November 25, 2016 Group: Developer Topic Count: 35 Topics Per Day: 0.01 Content Count: 818 Reputation: 237 Joined: 01/30/13 Last Seen: Friday at 08:24 PM Share Posted November 25, 2016 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. Quote Link to comment Share on other sites More sharing options...
0 Yuna Posted November 26, 2016 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 96 Reputation: 5 Joined: 03/16/16 Last Seen: May 30, 2023 Author Share Posted November 26, 2016 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! Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted November 26, 2016 Group: Developer Topic Count: 35 Topics Per Day: 0.01 Content Count: 818 Reputation: 237 Joined: 01/30/13 Last Seen: Friday at 08:24 PM Share Posted November 26, 2016 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. Quote Link to comment Share on other sites More sharing options...
Question
Yuna
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 LiloLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.