Jump to content
  • 0

Music Box NPC


Eross

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.09
  • Content Count:  377
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

Hi guys can you modify this script made by @Emistry?? 

-	script	atcmd_example	-1,{
OnInit:
	bindatcmd "bgm",strnpcinfo(3)+"::OnAtcommand";
	end;
OnAtcommand:
	if ( .can_play ) {
		initnpctimer;
		.can_play = 0;
		playbgm .@atcmd_parameters$[0];
	}
	else {
		dispbottom "Please try again later.";
	}
	end;
	
OnTimer300000:	// 5 minute
	stopnpctimer;
	.can_play = 1;
	end;
}
-	script	atcmd_example	-1,{
OnInit:
	bindatcmd "bgm",strnpcinfo(3)+"::OnAtcommand";
	end;
OnAtcommand:
	if ( .can_play ) {
		initnpctimer;
		.can_play = 0;
		playbgm .@atcmd_parameters$[0];
	}
	else {
		dispbottom "Please try again later.";
	}
	end;
	
OnTimer300000:	// 5 minute
	stopnpctimer;
	.can_play = 1;
	end;
}

Just like in Ragnarok Mobile ..When player listen to it or sit near the npc while song is playing ,the player gains +exp boost and +droprate boost for every minute that he stay near it ,, Maximum of 30minutes a day , so the result will be +30minutes expboost and +30minutes droprate boost 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×
×
  • Create New...