pajodex 0 Posted May 23, 2014 When a monster is killed, it will drop 200 yggs around it with a cell 10x10. Quote Share this post Link to post Share on other sites
0 Mumbles 193 Posted May 23, 2014 - script free_yggs -1,{ OnNPCKillEvent: getmapxy(.@map$, .@x, .@y, 3); for (.@i = 0; .@i < 200; .@i++) { makeitem Yggdrasilberry, 1, .@map$, .@x + rand(-10, 10), .@y + rand(-10, 10); } end;} Quote Share this post Link to post Share on other sites
0 pajodex 0 Posted May 23, 2014 What if a specific monster? Poring to be exact. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 23, 2014 You should've said that before. Using Mumbles' code as base: - script free_yggs -1,{OnNPCKillEvent: if (killedrid == 1002) { // Poring Mob ID is 1002 getmapxy(.@map$, .@x, .@y, 3); for (.@i = 0; .@i < 200; .@i++) { // Up to 200 Yggdrasil berries makeitem Yggdrasilberry, 1, .@map$, .@x + rand(-10, 10), .@y + rand(-10, 10); } } end;} Quote Share this post Link to post Share on other sites
When a monster is killed, it will drop 200 yggs around it with a cell 10x10.
Share this post
Link to post
Share on other sites