Sallycantdance Posted January 28, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Yesterday at 09:00 AM Share Posted January 28, 2021 (edited) hello everyone can i ask for a script that will announce the items that they get in a specific scroll or box thanks Edited January 28, 2021 by chadness Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted January 28, 2021 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 172 Reputation: 68 Joined: 10/25/20 Last Seen: 13 hours ago Share Posted January 28, 2021 (edited) 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 January 28, 2021 by cook1e 1 Quote Link to comment Share on other sites More sharing options...
0 iFox Posted June 28, 2022 Group: Members Topic Count: 23 Topics Per Day: 0.02 Content Count: 55 Reputation: 0 Joined: 05/30/22 Last Seen: 1 hour ago Share Posted June 28, 2022 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? Quote Link to comment Share on other sites More sharing options...
Question
Sallycantdance
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 chadnessLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.