Jump to content

Hakikat

Premium
  • Posts

    22
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Hakikat

  1. Guild window does not open, can an idea help?

    syserr.txt

    0427 20:22:17251 :: Traceback (most recent call last):
    
    0427 20:22:17251 ::   File "ui.py", line 1368, in CallEvent
    
    0427 20:22:17251 ::   File "ui.py", line 88, in __call__
    
    0427 20:22:17251 ::   File "ui.py", line 70, in __call__
    
    0427 20:22:17252 ::   File "uiMessenger.py", line 625, in OnPressGuildButton
    
    0427 20:22:17252 ::   File "ui.py", line 88, in __call__
    
    0427 20:22:17252 ::   File "ui.py", line 70, in __call__
    
    0427 20:22:17252 ::   File "interfaceModule.py", line 1558, in ToggleGuildWindow
    
    0427 20:22:17252 ::   File "uiGuild.py", line 1351, in Open
    
    0427 20:22:17253 ::   File "uiGuild.py", line 798, in Show
    
    0427 20:22:17253 ::   File "uiGuild.py", line 939, in __LoadWindow
    
    0427 20:22:17253 ::   File "uiGuild.py", line 1096, in __MakeMemberPage
    
    0427 20:22:17253 :: RuntimeError
    0427 20:22:17253 :: : 
    0427 20:22:17253 :: Failed to load image (filename: d:/ymir work/ui/public/check_image.sub)
    0427 20:22:17253 :: 
    
    0427 20:22:17256 :: Traceback (most recent call last):
    
    0427 20:22:17256 ::   File "ui.py", line 1368, in CallEvent
    
    0427 20:22:17256 ::   File "ui.py", line 88, in __call__
    
    0427 20:22:17256 ::   File "ui.py", line 70, in __call__
    
    0427 20:22:17256 ::   File "uiMessenger.py", line 625, in OnPressGuildButton
    
    0427 20:22:17257 ::   File "ui.py", line 88, in __call__
    
    0427 20:22:17257 ::   File "ui.py", line 70, in __call__
    
    0427 20:22:17257 ::   File "interfaceModule.py", line 1558, in ToggleGuildWindow
    
    0427 20:22:17257 ::   File "uiGuild.py", line 1351, in Open
    
    0427 20:22:17257 ::   File "uiGuild.py", line 803, in Show
    
    0427 20:22:17257 ::   File "uiGuild.py", line 1648, in RefreshGuildSkillPage
    
    0427 20:22:17258 :: AttributeError
    0427 20:22:17258 :: : 
    0427 20:22:17258 :: 'PageWindow' object has no attribute 'gpValue'
    0427 20:22:17258 :: 

     

  2.  

    In the functions CItem::EquipTo and CItem::Unequip (in item.cpp)

    SET_BIT(dwImmuneFlag, m_pOwner->GetWear(i)->m_pProto->dwImmuneFlag);

    Replace with:
    SET_BIT(dwImmuneFlag, m_pOwner->GetWear(i)->GetRealImmuneFlag());
    Then add the function referred up there to item.cpp:
    DWORD CItem::GetRealImmuneFlag() 
    {
        DWORD dwImmuneFlag = m_pProto->dwImmuneFlag;
        for (int i = 0; i < ITEM_ATTRIBUTE_MAX_NUM; ++i)
        {
            if (GetAttributeType(i))
            {
                const TPlayerItemAttribute& ia = GetAttribute(i);
     
                if (ia.bType == APPLY_IMMUNE_STUN && !IS_SET(dwImmuneFlag, IMMUNE_STUN))
                    SET_BIT(dwImmuneFlag, IMMUNE_STUN);
                else if (ia.bType == APPLY_IMMUNE_FALL && !IS_SET(dwImmuneFlag, IMMUNE_FALL))
                    SET_BIT(dwImmuneFlag, IMMUNE_FALL);
                else if (ia.bType == APPLY_IMMUNE_SLOW && !IS_SET(dwImmuneFlag, IMMUNE_SLOW))
                    SET_BIT(dwImmuneFlag, IMMUNE_SLOW);
            }
        }
     
        return dwImmuneFlag;
    }
     
    As a new function, it also needs to have an entry on item.h, so find:
    long        GetLimitValue(DWORD idx) const { return m_pProto ? m_pProto->aLimits[idx].lValue : 0;    }
     
    And add afterwards:
    DWORD        GetRealImmuneFlag();

     

     

     

     

    is not the solution

  3. Immune shield affixed characters stun, I no speak english used to google translate.
    I might still have made them?
     
     
     
    item.h
     
    item.cpp
     
     
     
     
    Can you give me edit it?
     
    • Love 1
  4. How do I add quest function help please ?


    syserr

    SYSERR: Dec 30 12:01:00 :: RunState: LUA_ERROR: [string "event_ayisigi_2014"]:1: attempt to call field `get_level' (a nil value)
    SYSERR: Dec 30 12:01:00 :: WriteRunningStateToSyserr: LUA_ERROR: quest event_ayisigi_2014.start leave
    

    quest

    quest event_ayisigi_2014 begin
    	state start begin
    		when kill with game.get_event_flag("event_ayisigi_drop") == 1 and not npc.is_pc() begin
    			if npc.get_level() > pc.get_level() - 10 then
    				local s = number(1,150)
    				if s == 1 then
    				game.drop_item_with_ownership("50011",1)
    				return
    				end
    			end
    		end
    	end
    end
    

    How do I add quest function help please

     

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