Lua hooks needed!
#41
its maybe usefull to separate the lua bugs/feature requests from the other bugs/feature requests
Reply
Thanks given by:
#42
(01-07-2013, 01:51 AM)FakeTruth Wrote: I could add another category, or even another project to the bugtracker if you really think that's necessary

Speaking about bugtracker, there are some entries that should be removed:
http://mc-server.org/support/index.php?d...&pagenum=3
http://mc-server.org/support/index.php?d...&pagenum=2
http://mc-server.org/support/index.php?d...&pagenum=2
http://mc-server.org/support/index.php?d...&pagenum=2
http://mc-server.org/support/index.php?d...task_id=96
Reply
Thanks given by: NiLSPACE
#43
(01-06-2013, 09:15 PM)bearbin Wrote: What are the hooks so I can implement the new stuff?

They are the ones listed in my post:
https://forum.cuberite.org/showthread.ph...13#pid5913

Note that they are not yet in the SVN trunk version (so they're not yet in the nightbuilds), you need to switch to a branch called "branches/hooks" and compile for yourself, if you want to try them out.
Reply
Thanks given by:
#44
Yeah, I have switched branches. Thanks for the help Smile
Reply
Thanks given by:
#45
(01-07-2013, 02:22 AM)Luksor Wrote: Speaking about bugtracker, there are some entries that should be removed:

The "Core won't let player interact ..." issue is still valid and is a rather pesky one, otherwise I agree. And since you are a developer, just ask FakeTruth to give you devel access to FS, so that you can close issues, too Smile

I'd like to ask as many plugin authors as possible to give the new branch a thorough test and see if they would like to see something changed / added, hook-wise. If not, we'll merge this branch into the trunk soon, so you have some time left to modify your plugins for this new version.
Reply
Thanks given by:
#46
What's the return code to cancel a block break event? My old code with updated names doesn't work Sad

(Preventing block places works fineTongue)
Reply
Thanks given by:
#47
I could test new branch if you can make a win build Smile
Reply
Thanks given by:
#48
here you go Smile its the hook branch


Attached Files
.zip   MCServer.zip (Size: 996.32 KB / Downloads: 268)
Reply
Thanks given by:
#49
Can you add to the OnPlayerBreakingBlock and the placing one: what the player is holding in the hand at that time.
Reply
Thanks given by:
#50
I don't think that parameter is needed - you can check cPlayer:GetEquippedItem() should you need it. There's already heaps of parameters, didn't want to spam the function even more with stuff that you can get somewhere else effectively.
Reply
Thanks given by:




Users browsing this thread: 9 Guest(s)