Jump to content

How To Stackable Skill Books


Recommended Posts

  • Premium

Today i'll show you how to make your skill books work on 34k .

It's only for 50300 vnum = random book

def __UseItem(self, slotIndex):
        ItemVNum = player.GetItemIndex(slotIndex)
        item.SelectItem(ItemVNum)
        itemCount = player.GetItemCount(slotIndex)
        getItemVNum=player.GetItemIndex
        getItemCount=player.GetItemCount
        if ItemVNum == 50300 and itemCount > 1:
            if player.GetItemIndex(0) == 0 :
                    net.SendItemMovePacket(slotIndex, 0, 1)
                    self.__SendUseItemPacket(0)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 0, attachedCount)
                    
            if player.GetItemIndex(1) == 0:
                    net.SendItemMovePacket(slotIndex, 1, 1)
                    self.__SendUseItemPacket(1)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 1, attachedCount)
                    
            if player.GetItemIndex(2) == 0:
                    net.SendItemMovePacket(slotIndex, 2, 1)
                    self.__SendUseItemPacket(2)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 2, attachedCount)

            if player.GetItemIndex(3) == 0:
                    net.SendItemMovePacket(slotIndex, 3, 1)
                    self.__SendUseItemPacket(3)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 3, attachedCount)
            if player.GetItemIndex(4) == 0:
                    net.SendItemMovePacket(slotIndex, 4, 1)
                    self.__SendUseItemPacket(4)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 4, attachedCount)
            if player.GetItemIndex(5) == 0:
                    net.SendItemMovePacket(slotIndex, 5, 1)
                    self.__SendUseItemPacket(5)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 5, attachedCount)
            if player.GetItemIndex(6) == 0:
                    net.SendItemMovePacket(slotIndex, 6, 1)
                    self.__SendUseItemPacket(6)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 6, attachedCount)
            if player.GetItemIndex(7) == 0:
                    net.SendItemMovePacket(slotIndex, 7, 1)
                    self.__SendUseItemPacket(7)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 7, attachedCount)
            if player.GetItemIndex(8) == 0:
                    net.SendItemMovePacket(slotIndex, 8, 1)
                    self.__SendUseItemPacket(8)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 8, attachedCount)
            if player.GetItemIndex(9) == 0:
                    net.SendItemMovePacket(slotIndex, 9, 1)
                    self.__SendUseItemPacket(9)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 9, attachedCount)
            if player.GetItemIndex(10) == 0:
                    net.SendItemMovePacket(slotIndex, 10, 1)
                    self.__SendUseItemPacket(10)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 10, attachedCount)
            if player.GetItemIndex(11) == 0:
                    net.SendItemMovePacket(slotIndex, 11, 1)
                    self.__SendUseItemPacket(11)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 11, attachedCount)
            if player.GetItemIndex(12) == 0:
                    net.SendItemMovePacket(slotIndex, 12, 1)
                    self.__SendUseItemPacket(12)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 12, attachedCount)
            if player.GetItemIndex(13) == 0:
                    net.SendItemMovePacket(slotIndex, 13, 1)
                    self.__SendUseItemPacket(13)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 13, attachedCount)
            if player.GetItemIndex(14) == 0:
                    net.SendItemMovePacket(slotIndex, 14, 1)
                    self.__SendUseItemPacket(14)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 14, attachedCount)
            if player.GetItemIndex(15) == 0:
                    net.SendItemMovePacket(slotIndex, 15, 1)
                    self.__SendUseItemPacket(15)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 15, attachedCount)
            if player.GetItemIndex(16) == 0:
                    net.SendItemMovePacket(slotIndex, 16, 1)
                    self.__SendUseItemPacket(16)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 16, attachedCount)
            if player.GetItemIndex(17) == 0:
                    net.SendItemMovePacket(slotIndex, 17, 1)
                    self.__SendUseItemPacket(17)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 17, attachedCount)
            if player.GetItemIndex(18) == 0:
                    net.SendItemMovePacket(slotIndex, 18, 1)
                    self.__SendUseItemPacket(18)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 18, attachedCount)
            if player.GetItemIndex(19) == 0:
                    net.SendItemMovePacket(slotIndex, 19, 1)
                    self.__SendUseItemPacket(19)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 19, attachedCount)
            if player.GetItemIndex(20) == 0:
                    net.SendItemMovePacket(slotIndex, 20, 1)
                    self.__SendUseItemPacket(20)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 20, attachedCount)
            if player.GetItemIndex(21) == 0:
                    net.SendItemMovePacket(slotIndex, 21, 1)
                    self.__SendUseItemPacket(21)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 21, attachedCount)
            if player.GetItemIndex(22) == 0:
                    net.SendItemMovePacket(slotIndex, 22, 1)
                    self.__SendUseItemPacket(22)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 22, attachedCount)
            if player.GetItemIndex(23) == 0:
                    net.SendItemMovePacket(slotIndex, 23, 1)
                    self.__SendUseItemPacket(23)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 23, attachedCount)
            if player.GetItemIndex(24) == 0:
                    net.SendItemMovePacket(slotIndex, 24, 1)
                    self.__SendUseItemPacket(24)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 24, attachedCount)
            if player.GetItemIndex(25) == 0:
                    net.SendItemMovePacket(slotIndex, 25, 1)
                    self.__SendUseItemPacket(25)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 25, attachedCount)
            if player.GetItemIndex(26) == 0:
                    net.SendItemMovePacket(slotIndex, 26, 1)
                    self.__SendUseItemPacket(26)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 26, attachedCount)
            if player.GetItemIndex(27) == 0:
                    net.SendItemMovePacket(slotIndex, 27, 1)
                    self.__SendUseItemPacket(27)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 27, attachedCount)
            if player.GetItemIndex(28) == 0:
                    net.SendItemMovePacket(slotIndex, 28, 1)
                    self.__SendUseItemPacket(28)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 28, attachedCount)
            if player.GetItemIndex(29) == 0:
                    net.SendItemMovePacket(slotIndex, 29, 1)
                    self.__SendUseItemPacket(29)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 29, attachedCount)
            if player.GetItemIndex(30) == 0:
                    net.SendItemMovePacket(slotIndex, 30, 1)
                    self.__SendUseItemPacket(30)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 30, attachedCount)
            if player.GetItemIndex(31) == 0:
                    net.SendItemMovePacket(slotIndex, 31, 1)
                    self.__SendUseItemPacket(31)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 31, attachedCount)
            if player.GetItemIndex(32) == 0:
                    net.SendItemMovePacket(slotIndex, 32, 1)
                    self.__SendUseItemPacket(32)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 32, attachedCount)
            if player.GetItemIndex(33) == 0:
                    net.SendItemMovePacket(slotIndex, 33, 1)
                    self.__SendUseItemPacket(33)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 33, attachedCount)
            if player.GetItemIndex(34) == 0:
                    net.SendItemMovePacket(slotIndex, 34, 1)
                    self.__SendUseItemPacket(34)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 34, attachedCount)
            if player.GetItemIndex(35) == 0:
                    net.SendItemMovePacket(slotIndex, 35, 1)
                    self.__SendUseItemPacket(35)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 35, attachedCount)
            if player.GetItemIndex(36) == 0:
                    net.SendItemMovePacket(slotIndex, 36, 1)
                    self.__SendUseItemPacket(36)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 36, attachedCount)
            if player.GetItemIndex(37) == 0:
                    net.SendItemMovePacket(slotIndex, 37, 1)
                    self.__SendUseItemPacket(37)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 37, attachedCount)
            if player.GetItemIndex(38) == 0:
                    net.SendItemMovePacket(slotIndex, 38, 1)
                    self.__SendUseItemPacket(38)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 38, attachedCount)
            if player.GetItemIndex(39) == 0:
                    net.SendItemMovePacket(slotIndex, 39, 1)
                    self.__SendUseItemPacket(39)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 39, attachedCount)
            if player.GetItemIndex(40) == 0:
                    net.SendItemMovePacket(slotIndex, 40, 1)
                    self.__SendUseItemPacket(40)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 40, attachedCount)
            if player.GetItemIndex(41) == 0:
                    net.SendItemMovePacket(slotIndex, 41, 1)
                    self.__SendUseItemPacket(41)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 41, attachedCount)
            if player.GetItemIndex(42) == 0:
                    net.SendItemMovePacket(slotIndex, 42, 1)
                    self.__SendUseItemPacket(42)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 42, attachedCount)
            if player.GetItemIndex(43) == 0:
                    net.SendItemMovePacket(slotIndex, 43, 1)
                    self.__SendUseItemPacket(43)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 43, attachedCount)
            if player.GetItemIndex(44) == 0:
                    net.SendItemMovePacket(slotIndex, 44, 1)
                    self.__SendUseItemPacket(44)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 44, attachedCount)
            if player.GetItemIndex(45) == 0:
                    net.SendItemMovePacket(slotIndex, 45, 1)
                    self.__SendUseItemPacket(45)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 45, attachedCount)
            if player.GetItemIndex(46) == 0:
                    net.SendItemMovePacket(slotIndex, 46, 1)
                    self.__SendUseItemPacket(46)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 46, attachedCount)
            if player.GetItemIndex(47) == 0:
                    net.SendItemMovePacket(slotIndex, 47, 1)
                    self.__SendUseItemPacket(47)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 47, attachedCount)
            if player.GetItemIndex(48) == 0:
                    net.SendItemMovePacket(slotIndex, 48, 1)
                    self.__SendUseItemPacket(48)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 48, attachedCount)
            if player.GetItemIndex(49) == 0:
                    net.SendItemMovePacket(slotIndex, 49, 1)
                    self.__SendUseItemPacket(49)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 49, attachedCount)
            if player.GetItemIndex(50) == 0:
                    net.SendItemMovePacket(slotIndex, 50, 1)
                    self.__SendUseItemPacket(50)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 50, attachedCount)
            if player.GetItemIndex(51) == 0:
                    net.SendItemMovePacket(slotIndex, 51, 1)
                    self.__SendUseItemPacket(51)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 51, attachedCount)
            if player.GetItemIndex(52) == 0:
                    net.SendItemMovePacket(slotIndex, 52, 1)
                    self.__SendUseItemPacket(52)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 52, attachedCount)
            if player.GetItemIndex(53) == 0:
                    net.SendItemMovePacket(slotIndex, 53, 1)
                    self.__SendUseItemPacket(53)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 53, attachedCount)
            if player.GetItemIndex(54) == 0:
                    net.SendItemMovePacket(slotIndex, 54, 1)
                    self.__SendUseItemPacket(54)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 54, attachedCount)
            if player.GetItemIndex(55) == 0:
                    net.SendItemMovePacket(slotIndex, 55, 1)
                    self.__SendUseItemPacket(55)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 55, attachedCount)
            if player.GetItemIndex(56) == 0:
                    net.SendItemMovePacket(slotIndex, 56, 1)
                    self.__SendUseItemPacket(56)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 56, attachedCount)
            if player.GetItemIndex(57) == 0:
                    net.SendItemMovePacket(slotIndex, 57, 1)
                    self.__SendUseItemPacket(57)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 57, attachedCount)
            if player.GetItemIndex(58) == 0:
                    net.SendItemMovePacket(slotIndex, 58, 1)
                    self.__SendUseItemPacket(58)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 58, attachedCount)
            if player.GetItemIndex(59) == 0:
                    net.SendItemMovePacket(slotIndex, 59, 1)
                    self.__SendUseItemPacket(59)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 59, attachedCount)
            if player.GetItemIndex(60) == 0:
                    net.SendItemMovePacket(slotIndex, 60, 1)
                    self.__SendUseItemPacket(60)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 60, attachedCount)
            if player.GetItemIndex(61) == 0:
                    net.SendItemMovePacket(slotIndex, 61, 1)
                    self.__SendUseItemPacket(61)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 61, attachedCount)
            if player.GetItemIndex(62) == 0:
                    net.SendItemMovePacket(slotIndex, 62, 1)
                    self.__SendUseItemPacket(62)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 62, attachedCount)
            if player.GetItemIndex(63) == 0:
                    net.SendItemMovePacket(slotIndex, 63, 1)
                    self.__SendUseItemPacket(63)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 63, attachedCount)
            if player.GetItemIndex(64) == 0:
                    net.SendItemMovePacket(slotIndex, 64, 1)
                    self.__SendUseItemPacket(64)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 64, attachedCount)
            if player.GetItemIndex(65) == 0:
                    net.SendItemMovePacket(slotIndex, 65, 1)
                    self.__SendUseItemPacket(65)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 65, attachedCount)
            if player.GetItemIndex(66) == 0:
                    net.SendItemMovePacket(slotIndex, 66, 1)
                    self.__SendUseItemPacket(66)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 66, attachedCount)
            if player.GetItemIndex(67) == 0:
                    net.SendItemMovePacket(slotIndex, 67, 1)
                    self.__SendUseItemPacket(67)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 67, attachedCount)
            if player.GetItemIndex(68) == 0:
                    net.SendItemMovePacket(slotIndex, 68, 1)
                    self.__SendUseItemPacket(68)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 68, attachedCount)
            if player.GetItemIndex(69) == 0:
                    net.SendItemMovePacket(slotIndex, 69, 1)
                    self.__SendUseItemPacket(69)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 69, attachedCount)
            if player.GetItemIndex(70) == 0:
                    net.SendItemMovePacket(slotIndex, 70, 1)
                    self.__SendUseItemPacket(70)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 70, attachedCount)
            if player.GetItemIndex(71) == 0:
                    net.SendItemMovePacket(slotIndex, 71, 1)
                    self.__SendUseItemPacket(71)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 71, attachedCount)
            if player.GetItemIndex(72) == 0:
                    net.SendItemMovePacket(slotIndex, 72, 1)
                    self.__SendUseItemPacket(72)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 72, attachedCount)
            if player.GetItemIndex(73) == 0:
                    net.SendItemMovePacket(slotIndex, 73, 1)
                    self.__SendUseItemPacket(73)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 73, attachedCount)
            if player.GetItemIndex(74) == 0:
                    net.SendItemMovePacket(slotIndex, 74, 1)
                    self.__SendUseItemPacket(74)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 74, attachedCount)
            if player.GetItemIndex(75) == 0:
                    net.SendItemMovePacket(slotIndex, 75, 1)
                    self.__SendUseItemPacket(75)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 75, attachedCount)
            if player.GetItemIndex(76) == 0:
                    chat.AppendChat(chat.CHAT_TYPE_INFO, "76 kliber")
                    net.SendItemMovePacket(slotIndex, 76, 1)
                    self.__SendUseItemPacket(76)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 76, attachedCount)
            if player.GetItemIndex(77) == 0:
                    net.SendItemMovePacket(slotIndex, 77, 1)
                    self.__SendUseItemPacket(77)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 77, attachedCount)
            if player.GetItemIndex(78) == 0:
                    net.SendItemMovePacket(slotIndex, 78, 1)
                    self.__SendUseItemPacket(78)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 78, attachedCount)
            if player.GetItemIndex(79) == 0:
                    net.SendItemMovePacket(slotIndex, 79, 1)
                    self.__SendUseItemPacket(79)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 79, attachedCount)
            if player.GetItemIndex(80) == 0:
                    net.SendItemMovePacket(slotIndex, 80, 1)
                    self.__SendUseItemPacket(80)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 80, attachedCount)
            if player.GetItemIndex(81) == 0:
                    net.SendItemMovePacket(slotIndex, 81, 1)
                    self.__SendUseItemPacket(81)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 81, attachedCount)
            if player.GetItemIndex(82) == 0:
                    net.SendItemMovePacket(slotIndex, 82, 1)
                    self.__SendUseItemPacket(82)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 82, attachedCount)
            if player.GetItemIndex(83) == 0:
                    net.SendItemMovePacket(slotIndex, 83, 1)
                    self.__SendUseItemPacket(83)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 83, attachedCount)
            if player.GetItemIndex(84) == 0:
                    net.SendItemMovePacket(slotIndex, 84, 1)
                    self.__SendUseItemPacket(84)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 84, attachedCount)
            if player.GetItemIndex(85) == 0:
                    net.SendItemMovePacket(slotIndex, 85, 1)
                    self.__SendUseItemPacket(85)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 85, attachedCount)
            if player.GetItemIndex(86) == 0:
                    net.SendItemMovePacket(slotIndex, 86, 1)
                    self.__SendUseItemPacket(86)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 86, attachedCount)
            if player.GetItemIndex(87) == 0:
                    net.SendItemMovePacket(slotIndex, 87, 1)
                    self.__SendUseItemPacket(87)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 87, attachedCount)
            if player.GetItemIndex(88) == 0:
                    net.SendItemMovePacket(slotIndex, 88, 1)
                    self.__SendUseItemPacket(88)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 88, attachedCount)
            if player.GetItemIndex(89) == 0:
                for i in xrange(player.INVENTORY_PAGE_SIZE*2):
                    net.SendItemMovePacket(slotIndex, 89, 1)
                    self.__SendUseItemPacket(89)
                    attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                    net.SendItemMovePacket(slotIndex, 89, attachedCount)
                else:
                    chat.AppendChat(chat.CHAT_TYPE_INFO, "Inventarul este plin,este nevoie de minim un loc liber!")
                    return
        #

        else:
            self.__SendUseItemPacket(slotIndex)
            return
Link to comment
Share on other sites

  • 1 year later...

Ok, thanks for release but 470 lines is to ugly for this small thing, here is better and only in some lines:

def __UseItem(self, slotIndex):
	itemVnum = player.GetItemIndex(slotIndex)
	item.SelectItem(itemVnum)
	itemCount = player.GetItemCount(slotIndex)
	inventoryMaxSlot = 45 * 2

	if itemVnum == 50300 and itemCount > 1:
		for i in xrange(inventoryMaxSlot):
			if player.GetItemIndex(i) == 0:
				net.SendItemMovePacket(slotIndex, i, 1)
				self.__SendUseItemPacket(i)
				attachedCount = mouseModule.mouseController.GetAttachedItemCount()
				net.SendItemMovePacket(slotIndex, i, attachedCount)			
			else:
				chat.AppendChat(chat.CHAT_TYPE_INFO, "Inventory is full, you need more space.")
				return
	else:
		self.__SendUseItemPacket(slotIndex)
		return

 

  • Love 1
Link to comment
Share on other sites

Announcements



  • Similar Content

  • Similar Content

  • Similar Content

  • Tags

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.