Commit graph

79 commits

Author SHA1 Message Date
ORelio
bd85c46663 Implement entity types (#1001)
Implement palette generation and investigate palette changes between
versions. Turns out 1.13- has legacy IDs, 1.14 switches to entity
palette and 1.15 refreshes the whole palette just to insert Bee.

Also refactor entity handling code here and there.
2020-05-24 18:21:22 +02:00
Reinforce Zwei
cdb217840d Remove unused using 2020-05-22 17:30:02 +02:00
Reinforce Zwei
06ed5c0a45 Fix #1006 2020-05-22 17:30:02 +02:00
CarbonNeuron
5fdbff94c7 Rename Result to result to be compliant. 2020-05-03 11:18:18 -05:00
CarbonNeuron
bb5ea0280a Get rid of String interpolation, replace with string format. 2020-05-03 10:56:55 -05:00
CarbonNeuron
2fdb89c11a Change OnlyInternal to OnlyInternalCommands 2020-05-03 10:55:55 -05:00
CarbonNeuron
c5a19f4b8b Get rid of UseItemOnHand in using chatbots, replace with UseItemInHand 2020-05-03 10:49:51 -05:00
CarbonNeuron
02ebf067b9 Add Internal command logging. 2020-05-01 09:37:15 -05:00
CarbonNeuron
16959d6e65 Remove AutoLook.cs Chatbot because it is not in main project. Also removes it in McTcpClient.cs, and gets rid of the Settings.cs and Default paramaters. 2020-05-01 09:02:15 -05:00
CarbonNeuron
384c804e54 Added Entity Action handling, and A TSneak command that will Toggle Sneak. 2020-05-01 08:28:22 -05:00
OverHash
770a82e2d2 Check player is in range each entity attack
This commit should make it so that MCC will check that the player is in range before attacking entities each iteration of the cooldown.

This was problematic before, because, if the entities were still they would be added to the attack list, and then if they stayed still and the client teleported away, it would still attempt to attack the entities, even though it is now out of range.
2020-04-27 18:35:59 +02:00
ORelio
7f1ad036b1 AutoAttack coding style fixes 2020-04-27 18:35:59 +02:00
OverHash
83852511bc Don't attack entities whilst dead
MCC will now not attempt to attack entities if the client is dead
2020-04-27 18:35:59 +02:00
OverHash
a378089f1b Clean AutoAttack
A lot of this code is messy and has unused variables. Additionally, there are memory leaks as dead entities are not removed from meory.
2020-04-27 18:35:59 +02:00
ReinforceZwei
0acb17e105 Make AutoEat not to use Threading 2020-04-13 17:49:24 +02:00
ReinforceZwei
3e76baeeb1 Fix AutoAttack stop working with AutoEat enabled and no food on hotbar
#934
2020-04-13 17:49:24 +02:00
ReinforceZwei
8e32c3747c Revert "Improve AutoEat"
This reverts commit 51f54979da.
2020-04-13 17:49:24 +02:00
ReinforceZwei
e9d91ce572 Improve AutoEat 2020-04-13 17:49:24 +02:00
ReinforceZwei
3f9b084a45 Remove IsFood method from Item class 2020-04-09 20:50:34 +02:00
ReinforceZwei
b1121e91e3 Add Item type extension 2020-04-09 20:50:34 +02:00
ReinforceZwei
97b0b03c33 Move AutoEat to a ChatBot 2020-04-09 20:50:34 +02:00
ReinforceZwei
2e1e79bcef Add AutoEat
#923
2020-04-09 20:50:34 +02:00
ORelio
7b049576a3 Allow single commands in ScriptScheduler
Replace script= with action= like in AutoRespond
Older script=<text> will be handled as action=script <text>
2020-04-02 19:00:38 +02:00
ORelio
c5b0f447c9 AutoRelog: Allow any kick message
Set ignorekickmessage=true in config
See issues #880 #921
2020-04-02 18:27:18 +02:00
ORelio
b01c50b792 Improve logging, auto respawn
See discussion in GitHub issue #918
2020-04-01 21:15:35 +02:00
ReinforceZwei
9dbb70eb63 Fix tps not updated 2020-03-31 15:40:41 +02:00
ReinforceZwei
c581ac95c3 Fix AutoFish crashs on EntityDespawn
Issues #902
2020-03-30 20:22:40 +02:00
ORelio
bc3d6aba00 Implement item types
Github discussion on commit 6929ae236a
2020-03-28 23:30:42 +01:00
ORelio
195e162c7d Add code documentation, move and rename a few methods 2020-03-28 00:48:41 +01:00
ORelio
00112e4c6a Give access to AutoRespond matches inside scripts
Available as %match_u%, %match_1% and so on
See #770 for initial suggestion
See #772 for in-progress implementation
2020-03-27 21:39:06 +01:00
ReinforceZwei
66afe127cb AutoFish now checks if the fishing hook is ours 2020-03-27 13:10:37 +01:00
ReinforceZwei
bc449b404e Inventory handling 2020-03-27 13:10:37 +01:00
ReinforceZwei
7fbf9443a1 Made ChatBotAPI OnEntityDespawn to pass Entity object instead of EntityID 2020-03-24 19:23:59 +01:00
ReinforceZwei
dbf5334758 Moved Auto attack and auto fishing to ChatBots and added ChatBotAPI for entity handling 2020-03-24 19:23:59 +01:00
ReinforceZwei
8c31c04c3e Tidy up code
Move variable declaration to the top
Delete unnecessary kill.cs file
2020-03-24 19:23:59 +01:00
ReinforceZwei
0b0e3c334e auto attack 2020-03-24 19:23:59 +01:00
ORelio
52d98538b3 Fix AutoRelog running twice on disconnection
Bug introduced in commit aaf1e8311b
Implement User-Initiated logout reason to ignore the second logout event
See #817
2019-12-08 22:24:20 +01:00
TheSnoozer
3393e7e402 report the full path when loading any files which might help in troubleshooting files not found properly 2019-09-23 22:32:28 +02:00
ORelio
237353498c Fix TriggerOnLogin in ScriptScheduler w/ AutoRelog
Thanks @Nafana for pointing it out in #629
2019-08-04 15:52:44 +02:00
ORelio
e7c664648e AutoRelog: Hide "Loaded message:" lines by default
when debugmessages=false (#740)
2019-05-30 11:48:57 +02:00
ORelio
9372d81738 AutoRelog: Add debug messages (#740) 2019-05-30 11:45:43 +02:00
ORelio
ecf0114f62 ConsoleIO: Sync with SharpTools
Had 2 versions of the ConsoleIO class, one here inc MCC (the original),
and another one in SharpTools, more generic, for use in other projects.

Both had diverged, this commit imports changes from the other repository.
This should not have any particular effect on MCC, besides adding more
documentation and settings in the source code of the class.

If any issue arises, as always, please report it :)
2018-05-28 22:09:50 +02:00
ORelio
1cecf2d788 Improve debug output for HTTPS requests
For diagnosing session errors in #450 and #451
2018-05-23 19:07:31 +02:00
ORelio
79aaa04775 ScriptScheduler: Add debug messages for issue #431
These messages will only apprear if debugmessages=true in config.
2018-05-08 19:27:19 +02:00
ORelio
8ccc5d5af2 Fix TriggerOnFirstLogin not triggering task
See #255
2017-03-09 21:14:13 +01:00
ORelio
a4cc36ce05 Allow restricting AutoRespond matches to bot owner
Suggestion by AppleCidar in #184
2016-08-21 19:53:31 +02:00
ORelio
c6c0c0e3a7 Prevent invalid chars in logfile path
A proper error message is shown and bot is unloaded. Fix #153
2016-05-15 14:37:06 +02:00
ORelio
56d2c201f9 Fix uninitialized AutoRelog for static errors
Kick message list wasn't loaded.
Bug report by Cat7373
Fixes issue #134
2016-03-21 13:26:45 +01:00
ORelio
72bd485e67 Add basic location handling
- Retrieve player location from the server
- Send back player location from the server
- Requires that a specific setting is enabled
- Should allow items to be picked up by the player
- May also trigger some anti chead plugins
2015-11-27 17:16:37 +01:00
ORelio
b3c9a20f16 Fix AutoRespond not handling "other" message type
Bug report by ibspa
2015-10-13 00:31:24 +02:00