WhiteEagle Posted May 20, 2020 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 9 hours ago Share Posted May 20, 2020 Can someone please set this up so that autoloot only works on items from 100% to 1% and everything below 1% is dropped? Many thanks in advance Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted May 21, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 20 hours ago Share Posted May 21, 2020 Quote @autoloot {<%>} Enables or disables autolooting items from killed mobs. If a percentage is given, only items dropped at that rate and below will be autolooted. If you want to force players to cap % > Use bindatcommand to trigger autoloot again and don't allow player to use normal autoloot. Quote Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted May 21, 2020 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 9 hours ago Author Share Posted May 21, 2020 No that's not what I want. Autoloot works atm like: @autoloot 1% and all items are automatically lootet with a drop chance 1% or below. I want a change that @autoloot 1% loot all items with a drop chance 1% and ABOVE. All items less then 1% drop change are droped. Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted May 21, 2020 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted May 21, 2020 i think you are asking for a reverse autoloot. Quote Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted May 21, 2020 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 9 hours ago Author Share Posted May 21, 2020 @Haruka Mayumi Exactly. ^-^ Quote Link to comment Share on other sites More sharing options...
0 Patskie Posted May 27, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 25 minutes ago Share Posted May 27, 2020 Change this From && (drop_rate <= sd->state.autoloot || pc_isautolooting(sd, ditem->item_data.nameid)) To && (drop_rate >= sd->state.autoloot || pc_isautolooting(sd, ditem->item_data.nameid)) Quote Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted May 27, 2020 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 9 hours ago Author Share Posted May 27, 2020 @Patskie Thanks I now have the problem that you can make @autoloot 0.5 etc. and have less than 1% drop chance, how can I change this? I tried to set rate = 0 to 100, but then I don't get autoloot turned off because I can't set autoloot 0 or off. ACMD_FUNC(autoloot) { int rate; nullpo_retr(-1, sd); // autoloot command without value if(!message || !*message) { if (sd->state.autoloot) rate = 0; else rate = 10000; } else { double drate; drate = atof(message); rate = (int)(drate*100); } if (rate < 0) rate = 0; if (rate > 10000) rate = 10000; sd->state.autoloot = rate; if (sd->state.autoloot) { snprintf(atcmd_output, sizeof atcmd_output, msg_txt(sd,1187),((double)sd->state.autoloot)/100.); // Autolooting items with drop rates of %0.02f%% and below. clif_displaymessage(fd, atcmd_output); }else clif_displaymessage(fd, msg_txt(sd,1188)); // Autoloot is now off. return 0; } Quote Link to comment Share on other sites More sharing options...
Question
WhiteEagle
Can someone please set this up so that autoloot only works on items from 100% to 1% and everything below 1% is dropped?
Many thanks in advance
Link to comment
Share on other sites
6 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.