Jump to content
  • 0

help with this freebies npc


Question

Posted (edited)

how to make this freebies script will only gave freebies for those account credited after account id 2000735? below that account will not be given any freebies.

 

brasilis,203,185,4	script	Freebies	112,{
	delwaitingroom;
	waitingroom "Free Item Here!",0;   // Look on the configuration!
if( !Freebies ){
set Freebies,1;
mes "Welcome...this is your gift...";
getitem2 2320,1,1,7,0,0,0,0,0; // +7 formal suit[1]
getitem2 2504,1,1,7,0,0,0,0,0; // +7 muffler[1]
getitem2 2104,1,1,7,0,0,0,0,0; // +7 buckler[1]
getitem2 2102,1,1,7,0,0,0,0,0; // +7 Guard[1]
getitem2 2404,1,1,7,0,0,0,0,0; // +7 Shoes[1]
getitem 12210, 5;
getitem 14533, 5;
getitem 12622, 1;
getitem 4142, 1;
getitem 4147, 1;
}else{
mes "You have claim the Reward already.";
}
close;
}

 

Edited by Brynner

6 answers to this question

Recommended Posts

Posted

Try this one. Note that `ragnarok` is the name of the database. Change that to your database name : 

brasilis,203,185,4    script    Freebies    112,{
    delwaitingroom;
    waitingroom "Free Item Here!",0;   // Look on the configuration!
    query_sql "SELECT `account_id` FROM `ragnarok`.`char` WHERE `char_id` = '" + getcharid(0) + "'", .@id;
    if( !Freebies && ( .@id > 2000735 ) ){
        set Freebies,1;
        mes "Welcome...this is your gift...";
        getitem2 2320,1,1,7,0,0,0,0,0; // +7 formal suit[1]
        getitem2 2504,1,1,7,0,0,0,0,0; // +7 muffler[1]
        getitem2 2104,1,1,7,0,0,0,0,0; // +7 buckler[1]
        getitem2 2102,1,1,7,0,0,0,0,0; // +7 Guard[1]
        getitem2 2404,1,1,7,0,0,0,0,0; // +7 Shoes[1]
        getitem 12210, 5;
        getitem 14533, 5;
        getitem 12622, 1;
        getitem 4142, 1;
        getitem 4147, 1;
    } else {
        mes "You have claim the Reward already.";
    }
    close;
}
Posted

@dhaishuke

how to make this freebies script will only gave freebies for those account credited after account id 2000735? below that account will not be given any freebies.

  • Upvote 1

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