• 0
DevMarikuLabsan

NPC if check weight

Question

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

Quote

 

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

 

 

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0
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

Share this post


Link to post
Share on other sites
  • 0

create an item  with weight 5k or 6k, 

then 

checkweight(<item id>,<amount>)

Share this post


Link to post
Share on other sites
  • 0
26 minutes ago, 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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


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

 

Share this post


Link to post
Share on other sites
  • 0

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

7 minutes ago, 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;
}

 

 

Share this post


Link to post
Share on other sites
  • 0
55 minutes ago, 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

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

Try this

prontera,148,188,5	script	Freebies NPC	567,{
	// Freebies ID
	setarray [email protected]_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 [email protected]_weapon[0],1102,1151,1208,1251,1302,1352,1405,1452,1502,1550,1602,1702,1802,1951,1929,1108;
	// Quantity
	setarray [email protected]_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 [email protected]_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([email protected]_item,[email protected]_item) && !checkweight2([email protected]_weapon,[email protected]_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 [email protected],0; [email protected] < getarraysize([email protected]_item); set [email protected],[email protected] + 1 )
		{
			getitembound [email protected]_item[[email protected]], [email protected]_item[[email protected]],1;
		}
		for ( set [email protected],0; [email protected] < getarraysize([email protected]_weapon); set [email protected],[email protected] + 1 )
		{
			getitembound2 [email protected]_weapon[[email protected]], [email protected]_weapon[[email protected]],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

Share this post


Link to post
Share on other sites
  • 0

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 🙂

Share this post


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

Loading...