Jump to content
  • 0

NPC if check weight


Ukiram

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

Here's my script  i want it to check weight before received the freebies. Like example

If your weight is lower you can not get that freebies ( check weight  if your weight is 5,000 like that or 6,000 ) please help me thankyou rathena family

prontera,148,188,5    script    Freebies NPC    567,{
mes "[^000088 Freebies NPC ^000000]";
mes "Hello "+strcharinfo(0)+", Welcome To PVP-RO.";
next;
mes "[^000088 Automated Freebies NPC ^000000]";

if(#freebies) {
    mes "You already have your freebies.";
    close;
}
 
if (select ("Please Bless me:I Change my mind") == 2) {
    Mes "Come back for my Blessing";
    Mes "Thank you";
    close;
}
 
else {
    set #freebies, 1;
    getitembound2 5137,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5766,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2254,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5259,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2255,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5200,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5040,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2296,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5175,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5104,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2286,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2291,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5596,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5521,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5113,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5054,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5096,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5110,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2237,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2240,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5775,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 5594,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 1102,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1151,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1208,2,1,10,0,0,0,0,0,Bound_Account; 
    getitembound2 1251,2,1,10,0,0,0,0,0,Bound_Account; 
    getitembound2 1302,2,1,10,0,0,0,0,0,Bound_Account; 
    getitembound2 1352,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1405,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1452,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1502,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1550,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1602,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1702,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1802,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1951,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1929,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 1108,2,1,10,0,0,0,0,0,Bound_Account;
    getitembound2 40145,2,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 40146,2,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 40147,2,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 40148,2,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4403,3,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4174,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4047,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4302,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4105,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4142,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4352,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4058,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4305,4,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4035,4,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4143,2,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 4302,1,1,0,0,0,0,0,0,Bound_Account;
    getitembound2 2785,2,1,0,0,0,0,0,0,Bound_Account;

 
    mes "[^000088 Freebies NPC ^000000]";
    mes "Enjoy your Gifts.";
    close;
 }
end; //Should never happen
            
OnInit:
waitingroom "Freebies NPC",0;
end;
}

 

Edited by Emistry
Please use codebox.
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   4
  • Joined:  10/07/14
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

I don't understand bro, sorry. can you fix my script with check weight? pleaseee thankyou so much

anyone can help me?? pleaseeeeee

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

17 minutes ago, AndyTheGoblin said:

Thats impossible. 

why

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

if((MaxWeight - Weight) < 1000){
	mes "^FF0000 You must atleast have 1000 extra weight to receive freebies.^000000";
	close;
}

Add this at the part of your script :))

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1511
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

create an item  with weight 5k or 6k, 

then 

checkweight(<item id>,<amount>)
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

On 4/14/2019 at 12:48 AM, crazyarashi said:

if((MaxWeight - Weight) < 1000){
	mes "^FF0000 You must atleast have 1000 extra weight to receive freebies.^000000";
	close;
}

 Add this at the part of your script :))

I don't know where to put that script i already try to put at the top but still nothing happens

 

Please??? Anyone???? Can you guys fix my script? I need it to checkweight first before claiming the freebies because if they click the npc they will get freebies but overweight they didnt get the other freebies

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

7 hours ago, DevMarikuLabsan said:

Please??? Anyone???? Can you guys fix my script? I need it to checkweight first before claiming the freebies because if they click the npc they will get freebies but overweight they didnt get the other freebies

Stop being lazy.
Use the search engine.

 

