johnbond Posted September 6, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted September 6, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share 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 Link to comment Share on other sites More sharing options...
johnbond Posted September 6, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted September 6, 2013 Oh nice its working! Thanks! Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 7, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted September 7, 2013 No problem. Just return the favor to someone else in the future =p Quote Link to comment Share on other sites More sharing options...
johnbond Posted September 7, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted September 7, 2013 No problem. Just return the favor to someone else in the future =p You got it! Quote Link to comment Share on other sites More sharing options...
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!
Link to comment
Share on other sites
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.