C Casca Lifetimer Joined Sep 17, 2009 Messages 307 Reaction score 1 Points 0 Feb 26, 2016 #1 Is there a plugin or a way to have bots check power-source % and swap it to a new one if needed?
R Rooster New member Joined Jul 10, 2010 Messages 510 Reaction score 3 Points 0 Feb 26, 2016 #2 You can do various check for .PctPower, maybe try some downshits This will auto inventory a powersource you have on cursor if you need one equipped and the one you have on cursor has >1% power Code: downshit0=/if (${If[${Cursor.PctPower.Int}>1,1,0]} && ${If[${Me.Inventory[21].ID},0,1]}) /autoinventory This will find the aug by name and pick it up on cursor if you need to quip a powersource Code: downshit1=/if (${If[${Me.Inventory[21].ID},0,1]} && ${FindItem[Ocean Purification Stone].ID}) /itemnotify ${FindItem[Ocean Purification Stone].InvSlot} leftmouseup This should pick up the powersource if it's .PctPower is 0% I don't have a 0% powersource to check this though Code: downshit2=/if (${If[${Me.Inventory.PctPower.Int}==0,1,0]} ) /itemnotify 21 leftmouseup This SHOULD destroy any powersource on cursor if it's .PctPower is 0% NOTE: i haven't tested this, i don't have any 0% powersources. Test in game with /echo with the 0% and a random % powersource on cursor to see what you get . Use at your own risk Code: downshit3=/if (${Cursor.ID} && ${If[${Cursor.PctPower.Int}==0,1,0]}) /destroy
You can do various check for .PctPower, maybe try some downshits This will auto inventory a powersource you have on cursor if you need one equipped and the one you have on cursor has >1% power Code: downshit0=/if (${If[${Cursor.PctPower.Int}>1,1,0]} && ${If[${Me.Inventory[21].ID},0,1]}) /autoinventory This will find the aug by name and pick it up on cursor if you need to quip a powersource Code: downshit1=/if (${If[${Me.Inventory[21].ID},0,1]} && ${FindItem[Ocean Purification Stone].ID}) /itemnotify ${FindItem[Ocean Purification Stone].InvSlot} leftmouseup This should pick up the powersource if it's .PctPower is 0% I don't have a 0% powersource to check this though Code: downshit2=/if (${If[${Me.Inventory.PctPower.Int}==0,1,0]} ) /itemnotify 21 leftmouseup This SHOULD destroy any powersource on cursor if it's .PctPower is 0% NOTE: i haven't tested this, i don't have any 0% powersources. Test in game with /echo with the 0% and a random % powersource on cursor to see what you get . Use at your own risk Code: downshit3=/if (${Cursor.ID} && ${If[${Cursor.PctPower.Int}==0,1,0]}) /destroy