zein Posted July 3, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 34 Reputation: 4 Joined: 03/16/12 Last Seen: November 10, 2013 Share 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 Link to comment Share on other sites More sharing options...
Skorm Posted July 3, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share 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 Link to comment Share on other sites More sharing options...
zein Posted July 3, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 34 Reputation: 4 Joined: 03/16/12 Last Seen: November 10, 2013 Author Share Posted July 3, 2013 Wow.. thank you ! Quote Link to comment Share on other sites More sharing options...
Question
zein
Hi,
This script will broadcast any item you obtained from Old Purple Box.
Link 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.