Kei 2 Posted December 21, 2013 i have this script but i'm having an error on bonus_script.. here it is bonus_script "{ bonus bStr,5000; }", .buff_last, 8; Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted December 21, 2013 Hercules doesn't have that command i guess. Quote Share this post Link to post Share on other sites
0 Kei 2 Posted December 21, 2013 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;} Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted December 21, 2013 why not use sc_start? use stat buffs Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted December 21, 2013 (edited) *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 it's permanent though? Edited December 21, 2013 by Patskie Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 21, 2013 *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 it's permanent though? Just checked it, it is permanent, only "bonus" isn't Quote Share this post Link to post Share on other sites
i have this script but i'm having an error on bonus_script..
here it is
Share this post
Link to post
Share on other sites