Jump to content
  • 0

DROP ITEMS NPC


brizzle413

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  09/06/12
  • Last Seen:  

Hi Everyone,

 

This might be old but i tried to find everywhere but failed to get one.

 

I am looking for a script / NPC, where i can click and various items will be dropped on a selected area of the map.

 

Basically i want my players to have a good time picking up various items.

 

I believe it is @makeitem or something else.

 

If you could give me the ready-made script / NPC that would be excellent.

 

Thank you very much in advance!!

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

Replace the first line with your NPC settings.

Define your area, map and itemlist plus amount of each time under the OnInit Label. You need to add an amount for each item.

mapname,x,y,direction	script	NPCName	id,{
	
	for (set .@i, 0;.@i < getarraysize(.items);set .@i, .@i+1){
		set .@itemid = .items[.@i];
		for (set .@j, 0; .@j < .amount[.@i]; set .@j, .@j+1){
			set .@x, rand(.upperleftx,.lowerrightx);
			set .@y, rand(.lowerrighty,.upperlefty);
			makeitem .@itemid,1,.map,.@x,.@y;
		}
	}
	end;
	OnInit:
		setarray .items[0],0;	//add items that should be dropped here
		setarray .amount, 0;	//how many of each item should drop?
		set .map,"prontera";	//map
		set .upperleftx,0;		//items will be dropped in that area (see below)
		set .upperlefty,0;
		set .lowerrightx,0;
		set .lowerrighty,0;
		//upperleft - - - - - - - - -
		//- - - - - - - - - - - - - - 
		//- - - - - - - - - - - - - - 
		//- - - - - - - - - - - - - - 
		//- - - - - - - - - - - - - - 
		//- - - - - - - - - - - - - - 
		//- - - - - - - - - lowerright
		end;
		
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Check this thread related to your request

 

http://rathena.org/board/topic/93540-item-shower-command-please/

Link to comment
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
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...