Jump to content

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

If you have it in item_proto I assume it also is in item_proto in client, but You didn't tell if there laying coins any coins on ground when kill, or you have third hand (de)activated.

Check now game client's item_proto for yang and try with third hand. If both fails you can do an override like this:

	quest drop_yang begin
    state __FUNC__ begin
        function DropYang(factor)
            return math.abs(npc.get_level()*number(factor, factor+100))
        end
    end
    
    state start begin
        when kill witn not npc.is_pc() begin
            -- This will give you gold automaticly calculated by formula MobLevel * 1000 (e.g)
            -- from stray dog you will gain min:1000 yang and max 1100 yang
            local yang = drop_yang.DropYang(1000)
            pc.change_gold(yang)
            syschat(string.format("You have recieved %d yang"), yang)
        end
    end
    
end
	

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



  • Similar Content

  • Activity

    1. 5

      OLDGODSMT2 [ MEGA SF RELEASE ]

    2. 24

      Experimental Renderer

    3. 11

      Multi Language System

    4. 0

      [FREE DESIGN] Interface + Logo + Discord Banner and Avatar

    5. 4

      Feeding game source to LLM

    6. 0

      Quest 6/7 Problem

    7. 5

      Effect weapons

    8. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.