Jump to content
  • 0

R> Beta Script NPC


Petey Pablo

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

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;

}

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  22
  • Reputation:   0
  • Joined:  05/01/20
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  22
  • Reputation:   0
  • Joined:  05/01/20
  • Last Seen:  

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?

Link to comment
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...