## Böyle bir yer ayrılmış buraya da önceki kodlara bakarak kendin fonksiyon yazabilirsin
########### Custom Functions ############
def Custom1(self):
chat.AppendChat(7, "Add your Python code here")
def Custom2(self):
chat.AppendChat(7, "Add your Python code here")
def DoSomethingInLoop(self):
while 1:
chat.AppendChat(0,"loop")
time.sleep(1) # 1 = 1 second // 0.1 = 100ms
## Burada envanterden depoya
def InventoryToSafebox(self, slot_from, slot_to):
for x in xrange(slot_from, slot_to+1):
if player.GetItemIndex(x) != 0:
if safebox.GetItemID(x) == 0:
net.SendSafeboxCheckinPacket(x,x)
else:
tmp = x
while safebox.GetItemID(tmp) != 0:
tmp += 1
if tmp < safebox.GetCurrentSafeboxSize():
net.SendSafeboxCheckinPacket(x,tmp)
## Burada ise depodan envantere kodları eklenmiş zaten
def SafeboxToInventroy(self, slot_from, slot_to):
for x in xrange(slot_from, slot_to+1):
if safebox.GetItemID(x) != 0:
if player.GetItemIndex(x) == 0:
net.SendSafeboxCheckoutPacket(x,x)
else:
tmp = x
while player.GetItemIndex(tmp) != 0:
tmp += 1
if tmp < SLOT_COUNT:
net.SendSafeboxCheckoutPacket(x,tmp)