Jump to content
  • 0

Freebies NPC Help


FlaxRO

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  10/16/17
  • Last Seen:  

how to make this freebies script will only gave freebies for those account credited after account id 2000001?  below that account will not be given any freebies. Even making new char in same account will not get the reward

 

Quote

prontera,84,146,5    script    Freebies NPC    718,{
      if( !Freebies && getcharid(3) > 2000001 ){
set Freebies,1;
mes "Welcome...this is your gift...";
    getitem 13836,10;
    getitem 13837,10;
    getitem 13838,10;
    getitem 13839,10;
    getitem 13840,10;
    getitem 13841,10;
    getitem 29328,500;
    getitem 25500,1;
    getitem 25501,1;
    getitem 25502,1;  
}

else

{
mes "You have claim the Reward already.";
}
close;
}


 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

Change:

set Freebies,1;

To:

set #Freebies,1;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

7 hours ago, FlaxRO said:

how to make this freebies script will only gave freebies for those account credited after account id 2000001?  below that account will not be given any freebies. Even making new char in same account will not get the reward

 


 

Please try this:

 

prontera.gat, 155, 174, 5	script	Freebies	4_F_KAFRA1,{
	function LinkItem_;
	.@getID = getcharid( 3 );

	if( !FlaxRO && .@getID >= 2000001 ) {	//Only in that Specific Account ID.
			mes "[ Freebies ]";
			mes "Congratulations! You've obtained a various Starter Freebies rewards.";
			next;
			mes "[ Freebies ]";	
			mes "^FF0000Information:^000000";
			mes "^777777 -------------------- ^000000";
			mes "Reward Items:";
			for( .@i = 0; .@i < .size; .@i++ ) {
				mes .item_Amnt[.@i] +"x "+ LinkItem_( .item_ID[.@i]);
			getitem .item_ID[.@i], .item_Amnt[.@i];
			FlaxRO = 1;
			emotion e_no1;
		}
		close;
		
	}
	else {		
		mes "[ Freebies ]";
		mes "Your not eligible for the Starter Freebies.";
		emotion e_sry;
		close;
	}
	
function	LinkItem_	{
	.@id = getarg(0);
	.@showslot = getarg(1,0);
	.@slot = getitemslots(.@id);
	return "<ITEM>"+(.@slot&&.@showslot?getitemname(.@id)+" ["+.@slot+"]":getitemname(.@id))+"<INFO>"+.@id+"</INFO></ITEM>";
}	

	
OnInit:
	setarray .item_ID[0], 	13836,	13837,	13838,	13839,	13840,	13841,	29328;
	setarray .item_Amnt[0],	10,		10,		10,		10,		10,		10,		500;
	.size = getarraysize( .item_ID );
	end;
}

 

Edited by Kaze
Fixed Typo
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...