Jump to content

Think

Inactive Member
  • Posts

    175
  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Posts posted by Think

  1. By the way, is it possible to trigger a quest for all the members of a group if a any member of this group kills a mob ? E.G : I just killed a boss and as a result, everybody in my group receive a special quest, message , item or anything ?

    Trigger on kill, and then loop through quest members with something like...

    local pids = {party.get_member_pids()}
    for i, pid in next, pids, nil do
    	q.begin_other_pc_block(pid)
    	--stuff with the other player... pc.functions() will act as if it's another char
    	q.end_other_pc_block()
    end

     

    As for the problem with killing in party, party_kill is only triggered for the leader when either the leader or someone on the group kills anything. Some kill trigger with party conditions (but without party flags, is it really intended that progress is shared?) seems about right though.

    • Love 1
  2. try this

    function is_weekend()
        local weekend = os.date("%w")
        local day = os.date("%%A")
        if day == weekend
            return true
        else
            return false
        end
    end
    

    I am confused as to how this is supposed to work:

    - weekend will hold the weekday as number (e.g 6)

    - day will hold % + weekday's full name (e.g %Saturday) - or simply '%', not quite sure how it's parsed.

     

    (ref for what the os.date yields: http://www.cplusplus.com/reference/ctime/strftime/).

    • Love 1
  3. @Rideas your function will forever try to re-equip new arrows each time an arrow is shot, provided only one arrow of type 79503 is equipped.

    If you want to prevent vnum 79503 from reducing arrows, you are better off with an if(...) return; at the very beginning.

    • Love 1
  4. Well, I would just remove the whole shutdown_manager (unless you have an use for it, which I doubt?). If you don't know how to do that, I'm afraid I can't help you too much, my suggestion is to delete the files, try to compile, and start deleting all no longer existing references that will display as errors in the compilation process.

  5. some ingame screenshots please

    Some reading, please o.o

    Hi guys i have some problem with adding effect (i dont see effect in game) and i cant find any usefull topic.

    idk how you'd screenshot not seeing something?

     

    @ontopic, did you make the change on

    SetPlayerProto

    before or after this line?

    thecore_memcpy(m_aiPremiumTimes, t->aiPremiumTimes, sizeof(t->aiPremiumTimes));

    It should be afterwards, as it is all unitialized memory otherwise and might or might not work.

    • Love 1
  6. Found the solution! Just change the Packet.h and replace this

        POINT_ATT_BONUS,
        POINT_DEF_BONUS,

    with this:

        POINT_ATT_BONUS = 93,
        POINT_DEF_BONUS = 94,


    and your problem on everything that gives damage is solved by now! :)

    Unless you added/removed points prior to those, that definitely does not do anything. And if you added/removed points prior to those, then that's not the only thing you should be changing!

×
×
  • 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.