bot unstable - restart every 10 minutes/python script problems

      Neu

      Spoiler anzeigen


      Quellcode

      1. import constInfo,chat,thread,player,time,app,net,chr,dbg,ui
      2. #Bu bir python script'dir. Bu script Bot ile oyuna girince otomatikmen aktif hale gelecekdir (Harita degisincede vb.)
      3. #Bunun ile kendi python kodlamalarini girisde kullanabilirsin, sadece alt tarafa yapisdir
      4. ### Ayarlar ###
      5. SLOT_COUNT = player.INVENTORY_PAGE_COUNT*player.INVENTORY_PAGE_SIZE
      6. DELAY = 2 ## -> Gecikme [Saniye]
      7. PLAYER_NAMES = ["xxxx", "xxxx", "xxxx", "xxxx"] ## -> Iteme düsürecek karakter adlarını girin
      8. ITEM_ID = 30270 ## -> Buraya Item ID'ni yaz
      9. ### Ayarlarin Sonu ###
      10. def StartDropItems():
      11. while 1:
      12. for slot in xrange(SLOT_COUNT) :
      13. if player.GetItemIndex(slot) == ITEM_ID:
      14. net.SendItemDropPacketNew(slot,200)
      15. time.sleep(1)
      16. if not hasattr(constInfo, "started"):
      17. constInfo.started = 1
      18. if chr.GetName() in PLAYER_NAMES:
      19. thread.start_new_thread(StartDropItems,())
      20. chat.AppendChat(7,"[m2bob] drop items started" )




      This scripts uses threads as i see...the metin client isnt supposed to support threads in python.
      Thanks for the information :)

      Can you test scripts that are NOT using threads and see if you can also find a script causing crashes?


      If you want to support the work of us, please renew/activate your uploaded.net premium account with the following link:
      >>> ul.to/ref/13987238 <<<
      Benutzer-Avatarbild

      Beitrag von „sedesese“ ()

      Dieser Beitrag wurde von „Marshall“ aus folgendem Grund gelöscht: SPAM ().
      Benutzer-Avatarbild

      Beitrag von „İNFANTRY“ ()

      Dieser Beitrag wurde vom Autor gelöscht ().
      Benutzer-Avatarbild

      Beitrag von „sedesese“ ()

      Dieser Beitrag wurde von „Marshall“ aus folgendem Grund gelöscht: SPAM ().

      Neu

      Exception in script, try if this maybe helps regarding the error:
      Spoiler anzeigen

      Quellcode

      1. import constInfo,chat,thread,player,time,app,net,chr,dbg,ui
      2. #Bu bir python script'dir. Bu script Bot ile oyuna girince otomatikmen aktif hale gelecekdir (Harita degisincede vb.)
      3. #Bunun ile kendi python kodlamalarini girisde kullanabilirsin, sadece alt tarafa yapisdir
      4. ### Ayarlar ###
      5. SLOT_COUNT = player.INVENTORY_PAGE_COUNT*player.INVENTORY_PAGE_SIZE
      6. DELAY = 2 ## -> Gecikme [Saniye]
      7. PLAYER_NAMES = ["xxxx", "xxxx", "xxxx", "xxxx"] ## -> Iteme düsürecek karakter adlarını girin
      8. ITEM_ID = 30270 ## -> Buraya Item ID'ni yaz
      9. ### Ayarlarin Sonu ###
      10. def StartDropItems():
      11. while 1:
      12. try:
      13. for slot in xrange(SLOT_COUNT) :
      14. if player.GetItemIndex(slot) == ITEM_ID:
      15. net.SendItemDropPacketNew(slot,200)
      16. except:
      17. pass
      18. time.sleep(1)
      19. if not hasattr(constInfo, "started"):
      20. constInfo.started = 1
      21. if chr.GetName() in PLAYER_NAMES:
      22. thread.start_new_thread(StartDropItems,())
      23. chat.AppendChat(7,"[m2bob] drop items started" )




      If you want to support the work of us, please renew/activate your uploaded.net premium account with the following link:
      >>> ul.to/ref/13987238 <<<