Item Shower

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

 
Code:
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;
 
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?
default_biggrin.png


 
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?
default_biggrin.png
oh ic.
default_sad.png


i need random pick a map and do the item shower there. hehe xD

 
Opps i included it in the while loop sorry for that. It should be :

Code:
+ announce "An [" +getitemname(.item_id)+ "] has been drop from the sky in map [" +.map$+ "]. Lets get it before it gone..",0;set .count, 0;
 
or you can put the announce before the while {

 
how to shower multiple item like 40 tcg and 1pods

then announces when you pick up the PODS

 
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

 
Hi Thanks for this script. I was wondering if you can add this manually like make it an @command for admins.

Thanks again
default_biggrin.png


 
I'm having this error

Code:
[Error]: run_script: infinity loop !
Code:
-	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;}
 
Back
Top