Jump to content
  • 0

How to make my freebies NPC account based


Question

Posted
prontera,166,190,4	script	Pre-Register Rewards	510,{
if( !Freebiesa1 && getcharid(3) < 2000275 ){
set Freebiesa1,1;
mes "Welcome to Arrival RO. Please Take your rewards.";
	getitem 12411,2;
	getitem 12264,2;
	getitem 50002,1;  
}

else	{
mes "You either have claimed your reward or didn't participate in Pre register Event";
}
close;
}	

This is my current script
I want to give rewards to the first 275 Account Registered
But unfortunately it's not account based and gives every characters in the accounts rewards.
how can i make it only gives rewards to 1 character only for first 275 accounts?

Please Help, Thanks

9 answers to this question

Recommended Posts

  • 0
Posted
24 minutes ago, Haruka Mayumi said:

	getitembound 12411,2,Bound_Account;
	getitembound 12264,2,Bound_Account;
	getitembound 50002,1,Bound_Account;  

 

hello haruka, thanks for replying

actually that's not what i mean.

I want to make those rewards can only be claimed once for every account
for example account 2000011 has 5 chars. 1 already claimed the rewards, the rest cannot claim it again.||

how to do it?


 

  • 0
Posted
new_1-1,139,107,4	script	First 500	871,{
if( !#First_275 ) {
	set #First_275,1;
	$count++;
	setarray .rewardssss[0],18642,18643,18644;
	set $rewardssss,.rewardssss[rand(getarraysize(.rewardssss))];
	mes "Welcome to Ragnarok Online.";
	mes "You received 1 random lower headgear as a freebie.";
	getitembound $rewardssss,1,Bound_Account;
	close;
} else if( $count == 275 ) {
	mes "Times Up! 275 players already got the reward!";
	close;
} else {
	mes "You have claimed the Reward already.";
	close;
}
}

 

  • 0
Posted
2 minutes ago, Haruka Mayumi said:

change 


Freebiesa1

to

 


#Freebiesa1

 

3 minutes ago, Haruka Mayumi said:

change 


Freebiesa1

to

 


#Freebiesa1
prontera,166,190,4	script	Pre-Register Rewards	510,{
if( !Freebiesa313 && getcharid(3) < 2000275 ){
set #Freebiesa313,1;
mes "Welcome to Arrival RO. Please Take your rewards.";
	getitembound 12411,2,Bound_Account;
	getitembound 12264,2,Bound_Account;
	getitembound 50002,1,Bound_Account;
}

else	{
mes "You either have claimed your reward or didn't participate in Pre register Event";
}
close;
}	

that's my current script
and it still gives rewards to every characters in 1 account. ? 

  • 0
Posted
6 minutes ago, Kokak said:

new_1-1,139,107,4	script	First 500	871,{
if( !#First_275 ) {
	set #First_275,1;
	$count++;
	setarray .rewardssss[0],18642,18643,18644;
	set $rewardssss,.rewardssss[rand(getarraysize(.rewardssss))];
	mes "Welcome to Ragnarok Online.";
	mes "You received 1 random lower headgear as a freebie.";
	getitembound $rewardssss,1,Bound_Account;
	close;
} else if( $count == 275 ) {
	mes "Times Up! 275 players already got the reward!";
	close;
} else {
	mes "You have claimed the Reward already.";
	close;
}
}

 

hello sir, thanks for replying
actually i wanted to make the rewards only for account number 2000001 to 2000275
not simply 275 people

how can i fix that? thanks
 

 

  • 0
Posted
prontera,166,190,4	script	Pre-Register Rewards	510,{
if( !#Freebiesa313 && getcharid(3) < 2000275 ){//<<<< THIS ONE TOO
set #Freebiesa313,1;
mes "Welcome to Arrival RO. Please Take your rewards.";
	getitembound 12411,2,Bound_Account;
	getitembound 12264,2,Bound_Account;
	getitembound 50002,1,Bound_Account;
}

else	{
mes "You either have claimed your reward or didn't participate in Pre register Event";
}
close;
}	
  • 0
Posted

Do this
 

prontera,x,y,3	script	test	99{


	mes "test"
	switch(select("Claim:Exit")){
			case 1:
					// Check if already have it
					if ( #Freebies == 1 ){
						mes "Sorry you already claim the freebies";
						end;
					}
					set #Freebies,1;
					getitem 501,1;
					mes "Here you go! Enjoy";
					end;
			case 2:
					end;
	}
	end;
}

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...