Jump to content

Rexors

Inactive Member
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Rexors

  1. Hey guys, I upgrade my Granny to 2.9 like this topic :

    All work great but my sysser is full of communiques and errors.  

    0129 22:36:21154 :: GRANNY: File has run-time type tag of 0x80000010, which doesn't match this version of Granny (0x80000037).  Automatic conversion will be attempted.
    0129 22:36:22561 :: GRANNY: Unable to find matching track_group for Model: "weapon_chogeup_01" in Animation: "E:ąŢŔş ĆÄŔĎ00_żÜÁÖ°ü·ĂąÚŔç°üąŢŔşĆÄŔĎ20070516ą«»ç2Â÷onehand_swordwait.max"
    

    On old granny (.exe and .dll) I dont have this error. In game all work perfect but my sysser ago few minutes have very big weigh and its not comfort. I can disable all communique from granny deleting line TraceError("GRANNY: %s", Error); from Source but maybe you have some tips how fix granny with this "fake" errors without block display all comunique with this important?

  2. Try this. Array is from from Rumor quest. I tested on my server and works.

    quest coins begin
        state start begin
     
            when 80017.use or 80014.use or 80015.use or 80016.use begin
     
            local value = ({
                    [80017] = 50,
                    [80014] = 100,
                    [80015] = 200,
                    [80016] = 500,
                })[item.get_vnum()]
     
               syschat(""..pc.get_name().." has usado Cupon de Coins ("..value..") con exito.")
               item.remove()
               game.mysql_update_query("UPDATE account.account SET coins=coins+"..value.." WHERE id = "..pc.get_account_id().." ;")
     
            end
        end
    end
    • Love 4
  3. Hello guys, I have some problem with add function to my button in inventory.

     

    I create new .py file with gui and add some to game.py with easy function opening/closing my gui

    def __GuiWindow(self):
    self.Gui.Open()

    and running this from hotkey

    onPressKeyDict[app.DIK_TAB] = lambda : self.__GuiWindow()

    That work great but my problem start when i try change hotkey to button. I dont know how to hook to function def GuiWindow(self): from game.py to button in uiinventory.py

    self.GuiButton.SetEvent(ui.__mem_func__(self.XXXXXXXXX))

    I try some like this 

    import game
    
    self.gui = game.GameWindow()
    
    self.GuiButton.SetEvent(ui.__mem_func__(self.gui.__GuiWindow))

    but wasn`t work. 

     

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