Jump to content
  • 0
Petey Pablo

R> Beta Script NPC

Question

I need beta script npc like the function below

Need to play atleast 5 hours minimum during beta
Claim beta reward on official server launch who played more than 5 hours on beta

Thank you and more power to rA community

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Would that 5 hours mean accumulative regardless if they go offline or not?

  • Love 1

Share this post


Link to post
Share on other sites
  • 0
On 4/28/2020 at 12:47 PM, Patskie said:

Would that 5 hours mean accumulative regardless if they go offline or not?

-Yes accumulative it will continue time played if they online

-Auto pause the total time played if they go offline

and please add the announce message saying Congratulations this player is eligible for beta rewards on official  server launch.  Thank you

Dont forget the Beta Rewards NPC that have function to check if this player have playing 5 hours during beta. Thank you very much @Patskie

 

I need must be ingame for 5 hours or more during beta to this script. Thank you
 

prontera,150,150,3	script	Beta Reward	100,{
if(BaseLevel < 255) goto OnDeny;

if(getcharid(3) <= 2000100){
	if(#cbtreward == 1) {
		mes "[ Beta Reward ]";
		mes "You already got your reward!";
        close;
      	}

	getitembound 909,1,Bound_Account; // <-- should be bound if you don't want this to be abused.
	mes "[ Beta Reward ]";
	mes "Here's your reward!";
	set #cbtreward,1;
	close; 
	}
	
mes "[ Beta Reward ]";	
mes "You're not a beta player, sorry!";
close;

OnDeny:
mes "[ Beta Reward ]";
mes "You don't have the required level for Beta Reward.";
mes "Come back when you reached it - Base Level 255!";
close;

}

 

Share this post


Link to post
Share on other sites
  • 0
prontera,150,150,3	script	Beta Reward	100,{
	mes "[ Beta Reward ]";
	if(BaseLevel < 255) {
		mes "You don't have the required level for Beta Reward.";
		mes "Come back when you reached it - Base Level 255!";
	}
	else if(getcharid(3) > 2000100) {
		mes "You're not eligible for rewards";
	}
	else if(#cbtreward == 1) {
		mes "You already got your reward!";
    }
	else if (#ONLINE_MINUTE < 500) {
		mes "You need to stay online for next "+(500 - #ONLINE_MINUTE)+" minutes to redeem the rewards!";
	}
	else {
		getitembound 909,1,Bound_Account; // <-- should be bound if you don't want this to be abused.
		mes "Here's your reward!";
		set #cbtreward,1;
	}
	close;
	
	OnUpdate:
		#ONLINE_MINUTE++;
	OnPCLoginEvent:
		if (!#cbtreward && #ONLINE_MINUTE < 500) {
			addtimer (60 * 1000), strnpcinfo(3)+"::OnUpdate";
		}
		end;
}

try this

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Emistry said:
prontera,150,150,3	script	Beta Reward	100,{
	mes "[ Beta Reward ]";
	if(BaseLevel < 255) {
		mes "You don't have the required level for Beta Reward.";
		mes "Come back when you reached it - Base Level 255!";
	}
	else if(getcharid(3) > 2000100) {
		mes "You're not eligible for rewards";
	}
	else if(#cbtreward == 1) {
		mes "You already got your reward!";
    }
	else if (#ONLINE_MINUTE < 500) {
		mes "You need to stay online for next "+(500 - #ONLINE_MINUTE)+" minutes to redeem the rewards!";
	}
	else {
		getitembound 909,1,Bound_Account; // <-- should be bound if you don't want this to be abused.
		mes "Here's your reward!";
		set #cbtreward,1;
	}
	close;
	
	OnUpdate:
		#ONLINE_MINUTE++;
	OnPCLoginEvent:
		if (!#cbtreward && #ONLINE_MINUTE < 500) {
			addtimer (60 * 1000), strnpcinfo(3)+"::OnUpdate";
		}
		end;
}

try this

 

Thank you for this @Emistry but how do you separate the OBT participants and non-OBT participants here? Thank you

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, Zyper143 said:

how do you separate the OBT participants and non-OBT participants here?

that's something that up to you to decide and figure out what and how ....

Share this post


Link to post
Share on other sites
  • 0
7 minutes ago, Emistry said:

that's something that up to you to decide and figure out what and how ....

I see, by just removing this part on official release date
 

	OnUpdate:
		#ONLINE_MINUTE++;
	OnPCLoginEvent:
		if (!#cbtreward && #ONLINE_MINUTE < 500) {
			addtimer (60 * 1000), strnpcinfo(3)+"::OnUpdate";
		}
		end;

 

and add // to this part during beta
 

		//getitembound 909,1,Bound_Account; // <-- should be bound if you don't want this to be abused.
		mes "Here's your reward!";
		//set #cbtreward,1;

 

Is that correct?

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

Important Information

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