FLhook development and goods per RP license type ...

There are 8 replies in this Thread. The last Post () by Riebens.

  • Hi


    I have read a few places on the forum about BMG types and RP License types, especially BMG and Smuggler License


    This is just a suggestion (or more of a question as I am not on the modding team, and I have no idea what code has been written for the custom FLHook for CF)


    Looking at the latest FLHook1.6.6 code, there seems to be a function that is called whenever any commodity is purchased (ReqAddItem(unsigned int p1, char const *p2, int p3, float p4, bool p5, unsigned int p6))


    This code checks for item mounting on ships, as well as item restrictions.


    It seems that these item restrictions are in an ini file that get's loaded by the loadsettings() of the FLHook and then whenever any commodity is purchased, the restrictions of the items are checked.


    It seems to associate Items with a mountpoint, and as the License is on such a point, maybe it's possible to create a list of 'gooditems', read the Currrently mounted Items and see if the specific license that the items is good with, is mounted, then allow purchase ?

    Kind regards


    ---------------------------------------------------------------------------------------
    Windows 8.1 X64, AMD Phenom II X4 965 Black 3.4GHz, 16GB 1600 RAM, NVIDEA GeForce GXT 460

  • *Takes his glasses off in a dramatic fashion* My god... I think he has it! Nomore B.M good floating on folk who don't have smuggler!

  • By God I hope your suggestion works Riebens, this could finally end the BM illegitimate smuggling in CF once and for all. Finally, anyone who does not have a smuggler's license cannot transport BM goods, period! This will single-handedly revive the smuggler RP faction! :thumbsup:

  • Thanks for that information Riebens, we gonna have a look at it and check how far we can use that.
    Because - we have not FlHook 1.6.6 or any of the new stuff. And we are not going to use it anytime soon.


    Hence didnt we already said we are going work on this and that we already have an idea how to solve it. So how many times do we have to read that it would be nice to have the smuggler thingy working?
    Just asking - because i fear in the next two weeks i will read that again and again... ;)

    signature.png

  • Huor


    I am sorry if I upset you by brining this topic up again, but I was not aware of other discussions you have had that amounted to a solution.


    All I saw was discussions without any proposed solution ( just whining ), so I proposed a possible solution.


    I know you have a custom version of FLHOOK, that is why i mentioned what I saw in 1.6.6.


    If you guys run into time problems, I can offer my services for your help.


    Kind Regards


    ---------------------------------------------------------------------------------------
    Windows 8.1 X64, AMD Phenom II X4 965 Black 3.4GHz, 16GB 1600 RAM, NVIDEA GeForce GXT 460

  • we are using original flhook written by mchorst for our custom cfhook
    however there might be similarities that can be used eventhough the version differ in structure and language

    signew.jpg


    cfmoddblogo.png5904.png5904.png
    http://www.moddb.com/scripts/topsite.php?ts=4766


    Only dead fish swim with the stream.
    Don't discuss with idiots. They only drag you down to their level and then beat you with experience there.


    This is ten percent luck,
    Twenty percent skill,
    Fifteen percent concentrated power of will,
    Five percent pleasure,
    Fifty percent pain,
    And a hundred percent reason to remember the name!

  • good ..


    I actually program database systems usign Clarion, but I do have some c and c++ skills, so if you guys need help or testing or wanything, let me know


    Kind Regards


    ---------------------------------------------------------------------------------------
    Windows 8.1 X64, AMD Phenom II X4 965 Black 3.4GHz, 16GB 1600 RAM, NVIDEA GeForce GXT 460