powkda Posted April 10, 2020 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 90 Reputation: 1 Joined: 11/11/17 Last Seen: 53 minutes ago Share Posted April 10, 2020 if(getgroupid()>=$@NvVip) { if($@ExpBonus==1) { sc_start SC_CASH_PLUSEXP,60000000,$@ExpRate[0]; } if($@ExpBonus==2) { sc_start SC_CASH_RECEIVEITEM,60000000,$@ExpRate[1]; } if($@ExpBonus==3) { sc_start SC_CASH_PLUSEXP,60000000,$@ExpRate[0]; sc_start SC_CASH_RECEIVEITEM,60000000,$@ExpRate[1]; } Hello, I'm having problems with this script, it's petrifying the player, I ask for help to fix it. Thanks in advance for your attention Quote Link to comment Share on other sites More sharing options...
0 Gladius Posted April 10, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 235 Reputation: 64 Joined: 04/29/19 Last Seen: April 16 Share Posted April 10, 2020 8 minutes ago, powkda said: if(getgroupid()>=$@NvVip) { if($@ExpBonus==1) { sc_start SC_CASH_PLUSEXP,60000000,$@ExpRate[0]; } if($@ExpBonus==2) { sc_start SC_CASH_RECEIVEITEM,60000000,$@ExpRate[1]; } if($@ExpBonus==3) { sc_start SC_CASH_PLUSEXP,60000000,$@ExpRate[0]; sc_start SC_CASH_RECEIVEITEM,60000000,$@ExpRate[1]; } Hello, I'm having problems with this script, it's petrifying the player, I ask for help to fix it. Thanks in advance for your attention When the bonus does not exist, or is not applied correctly, the character is petrified. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted April 19, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 19, 2020 what are you looking for are probably these src/map/script_constants.hpp#L1102-L1103 export_constant(SC_EXPBOOST); export_constant(SC_ITEMBOOST); On 4/11/2020 at 6:13 AM, Gladius said: When the bonus does not exist, or is not applied correctly, the character is petrified. this is half correct, the main culprit for any invalid SC_*** causing petrification status are because all these invalid SC_*** has a default value of 0, which coincidentally SC_STONE has the same value of 0. That's why it caused petrification status for all invalid SC_*** 1 Quote Link to comment Share on other sites More sharing options...
Question
powkda
Hello, I'm having problems with this script, it's petrifying the player, I ask for help to fix it.
Thanks in advance for your attention
Link to comment
Share on other sites
2 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.