johnbond Posted September 6, 2013 Posted September 6, 2013 Hello everyone! This is with regards to the poison bottle item script: 678,Poison_Bottle,Poison Bottle,2,5000,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ if(Class == Job_Assassin_Cross || Class == Job_Guillotine_Cross_T) { sc_start SC_DPoison,60000,0; sc_start SC_ASPDPOTION2,60000,0; } else percentheal -100,-100; },{},{} Now about the "percentheal -100,-100;" part, how can I make the HP reduction not to take effect when character is in maps bat_a01, bat_a02, bat_b01 and bat_b02? I tried to whip up this script by myself but it seems to not work: 678,Poison_Bottle,Poison Bottle,2,5000,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ if(Class == Job_Assassin_Cross || Class == Job_Guillotine_Cross_T) { sc_start SC_DPoison,60000,0; sc_start SC_ASPDPOTION2,60000,0; } else { if (strcharinfo(3) != "bat_a01 || bat_a02 || bat_b01 || bat_b02" ) { percentheal -100,-100;};}; },{},{} Anyone know? Thank you guys! Quote
GmOcean Posted September 6, 2013 Posted September 6, 2013 CHANGE 678,Poison_Bottle,Poison Bottle,2,5000,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ if(Class == Job_Assassin_Cross || Class == Job_Guillotine_Cross_T) { sc_start SC_DPoison,60000,0; sc_start SC_ASPDPOTION2,60000,0; } else { if (strcharinfo(3) != "bat_a01 || bat_a02 || bat_b01 || bat_b02" ) { percentheal -100,-100;};}; },{},{} INTO 678,Poison_Bottle,Poison Bottle,2,5000,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ if(Class == Job_Assassin_Cross || Class == Job_Guillotine_Cross_T) { sc_start SC_DPoison,60000,0; sc_start SC_ASPDPOTION2,60000,0; } else if ( !compare( "bat_a01,bat_a02,bat_b01,bat_b02",strcharinfo(3) ) ) { percentheal -100,-100;} },{},{} Quote
GmOcean Posted September 7, 2013 Posted September 7, 2013 No problem. Just return the favor to someone else in the future =p Quote
johnbond Posted September 7, 2013 Author Posted September 7, 2013 No problem. Just return the favor to someone else in the future =p You got it! Quote
Question
johnbond
Hello everyone!
This is with regards to the poison bottle item script:
Now about the "percentheal -100,-100;" part, how can I make the HP reduction not to take effect when character is in maps bat_a01, bat_a02, bat_b01 and bat_b02?
I tried to whip up this script by myself but it seems to not work:
Anyone know?
Thank you guys!
4 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.