Jump to content
  • 0

freebies NPC script help please


AinsLord

Question


  • Group:  Members
  • Topic Count:  261
  • Topics Per Day:  0.08
  • Content Count:  758
  • Reputation:   20
  • Joined:  11/21/15
  • Last Seen:  

malaya,281,359,4	script	Freebies	123,{
    mes "[Hello]";
    mes "[I can give you a free gift based on your future job.]";
    mes "[Please choose the correct item for the future job]";
    next;
    if(!#Freebie) {
        mes "Select one:";
        next;
        switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief")) {
            case 1:
                getitembound 13758,5,4;
                getitembound2 1108,2,1,4,0,0,0,0,0,4;
                getitembound2 2104,2,1,4,0,0,0,0,0,4;
                getitembound 504,200,4;
                getitembound 505,200,4; //Item for Swordsman
                set #Freebie, 1;
                warp "new_1-1", 53, 110;
                savepoint "prontera", 156, 183;
                end;
            case 2:
                getitem 13758,1;
                getitem 969,20;
                getitem 1108,1;
                getitem 2104,1;
                getitem 4043,4; //Item for Magician
                set #Freebie, 1;
                warp "prontera", 150, 150;
                savepoint "prontera", 150, 150;
                end;
            case 3:
                getitem 13758,1;
                getitem 969,20;
                getitem 1108,1;
                getitem 2104,1;
                getitem 4043,4; //Item for Archer
                set #Freebie, 1;
                warp "prontera", 150, 150;
                savepoint "prontera", 150, 150;
                end;
            case 4:
                getitem 13758,1;
                getitem 969,20;
                getitem 1108,1;
                getitem 2104,1;
                getitem 4043,4; //Item for Acolyte
                set #Freebie, 1;
                warp "prontera", 150, 150;
                savepoint "prontera", 150, 150;
                break;
            case 5:
                getitem 13758,1;
                getitem 969,20;
                getitem 1108,1;
                getitem 2104,1;
                getitem 4043,4; //Item for Merchant
                set #Freebie, 1;
                warp "prontera", 150, 150;
                savepoint "prontera", 150, 150;
                end;    
            case 6:
                getitem 13758,1;
                getitem 969,20;
                getitem 1108,1;
                getitem 2104,1;
                getitem 4043,4; //Item for Thief
                set #Freebie, 1;
                warp "prontera", 150, 150;
                savepoint "prontera", 150, 150;
                end;
                
            }
            close;
    }
   mes "[ Trololol ]";
   mes "You already receive your freebies!";
   close;

    OnInit:
    waitingroom "Get your freebies here ! ",0;
    end;
}

how to make this code same char cant get another freebies??

like all the chars in the accnt can get freebies but only 1 time per char

thnx for the help

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3144
  • Reputation:   1632
  • Joined:  03/26/12
  • Last Seen:  

Remove the account-based variable character "#" from the variable #Freebie.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  261
  • Topics Per Day:  0.08
  • Content Count:  758
  • Reputation:   20
  • Joined:  11/21/15
  • Last Seen:  

in all ??

i mean this??

coz in every case there is #freebie

EDIT:: IT WORKED THNX U SO MUCH

                set #Freebie, 1;
Edited by whodhell
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...