Ukiram Posted April 13, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Share Posted April 13, 2019 (edited) 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 April 23, 2019 by Emistry Please use codebox. Quote Link to comment Share on other sites More sharing options...
0 valesti Posted April 13, 2019 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 44 Reputation: 4 Joined: 10/07/14 Last Seen: Sunday at 04:03 AM Share Posted April 13, 2019 Hi, Dev! Can you try read the doc: https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3661 Quote Link to comment Share on other sites More sharing options...
0 Ukiram Posted April 13, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Author Share Posted April 13, 2019 I don't understand bro, sorry. can you fix my script with check weight? pleaseee thankyou so much anyone can help me?? pleaseeeeee Quote Link to comment Share on other sites More sharing options...
0 Ukiram Posted April 13, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Author Share Posted April 13, 2019 17 minutes ago, AndyTheGoblin said: Thats impossible. why Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted April 13, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: Monday at 01:17 PM Share Posted April 13, 2019 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 :)) 1 Quote Link to comment Share on other sites More sharing options...
0 Chaos92 Posted April 13, 2019 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 1826 Reputation: 288 Joined: 08/03/12 Last Seen: 4 hours ago Share Posted April 13, 2019 create an item with weight 5k or 6k, then checkweight(<item id>,<amount>) Quote Link to comment Share on other sites More sharing options...
0 Ukiram Posted April 13, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Author Share Posted April 13, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 Royr Posted April 14, 2019 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 90 Reputation: 34 Joined: 10/01/18 Last Seen: January 9, 2023 Share Posted April 14, 2019 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; } Quote Link to comment Share on other sites More sharing options...
0 Ukiram Posted April 14, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Author Share Posted April 14, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 Ukiram Posted April 14, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Author Share Posted April 14, 2019 Why it's impossible? Please help hehehehe Quote Link to comment Share on other sites More sharing options...
0 Lelouch vi Britannia Posted April 14, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted April 14, 2019 (edited) 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 April 14, 2019 by Lelouch vi Britannia Quote Link to comment Share on other sites More sharing options...
0 Ukiram Posted April 14, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Author Share Posted April 14, 2019 Is that account_bounded sir? Thank you so much for this if this script will work. Quote Link to comment Share on other sites More sharing options...
0 Gerzzie Posted April 14, 2019 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 137 Reputation: 48 Joined: 06/18/12 Last Seen: Friday at 09:25 AM Share Posted April 14, 2019 Reduce some weights on your ITEM. Best solution. Quote Link to comment Share on other sites More sharing options...
0 mR L Posted April 15, 2019 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 177 Reputation: 26 Joined: 12/24/14 Last Seen: December 25, 2024 Share Posted April 15, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted April 23, 2019 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 23, 2019 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 Quote Link to comment Share on other sites More sharing options...
Question
Ukiram
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; }
Please use codebox.
Link to comment
Share on other sites
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.