Jump to content
  • 0

NPC FREEBIES getitembound2 script


Question

7 answers to this question

Recommended Posts

Posted

There are a lot of freebie script in the forum, choose one and replace the getitem by getitembound2.

*getitembound2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>{,<account ID>};
*getitembound2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>{,<account ID>};

This command behaves identically to 'getitem2', but the items created will be
bound to the target character as specified by the bound type. All items created
in this manner cannot be dropped, sold, vended, auctioned, or mailed, and in
some cases cannot be traded or stored.

For a list of bound types see 'getitembound'.

Source : doc/script_commands.txt

Posted

Try :

prontera,150,150,0    script    Freebies    100,{
    setarray .Items[0], 4001,5,4002,5; // <item id>,<amount>
    set .size, getarraysize(.Items);
    
    if ( #Freebies ) end;
    mes "Here is your freebies!";
    next;
    for ( set .@i, 0; .@i < .size; set .@i, .@i + 2 ) 
        getitembound2 .Items[.@i],.Items[.@i+1],1,0,0,0,0,0,0,1;
    set #Freebies, 1;
    mes "Done!";
    close;
}
Posted (edited)

can you add 50% weight cant get freebies? and also .. warned players with the same account who tries to take freebies again

 

example.

 

you already claimed your freebies /bzz

 

additional:

 

what if +7 Lord Kahoo 1pc?

Edited by BugsLIFE
Posted

Try :

prontera,150,150,0    script    Freebies    100,{
    setarray .Items[0], 5013,5,7,4002,5,0; // <item id>,<amount>,<refine>
    set .size, getarraysize(.Items);
    if ( #Freebies ) end;
    mes "Here is your freebies!";
    next;
    if ( (MaxWeight/2) <= Weight ) end;
    for ( set .@i, 0; .@i < .size; set .@i, .@i + 3 ) 
        getitembound2 .Items[.@i],.Items[.@i+1],1,.Items[.@i+2],0,0,0,0,0,1;
    set #Freebies, 1;
    mes "Done!";
    close;
}
and also .. warned players with the same account who tries to take freebies again

If you want it that way. check their ip address

Posted

like this npc.. once player get freebies

and tried once more to get with the same character/account it will say

 

 

    mes "You had already received before the gift.";

 

 

sorry for asking too many... i am really trying to add these on my own but it doesnt work.

prontera,177,104,4    script     Freebies    790,{
OnInit:
waitingroom " Freebies",0;

    if(#sorry == 1) goto L_1;
    mes "You will receive Some Present as a reward for joining the server";
    mes "We're gladly thankful for your support in the future too.";
    next;
    if(checkweight(2504,1) == 0 ) goto L_OverWeight;

    getitem2 14533,10,1,0,0,0,0,0,0;    // (Custom Items

    emotion e_thx;
    set #sorry,1;
    close;



L_OverWeight:
    mes "Sorry, you are over weight";
    emotion e_omg;
    close;



L_1:
    mes "You had already received before the gift.";
    emotion e_bzz;
    close;
}

 

 

Posted (edited)

Anyone Can Fix this Script..

Item must be Bounded but i cannot get it... 

 

invek,153,116,4 script Freebies NPC 423,{
OnInit:
waitingroom "Freebies",0;

if(#sorry == 1) goto L_1;
mes "You will receive Some Present as a reward for joining the server";
mes "We're gladly thankful for your support in the future too.";
next;
if(checkweight(2504,1) == 0 ) goto L_OverWeight;
// rentitem 20036,604800; //hokagehat
// rentitem 20014,604800; //vampirewing
// rentitem 20057,604800; //hallowmask
// rentitem 2115,259200; //shield valk
// rentitem 2630,259200; //briss
// rentitem 4047,259200; //ghost-ring
// rentitem 4198,259200; //maya-p
// rentitem 4146,259200; //maya
// rentitem 4131,259200; //moonlight c
// rentitem 4147,259200; //baphomet
getitembound2 14533,20,1,0,0,0,0,0,0; // (Custom Items
getitembound2 12210,4,1,0,0,0,0,0,0; // (Custom Items
getitembound2 12214,5,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20117,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20118,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20119,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20120,2,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20121,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20122,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20143,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20142,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 20144,1,1,0,0,0,0,0,0; // (Custom Items
getitembound2 4302,1,1,0,0,0,0,0,0;
getitembound2 4142,1,1,0,0,0,0,0,0;
emotion e_thx;
set #sorry,1;
close;

L_OverWeight:
mes "Sorry, you are over weight";
emotion e_omg;
close;

L_1:
mes "You had already received before the gift.";
emotion e_bzz;
close;
}
Edited by Patskie
Change to code

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...