brizzle413 Posted April 2, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 23 Reputation: 3 Joined: 09/06/12 Last Seen: July 5, 2017 Share Posted April 2, 2014 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!! Quote Link to comment Share on other sites More sharing options...
Yuka Posted April 2, 2014 Group: Members Topic Count: 100 Topics Per Day: 0.02 Content Count: 333 Reputation: 7 Joined: 03/01/14 Last Seen: May 6, 2020 Share Posted April 2, 2014 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; } Quote Link to comment Share on other sites More sharing options...
sandbox Posted April 5, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted April 5, 2014 Check this thread related to your request http://rathena.org/board/topic/93540-item-shower-command-please/ Quote Link to comment Share on other sites More sharing options...
Question
brizzle413
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.