Jump to content
  • 0

Spesific Item Broadcast


Question

Posted

Hi,

 

This script will broadcast any item you obtained from Old Purple Box.

617,Old_Violet_Box,Old Purple Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ set .@id, groupranditem(IG_VioletBox); getitem .@id,1; announce "[" + strcharinfo(0) + "] got " + getitemname(.@id) + " from Old Purple Box !",bc_all|bc_yellow; },{},{}
 

 

I want modify this script when obtained a spesific item it will broadcast.
For an example when I got a Poison Bottle it will announce [Name] got Poison Bottle from Old Purrple Box !
If I obtained the other item, it won't broadcast.
 
Thanks!

 

2 answers to this question

Recommended Posts

Posted

617,Old_Violet_Box,Old Purple Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ set .@id, groupranditem(IG_VioletBox); getitem .@id,1; setarray .@a[0], 678; for(set .@b,0;.@b<getarraysize(.@a);set .@b,.@b+1) if(.@id == .@a[.@b]) announce "["+strcharinfo(0)+"] got "+getitemname(.@id)+" from Old Purple Box !",bc_all|bc_yellow;},{},{}
Fill the array .@a with ids you'd like announced.

Example:

setarray .@a[0], 678, 501;
Would announce Posion Bottle and Red Potion.
  • Upvote 1

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