Jump to content
  • 0

Spesific Item Broadcast


zein

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   4
  • Joined:  03/16/12
  • Last Seen:  

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!

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   4
  • Joined:  03/16/12
  • Last Seen:  

Wow.. thank you !

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