Jump to content
  • 0

Announcement when getting freebies


Question

Posted

Hi morning. i have this script when new character get there first feebies but i want to have an anouncement when he.she get it. but i dont know where to put it. thanks

Quote

prontera,150,184,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
    getitem2 501,100,1,0,0,0,0,0,0;// (Custom Items
    getitem2 7227,2,1,0,0,0,0,0,0;    // (Custom Items
    getitem2 969,10,1,0,0,0,0,0,0;    // (Custom Items
    getitem2 602,20,1,0,0,0,0,0,0;    // (Custom Items
    getitem2 601,50,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;
}

 

5 answers to this question

Recommended Posts

  • 0
Posted
prontera,150,184,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
    getitem2 501,100,1,0,0,0,0,0,0;// (Custom Items
    getitem2 7227,2,1,0,0,0,0,0,0;    // (Custom Items
    getitem2 969,10,1,0,0,0,0,0,0;    // (Custom Items
    getitem2 602,20,1,0,0,0,0,0,0;    // (Custom Items
    getitem2 601,50,1,0,0,0,0,0,0;    // (Custom Items
	announce "[YOUR MESSAGE]",bc_all,0x8A2BE2;
    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;
}

just after the getitem2. edit it

  • 0
Posted

its working perfectly. you should check if the line one is TAB or SPACE.. 
to announce the player name.. use strcharinfo(0)

example

 

announce strcharinfo(0)+" just got his freebies!.",bc_all,0x8A2BE2;

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