Meister Posted November 17, 2017 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Share Posted November 17, 2017 Hi, Requesting for a global drop src wherein you can add items to be dropped by all monster via global_drop.txt. E.G. ItemID,Percentage (10518,50) Wanted to use NPCKillEvent but problem is that all items go directly to the inventory. I want it to be dropped normally by monster. Regards! Quote Link to comment Share on other sites More sharing options...
0 GodKnows Jhomz Posted November 17, 2017 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share Posted November 17, 2017 (edited) 5 hours ago, Meister said: Hi, Requesting for a global drop src wherein you can add items to be dropped by all monster via global_drop.txt. E.G. ItemID,Percentage (10518,50) Wanted to use NPCKillEvent but problem is that all items go directly to the inventory. I want it to be dropped normally by monster. Regards! Maybe this topic may help you on your request: Then you can use makeitem script command to make an item on the ground. Hope it helps you. Edited November 17, 2017 by GodKnows Jhomz Quote Link to comment Share on other sites More sharing options...
0 Foob Posted November 17, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 13 hours ago Share Posted November 17, 2017 (edited) 3 hours ago, GodKnows Jhomz said: Maybe this topic may help you on your request: Then you can use makeitem script command to make an item on the ground. Hope it helps you. Not the same I think. Edited November 17, 2017 by iAmGnome Quote Link to comment Share on other sites More sharing options...
0 GodKnows Jhomz Posted November 17, 2017 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share Posted November 17, 2017 8 hours ago, Meister said: Hi, Requesting for a global drop src wherein you can add items to be dropped by all monster via global_drop.txt. E.G. ItemID,Percentage (10518,50) Wanted to use NPCKillEvent but problem is that all items go directly to the inventory. I want it to be dropped normally by monster. Regards! This one is what you're looking for. 2 hours ago, iAmGnome said: Not the same I think. Sorry for that Already found the one he's looking for. Quote Link to comment Share on other sites More sharing options...
0 Meister Posted November 18, 2017 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted November 18, 2017 @GodKnows Jhomz: Unfortunately don't want to use NPCKillEvent since it will be directed to your Inventory. Quote Link to comment Share on other sites More sharing options...
0 GodKnows Jhomz Posted November 18, 2017 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share Posted November 18, 2017 (edited) 4 hours ago, Meister said: @GodKnows Jhomz: Unfortunately don't want to use NPCKillEvent since it will be directed to your Inventory. Lol, did you check the said reply? It will redirect the item to your inventory once you use getitem script command. In the reply, he removed the getitem and replaced it by makeitem so the item will be dropped once the monster is killed. Here I'll make it for you: - script GlobalDrop -1,{ OnNPCKillEvent: set .@randitem,rand(2); // 50% That will drop Red Potion if(.@randitem == 1) { getmapxy(.@map$,.@x,.@y,0); makeitem 501,1,.@map$,.@x,.@y; //Will Drop Red Potion. Change 501 to what you want the monster to drop. end; } } Already tested it and it works for any mob that you kill, will drop Red Potion at 50% chance. I hope this script will fulfill your needs. Edited November 18, 2017 by GodKnows Jhomz Added explanation for getitem and makeitem script commands. Quote Link to comment Share on other sites More sharing options...
0 Meister Posted November 18, 2017 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted November 18, 2017 11 hours ago, GodKnows Jhomz said: Lol, did you check the said reply? It will redirect the item to your inventory once you use getitem script command. In the reply, he removed the getitem and replaced it by makeitem so the item will be dropped once the monster is killed. Here I'll make it for you: - script GlobalDrop -1,{ OnNPCKillEvent: set .@randitem,rand(2); // 50% That will drop Red Potion if(.@randitem == 1) { getmapxy(.@map$,.@x,.@y,0); makeitem 501,1,.@map$,.@x,.@y; //Will Drop Red Potion. Change 501 to what you want the monster to drop. end; } } Already tested it and it works for any mob that you kill, will drop Red Potion at 50% chance. I hope this script will fulfill your needs. So if its getitem, will autoloot 100% or alootid +itemID will get the item? or? Quote Link to comment Share on other sites More sharing options...
0 Kaleidoscope Posted November 18, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 58 Reputation: 5 Joined: 07/16/17 Last Seen: October 18, 2022 Share Posted November 18, 2017 (edited) Newbie developer here! ~ Interested in this same concept but needs an explination on how to do the math for the randitem value. How would you calculate 0.01%? Edited November 18, 2017 by Kaleidoscope Quote Link to comment Share on other sites More sharing options...
0 GodKnows Jhomz Posted November 19, 2017 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share Posted November 19, 2017 12 hours ago, Meister said: So if its getitem, will autoloot 100% or alootid +itemID will get the item? or? I'm not sure if its available to auto-get using @autoloot/@alootid. 10 hours ago, Kaleidoscope said: Newbie developer here! ~ Interested in this same concept but needs an explination on how to do the math for the randitem value. How would you calculate 0.01%? Maybe you can try this: set .@randitem,rand(10000); // 0.01% That will drop Red Potion if(.@randitem == 1) { getmapxy(.@map$,.@x,.@y,0); makeitem 501,1,.@map$,.@x,.@y; //Will Drop Red Potion. Change 501 to what you want the monster to drop. end; } Quote Link to comment Share on other sites More sharing options...
0 Meister Posted November 19, 2017 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted November 19, 2017 @GodKnows Jhomz: Unfortunately it doesn't work with autoloot with the script provided or I was wrong. That's why it's better if its not script. Like an item_global_drop.txt wherein you can just add items there like 607,100 // ITEMID,Drop Rate Quote Link to comment Share on other sites More sharing options...
0 Kaleidoscope Posted November 19, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 58 Reputation: 5 Joined: 07/16/17 Last Seen: October 18, 2022 Share Posted November 19, 2017 11 hours ago, GodKnows Jhomz said: I'm not sure if its available to auto-get using @autoloot/@alootid. Maybe you can try this: set .@randitem,rand(10000); // 0.01% That will drop Red Potion if(.@randitem == 1) { getmapxy(.@map$,.@x,.@y,0); makeitem 501,1,.@map$,.@x,.@y; //Will Drop Red Potion. Change 501 to what you want the monster to drop. end; } Thanks, Ill try this out shortly! Quote Link to comment Share on other sites More sharing options...
0 Meister Posted November 21, 2017 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted November 21, 2017 Anyone who could lead? Thanks! Quote Link to comment Share on other sites More sharing options...
Question
Meister
Hi,
Requesting for a global drop src wherein you can add items to be dropped by all monster via global_drop.txt.
E.G.
ItemID,Percentage (10518,50)
Wanted to use NPCKillEvent but problem is that all items go directly to the inventory. I want it to be dropped normally by monster.
Regards!
Link to comment
Share on other sites
11 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.