Jump to content
  • 0

Announcement after creating item.


Melvinizer

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/18/14
  • Last Seen:  

Hi, how can I add announcement after a player created the item, please help. thank you.

Here's the script.

 

 

prt_monk,132,163,0 script Glorious Fist 123,{
 
mes "Greetings Brother, you seek strength from within, but ignore the fact that there's simpler ways to beat some foes.";
menu "I want to create Glorious Fist!!",-;
next;
mes "Bring me the following to unlock inhuman strength!";
mes "250 Gold";
mes "250 Trunk";
mes "350 Jellopy";
mes "120 Burnt Tree";
mes "100 Steel";
next;
menu "I have them right now!",-;
if(countitem(969) < 250 || countitem(1019) < 250 || countitem(909) < 350 || countitem(7068) < 120 || countitem(999) < 100) goto Lne;
mes "Okay, here you go!";
delitem 969,250;
delitem 1019,250;
delitem 909,350;
delitem 7068,120;
delitem 999,100;
getitem 1827,1;
close;
 
Lne:
mes "Are you trying to fool me!? Go away shooo shooo";
close;
 
}
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Simply add this after

getitem 1827,1;

so it should be like this

getitem 1827,1;
announce strcharinfo(0)+" : Successfully created " + getitemname(1827) + " blah blah blah",0;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/18/14
  • Last Seen:  

Thank you!  /bo

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