Jump to content

guy12

Inactive Member
  • Posts

    11
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by guy12

  1. Hi, i have a problem with add function to button.

    I would like to add AFK system to this button.

     

    Here i given the code, what i doing wrong?

     

    inventorywindow:

    			...
                            "name" : "AfkButton",
    			"type" : "button",
                            ...
    

    there is all ok because i see button in game and i can click on it

     

    uiinventory:

    		self.afkButton = None	
    
    
    		self.afkButton.SetEvent(ui.__mem_func__(self.ClickAfkButton))
    
                    self.afkButton.SetEvent(ui.__mem_func__(self.ClickAfkButton))
    
    		def ClickAfkButton(self):
    			event.QuestButtonClick(constInfo.AFK_BUTTON)
    
    

    i add this functions under my functions from other buttons

     

     

    constInfo:

    AFK_BUTTON = 0
    

    game.py

    			"afk"			: self.__openAfk,
    
    
    
    	def __openAfk(self, id):
    		constInfo.AFK_BUTTON = int(id)
    		if constInfo.AFK_BUTTON == 0:
    			constInfo.AFK_BUTTON = 1
    			self.PopupMessage("AFK active")
    		elif constInfo.AFK_BUTTON == 1:
    			constInfo.AFK_BUTTON = 0
    			self.PopupMessage("AFK deactived")
    

    What i doing wrong? Thanks for help!

  2.  

    Hi i have one question.

    What i must to make time limit costumes, pets or belts?

    I try to change value0 to 60 like a experince ring but this doesn't work.

    What else i must change or what i must edit in source?

    Thanks for reply!

     

    @ I try change limittype to 7 and limitvalue to 10 and in 10 sek costume was gone.

    This is all to do?

    I think you shouldn't change limittype, but limitvalue instead.

    limitvalue = seconds

     

     

    All is good now but i have one problem,

    I can't see time under the item, i make item proto client etc but something is wrong.

    Any1 have any idea what i have crash in client?

  3. Any1 add this to his server succesfully?

    Because i have error with "tiendita1" in client after addeded vip system.

    But meaybe i try and give myself secound chance to add this xd

     

    I like this +

     

    @Update

    I succesfully add this but i have only small problem.

    Why sometimes i see more than 1 vip image?

    37619897217526584825.jpg

  4. You need a little knowledge about c++ for do that.

     

    I already do that, but on my opinion Ymir do a crap work on Source. Maybe much workers on the same code.

    It's really annoying for you do that..

     

    You will have like so many things with counts, it's a crazy thing to do.

    shop, move_item, buy_item, sell_item, split_item, etc etc etc...

    Everything is separated.

     

    Search for count with BYTE and put that on int..

     

    Good luck.

     

    i change all BYTE count, BYTE bCount and BYTE bCount2 to int, and 200 to 300.

    But i have this error now: [OBJDIR/char_item.o] Error 1

     

    i edit from cpp files: safebox, char_item, input_db, party, shop_manager, guild, input_main, OXEvent

    from h: char, shop_manager, OXevent, packet, safebox, item_lengtg

     

    what else i must do? :P

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