Patskie 88 Posted December 1, 2013 (edited) Description : Drop certain amount of items on the floor on a certain map with random coordinates Download :http://pastebin.com/raw.php?i=aCAbAM1Ehttps://raw.github.com/Patskie/Scripts/master/item_shower.txt Edited January 2, 2015 by Patskie 1 mrlongshen reacted to this Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted December 2, 2013 sir, can you add broadcast, An [TCG card] has been drop from the sky in map [Prontera]. Lets get it before it gone.. for the map name, i hope it can be multiple chose.. Quote Share this post Link to post Share on other sites
Patskie 88 Posted December 2, 2013 makeitem .item_id,1,.map$,.@x,.@y;+ announce "An [" +getitemname(.item_id)+ "] has been drop from the sky in map [" +.map$+ "]. Lets get it before it gone..",0; 1 mrlongshen reacted to this Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted December 2, 2013 can i add multiple map on set .map$, "prontera"; ? set .map$, "prontera,payon,geffen"; Quote Share this post Link to post Share on other sites
Patskie 88 Posted December 2, 2013 U need to use setarray for that xD what is the reason behind your multiple map? You want to do an item shower on multiple maps? Or you want to random pick a map and do the item shower there? Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted December 2, 2013 U need to use setarray for that xD what is the reason behind your multiple map? You want to do an item shower on multiple maps? Or you want to random pick a map and do the item shower there? oh ic. i need random pick a map and do the item shower there. hehe xD Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted December 2, 2013 makeitem .item_id,1,.map$,.@x,.@y;+ announce "An [" +getitemname(.item_id)+ "] has been drop from the sky in map [" +.map "]. Lets get it before it gone..",0; after i add this. almost 50 broadcast appear !! omg !! Quote Share this post Link to post Share on other sites
Patskie 88 Posted December 2, 2013 Opps i included it in the while loop sorry for that. It should be : + announce "An [" +getitemname(.item_id)+ "] has been drop from the sky in map [" +.map$+ "]. Lets get it before it gone..",0;set .count, 0; Quote Share this post Link to post Share on other sites
Patskie 88 Posted December 2, 2013 or you can put the announce before the while { Quote Share this post Link to post Share on other sites
khenma 1 Posted December 2, 2013 Description : Drop certain amount of items on the floor on a certain map with random coordinates Download : http://pastebin.com/raw.php?i=aCAbAM1E https://raw.github.com/Patskie/Scripts/master/item_shower.txt how to set this that will be automatically announce when one player pick up the item, then remaining will be broadcast too. ex. 29 TCg left. Quote Share this post Link to post Share on other sites
Patskie 88 Posted December 2, 2013 @khenma i think you need to edit your src. Quote Share this post Link to post Share on other sites
kerbiii 5 Posted December 18, 2013 how to shower multiple item like 40 tcg and 1pods then announces when you pick up the PODS Quote Share this post Link to post Share on other sites
Patskie 88 Posted December 19, 2013 how to shower multiple item like 40 tcg and 1pods then announces when you pick up the PODS Use an array composed of multiple different item id's the announce part.. i think can't be done by script Quote Share this post Link to post Share on other sites
kerbiii 5 Posted December 19, 2013 (edited) how to shower multiple item like 40 tcg and 1pods then announces when you pick up the PODS Use an array composed of multiple different item id's the announce part.. i think can't be done by script can you pls help me on the array part im not used on using array yet Edited December 19, 2013 by kerbiii Quote Share this post Link to post Share on other sites
noobsai 0 Posted May 25, 2014 Hi Thanks for this script. I was wondering if you can add this manually like make it an @command for admins. Thanks again Quote Share this post Link to post Share on other sites
Snaehild 0 Posted July 10, 2014 I'm having this error [Error]: run_script: infinity loop ! - script Sample -1,{ OnInit: set .amount, 10; // amount of item to shower set .item_id, 7227; // item id to shower setarray .Maps$[0],"izlude","geffen","morocc","prontera"; // Possible maps end; OnMinute31: set .map$,.Maps$[rand(getarraysize(.Maps$))]; announce ""+.amount+" [" +getitemname(.item_id)+ "] has been dropped from the sky in [" +.map$+ "]. Lets get it before it's gone!",0; while ( .count < .amount ) { do { .@x = rand(1,500); .@y = rand(1,500); } while (!checkcell(.map$,.@x,.@y,cell_chkpass)); makeitem .item_id,1,.map$,.@x,.@y; set .count, 0; } set .count, 0; end;} Quote Share this post Link to post Share on other sites
DeviantRaze 1 Posted July 16, 2014 Bro. is it possible that you can make this a custom command? Quote Share this post Link to post Share on other sites
neil413 0 Posted September 10, 2014 dead link Quote Share this post Link to post Share on other sites
jaBote 438 Posted September 10, 2014 First one is still working. Quote Share this post Link to post Share on other sites
Patskie 88 Posted January 2, 2015 @Snaehild : Change : set .count, 0; to set .count, .count + 1; @DeviantRaze : setarray .Maps$[0],"izlude","geffen","morocc","prontera"; // Possible maps+ bindatcmd "itemshower", strnpcinfo( 3 ) + "::OnItemShower", 99, 99;...+ OnItemShower:OnMinute31: Quote Share this post Link to post Share on other sites
Thunderbolt 3 Posted January 30, 2015 Impossible random multiple item drop? Quote Share this post Link to post Share on other sites
MikZ 5 Posted September 30, 2015 Hello! How can I enable this every after woe?? thank you! Quote Share this post Link to post Share on other sites
maxine02 2 Posted October 12, 2016 I know it's old thread but how can I announce if somebody pick the item? Quote Share this post Link to post Share on other sites
rans 7 Posted November 19, 2016 When you set it on a small map like jupe_ele. there is a big chance that the script will run in infinity loop. hope the author fix it. Quote Share this post Link to post Share on other sites
rans 7 Posted November 21, 2016 !checkcell(.map$,.@x,.@y,cell_chkpass) is the one making error with infinity loop sometimes. Quote Share this post Link to post Share on other sites