nikki1200 1 Posted October 29, 2013 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, Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted October 30, 2013 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) ) Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted October 29, 2013 If you want to make it 100%, just remove this piece of code: if(rand(10000) < 10) And done. Quote Share this post Link to post Share on other sites
0 nikki1200 1 Posted October 29, 2013 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, Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted October 29, 2013 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 Quote Share this post Link to post Share on other sites
0 karazu 33 Posted October 29, 2013 (edited) is this the one that u are referring to? http://ratemyserver.net/index.php?page=skill_db&jid=4065Venom pressure? Edited October 29, 2013 by karazu Quote Share this post Link to post Share on other sites
0 nikki1200 1 Posted October 30, 2013 Yes and Poisoning Weapon. THanks, Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted October 30, 2013 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 Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted October 31, 2013 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, Quote Share this post Link to post Share on other sites
0 nikki1200 1 Posted November 1, 2013 yes the formula is not working, i change the formula and now it's working, Thanks, Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 1, 2013 yes the formula is not working, i change the formula and now it's working, Thanks, mind if you share the formula you use? Quote Share this post Link to post Share on other sites
0 nikki1200 1 Posted November 2, 2013 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; Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 2, 2013 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 Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 26, 2013 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? Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 26, 2013 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; Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 26, 2013 isee ok i will do that.. Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 27, 2013 (edited) 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 November 27, 2013 by karazu Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 27, 2013 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] Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 27, 2013 thank you, I will test this one! Quote Share this post Link to post Share on other sites
0 PunkBuster 5 Posted December 24, 2013 (edited) 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 December 24, 2013 by PunkBuster Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted December 29, 2013 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 Quote Share this post Link to post Share on other sites
0 PunkBuster 5 Posted December 29, 2013 This post is about resisting the poison, what I want is reduce the duration it lasts. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted December 29, 2013 I think this topic should be better in Source requests since we're mainly speaking about source here. Moving! Quote Share this post Link to post Share on other sites
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