Jump to content
  • 0

Announcement when getting freebies


BugSICK

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.02
  • Content Count:  87
  • Reputation:   1
  • Joined:  01/18/18
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

the 0X8A2BE2 is the color. its in hex color rgb. if you want it yellow. just remove it and leave it bc_all;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.02
  • Content Count:  87
  • Reputation:   1
  • Joined:  01/18/18
  • Last Seen:  

sorry sir it didnt work. and i want to add the name also of the player. thanks

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.02
  • Content Count:  87
  • Reputation:   1
  • Joined:  01/18/18
  • Last Seen:  

@Haruka Mayumi sweet works perfect. :) thanks man, any way to change it to gold/yellow color? thanks again

Untitled.png

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