help me with bonus script

Kei

New member
Messages
101
Points
0
i have this script but i'm having an error on bonus_script.. 

here it is

Code:
bonus_script "{ bonus bStr,5000; }", .buff_last, 8;
 
Hercules doesn't have that command i guess.

 
what command can i put instead of bonu_script?

btw heres the whole script

Code:
prontera,150,180,4	script	Slayer Title	54,{	mes "Would you like to become Dragon Slayer or Demon Slayer?";	next;	if ( select ( "Yes", "No" ) == 2 ) {		mes "Very well, I shall be here if you change your mind.";		close;	}	mes "Select what you want to become";	.@s = select( "Dragon Slayer", "Demon Slayer" ) -1;	if ( countitem(7777) ) {		delitem 7777, 1;		atcommand "@fakename ["+ .title$[.@s] +"] "+ strcharinfo(0);		bonus_script "{ bonus bStr,5000; }", .buff_last, 8;		addtimer .buff_last * 1000, strnpcinfo(0) +"::Onresettitle";		mes "Congrats You've become "+ .title$[.@s];		player_title$ = gettimetick(2) +"#"+ .@s;	}	else {		mes "You don't have any requirements for Dragon Slayer or Demon Slayer.";		mes "Come back when you get one.";	}	close;OnInit:	setarray .title$, "Dragon Slayer", "Demon Slayer";	.buff_last = 60; // last 10 seconds	end;OnPCLoginEvent:	if ( player_title$ == "" ) end;//	dispbottom player_title$ +"~"+ gettimetick(2);	explode .@player_title$, player_title$, "#";	.@time = atoi( .@player_title$[0] );	.@title = atoi( .@player_title$[1] );	if ( .@time < gettimetick(2) ) {		.@timeleft = gettimetick(2) - .@time;		atcommand "@fakename ["+ .title$[.@title] +"] "+ strcharinfo(0);		bonus_script "{ bonus bStr, 5000; }", .@timeleft, 8;		addtimer .@timeleft * 1000, strnpcinfo(0) +"::Onresettitle";	}	else		player_title$ = "";	end;Onresettitle:	atcommand "@fakename";	player_title$ = "";	end;}
 
*statusup2 <stat>,<amount>;This command will bump a specified stat of the invoking character up bythe specified amount permanently. Amount can be negative. See 'statusup'.// This will decrease a character's Vit forever. statusup bVit,-1;---------------------------------------*bonus <bonus type>,<val1>;*bonus2 <bonus type>,<val1>,<val2>;*bonus3 <bonus type>,<val1>,<val2>,<val3>;*bonus4 <bonus type>,<val1>,<val2>,<val3>,<val4>;*bonus5 <bonus type>,<val1>,<val2>,<val3>,<val4>,<val5>;These commands are meant to be used in item scripts. They will probablywork outside item scripts, but the bonus will not persist for long. They,as expected, refer only to an invoking character.You can find the full list of possible bonuses and which command to usefor each kind in 'doc/item_bonus.txt'.

try
default_tongue.png
 it's permanent though?

 
Last edited by a moderator:
*statusup2 <stat>,<amount>;This command will bump a specified stat of the invoking character up bythe specified amount permanently. Amount can be negative. See 'statusup'.// This will decrease a character's Vit forever. statusup bVit,-1;---------------------------------------*bonus <bonus type>,<val1>;*bonus2 <bonus type>,<val1>,<val2>;*bonus3 <bonus type>,<val1>,<val2>,<val3>;*bonus4 <bonus type>,<val1>,<val2>,<val3>,<val4>;*bonus5 <bonus type>,<val1>,<val2>,<val3>,<val4>,<val5>;These commands are meant to be used in item scripts. They will probablywork outside item scripts, but the bonus will not persist for long. They,as expected, refer only to an invoking character.You can find the full list of possible bonuses and which command to usefor each kind in 'doc/item_bonus.txt'. try
default_tongue.png
 it's permanent though?
Just checked it, it is permanent, only "bonus" isn't
 
Back
Top