Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 00:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] Please help to complete this python script!

Discussion on [HELP] Please help to complete this python script! within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2010
Posts: 6
Received Thanks: 0
[HELP] Please help to complete this python script!

Hi.

I'm using M2Bob on a private server.

I already wrote a python script for teleport to the dungeon NPC with Teleport ring and talk with him (click on it, select answers, etc.)

This code is for talk with the NPC and select answers and teleport into the dungeon:

Code:
import player, event, net
vid = player.GetTargetVID(2)
net.SendOnClickPacket(2)
event.SelectAnswer(0,0)
event.SelectAnswer(0,0)
The following code is for use Teleport ring to teleport to the dungeon NPC:

Code:
import net
net.SendItemUsePacket(2)
event.SelectAnswer(0,2)
event.SelectAnswer(0,9)
The dungeon don't have a wait time so you can do it again and again once you completed.
I want to wait 5 minutes between run this two commands. (The 5 minutes is for surely complete the dungeon...)

Can someone help me how to add that 5 min wait command between that two command? I already tried "time.sleep()" but it just freeze the client for the seconds in the ().

Thanks in advance for help!
Alex19950717 is offline  
Old 01/28/2021, 12:54   #2
 
3sterPeter's Avatar
 
elite*gold: 24
Join Date: Jul 2011
Posts: 493
Received Thanks: 58
use a thread
3sterPeter is offline  
Old 01/28/2021, 12:56   #3
 
elite*gold: 0
Join Date: Sep 2010
Posts: 6
Received Thanks: 0
Can you help me how to do it? Sry I'm not so good in python...
Alex19950717 is offline  
Reply

Tags
m2bob, python


Similar Threads Similar Threads
PROBLEM WITH PYTHON PLEASE HELP ME/ PROBLEM MIT PYTHON BITTE HELFEN MICH
05/26/2017 - Metin2 Private Server - 0 Replies
What are the values to change to move the search for the bonus in the item that is in the inventory's first slot? I would like to move it to the second slot (python switcher) Was sind die Werte, die geändert werden sollen, um die Suche nach dem Bonus in dem Element zu verschieben, der sich im ersten Slot des Inventars befindet? Ich möchte es auf den zweiten Slot (Python Switcher)
PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE
06/21/2011 - Metin2 Private Server - 5 Replies
HELP WITH THIS PLEASE ON MY DEDICATED SERVER :-( http://www.youtube.com/watch?v=UyKOTLb960Q log_file_delete_old: stat: No such file or directory connect: Connection refused Timed out Connection refused



All times are GMT +1. The time now is 00:30.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.