powkda Posted April 10, 2020 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
0 Gladius Posted April 10, 2020 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
0 Emistry Posted April 19, 2020 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
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
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.