Jump to content

Quest Problem


Go to solution Solved by Fr3zy94,

Recommended Posts

don't work if exchange is open will return Close if is close will return close.

 

quest test begin
    state start begin  
        when 27802.use begin
            if pc.is_trade == true then
                syschat("Open.")
            else
                syschat("Close.")
            end
        end
    end -- state
end    -- quest

Link to comment
Share on other sites

  • Solution

That don't work for me but i fiind this

    int pc_is_trade(lua_State* L)
    {
        LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
        lua_pushboolean(L, (ch->GetExchange() || ch->GetMyShop() || ch->GetShopOwner() || ch->IsOpenSafebox() || ch->IsCubeOpen()));
        return 1;
    }

Quest exemple:

quest test begin
    state start begin  
        when 27802.use begin
            if pc.is_trade() then
                syschat("Open.")
            else
                syschat("Close.")
            end
        end
    end -- state
end    -- quest
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.