PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Help with scripts => Topic started by: slinky on 30 May, 2008, 21:04:21

Title: Disable FreshStuff3 5.0 SP1 requester module
Post by: slinky on 30 May, 2008, 21:04:21
Hello!

I have disabled most requester functions by setting Levels.AddReq, Levels.ShowReqs and Levels.DelReq to 0 in config/requester.lua.

However, "Requests/Fulfill an item..." still appears in hub user's right-click menu.

Can some kind gent please tell me how to disable this option?

Thanks!  ;)
Title: Re: Disable FreshStuff3 5.0 SP1 requester module
Post by: bastya_elvtars on 30 May, 2008, 21:56:10
You should rename the file instead so it won't have a .lua extension.
edit: freshstuff\components\requester.lua I mean of course. :)
Title: Re: Disable FreshStuff3 5.0 SP1 requester module
Post by: slinky on 30 May, 2008, 22:09:03
Thank you very much for the quick reply!  :)

I renamed freshstuff\components\requester.lua extension to luax. I got error messages in Ptokax 0.4.0.0 (could not find requester.lua or requester.dll) and many announce-elements in the hub which I DID want entirely disappeared.

I tried renaming freshstuff\config\requester.lua instead, but then Ptokax would not load the script.

I am pretty sure I followed your instructions correctly. Can you please help some more? :)
Title: Re: Disable FreshStuff3 5.0 SP1 requester module
Post by: bastya_elvtars on 30 May, 2008, 22:33:34
Then you found a bug I think.
Edit: yes, the extension detection is not perfect. Until I fix it, rename to something else that does not start with .lua, e.g. 000 or something like that.
Title: Re: Disable FreshStuff3 5.0 SP1 requester module
Post by: slinky on 30 May, 2008, 22:45:10
That worked a treat. Thank you very much!!  :D
Title: Re: Disable FreshStuff3 5.0 SP1 requester module
Post by: bastya_elvtars on 30 May, 2008, 22:48:45
I thank you for spotting this bug. :)