Jump to content
  • 0
Sign in to follow this  
Kei

help me with bonus script

Question

i have this script but i'm having an error on bonus_script.. 

 

here it is

 

 

bonus_script "{ bonus bStr,5000; }", .buff_last, 8;

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

what command can i put instead of bonu_script?

 

btw heres the whole script

 

 

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;}

Share this post


Link to post
Share on other sites
  • 0
*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 :P it's permanent though?

Edited by Patskie

Share this post


Link to post
Share on other sites
  • 0

 

 

*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 :P it's permanent though?

 

 

Just checked it, it is permanent, only "bonus" isn't

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.