Jump to content
  • 0

How to make my freebies NPC account based


AHMADSHIDQI

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   1
  • Joined:  02/18/12
  • Last Seen:  

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

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   1
  • Joined:  02/18/12
  • Last Seen:  

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?


 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/29/19
  • Last Seen:  

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;
}
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

change 

Freebiesa1

to

 

#Freebiesa1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   1
  • Joined:  02/18/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   1
  • Joined:  02/18/12
  • Last Seen:  

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
 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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;
}	
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

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;
}

 

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