Jump to content
  • 0

Question

Posted
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

2 answers to this question

Recommended Posts

  • 0
Posted
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.

  • 0
Posted

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_***

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...