Esempio n. 1
0
 def Close(self):
     self.OnCloseQuestionDialog()
     shop.Close()
     net.SendShopEndPacket()
     self.CancelShopping()
     self.tooltipItem.HideToolTip()
     self.Hide()
Esempio n. 2
0
 def EndNPCBusiness(self):
     if (self.callback != None):
         self.callback()
         self.callback = None
         #chat.AppendChat(3,"Calling callback")
     self.State = STATE_NONE
     net.SendShopEndPacket()
     Hooks.questHook.UnhookFunction()
Esempio n. 3
0
 def BuyItemDirectly(self, item):
     vid = item.shop
     slot = item.slot
     x, y, z = player.GetMainCharacterPosition()
     dst_x, dst_y, dst_z = chr.GetPixelPosition(vid)
     if (dst_x + dst_y < 0.000001):
         return
     Movement.TeleportStraightLine(x, y, dst_x, dst_y)
     net.SendOnClickPacket(vid)
     net.SendShopBuyPacket(slot)
     Movement.TeleportStraightLine(dst_x, dst_y, x, y)
     net.SendShopEndPacket()
 def Close(self):
     if self.itemBuyQuestionDialog:
         self.itemBuyQuestionDialog.Close()
         self.itemBuyQuestionDialog = None
         constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0)
     if self.questionDialog:
         self.OnCloseQuestionDialog()
     shop.Close()
     net.SendShopEndPacket()
     self.CancelShopping()
     self.tooltipItem.HideToolTip()
     self.Hide()
Esempio n. 5
0
 def Close(self):
     if app.ENABLE_OFFLINE_SHOP:
         if constInfo.SHOP_MOVE_FLAG:
             return
     if self.itemBuyQuestionDialog:
         self.itemBuyQuestionDialog.Close()
         self.itemBuyQuestionDialog = None
         constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0)
     if self.questionDialog:
         self.OnCloseQuestionDialog()
     shop.Close()
     net.SendShopEndPacket()
     self.CancelShopping()
     self.tooltipItem.HideToolTip()
     self.Hide()
Esempio n. 6
0
        def Close(self, isDestroy=False):
            self.interface.SetOnTopWindow(player.ON_TOP_WND_NONE)
            if not isDestroy:
                self.interface.RefreshMarkInventoryBag()

            if self.itemBuyQuestionDialog:
                self.itemBuyQuestionDialog.Close()
                self.itemBuyQuestionDialog = None
                constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0)

            self.OnCloseQuestionDialog()
            shop.Close()
            net.SendShopEndPacket()
            self.CancelShopping()
            self.tooltipItem.HideToolTip()
            self.Hide()
Esempio n. 7
0
 def CloseShop(self):
     if self.IsShopOpen() == True:
         net.SendShopEndPacket()