[HELP] Please help to complete this python script!

01/27/2021 09:38 Alex19950717#1
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!
01/28/2021 12:54 3sterPeter#2
use a thread
01/28/2021 12:56 Alex19950717#3
Can you help me how to do it? Sry I'm not so good in python...