Comments (15)
If you want to create a new plugin make sure that the following steps are done:
- Create a new .NET 6 library project to /Plugins
- Make sure that it's built into "Build\Plugins"
- Add RSBot.Core to the project dependency of your new plugin
3.1. Make sure to not copy "RSBot.Core.dll" to your output directory. - Add a new class that implements IPlugin from the core.
Done. See existing plugin's .csproj file for more info reg. the dependency and build directory.
from rsbot.
You're welcome. If you have any questions you can PM me (@Wimbeam) in discord.
from rsbot.
@SDClowen if you don't have time for this, I can work on it although I don't have much experience. I saw that events are not called with an enum, it would be good for me if I could have a list of events. In addition, you can guide me to make the part of saving the changes made in the plugin suitable for the project. regards.
from rsbot.
Hello,
there isn't a complete overview for all events. But you can find them by searching for "EventManager.FireEvent" / "EventManager.SubscribeEvent". The names/locations will tell you when the event is fired.
You may want to checkout the existing plugins first. There's no existing system you could use for your notifications so you will defnitely need to subscribe to the events on your own and then execute your notification logic.
Actually I like your idea but as you've already guessed we don't have time for this so I'm looking forward to your contribution 👍
from rsbot.
Hi Niklas
Thank you for the information. I've been wanting to contribute to this project, and with this plugin I'll be able to make a start. But I'm having some difficulties because I'm not familiar with this ecosystem at all. I thought of copying an existing plugin and making the changes through it, but I couldn't do it. If you make this start for me, I'd like to continue with the other parts.
from rsbot.
Why don't u send what you want to Discord using a webhook? That's just a few lines of code
from rsbot.
In the same way, you can handle it with a few lines of code. Everyone prefers to use some tools in their own way.
from rsbot.
What exactly do you want to send as notification.
Drops, unique spawns etc?
from rsbot.
Yes, like these...
from rsbot.
Thank you, I will proceed with these steps.
from rsbot.
I've had a second thought about this.
Actually you can place your changes into "RSBot.CommandCenter". Ther's even a tab in the UI "Notifications" already. So it's actually even intendet to be in there.
from rsbot.
It seems like it would be easier to continue from there. I would have to learn how to both create the interface and save the settings when trying to do it as a separate plugin.
from rsbot.
When the notification related stuff is there, it will be understood as being just for CommandCenter notifications. I think the general notification plugin makes more sense in context, when it's as a separate plugin.
from rsbot.
This allows you to add multiple providers such as Discord. The user receives notifications from the platform they want.
from rsbot.
Let me first add the notification part to CommandCenter, and then we can talk about making a separate plugin if you want.
from rsbot.
Related Issues (20)
- [Bug] Connecting to gateway & login problems.
- [Bug]Detected by TRSro HOT 1
- raycastCount (terrain) above 100 HOT 4
- Object reference not set to an instance of an object.
- Lure Feature
- Trsro client acılmıyor[Bug]
- Does it support ExaySRO?[Feature request] HOT 1
- Bot stops attacking[Bug] HOT 1
- https://www.r-silk.com/ Is not supported please help HOT 1
- object reference not set to an instance of an object [Bug]
- clientless stuck when back town
- [Bug] Buffların aktif buff listesinde buga girip yenilenmemesi ve ressurection atmaması
- [Bug]Object reference not set to an instance of an object.
- [Bug] Limit pick up items to Training Radius
- [Feature request] Potion Amount for Back to Town
- [Add Delay Between Buying each GOODs Stack]
- [Pickup filter]
- [DC On Relog]
- Not Using Skills
- Connecting to gateway & login problems.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsbot.