zein Posted July 3, 2013 Posted July 3, 2013 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! Quote
Skorm Posted July 3, 2013 Posted July 3, 2013 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. 1 Quote
Question
zein
Hi,
This script will broadcast any item you obtained from Old Purple Box.
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.