Jump to content

How gameforge's drop_gamble_with_flag works?


Recommended Posts

I'm struggling with the dragon soul (untouched, original)

                if drop_gamble_with_flag("ds_drop") then
                    game.drop_item_with_ownership(30270, 1, 300)
                end
function drop_gamble_with_flag(drop_flag)
        local dp, range = pc.get_killee_drop_pct()
        dp = 40000 * dp / game.get_event_flag(drop_flag)
        if dp < 0 or range < 0 then
            return false
        end
        return dp >= number(1, range)
end

When i type /e ds_drop 0 (or when ds_drop doesnt exist cause it's 0 then) every single mob drop one gem. When i type more then 0, there is no drop.

What am i missing?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Yes i tried.

 

Actually when the ds drop is not 0, so eg 1 or 100 or maxvalue of eventflag, the mob drops gems, but very very rarely.

(I keep have to keep spam /e 101 25 /pull for 10mins lol to drop 1 gem) 

1 and 100 is the same i'm sure, nothing changes.

 

Something defenitly wrong... :(

Edited by K3zX
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.