prontera,148,188,5	script	Freebies NPC	567,{

    .@weight = 100 * Weight / MaxWeight;
    if( 50 <= .@weight ) {
		mes .n$;
        mes "You are currently at "+ .@weight +" percent of your maximum weight.";
        close;
    }
	mes .n$;
	mes "Hello "+strcharinfo(0)+", Welcome To PVP-RO.";
	next;
	mes "[^000088 Automated Freebies NPC ^000000]";
	if( #freebies )  {
		mes .n$;
		mes "You already have your freebies.";
		close;
	}
	if( select ("- Please Bless Me:- Never Mind") == 2 ) {
		mes .n$;
		mes "Come back for my Blessing!";
		mes "Thank you";
		close;
	}
	else {
		#freebies = 1;
		getitembound2 5137,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5766,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2254,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5259,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2255,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5200,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5040,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2296,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5175,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5104,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2286,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2291,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5596,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5521,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5113,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5054,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5096,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5110,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2237,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2240,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5775,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5594,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 1102,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1151,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1208,2,1,10,0,0,0,0,0,Bound_Account; 
		getitembound2 1251,2,1,10,0,0,0,0,0,Bound_Account; 
		getitembound2 1302,2,1,10,0,0,0,0,0,Bound_Account; 
		getitembound2 1352,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1405,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1452,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1502,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1550,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1602,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1702,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1802,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1951,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1929,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1108,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 40145,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 40146,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 40147,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 40148,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4403,3,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4174,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4047,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4302,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4105,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4142,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4352,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4058,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4305,4,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4035,4,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4143,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4302,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2785,2,1,0,0,0,0,0,0,Bound_Account;
		mes .n$;
		mes "Enjoy your Gifts.";
		close;
	 }
OnInit:
	.n$ = "[^000088 Freebies NPC ^000000]";
	waitingroom "Freebies NPC",0;
	end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

I'm not lazy bro. I'm so sorry i'll do my best but nothing happens.

On 4/14/2019 at 8:47 AM, Royr said:

Stop being lazy.
Use the search engine.

 


prontera,148,188,5	script	Freebies NPC	567,{

    .@weight = 100 * Weight / MaxWeight;
    if( 50 <= .@weight ) {
		mes .n$;
        mes "You are currently at "+ .@weight +" percent of your maximum weight.";
        close;
    }
	mes .n$;
	mes "Hello "+strcharinfo(0)+", Welcome To PVP-RO.";
	next;
	mes "[^000088 Automated Freebies NPC ^000000]";
	if( #freebies )  {
		mes .n$;
		mes "You already have your freebies.";
		close;
	}
	if( select ("- Please Bless Me:- Never Mind") == 2 ) {
		mes .n$;
		mes "Come back for my Blessing!";
		mes "Thank you";
		close;
	}
	else {
		#freebies = 1;
		getitembound2 5137,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5766,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2254,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5259,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2255,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5200,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5040,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2296,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5175,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5104,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2286,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2291,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5596,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5521,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5113,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5054,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5096,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5110,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2237,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2240,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5775,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 5594,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 1102,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1151,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1208,2,1,10,0,0,0,0,0,Bound_Account; 
		getitembound2 1251,2,1,10,0,0,0,0,0,Bound_Account; 
		getitembound2 1302,2,1,10,0,0,0,0,0,Bound_Account; 
		getitembound2 1352,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1405,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1452,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1502,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1550,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1602,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1702,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1802,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1951,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1929,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 1108,2,1,10,0,0,0,0,0,Bound_Account;
		getitembound2 40145,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 40146,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 40147,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 40148,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4403,3,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4174,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4047,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4302,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4105,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4142,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4352,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4058,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4305,4,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4035,4,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4143,2,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 4302,1,1,0,0,0,0,0,0,Bound_Account;
		getitembound2 2785,2,1,0,0,0,0,0,0,Bound_Account;
		mes .n$;
		mes "Enjoy your Gifts.";
		close;
	 }
OnInit:
	.n$ = "[^000088 Freebies NPC ^000000]";
	waitingroom "Freebies NPC",0;
	end;
}

 

 

NOT WORKING

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

Why it's impossible? Please help hehehehe

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

Try this

prontera,148,188,5	script	Freebies NPC	567,{
	// Freebies ID
	setarray .@freebies_item[0],5137,5766,2254,5259,2255,5200,5040,2296,5175,5104,2286,2291,5596,5521,5113,5054,5096,5110,2237,2240,5775,5594,40145,40146,40147,40148,4403,4174,4047,4302,4105,4142,4352,4058,4305,4035,4143,4302,2785;
	setarray .@freebies_weapon[0],1102,1151,1208,1251,1302,1352,1405,1452,1502,1550,1602,1702,1802,1951,1929,1108;
	// Quantity
	setarray .@quantity_item[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,1,1,1,1,1,1,1,4,4,2,1,2;
	setarray .@quantity_weapon[0],2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2;

	if( #freebies ) {
		mes .n$;
		mes "You already have your freebies.";
		close;
	}
	if( !checkweight2(.@freebies_item,.@quantity_item) && !checkweight2(.@freebies_weapon,.@quantity_weapon) ) {
		mes .n$;
		mes "Sorry your weight is too low to handle this freebies.";
		close;
	}
	mes .n$;
	mes "Hello "+strcharinfo(0)+", Welcome To PVP-RO.";
	next;
	if( select ("- Please Bless Me:- Never Mind") == 2 ) {
		mes .n$;
		mes "Come back for my Blessing!";
		mes "Thank you";
		close;
	}
	else {
		for ( set .@x,0; .@x < getarraysize(.@freebies_item); set .@x,.@x + 1 )
		{
			getitembound .@freebies_item[.@x], .@quantity_item[.@x],1;
		}
		for ( set .@x,0; .@x < getarraysize(.@freebies_weapon); set .@x,.@x + 1 )
		{
			getitembound2 .@freebies_weapon[.@x], .@quantity_weapon[.@x],1,10,0,0,0,0,0,1;
		}
		#freebies = 1;
		mes .n$;
		mes "Enjoy your Gifts.";
		close;
	}

OnInit:
	.n$ = "[^000088 Freebies NPC ^000000]";
	waitingroom "Freebies NPC",0;
	end;
}

 

Edited by Lelouch vi Britannia
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

Is that account_bounded sir? Thank you so much for this if this script will work. ❤️

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  136
  • Reputation:   48
  • Joined:  06/18/12
  • Last Seen:  

Reduce some weights on your ITEM. Best solution. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

After

On 4/13/2019 at 9:12 PM, DevMarikuLabsan said:

set #freebies, 1;

Add :

if(checkweight(2504,1) == 0 ) { mes "Over weight !!"; close; }

# but I don't know this your mean or not
Just help ?

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,148,188,5	script	Freebies NPC	567,{
	mes "[^000088 Freebies NPC ^000000]";
	mes "Hello "+strcharinfo(0)+", Welcome To PVP-RO.";
	next;
	mes "[^000088 Automated Freebies NPC ^000000]";

	if(#freebies) {
		mes "You already have your freebies.";
		close;
	}
	
	if (select ("Please Bless me", "I Change my mind") == 2) {
		mes "Come back for my Blessing";
		mes "Thank you";
	}
	else if (!checkweight2(.reward_item_id, .reward_amount)) {
		mes "You're overweight. Come back agai nwhen your weight is lower.";
	}
	else {
		mes "Enjoy your Gifts.";
		set #freebies, 1;
		
		for (.@i = 0; .@i < .reward_size; .@i++)
			getitembound2(.reward_item_id[.@i], .reward_amount[.@i], .reward_identify[.@i], .reward_refine[.@i], .reward_attribute[.@i], .reward_card1[.@i], .reward_card1[.@i], .reward_card1[.@i], .reward_card1[.@i], .reward_bound_type[.@i]);
	 }
	close;
	
	function	func_Add	{
		.reward_item_id[.reward_size] = getarg(0, 0);
		.reward_amount[.reward_size] = getarg(1, 0); 
		.reward_identify[.reward_size] = getarg(2, 0); 
		.reward_refine[.reward_size] = getarg(3, 0); 
		.reward_attribute[.reward_size] = getarg(4, 0); 
		.reward_card1[.reward_size] = getarg(5, 0); 
		.reward_card2[.reward_size] = getarg(6, 0); 
		.reward_card3[.reward_size] = getarg(7, 0); 
		.reward_card4[.reward_size] = getarg(8, 0); 
		.reward_bound_type[.reward_size] = getarg(9, 0);
		.reward_size++;
		return;
	}
	
	OnInit:
		// func_Add(<item_id>, <amount>, identify>, <refine>, <attribute>, <card1>, <card2>, <card3>, <card4>, <bound_type>);
		func_Add(5137, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5766, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2254, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5259, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2255, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5200, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5040, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2296, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5175, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5104, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2286, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2291, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5596, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5521, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5113, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5054, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5096, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5110, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2237, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2240, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5775, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(5594, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1102, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1151, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1208, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account); 
		func_Add(1251, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account); 
		func_Add(1302, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account); 
		func_Add(1352, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1405, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1452, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1502, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1550, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1602, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1702, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1802, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1951, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1929, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(1108, 2, 1, 10, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(40145, 2, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(40146, 2, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(40147, 2, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(40148, 2, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4403, 3, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4174, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4047, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4302, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4105, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4142, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4352, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4058, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4305, 4, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4035, 4, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4143, 2, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(4302, 1, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		func_Add(2785, 2, 1, 0, 0, 0, 0, 0, 0, Bound_Account);
		
		waitingroom "Freebies NPC",0;
		end;
}

try this

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