Jump to content
  • 0

[SOLVED] Scroll Announcer


GM Winter

Question


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

hello everyone can i ask for a script that will announce the items that they get in a specific scroll or box thanks

Edited by chadness
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

Try this.

 

Script.

function	script	CustomBox	{
	.@item = F_Rand( 501,502,503,504 );
	announce "["+strcharinfo(0)+"] obtained ["+getitemname( .@item )+"] from Custom Box.",0;
	getitem .@item, 1;
	return;
}

 

item_db (example)

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "CustomBox"; },{},{}

 

Edited by cook1e
  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.03
  • Content Count:  55
  • Reputation:   0
  • Joined:  05/30/22
  • Last Seen:  

On 1/28/2021 at 10:59 AM, cook1e said:

Try this.

 

Script.

function	script	CustomBox	{
	.@item = F_Rand( 501,502,503,504 );
	announce "["+strcharinfo(0)+"] obtained ["+getitemname( .@item )+"] from Custom Box.",0;
	getitem .@item, 1;
	return;
}

 

item_db (example)

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "CustomBox"; },{},{}

 

Good day. Its not working on my side. i put the script at npc/custom/custombox1.txt
and same to item_db red potion. what could be the problem?

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