Can you force a change in status of an object (ie door) without the interaction of a player? What API package?
Object Status change
-
- English
- angriff
- Thread is marked as Resolved.
-
-
nope unfortunately it is not possible atm
-
Well so much for that program.. sigh.
-
On a tear now.. fourth program and this time I had a test program in that was working and used some of the same routine and found that the latter program functioned perfectly but the test routine started throwing a bunch of Java Errors in chat even though it was not executed. I think it has something to do with all routines always listening.. any thoughts? They both kept working and it did not crash the server.
-
hmmm not sure exactly what you mean, would need to see the code and the java error to know
-
hmmm not sure exactly what you mean, would need to see the code and the java error to know
no errorlog at this point.. so I just took out the test routine. All seems fine.
Is there a way to cause a player interaction? That is point at something and make them push a mouse button? I figured out how to move someone exactly were I want them .. but not fully tested and wanted to know if I could force an interaction?
-
Force an interaction no they have to click or press the key themselves but you can lock their camera looking at a specific direction by setting their view direction and resetting it to the view direction you want if they try to move
What exactly are you trying to do? If you explain your concept I might be able to help more
-
Force an interaction no they have to click or press the key themselves but you can lock their camera looking at a specific direction by setting their view direction and resetting it to the view direction you want if they try to move
What exactly are you trying to do? If you explain your concept I might be able to help more
oh a thought of how to provide a workaround on the unable to open a door api routine
-
ehm there is no workaround to open a door via the api What exactly is your plan? If you try to edit the world database directly to set the door to open from clsoed that doesn't work we have tried it already
-
As @Minotorious said, there is basically no way to change the object status unfortunately. Although this isn't entirely true: almost everything can be done through the plugin API by using Reflection (at least as long as the game already supports this). By using Reflection, you get access to all game classes so you could change something there manually. However, it's quite tricky to do that, since you have to examine the source code of the game/server for this and understand how things work.
Nevertheless, we will add a changeObjectStatus() method to the World class in the next update
-
As @Minotorious said, there is basically no way to change the object status unfortunately. Although this isn't entirely true: almost everything can be done through the plugin API by using Reflection (at least as long as the game already supports this). By using Reflection, you get access to all game classes so you could change something there manually. However, it's quite tricky to do that, since you have to examine the source code of the game/server for this and understand how things work.
Nevertheless, we will add a changeObjectStatus() method to the World class in the next update
Woot.. great That will open a whole new era of plugins. The one idea was to charge iMoney to enter an area.
-
Woot.. great That will open a whole new era of plugins. The one idea was to charge iMoney to enter an area.
For this you don't need to change the status of any object. In fact it could be done with the current plug-in API.
-
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!