Jump to content

tigerstefan

Inactive Member
  • Posts

    18
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by tigerstefan

  1. Hi all.I have a problem with a system in python with the function over an item i have the sistem transfer bonuses from a costum too another and the 3 slot the result bethwen them doesent work when i go with mouse over it and i get a syserr

    Spoiler

    0104 12:43:57289 :: Traceback (most recent call last):

    0104 12:43:57289 ::   File "ui.py", line 1485, in OnOverInItem

    0104 12:43:57290 ::   File "ui.py", line 87, in __call__

    0104 12:43:57290 ::   File "ui.py", line 78, in __call__

    0104 12:43:57290 ::   File "uibonustransfer.py", line 109, in OverInItem

    0104 12:43:57290 :: AttributeError
    0104 12:43:57290 :: :
    0104 12:43:57290 :: 'ItemToolTip' object has no attribute 'SetControledToolTip'
    0104 12:43:57290 ::

    0104 12:43:59286 :: Traceback (most recent call last):

    0104 12:43:59286 ::   File "ui.py", line 1485, in OnOverInItem

    0104 12:43:59286 ::   File "ui.py", line 87, in __call__

    0104 12:43:59286 ::   File "ui.py", line 78, in __call__

    0104 12:43:59287 ::   File "uibonustransfer.py", line 109, in OverInItem

    0104 12:43:59287 :: AttributeError
    0104 12:43:59287 :: :
    0104 12:43:59287 :: 'ItemToolTip' object has no attribute 'SetControledToolTip'
    0104 12:43:59287 ::

    0104 12:43:02902 :: Traceback (most recent call last):

    0104 12:43:02902 ::   File "ui.py", line 1485, in OnOverInItem

    0104 12:43:02902 ::   File "ui.py", line 87, in __call__

    0104 12:43:02902 ::   File "ui.py", line 78, in __call__

    0104 12:43:02903 ::   File "uibonustransfer.py", line 109, in OverInItem

    0104 12:43:02903 :: AttributeError
    0104 12:43:02903 :: :
    0104 12:43:02903 :: 'ItemToolTip' object has no attribute 'SetControledToolTip'
    0104 12:43:02903 ::

    0104 12:43:19872 :: Traceback (most recent call last):

    0104 12:43:19872 ::   File "ui.py", line 1485, in OnOverInItem

    0104 12:43:19873 ::   File "ui.py", line 87, in __call__

    0104 12:43:19873 ::   File "ui.py", line 78, in __call__

    0104 12:43:19873 ::   File "uibonustransfer.py", line 109, in OverInItem

    0104 12:43:19874 :: AttributeError
    0104 12:43:19874 :: :
    0104 12:43:19874 :: 'ItemToolTip' object has no attribute 'SetControledToolTip'
    0104 12:43:19874 ::

    0104 13:49:33306 :: kostumekran
    0104 13:49:36422 :: Traceback (most recent call last):

    0104 13:49:36422 ::   File "ui.py", line 1485, in OnOverInItem

    0104 13:49:36422 ::   File "ui.py", line 87, in __call__

    0104 13:49:36422 ::   File "ui.py", line 78, in __call__

    0104 13:49:36463 ::   File "uibonustransfer.py", line 111, in OverInItem

    0104 13:49:36463 :: KeyError
    0104 13:49:36463 :: :
    0104 13:49:36463 :: 403
    0104 13:49:36463 ::

    0104 13:49:37055 :: Traceback (most recent call last):

    0104 13:49:37055 ::   File "ui.py", line 1485, in OnOverInItem

    0104 13:49:37055 ::   File "ui.py", line 87, in __call__

    0104 13:49:37055 ::   File "ui.py", line 78, in __call__

    0104 13:49:37055 ::   File "uibonustransfer.py", line 111, in OverInItem

    0104 13:49:37056 :: KeyError
    0104 13:49:37056 :: :
    0104 13:49:37056 :: 403
    0104 13:49:37056 ::

    0104 13:49:37222 :: Traceback (most recent call last):

    0104 13:49:37222 ::   File "ui.py", line 1485, in OnOverInItem

    0104 13:49:37223 ::   File "ui.py", line 87, in __call__

    0104 13:49:37223 ::   File "ui.py", line 78, in __call__

    0104 13:49:37223 ::   File "uibonustransfer.py", line 111, in OverInItem

    0104 13:49:37223 :: KeyError
    0104 13:49:37223 :: :
    0104 13:49:37223 :: 403
    0104 13:49:37223 ::

    0104 13:49:37506 :: Traceback (most recent call last):

    0104 13:49:37506 ::   File "ui.py", line 1485, in OnOverInItem

    0104 13:49:37506 ::   File "ui.py", line 87, in __call__

    0104 13:49:37506 ::   File "ui.py", line 78, in __call__

    0104 13:49:37506 ::   File "uibonustransfer.py", line 111, in OverInItem

    And the part with porblem is this

    Spoiler

    import ui
    import player
    import event
    import uiToolTip
    import exception
    import item
    import uiCommon
    import mouseModule
    import chat
    import net

    class BonusTransfer(ui.ScriptWindow):

        def __init__(self):
            ui.ScriptWindow.__init__(self)
            self.buttons, self.grids, self.costumes = {}, {}, {300 : {},303 : {},}
            self.__Load()

            self.tooltipItem = uiToolTip.ItemToolTip()
            self.tooltipItem.Hide()
            
        def __del__(self):
            ui.ScriptWindow.__del__(self)
            self.Close()

        def __Load_LoadScript(self, fileName):
            try:
                pyScriptLoader = ui.PythonScriptLoader()
                pyScriptLoader.LoadScriptFile(self, fileName)
            except:
                import exception
                exception.Abort("BonusTransfer.__Load_LoadScript")

        def __Load_BindObject(self):
            try:
                self.titleBar = self.GetChild("TitleBar")
                self.grids[300] = self.GetChild("Costume1")
                self.grids[303] = self.GetChild("Costume2")
                self.grids[2] = self.GetChild("Costume3")
                self.grids[3] = self.GetChild("Item")
                self.buttons[0] = self.GetChild("Button1")
                self.buttons[1] = self.GetChild("Button2")
            except:
                import exception
                exception.Abort("BonusTransfer.__Load_BindObject")
                
            self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close))
            self.grids[300].SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
            self.grids[300].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))    
            self.grids[300].SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptySlot))
            self.grids[300].SetUnselectItemSlotEvent(ui.__mem_func__(self.UnselectItemSlot))
            self.grids[303].SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
            self.grids[303].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))    
            self.grids[303].SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptySlot))
            self.grids[303].SetUnselectItemSlotEvent(ui.__mem_func__(self.UnselectItemSlot))
            self.grids[2].SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
            self.grids[2].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
            self.grids[3].SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
            self.grids[3].SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))    
            self.grids[3].SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptySlot))
            self.grids[3].SetUnselectItemSlotEvent(ui.__mem_func__(self.UnselectItemSlot))                
            self.buttons[0].SetEvent(self.TransferDialog)
            self.buttons[1].SetEvent(self.Close)

        def __Load(self):
            self.__Load_LoadScript("uiscript/bonustransfer.py")
            self.__Load_BindObject()
                
        def OnPressEscapeKey(self):
            self.Close()
            return TRUE
            
        def Shows(self):
            ui.ScriptWindow.Show(self)

        def Close(self):
            self.Hide()
            return TRUE        
        
        def TransferDialog(self):
            self.ConfirmEkran = uiCommon.QuestionDialog()
            self.ConfirmEkran.SetText("Kostüm bonusu aktarilsin mi ?")
            self.ConfirmEkran.SetAcceptEvent(self.Transfer)
            self.ConfirmEkran.SetCancelEvent(self.NoTransfer)
            self.ConfirmEkran.Open()

        def Transfer(self):
            self.ConfirmEkran.Close()
            if self.costumes[300][0] is None or self.costumes[303][0] is None:
                return
            self.grids[3].ClearSlot(3)
            self.grids[3].RefreshSlot()
            self.grids[303].ClearSlot(303)
            self.grids[303].RefreshSlot()
            net.SendChatPacket("/costume_bonus_transfer "+str(self.costumes[300][0])+" "+str(self.costumes[303][0]))
            self.Close()
            
        def NoTransfer(self):
            self.ConfirmEkran.Close()

        def OverInItem(self, index):
            target = 303
            if index == 400:
                itemVnum = player.GetItemIndex(self.costumes[300][0])
                if self.costumes[303][0] is None:
                    target = 300
                stones = [player.GetItemMetinSocket(self.costumes[target][0], i) for i in xrange(player.METIN_SOCKET_MAX_NUM)]    
                attr = [player.GetItemAttribute(self.costumes[target][0], i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)]
                self.tooltipItem.SetControledToolTip(itemVnum, stones, attr)
            else:
                if self.costumes[index] is None:
                    return
                self.tooltipItem.SetInventoryItem(self.costumes[index][0])
            
        def OverOutItem(self):
            if self.tooltipItem:
                self.tooltipItem.HideToolTip()
                
        def SelectEmptySlot(self, selectedSlotPos):
            if mouseModule.mouseController.isAttached():
                attachedSlotType = mouseModule.mouseController.GetAttachedType()
                attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
                itemVnum = player.GetItemIndex(attachedSlotPos)
                itemCount = player.GetItemCount(attachedSlotPos)
                item.SelectItem(itemVnum)
                itemType = item.GetItemType()    
                itemSubType = item.GetItemSubType()            
                if selectedSlotPos == 301:
                    selectedSlotPos = 300
                if selectedSlotPos == 304:
                    selectedSlotPos = 303
                if selectedSlotPos == 403:
                    if itemVnum == 30027: # costume bonus transfer item kod
                        self.grids[3].SetItemSlot(403, itemVnum, itemCount)    
                    else:
                        return
                        mouseModule.mouseController.DeattachObject()                
                if player.SLOT_TYPE_INVENTORY == attachedSlotType:
                    if itemType != item.ITEM_TYPE_COSTUME:
                        mouseModule.mouseController.DeattachObject()
                        return
                    elif itemType == item.ITEM_TYPE_COSTUME and itemSubType == 0:
                        pass                
                    if attachedSlotPos in self.costumes:
                        mouseModule.mouseController.DeattachObject()                
                        return
                    self.grids[selectedSlotPos].SetItemSlot(selectedSlotPos, itemVnum)
                    self.grids[selectedSlotPos].RefreshSlot()
                    self.costumes[selectedSlotPos][0] = attachedSlotPos
                    if selectedSlotPos == 300:
                        self.grids[2].SetItemSlot(400, itemVnum)
                            
                mouseModule.mouseController.DeattachObject()    
                self.OverOutItem()

        def UnselectItemSlot(self, selectedSlotPos):
            isAttached = mouseModule.mouseController.isAttached()
            if not isAttached:
                self.costumes[selectedSlotPos][0] = 0
                self.grids[selectedSlotPos].ClearSlot(selectedSlotPos)
                self.grids[selectedSlotPos].RefreshSlot()
            if selectedSlotPos == 300:
                self.grids[2].ClearSlot(400)
                self.grids[2].RefreshSlot()    

     

    And this:

    Spoiler

    window = {
        "name" : "Bonusessssssss",
        "style" : ("movable", "float",),    
        "x":(SCREEN_WIDTH - 188+8+8) / 2,
        "y":(SCREEN_HEIGHT - 335) / 2,    
        "width" : 188+8+8,
        "height" : 335+42,
        
        "children" :
        (
            {
                "name" : "Board",
                "type" : "board",
                "style" : ("attach",),

                "x" : 0,
                "y" : 0,

                "width" : 188+8+8,
                "height" : 335+42,

                "children" :
                (    
                    {
                        "name" : "TitleBar",
                        "type" : "titlebar",
                        "style" : ("attach",),
                        "x" : 8,
                        "y" : 8,
                        "width" : 188+8+8-16,
                        "color" : "gray",
                        "children" :
                        (
                            {
                                "name":"TitleName",
                                "type":"text",
                                "x":0,
                                "y":4,
                                "text" : "Bonus Transfer",
                                "horizontal_align":"center",
                                "text_horizontal_align":"center"
                            },
                        ),
                    },
                    {
                        "name" : "Background",
                        "type" : "image",
                        "x" : 8,
                        "y" : 28,
                        "image" : "d:/ymir work/dinos/comb1.tga",
                        "children" :
                        (
                            {
                                "name" : "Costume1",
                                "type" : "grid_table",
                                "x" : 28,
                                "y" : 67,
                                "x_count" : 1,
                                "y_count" : 3,
                                "x_step" : 32,
                                "y_step" : 32,
                                "start_index" : 300,
                            },
                            {
                                "name" : "Costume2",
                                "type" : "grid_table",
                                "x" : 128,
                                "y" : 67,
                                "x_count" : 1,
                                "y_count" : 3,
                                "x_step" : 32,
                                "y_step" : 32,
                                "start_index" : 303,            
                            },
                            {
                                "name" : "Costume3",
                                "type" : "grid_table",
                                "x" : 80,
                                "y" : 185,
                                "x_count" : 1,
                                "y_count" : 3,
                                "x_step" : 32,
                                "y_step" : 32,
                                "start_index" : 400,            
                            },    
                            {
                                "name" : "Item",
                                "type" : "grid_table",
                                "x" : 80,
                                "y" : 14,
                                "x_count" : 1,
                                "y_count" : 1,
                                "x_step" : 32,
                                "y_step" : 32,
                                "start_index" : 403,            
                            },                        
                        ),
                    },
                            
                    {
                        "name" : "Button1",
                        "type" : "button",
                        "x" : 34,
                        "y" : 342,            
                        "text" : "Aktar",
                        "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                        "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                        "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                    },
                    {
                        "name" : "Button2",
                        "type" : "button",
                        "x" : 34+70,
                        "y" : 342,            
                        "text" : "Iptal",
                        "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                        "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                        "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                    },
                ),
            },
        ),
    }

     

  2. the same error ooooooooo wone if it resolved i had 2 err:) pls this how to resolv..

    Spoiler

    1115 13:45:10986 :: Traceback (most recent call last):

    1115 13:45:10986 ::   File "uiswitch.py", line 156, in OnUpdate

    1115 13:45:10986 ::   File "uiswitch.py", line 147, in refresh

    1115 13:45:10986 :: IndexError
    1115 13:45:10986 :: :
    1115 13:45:10986 :: list index out of range
    1115 13:45:10986 ::

    1115 13:45:11003 :: Traceback (most recent call last):

    1115 13:45:11003 ::   File "uiswitch.py", line 156, in OnUpdate

    1115 13:45:11003 ::   File "uiswitch.py", line 147, in refresh

    1115 13:45:11003 :: IndexError
    1115 13:45:11003 :: :
    1115 13:45:11003 :: list index out of range
    1115 13:45:11003 ::

     

  3. Spoiler

    1115 12:04:25535 :: Traceback (most recent call last):

    1115 12:04:25535 ::   File "ui.py", line 1021, in CallEvent

    1115 12:04:25535 ::   File "ui.py", line 87, in __call__

    1115 12:04:25535 ::   File "ui.py", line 69, in __call__

    1115 12:04:25536 ::   File "uiInventory.py", line 581, in ClickManual

    1115 12:04:25536 ::   File "system.py", line 130, in __pack_import

    1115 12:04:25536 ::   File "
    1115 12:04:25536 :: uiswitch.py
    1115 12:04:25536 :: ", line
    1115 12:04:25536 :: 133
    1115 12:04:25536 ::

    1115 12:04:25536 ::     
    1115 12:04:25536 :: attrSlot = player.GetItemAttribute(dstSlotPos, i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)    

    1115 12:04:25536 ::     
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25536 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 ::  
    1115 12:04:25537 :: ^

    line 133 made like this         attrSlot = [player.GetItemAttribute(dstSlotPos, i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)]

    then

    Spoiler

    1115 12:08:01852 :: Traceback (most recent call last):

    1115 12:08:01852 ::   File "ui.py", line 1021, in CallEvent

    1115 12:08:01852 ::   File "ui.py", line 87, in __call__

    1115 12:08:01852 ::   File "ui.py", line 69, in __call__

    1115 12:08:01852 ::   File "uiInventory.py", line 581, in ClickManual

    1115 12:08:01852 ::   File "system.py", line 130, in __pack_import

    1115 12:08:01853 ::   File "
    1115 12:08:01853 :: uiswitch.py
    1115 12:08:01853 :: ", line
    1115 12:08:01853 :: 154
    1115 12:08:01853 ::

    1115 12:08:01853 ::     
    1115 12:08:01853 :: AFFECT_DICT =

    1115 12:08:01853 ::     
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 ::  
    1115 12:08:01853 :: ^

    1115 12:08:01853 :: SyntaxError
    1115 12:08:01853 :: :
    1115 12:08:01853 :: invalid syntax
    1115 12:08:01853 ::

    made line 154     AFFECT_DICT = {

    then the same problem

    Spoiler

    1115 12:23:54214 :: Traceback (most recent call last):

    1115 12:23:54214 ::   File "uiswitch.py", line 153, in OnUpdate

    1115 12:23:54215 ::   File "uiswitch.py", line 144, in refresh

    1115 12:23:54215 :: IndexError
    1115 12:23:54215 :: :
    1115 12:23:54215 :: list index out of range
    1115 12:23:54215 ::

    1115 12:23:54216 :: Traceback (most recent call last):

    1115 12:23:54216 ::   File "uiswitch.py", line 153, in OnUpdate

    1115 12:23:54216 ::   File "uiswitch.py", line 144, in refresh

    1115 12:23:54217 :: IndexError
    1115 12:23:54217 :: :
    1115 12:23:54217 :: list index out of range
    1115 12:23:54217 ::

    1115 12:32:27261 :: Traceback (most recent call last):

    1115 12:32:27261 ::   File "uiswitch.py", line 153, in OnUpdate

    1115 12:32:27261 ::   File "uiswitch.py", line 133, in refresh

    1115 12:32:27261 :: TypeError
    1115 12:32:27261 :: :
    1115 12:32:27261 :: an integer is required
    1115 12:32:27261 ::

    1115 12:32:27278 :: Traceback (most recent call last):

    1115 12:32:27278 ::   File "uiswitch.py", line 153, in OnUpdate

    1115 12:32:27278 ::   File "uiswitch.py", line 133, in refresh

    1115 12:32:27278 :: TypeError
    1115 12:32:27278 :: :
    1115 12:32:27278 :: an integer is required
    1115 12:32:27278 ::

    Plz help i cant let it like this.Or at least a method to comment the error so it never apear in syserr like i made the other switch.With this

            except AttributeError:
                print("AttributeError encountered.") but dont know where to put it in this uiswitch.

    • Good 1
  4. Spoiler

    1115 01:35:26104 ::   File "ui.py", line 1021, in CallEvent

    1115 01:35:26104 ::   File "ui.py", line 87, in __call__

    1115 01:35:26104 ::   File "ui.py", line 69, in __call__

    1115 01:35:26104 ::   File "uiInventory.py", line 581, in ClickManual

    1115 01:35:26104 ::   File "system.py", line 130, in __pack_import

    1115 01:35:26104 ::   File "
    1115 01:35:26104 :: uiswitch.py
    1115 01:35:26104 :: ", line
    1115 01:35:26104 :: 140
    1115 01:35:26104 ::

    1115 01:35:26104 ::     
    1115 01:35:26104 :: attrSlot = player.GetItemAttribute(dstSlotPos, i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)

    1115 01:35:26104 ::     
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26104 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 ::  
    1115 01:35:26105 :: ^

    1115 01:35:26105 :: SyntaxError
    1115 01:35:26105 :: :
    1115 01:35:26105 :: invalid syntax
    1115 01:35:26105 ::

    1115 01:35:28041 :: Traceback (most recent call last):

    1115 01:35:28041 ::   File "ui.py", line 1021, in CallEvent

    1115 01:35:28042 ::   File "ui.py", line 87, in __call__

    1115 01:35:28042 ::   File "ui.py", line 69, in __call__

    1115 01:35:28042 ::   File "uiInventory.py", line 581, in ClickManual

    1115 01:35:28042 ::   File "system.py", line 130, in __pack_import

    1115 01:35:28043 ::   File "
    1115 01:35:28043 :: uiswitch.py
    1115 01:35:28043 :: ", line
    1115 01:35:28043 :: 140
    1115 01:35:28043 ::

    1115 01:35:28043 ::     
    1115 01:35:28043 :: attrSlot = player.GetItemAttribute(dstSlotPos, i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)

    1115 01:35:28043 ::     
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28043 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 ::  
    1115 01:35:28044 :: ^

    1115 01:35:28044 :: SyntaxError
    1115 01:35:28044 :: :
    1115 01:35:28044 :: invalid syntax
    1115 01:35:28044 ::

     

    • Good 1
  5. Hi all.I have a problem with my switchboot.an error.The switchboot works fine but in syserr:

    1113 11:33:37401 :: Traceback (most recent call last):
    
    1113 11:33:37401 ::   File "uiswitch.py", line 160, in OnUpdate
    
    1113 11:33:37401 ::   File "uiswitch.py", line 151, in refresh
    
    1113 11:33:37402 :: IndexError
    1113 11:33:37402 :: : 
    1113 11:33:37402 :: list index out of range
    1113 11:33:37402 :: 
    
    1113 11:33:37451 :: Traceback (most recent call last):
    
    1113 11:33:37452 ::   File "uiswitch.py", line 160, in OnUpdate
    
    1113 11:33:37452 ::   File "uiswitch.py", line 151, in refresh
    
    1113 11:33:37452 :: IndexError
    1113 11:33:37452 :: : 
    1113 11:33:37452 :: list index out of range
    1113 11:33:37452 :: 

    And:

    1113 11:33:35565 :: Traceback (most recent call last):
    
    1113 11:33:35565 ::   File "uiswitch.py", line 160, in OnUpdate
    
    1113 11:33:35565 ::   File "uiswitch.py", line 140, in refresh
    
    1113 11:33:35565 :: TypeError
    1113 11:33:35565 :: : 
    1113 11:33:35565 :: an integer is required
    1113 11:33:35565 :: 
    
    1113 11:33:35631 :: Traceback (most recent call last):
    
    1113 11:33:35631 ::   File "uiswitch.py", line 160, in OnUpdate
    
    1113 11:33:35631 ::   File "uiswitch.py", line 140, in refresh
    
    1113 11:33:35632 :: TypeError
    1113 11:33:35632 :: : 
    1113 11:33:35632 :: an integer is required
    1113 11:33:35632 :: 

    My uiswitch.py:

    import ui
    import player
    import mouseModule
    import net
    import app
    import chat
    import snd
    import item
    import player
    import chat
    import grp
    import uiScriptLocale
    import uiRefine
    import uiAttachMetin
    import uiCommon
    import locale
    import constInfo
    import ime
    import grpText
    import uiToolTip
    
    Low = "low-work/system/"
    	
    class Switcher(ui.ScriptWindow):
    
    	POSITIVE_COLOR = grp.GenerateColor(0.5411, 0.7254, 0.5568, 1.0)
    	NEGATIVE_COLOR = grp.GenerateColor(0.9, 0.4745, 0.4627, 1.0)
    
    	def __init__(self):
    		import exception
    		ui.ScriptWindow.__init__(self)
    
    	def __del__(self):
    		ui.ScriptWindow.__del__(self)
    
    	def Show(self):
    		constInfo.SWITCH_BONUS = 1
    		self.__LoadWindow()
    		ui.ScriptWindow.Show(self)
    
    	def Close(self):
    		constInfo.SWITCH_BONUS = 0
    		self.Hide()
    		
    	def OnPressEscapeKey(self):
    		self.Close()
    		return TRUE
    
    	def __LoadWindow(self):
    		try:			
    			pyScrLoader = ui.PythonScriptLoader()
    			pyScrLoader.LoadScriptFile(self, Low + "binari2.py")
    		except:
    			import exception
    			exception.Abort("CostumeWindow.LoadWindow.LoadObject")
    		self.TitleBar = self.GetChild("TitleBar")
    		self.switchslot = self.GetChild("switchslot")		
    		self.bonusslot = [self.GetChild2("bonus1"), self.GetChild2("bonus2"), self.GetChild2("bonus3"), self.GetChild2("bonus4"), self.GetChild2("bonus5"), ]
    		self.buttongira = self.GetChild("gira_bonus")
    		self.buttongira.SetEvent(ui.__mem_func__(self.__gira_bonus))
    		self.TitleBar.SetCloseEvent(ui.__mem_func__(self.Close))
    		self.switchslot.SetSelectEmptySlotEvent(ui.__mem_func__(self.__OnSelectEmptySlot))
    		self.switchslot.SetSelectItemSlotEvent(ui.__mem_func__(self.__OnSelectItemSlot))
    		self.toolTipCostume = uiToolTip.ToolTip(190)
    		self.toolTipCostume.SetTitle(item.GetItemName())
    		
    		self.slotitem = None
    		self.slotgira = None
    		
    	def __OnSelectItemSlot(self, selectedSlotPos):
    		isAttached = mouseModule.mouseController.isAttached()
    		if isAttached:
    			attachedSlotType = mouseModule.mouseController.GetAttachedType()
    			attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
    			mouseModule.mouseController.DeattachObject()
    			itemIndex = player.GetItemIndex(attachedSlotPos)
    			itemCount = player.GetItemCount(attachedSlotPos)
    			item.SelectItem(itemIndex)
    			itemType = item.GetItemType()
    			if selectedSlotPos == 0:
    				self.slotitem = attachedSlotPos
    				if item.ITEM_TYPE_WEAPON == itemType or item.ITEM_TYPE_ARMOR == itemType:
    					self.switchslot.SetItemSlot(selectedSlotPos, itemIndex, 0)						
    					attrSlot = [player.GetItemAttribute(attachedSlotPos, i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)]	
    					for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM-2):
    						type = attrSlot[i][0]
    						value = attrSlot[i][1]
    						affectString = self.__GetAffectString(type, value)
    						self.bonusslot[i].SetText(affectString)
    		else:			
    			if selectedSlotPos == 0:
    				self.switchslot.SetItemSlot(0, 0, 0)
    				self.slotitem = None
    			
    	def __OnSelectEmptySlot(self, selectedSlotPos):
    		isAttached = mouseModule.mouseController.isAttached()
    		if isAttached:
    			attachedSlotType = mouseModule.mouseController.GetAttachedType()
    			attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
    			mouseModule.mouseController.DeattachObject()
    			itemIndex = player.GetItemIndex(attachedSlotPos)
    			itemCount = player.GetItemCount(attachedSlotPos)
    			item.SelectItem(itemIndex)
    			itemType = item.GetItemType()
    			if selectedSlotPos == 0:
    				self.slotitem = attachedSlotPos
    				if item.ITEM_TYPE_WEAPON == itemType or item.ITEM_TYPE_ARMOR == itemType:
    					self.switchslot.SetItemSlot(selectedSlotPos, itemIndex, 0)						
    					attrSlot = [player.GetItemAttribute(attachedSlotPos, i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)]	
    					for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM-2):
    						type = attrSlot[i][0]
    						value = attrSlot[i][1]
    						affectString = self.__GetAffectString(type, value)
    						self.bonusslot[i].SetText(affectString)
    			if selectedSlotPos == 1 and itemIndex== 71084:
    					self.slotgira = attachedSlotPos
    					self.switchslot.SetItemSlot(selectedSlotPos, itemIndex, itemCount)
    			
    	def __GetAffectString(self, affectType, affectValue):
    		if 0 == affectType:
    			return None
    		if 0 == affectValue:
    			return None
    			
    		try:
    			return self.AFFECT_DICT[affectType](affectValue)
    		except TypeError:
    			return "UNKNOWN_VALUE[%s] %s" % (affectType, affectValue)
    		except KeyError:
    			return "UNKNOWN_TYPE[%s] %s" % (affectType, affectValue)
    			
    	def __gira_bonus(self):
    		self.__Switch(self.slotitem,self.slotgira)
    		
    	def __Switch(self,dstSlotPos,srcSlotPos):
    		net.SendItemUseToItemPacket(srcSlotPos,dstSlotPos)
    		#self.refresh(dstSlotPos,srcSlotPos)
    		
    	def refresh(self,dstSlotPos,srcSlotPos):
    		attrSlot = [player.GetItemAttribute(dstSlotPos, i) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)]	
    		for i in xrange(5):		
    			self.bonusslot[i].SetText("")
    			
    		for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM-2):
    			type = attrSlot[i][0]
    			value = attrSlot[i][1]
    			affectString = self.__GetAffectString(type, value)
    			if int(value) < 0:				
    				self.bonusslot[i].SetPackedFontColor(self.NEGATIVE_COLOR)
    			else:
    				self.bonusslot[i].SetPackedFontColor(self.POSITIVE_COLOR)
    			self.bonusslot[i].SetText(affectString)
    		
    		itemIndex = player.GetItemIndex(srcSlotPos)
    		itemCount = player.GetItemCount(srcSlotPos)
    		self.switchslot.ClearSlot(1)
    		self.switchslot.SetItemSlot(1, itemIndex, itemCount)
    			
    	def OnUpdate(self):
    		self.refresh(self.slotitem,self.slotgira)
    
    	AFFECT_DICT = {
    		item.APPLY_MAX_HP : locale.TOOLTIP_MAX_HP,
    		item.APPLY_MAX_SP : locale.TOOLTIP_MAX_SP,
    		item.APPLY_CON : locale.TOOLTIP_CON,
    		item.APPLY_INT : locale.TOOLTIP_INT,
    		item.APPLY_STR : locale.TOOLTIP_STR,
    		item.APPLY_DEX : locale.TOOLTIP_DEX,
    		item.APPLY_ATT_SPEED : locale.TOOLTIP_ATT_SPEED,
    		item.APPLY_MOV_SPEED : locale.TOOLTIP_MOV_SPEED,
    		item.APPLY_CAST_SPEED : locale.TOOLTIP_CAST_SPEED,
    		item.APPLY_HP_REGEN : locale.TOOLTIP_HP_REGEN,
    		item.APPLY_SP_REGEN : locale.TOOLTIP_SP_REGEN,
    		item.APPLY_POISON_PCT : locale.TOOLTIP_APPLY_POISON_PCT,
    		item.APPLY_STUN_PCT : locale.TOOLTIP_APPLY_STUN_PCT,
    		item.APPLY_SLOW_PCT : locale.TOOLTIP_APPLY_SLOW_PCT,
    		item.APPLY_CRITICAL_PCT : locale.TOOLTIP_APPLY_CRITICAL_PCT,
    		item.APPLY_PENETRATE_PCT : locale.TOOLTIP_APPLY_PENETRATE_PCT,
    
    		item.APPLY_ATTBONUS_WARRIOR : locale.TOOLTIP_APPLY_ATTBONUS_WARRIOR,
    		item.APPLY_ATTBONUS_ASSASSIN : locale.TOOLTIP_APPLY_ATTBONUS_ASSASSIN,
    		item.APPLY_ATTBONUS_SURA : locale.TOOLTIP_APPLY_ATTBONUS_SURA,
    		item.APPLY_ATTBONUS_SHAMAN : locale.TOOLTIP_APPLY_ATTBONUS_SHAMAN,
    		item.APPLY_ATTBONUS_MONSTER : locale.TOOLTIP_APPLY_ATTBONUS_MONSTER,
    
    		item.APPLY_ATTBONUS_HUMAN : locale.TOOLTIP_APPLY_ATTBONUS_HUMAN,
    		item.APPLY_ATTBONUS_ANIMAL : locale.TOOLTIP_APPLY_ATTBONUS_ANIMAL,
    		item.APPLY_ATTBONUS_ORC : locale.TOOLTIP_APPLY_ATTBONUS_ORC,
    		item.APPLY_ATTBONUS_MILGYO : locale.TOOLTIP_APPLY_ATTBONUS_MILGYO,
    		item.APPLY_ATTBONUS_UNDEAD : locale.TOOLTIP_APPLY_ATTBONUS_UNDEAD,
    		item.APPLY_ATTBONUS_DEVIL : locale.TOOLTIP_APPLY_ATTBONUS_DEVIL,
    		item.APPLY_STEAL_HP : locale.TOOLTIP_APPLY_STEAL_HP,
    		item.APPLY_STEAL_SP : locale.TOOLTIP_APPLY_STEAL_SP,
    		item.APPLY_MANA_BURN_PCT : locale.TOOLTIP_APPLY_MANA_BURN_PCT,
    		item.APPLY_DAMAGE_SP_RECOVER : locale.TOOLTIP_APPLY_DAMAGE_SP_RECOVER,
    		item.APPLY_BLOCK : locale.TOOLTIP_APPLY_BLOCK,
    		item.APPLY_DODGE : locale.TOOLTIP_APPLY_DODGE,
    		item.APPLY_RESIST_SWORD : locale.TOOLTIP_APPLY_RESIST_SWORD,
    		item.APPLY_RESIST_TWOHAND : locale.TOOLTIP_APPLY_RESIST_TWOHAND,
    		item.APPLY_RESIST_DAGGER : locale.TOOLTIP_APPLY_RESIST_DAGGER,
    		item.APPLY_RESIST_BELL : locale.TOOLTIP_APPLY_RESIST_BELL,
    		item.APPLY_RESIST_FAN : locale.TOOLTIP_APPLY_RESIST_FAN,
    		item.APPLY_RESIST_BOW : locale.TOOLTIP_RESIST_BOW,
    		item.APPLY_RESIST_FIRE : locale.TOOLTIP_RESIST_FIRE,
    		item.APPLY_RESIST_ELEC : locale.TOOLTIP_RESIST_ELEC,
    		item.APPLY_RESIST_MAGIC : locale.TOOLTIP_RESIST_MAGIC,
    		item.APPLY_RESIST_WIND : locale.TOOLTIP_APPLY_RESIST_WIND,
    		item.APPLY_REFLECT_MELEE : locale.TOOLTIP_APPLY_REFLECT_MELEE,
    		item.APPLY_REFLECT_CURSE : locale.TOOLTIP_APPLY_REFLECT_CURSE,
    		item.APPLY_POISON_REDUCE : locale.TOOLTIP_APPLY_POISON_REDUCE,
    		item.APPLY_KILL_SP_RECOVER : locale.TOOLTIP_APPLY_KILL_SP_RECOVER,
    		item.APPLY_EXP_DOUBLE_BONUS : locale.TOOLTIP_APPLY_EXP_DOUBLE_BONUS,
    		item.APPLY_GOLD_DOUBLE_BONUS : locale.TOOLTIP_APPLY_GOLD_DOUBLE_BONUS,
    		item.APPLY_ITEM_DROP_BONUS : locale.TOOLTIP_APPLY_ITEM_DROP_BONUS,
    		item.APPLY_POTION_BONUS : locale.TOOLTIP_APPLY_POTION_BONUS,
    		item.APPLY_KILL_HP_RECOVER : locale.TOOLTIP_APPLY_KILL_HP_RECOVER,
    		item.APPLY_IMMUNE_STUN : locale.TOOLTIP_APPLY_IMMUNE_STUN,
    		item.APPLY_IMMUNE_SLOW : locale.TOOLTIP_APPLY_IMMUNE_SLOW,
    		item.APPLY_IMMUNE_FALL : locale.TOOLTIP_APPLY_IMMUNE_FALL,
    		item.APPLY_BOW_DISTANCE : locale.TOOLTIP_BOW_DISTANCE,
    		item.APPLY_DEF_GRADE_BONUS : locale.TOOLTIP_DEF_GRADE,
    		item.APPLY_ATT_GRADE_BONUS : locale.TOOLTIP_ATT_GRADE,
    		item.APPLY_MAGIC_ATT_GRADE : locale.TOOLTIP_MAGIC_ATT_GRADE,
    		item.APPLY_MAGIC_DEF_GRADE : locale.TOOLTIP_MAGIC_DEF_GRADE,
    		item.APPLY_MAX_STAMINA : locale.TOOLTIP_MAX_STAMINA,
    		item.APPLY_MALL_ATTBONUS : locale.TOOLTIP_MALL_ATTBONUS,
    		item.APPLY_MALL_DEFBONUS : locale.TOOLTIP_MALL_DEFBONUS,
    		item.APPLY_MALL_EXPBONUS : locale.TOOLTIP_MALL_EXPBONUS,
    		item.APPLY_MALL_ITEMBONUS : locale.TOOLTIP_MALL_ITEMBONUS,
    		item.APPLY_MALL_GOLDBONUS : locale.TOOLTIP_MALL_GOLDBONUS,
    		item.APPLY_SKILL_DAMAGE_BONUS : locale.TOOLTIP_SKILL_DAMAGE_BONUS,
    		item.APPLY_NORMAL_HIT_DAMAGE_BONUS : locale.TOOLTIP_NORMAL_HIT_DAMAGE_BONUS,
    		item.APPLY_SKILL_DEFEND_BONUS : locale.TOOLTIP_SKILL_DEFEND_BONUS,
    		item.APPLY_NORMAL_HIT_DEFEND_BONUS : locale.TOOLTIP_NORMAL_HIT_DEFEND_BONUS,
    		item.APPLY_PC_BANG_EXP_BONUS : locale.TOOLTIP_MALL_EXPBONUS_P_STATIC,
    		item.APPLY_PC_BANG_DROP_BONUS : locale.TOOLTIP_MALL_ITEMBONUS_P_STATIC,
    		item.APPLY_RESIST_WARRIOR : locale.TOOLTIP_APPLY_RESIST_WARRIOR,
    		item.APPLY_RESIST_ASSASSIN : locale.TOOLTIP_APPLY_RESIST_ASSASSIN,
    		item.APPLY_RESIST_SURA : locale.TOOLTIP_APPLY_RESIST_SURA,
    		item.APPLY_RESIST_SHAMAN : locale.TOOLTIP_APPLY_RESIST_SHAMAN,
    		item.APPLY_MAX_HP_PCT : locale.TOOLTIP_APPLY_MAX_HP_PCT,
    		item.APPLY_MAX_SP_PCT : locale.TOOLTIP_APPLY_MAX_SP_PCT,
    		item.APPLY_ENERGY : locale.TOOLTIP_ENERGY,
    		item.APPLY_COSTUME_ATTR_BONUS : locale.TOOLTIP_COSTUME_ATTR_BONUS,	
    	}
    
    
    	
    			
    		
    

    the syserr if i switch 30 times it gets at the size of 2.000KB tooooo big.. Helppppppp

  6. It works great but a little question how to make the system you see you can put in gold more then 2kkk and if somewone has an item sell with 5kkk and i have 6kkk i cannot buy it doesen show me the button for buy.

    How can i make buy-able items with any price?

    • Love 1
  7. shopEx.cpp:153: error: expected `;' before 'return'  he toold me clear here but i was blind:)

    I found a tut for increase gold limit but no succes at least to 20kkk to raise it.I complied the source but in the client doesen work.

    the yang block's at 1.999.999.999 when I /set dinos gold 1.000.000.000 it workes but no change in inventory in sql same nothing.if I say

    /set dinos gold 10.000.000.000 system takes only 2.432.333.333 or something like that.

    Dont know what to do.

  8. In file included from char.cpp:4:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from char.cpp:25:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from char_horse.cpp:14:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char.cpp:62:
    PetSystem.h:163:31: warning: no newline at end of file
    char.cpp:7190: warning: this decimal constant is unsigned only in ISO C90
    char.cpp:7198:2: warning: no newline at end of file
    In file included from char_item.cpp:44:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_item.cpp:47:
    belt_inventory_helper.h:108:42: warning: no newline at end of file
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
    char.cpp:3088: warning: comparison between signed and unsigned integer expressions
    In file included from PetSystem.cpp:8:
    PetSystem.h:163:31: warning: no newline at end of file
    In file included from PetSystem.cpp:9:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    PetSystem.cpp:637:2: warning: no newline at end of file
    In file included from char_item.cpp:47:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:640: warning: comparison is always false due to limited range of data type
    char_item.cpp:666: warning: comparison is always false due to limited range of data type
    char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
    char_item.cpp:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:5087: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
    char_item.cpp:5159: warning: unused variable 'wDestCell'
    char_item.cpp:5160: warning: unused variable 'bDestInven'
    char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
    char_item.cpp:6160: warning: array subscript has type 'char'
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
    char_item.cpp:6224: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
    char_item.cpp:6236: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
    char_item.cpp:7422: warning: unused variable 'itemType'
    char_item.cpp:7423: warning: unused variable 'itemSubType'
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
    char_state.cpp:901: warning: unused variable 'rider'
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:679: warning: control reaches end of non-void function
    constants.cpp:291: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:292: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:293: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:294: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:295: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:296: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:297: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:298: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:299: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:300: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:301: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:302: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:303: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:304: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:305: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:306: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:307: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:308: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:309: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:310: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:311: warning: this decimal constant is unsigned only in ISO C90
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    cube.cpp: In function 'void Cube_MakeCubeInformationText()':
    cube.cpp:716: warning: unused variable 'npcVNUM'
    cube.cpp: In function 'bool Cube_InformationInitialize()':
    cube.cpp:783: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
    char_item.cpp:6271: warning: 'pBuff' may be used uninitialized in this function
    PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
    PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
    PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
    PetSystem.cpp:552: warning: unused variable 'petVID'
    desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
    desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
    exchange.cpp: In member function 'bool CHARACTER::ExchangeStart(CHARACTER*)':
    exchange.cpp:76: warning: unused variable 'iDist'
    In file included from config.cpp:22:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    config.cpp: In function 'void config_init(const std::string&)':
    config.cpp:437: warning: NULL used in arithmetic
    config.cpp:461: warning: NULL used in arithmetic
    config.cpp:485: warning: NULL used in arithmetic
    config.cpp:507: warning: unused variable 'line'
    In file included from input_db.cpp:13:
    shop_manager.h:40:7: warning: no newline at end of file
    input_db.cpp:2722:2: warning: no newline at end of file
    input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
    input_auth.cpp:467: warning: unused variable 'last'
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3939: warning: NULL used in arithmetic
    In file included from item.cpp:22:
    belt_inventory_helper.h:108:42: warning: no newline at end of file
    cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4361: warning: 'cell' may be used uninitialized in this function
    In file included from item.cpp:23:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    item.cpp:2084:2: warning: no newline at end of file
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3981: warning: 'n' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
    cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
    input_db.cpp: In member function 'void CInputDB::PlayerLoad(DESC*, const char*)':
    input_db.cpp:421: warning: format '%d' expects type 'int', but argument 5 has type 'long long int'
    input_db.cpp:421: warning: format '%d' expects type 'int', but argument 5 has type 'long long int'
    In file included from item_manager.cpp:21:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from item.cpp:22:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    item.h: In constructor 'CItem::CItem(DWORD)':
    item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
    item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
    item.cpp:25: warning:   when initialized here
    item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
    item.cpp:1725: warning: unused variable 'vnum'
    item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
    item.cpp:1758: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
    item.cpp:2014: warning: comparison between signed and unsigned integer expressions
    item.cpp:2016: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
    item.cpp:2038: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GetDuration()':
    item.cpp:2069: warning: array subscript has type 'char'
    monarch.cpp:276:2: warning: no newline at end of file
    item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
    item_manager.cpp:604: warning: comparison between signed and unsigned integer expressions
    questlua.cpp: In member function 'bool quest::FPartyCheckFlagLt::operator()(CHARACTER*)':
    questlua.cpp:78: warning: 'returnBool' may be used uninitialized in this function
    In file included from questlua_pet.cpp:11:
    PetSystem.h:163:31: warning: no newline at end of file
    questlua_pet.cpp:157:2: warning: no newline at end of file
    In file included from questlua_npc.cpp:9:
    shop_manager.h:40:7: warning: no newline at end of file
    questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:293: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:309: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:324: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:340: warning: unused variable 'q'
    In file included from trigger.cpp:8:
    shop_manager.h:40:7: warning: no newline at end of file
    questnpc.cpp: In member function 'bool quest::NPC::HandleEvent(quest::PC&, int)':
    questnpc.cpp:500: warning: unused variable 'pPC'
    utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)':
    utils.cpp:243: warning: NULL used in arithmetic
    utils.cpp:255: warning: NULL used in arithmetic
    utils.cpp:269: warning: NULL used in arithmetic
    shop.cpp: In member function 'virtual bool CShop::IsSellingItem(DWORD)':
    shop.cpp:576: warning: comparison between signed and unsigned integer expressions
    FileMonitor_FreeBSD.cpp:136:2: warning: no newline at end of file
    In file included from ClientPackageCryptInfo.cpp:2:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    In file included from check_server.cpp:1:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    In file included from dragon_soul_table.cpp:4:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    In file included from DragonSoul.cpp:9:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
    buff_on_attributes.cpp:113: warning: unused variable 'old_value'
    buff_on_attributes.cpp:114: warning: unused variable 'new_value'
    char_dragonsoul.cpp:143:2: warning: no newline at end of file
    ClientPackageCryptInfo.h: In constructor 'CClientPackageCryptInfo::CClientPackageCryptInfo()':
    ClientPackageCryptInfo.h:50: warning: 'CClientPackageCryptInfo::m_pSerializedCryptKeyStream' will be initialized after
    ClientPackageCryptInfo.h:48: warning:   'int CClientPackageCryptInfo::m_nCryptKeyPackageCnt'
    ClientPackageCryptInfo.cpp:9: warning:   when initialized here
    group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()':
    group_text_parse_tree.h:93: warning: 'CGroupTextParseTreeLoader::m_dwcurLineIndex' will be initialized after
    group_text_parse_tree.h:91: warning:   'CGroupNode* CGroupTextParseTreeLoader::m_pRootGroupNode'
    group_text_parse_tree.cpp:5: warning:   when initialized here
    group_text_parse_tree.cpp: In member function 'bool CGroupTextParseTreeLoader::LoadGroup(CGroupNode*)':
    group_text_parse_tree.cpp:99: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.cpp: In member function 'bool CGroupNode::GetRow(int, const CGroupNode::CGroupNodeRow**) const':
    group_text_parse_tree.cpp:206: warning: comparison between signed and unsigned integer expressions
    In file included from shop_manager.cpp:22:
    shop_manager.h:40:7: warning: no newline at end of file
    ../../../Extern/include/cryptopp/algparam.h: In constructor 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]':
    ../../../Extern/include/cryptopp/filters.h:793:   instantiated from here
    ../../../Extern/include/cryptopp/algparam.h:26: warning: unused variable 'cryptopp_assert_26'
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::ReadAdditionalApplys()':
    dragon_soul_table.cpp:223: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckApplyNumSettings()':
    dragon_soul_table.cpp:283: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckWeightTables()':
    dragon_soul_table.cpp:311: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineGradeTables()':
    dragon_soul_table.cpp:343: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:372: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStepTables()':
    dragon_soul_table.cpp:397: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:427: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStrengthTables()':
    dragon_soul_table.cpp:453: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonHeartExtTables()':
    dragon_soul_table.cpp:494: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:513: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:522: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonSoulExtTables()':
    dragon_soul_table.cpp:545: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = std::string]':
    dragon_soul_table.cpp:129:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = BYTE]':
    dragon_soul_table.cpp:134:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = int]':
    dragon_soul_table.cpp:201:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = float]':
    dragon_soul_table.cpp:260:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = float]':
    dragon_soul_table.cpp:828:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    ../../../Extern/include/cryptopp/algparam.h: In member function 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
    cipher.cpp:397:   instantiated from here
    ../../../Extern/include/cryptopp/algparam.h:322: warning: unused variable 'p'
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = int]':
    group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = int]'
    group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = int]'
    dragon_soul_table.cpp:612:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
    group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = unsigned int]'
    group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = unsigned int]'
    dragon_soul_table.cpp:884:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    char_dragonsoul.cpp: In member function 'bool CHARACTER::DragonSoul_ActivateDeck(int)':
    char_dragonsoul.cpp:91: warning: control reaches end of non-void function
    DragonSoul.cpp: In function 'int Gamble(std::vector<float, std::allocator<float> >&)':
    DragonSoul.cpp:19: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp:25: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp: In member function 'bool DSManager::RefreshItemAttributes(CItem*)':
    DragonSoul.cpp:203: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp: In member function 'bool DSManager::PutAttributes(CItem*)':
    DragonSoul.cpp:273: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
    DragonSoul.cpp:350: warning: unused variable 'sum'
    DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
    DragonSoul.cpp:435: warning: unused variable 'dwVnum'
    DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 3 has type 'double'
    DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 4 has type 'double'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:555: warning: unused variable 'prob_sum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:763: warning: unused variable 'sum'
    item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
    item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
    shopEx.cpp: In member function 'virtual int CShopEx::Buy(CHARACTER*, BYTE)':
    shopEx.cpp:153: error: expected `;' before 'return'
    shopEx.cpp:159: warning: comparison between signed and unsigned integer expressions
    shop_manager.cpp: In function 'bool ConvertToShopItemTable(CGroupNode*, TShopTableEx&)':
    shop_manager.cpp:473: warning: comparison between signed and unsigned integer expressions
    gmake: *** [OBJDIR/shopEx.o] Bł±d 1
    gmake: *** Oczekiwanie na niezakończone zadania....
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
    group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = DWORD]'
    shop_manager.cpp:381:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]':
    group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = std::string]'
    shop_manager.cpp:387:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned char]':
    group_text_parse_tree.h:136:   instantiated from 'bool CGroupNode::GetValue(size_t, const std::string&, T&) const [with T = BYTE]'
    shop_manager.cpp:442:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    item_manager_read_tables.cpp:627: warning: 'pkGroup' may be used uninitialized in this function
    ../../../Extern/include/cryptopp/misc.h: At global scope:
    ../../../Extern/include/cryptopp/misc.h:548: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used
    

    I cand find out where the problem is.Somewone help?

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