Jump to content
Patskie

Item Shower

Recommended Posts

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

Edited by Patskie

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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;

Share this post


Link to post
Share on other sites

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? :D

Share this post


Link to post
Share on other sites

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? :D

 

oh ic. :(

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

Share this post


Link to post
Share on other sites

 

 

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

 

post-1425-0-81525000-1385971345_thumb.png

Share this post


Link to post
Share on other sites

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;

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

 

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 by kerbiii

Share this post


Link to post
Share on other sites

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;}

Share this post


Link to post
Share on other sites

@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:

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

!checkcell(.map$,.@x,.@y,cell_chkpass) 
is the one making error with infinity loop sometimes.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.