在python脚本中完成另一个任务后开始一个任务

时间:2019-03-17 11:35:48

标签: python

我有此代码:

import time
import net

net.SendItemDropPacketNew(0,4)
time.sleep(.010)
net.SendItemDropPacketNew(0,1)
time.sleep(0.010)
net.SendItemDropPacketNew(0,4)
time.sleep(.010)
net.SendItemDropPacketNew(0,1)
time.sleep(0.010)
net.SendItemDropPacketNew(0,4)
time.sleep(.010)
net.SendItemDropPacketNew(0,1)
time.sleep(0.010)
net.SendItemDropPacketNew(0,4)
time.sleep(.010)
net.SendItemDropPacketNew(0,1)
time.sleep(0.010)
net.SendItemDropPacketNew(0,4)
time.sleep(.010)
net.SendItemDropPacketNew(0,1)

此代码将一个物品放到我想要的游戏中,但是仅在插槽0上被选中。如果我复制此代码并将其放在插槽1而不是0中,它将在同一时间执行相同的操作。我要等待插槽0结束,然后再启动插槽1。

0 个答案:

没有答案