Jump to content
  • 0
Sign in to follow this  
nikki1200

GX Poison 100% Chance Effect

Question

Hi All,

 

Seeking for your assistance on how to fix the GX poison, it always 100% chance effect. T_T

 

Please see below my item_db

 

12719,Poison_Oblivion,Oblivion Curse,0,2,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ if(rand(10000) < 10) sc_start SC_OBLIVIONCURSE,300000,0; },{},{}

 

I 2ble check it on  sql-files it;s the same.

 

Can you help me to fix this one.

 

Please advise,

 

Thanks,

Share this post


Link to post
Share on other sites

22 answers to this question

Recommended Posts

  • 0

Have you tried to use that on a player with high int? Don't know if it's when used by a player with high int or launched on a player with low int, but if I read that code well, success rate is (100 - (100 - 0.8*int) )

Share this post


Link to post
Share on other sites
  • 0

Hi Sir,

 

No i don't want it 100%. all i want is to reduce the effect into at least 20% chance.

 

i checked my status.c and and i saw this formula. maybe there's something wrong on this formula(please see below)

 
case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)
sc_def = 100 - ( 100 - status->int_* 8 / 10 );
// sc_def = max(sc_def, 5); // minimum of 5%
sc_def = max(sc_def, 1); // minimum of 1%
break;
 
Please advise,
 
THanks,

Share this post


Link to post
Share on other sites
  • 0

If you want to make it 100%, just remove this piece of code:

if(rand(10000) < 10)

And done.

i have the same issue, i delete the script for this item but it still works, seems like the item script has nothing to do with it,

 

i think the item is just a catalyst for a skill so it will work even without a script, (oblivion curse = blue gemstone) something like that 

Share this post


Link to post
Share on other sites
  • 0

i think there is no fix for this at the moment i already report this as a bug and still no fix,  i think this is a big deal since silencing a player for 5mins without the ability to resist it is a definitely imbalance

Share this post


Link to post
Share on other sites
  • 0

Have you tried to use that on a player with high int? Don't know if it's when used by a player with high int or launched on a player with low int, but if I read that code well, success rate is (100 - (100 - 0.8*int) )

i already tested it on 130 int but its like 50% chance to infect, so i think the formula is not working properly,

Share this post


Link to post
Share on other sites
  • 0

 

sure, here you go.

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) 
sc_def = status->int_*80;
sc_def = max(sc_def, 500); // minimum of 5% resist
break;

thnx

Share this post


Link to post
Share on other sites
  • 0

 

 

sure, here you go.

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) 
sc_def = status->int_*80;
sc_def = max(sc_def, 500); // minimum of 5% resist
break;

thnx

do u have error in compiling?

Share this post


Link to post
Share on other sites
  • 0

 

 

 

sure, here you go.

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) 
sc_def = status->int_*80;
sc_def = max(sc_def, 500); // minimum of 5% resist
break;

thnx

do u have error in compiling?

no idont, just change the

sc_def = status->int_*80;

 

into

sc_def = st->int_*80;

Share this post


Link to post
Share on other sites
  • 0

 

 

 

 

sure, here you go.

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) 
sc_def = status->int_*80;
sc_def = max(sc_def, 500); // minimum of 5% resist
break;

thnx

do u have error in compiling?

no idont, just change the

sc_def = status->int_*80;

 

into

sc_def = st->int_*80;

Hell Kerbii

 

 

This is in my status.c

 

 

 

       case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)              sc_def = 100 - ( 100 - st->int_* 8 / 10 );              sc_def = max(sc_def, 5); // minimum of 5%              break; 

I cant find what you are  referring to? 

 

I just want to make sure

 

 

can u edit it for me please? 

Edited by karazu

Share this post


Link to post
Share on other sites
  • 0

 

 

 

 

 

sure, here you go.

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) 
sc_def = status->int_*80;
sc_def = max(sc_def, 500); // minimum of 5% resist
break;

thnx

do u have error in compiling?

no idont, just change the

sc_def = status->int_*80;

 

into

sc_def = st->int_*80;

Hell Kerbii

 

 

This is in my status.c

 

 

 

       case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)              sc_def = 100 - ( 100 - st->int_* 8 / 10 );              sc_def = max(sc_def, 5); // minimum of 5%              break; 

I cant find what you are  referring to? 

 

I just want to make sure

 

 

can u edit it for me please? 

change it into this:

[cbox] case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)

sc_def = st->int_*80;

sc_def = max(sc_def, 500); // minimum of 5%[/cbox]

Share this post


Link to post
Share on other sites
  • 0

Oh hai. I am looking into removing the minimum 5% chance. What I had before was this:

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)              sc_def = 100 - ( 100 - st->int_* 8 / 10 );              sc_def = max(sc_def, 5); // minimum of 5%              break;

Then I removed the third line and I got this:

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)		sc_def = 100 - ( 100 - st->int_* 8 / 10 );		break;

I am using a character with over 170 int and still get inflicted. Does anything else have to be edited?

 

Also, I am looking into reducing the duration of all GX poisons, but I've no idea which section to edit.

 

*edit*

 

It seems the src is broken, using the code that kerbii provided made it work properly.

Edited by PunkBuster

Share this post


Link to post
Share on other sites
  • 0

Oh hai. I am looking into removing the minimum 5% chance. What I had before was this:

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)              sc_def = 100 - ( 100 - st->int_* 8 / 10 );              sc_def = max(sc_def, 5); // minimum of 5%              break;

Then I removed the third line and I got this:

 

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT)		sc_def = 100 - ( 100 - st->int_* 8 / 10 );		break;

I am using a character with over 170 int and still get inflicted. Does anything else have to be edited?

 

Also, I am looking into reducing the duration of all GX poisons, but I've no idea which section to edit.

 

*edit*

 

It seems the src is broken, using the code that kerbii provided made it work properly.

read the above post its already posted there

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.