Dispar iteme dupa citire
- skristy96
-

- Mesaje: 559
- Membru din: 29 Noi 2013, 21:38
- Server: OficialMT2
- Regat: Jinno
- Aprecieri: 364
- Mulţumiri: 50
- Rezolvări prob.: 1
- Discord: Copiază ID
- Contact:
Am o problema la server , cand citesc de exemplu cartea competentei , daca am de exemplu 10 slotate si dau sa le citesc dispar toate , la fel si cu elixirul explorarii , daca dau click cand e slotat cu mai multe dispar toate . Am cautat pe internet si ziceau uni ce trebuie diff alti mi-au dat fisiere pentru client ( root/uiinventory.py) . Care sa fie problema ? Se poate sa fie de la client ? Help me , am mare nevoie si cat de repede se poate. Daca gasesc rezolvarea o si postez ca o cauta multi.

- Kid0
-

- Mesaje: 1420
- Membru din: 12 Aug 2015, 13:33
- Server: restoria2(ex)
- Regat: Shinsoo
- Aprecieri: 39
- Mulţumiri: 13
- Discord: Copiază ID
- Contact:
rezolvarea e doar din sursa
- skristy96
-

- Mesaje: 559
- Membru din: 29 Noi 2013, 21:38
- Server: OficialMT2
- Regat: Jinno
- Aprecieri: 364
- Mulţumiri: 50
- Rezolvări prob.: 1
- Discord: Copiază ID
- Contact:
Mi-ai lasat asta :
Si eu in client am asta :
Trebuie sa inlocuiesc ce mi-ai trimis cu ce am gasit eu ? sau o adaug la capat ?
Spune-mi te rog cum trebuie sa procedez , te rog frumos , am mare nevoie . Mersi
.
Cod: Selectaţi tot
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)
returnCod: Selectaţi tot
def __UseItem(self, slotIndex):
ItemVNum = player.GetItemIndex(slotIndex)
item.SelectItem(ItemVNum)
if item.IsFlag(item.ITEM_FLAG_CONFIRM_WHEN_USE):
self.questionDialog = uiCommon.QuestionDialog()
self.questionDialog.SetText(locale.INVENTORY_REALLY_USE_ITEM)
self.questionDialog.SetAcceptEvent(ui.__mem_func__(self.__UseItemQuestionDialog_OnAccept))
self.questionDialog.SetCancelEvent(ui.__mem_func__(self.__UseItemQuestionDialog_OnCancel))
self.questionDialog.Open()
self.questionDialog.slotIndex = slotIndex
else:
self.__SendUseItemPacket(slotIndex)
#net.SendItemUsePacket(slotIndex)
Spune-mi te rog cum trebuie sa procedez , te rog frumos , am mare nevoie . Mersi
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Bing [Bot], marian261 și 43 vizitatori






Ai mai facut un topic, acolo ti-am lasat cum rezolvi daca nu ai sursa. (din client)
de