Jump to content

Edilson

Advanced members
  • Content Count

    20
  • Joined

  • Last visited

Posts posted by Edilson


  1. Good afternoon everyone;

     

    Can anyone tell me what the problem is? Because I created a server on Windows 10 using SQL Server 2014, but within the game the GM System bar does not appear announcing any event for example; When I open a Chest or when I open a portal or closed.
    Which program should I install on my Windows 10?

    Can anyone tell me about this problem?

     

    Please help me!

     

    This is an image of when I write, it appears normal. But when it is implemented in some server file resource it does not work.

    gm system.jpg


  2. 15 hours ago, V3ct0r said:

    Hello, @Edilson!

     

    Add some debug messages to your code and check them:

    
            local Swing = GetChaItem(role, 2, 0)
            local Swing_ID = GetItemID(Swing)
    	Notice("Swing_ID = " .. Swing_ID)
            if Swing_ID == 9137 then
                local statelv = 1
                local statetime = 3600
    		Notice("Activating...")
                AddState(role, role, STATE_SWINGSK1, statelv, statetime)        
            else
                local state_swingsk1 = GetChaStateLv(role, STATE_SWINGSK1)
                if state_swingsk1 ~= 0 then
    		Notice("Deactivating...")
                    RemoveState(role, STATE_SWINGSK1)
                end
            end

     

     

    Now this error is appearing on the system.

    cap00000.jpg


  3. Hello everyone, 

    I have this problem, my item Disable and Enable. any help me? see this below image.

     

    Quote

            local Swing = GetChaItem(role, 2, 0)
            local Swing_ID = GetItemID(Swing)
            if Swing_ID == 9137 then
                local statelv = 1
                local statetime = 3600
                AddState(role, role, STATE_SWINGSK1, statelv, statetime)        
            else
                local state_swingsk1 = GetChaStateLv(role, STATE_SWINGSK1)
                if state_swingsk1 ~= 0 then
                    RemoveState(role, STATE_SWINGSK1)
                end
            end

     

    cap00000.jpg

×
×
  • Create New...