caspa Posted June 1, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted June 1, 2013 (edited) can i request a script that is something like this.... setarray .reqid[1],7776,14232,7179,7539; setarray .reqat[1],(2,5),(3,6),(50,100),(79,128);getitem .reqid,reqat;mes " 'name-of-player' has acquired 'how-many-did-he-get-even-though-its-random'x 'what-item-did-he-get' ";mes "congrats"; Edited June 1, 2013 by caspa Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 1, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted June 1, 2013 set .@random,rand( .itemlist_size ); set .@amount,rand( .min_amount[.@random],.max_amount[.@random] ); getitem .itemlist[.@random],.@amount; announce strcharinfo(0)+" gained "+.@amount+" x "+getitemname( .itemlist[.@random] ),0; end; OnInit: setarray .itemlist,512,607,608; setarray .min_amount,1,1,1; setarray .max_amount,10,100,200; set .itemlist_size,getarraysize( .itemlist ); end; Quote Link to comment Share on other sites More sharing options...
Question
caspa
can i request a script that is something like this....
getitem .reqid,reqat;
mes " 'name-of-player' has acquired 'how-many-did-he-get-even-though-its-random'x 'what-item-did-he-get' ";
mes "congrats";
Link to comment
Share on other sites
1 answer 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.