|
|
@ -366,6 +366,7 @@ class mutant(QWidget): |
|
|
def heal_trig(self): |
|
|
def heal_trig(self): |
|
|
if self.heal: |
|
|
if self.heal: |
|
|
self.command_str.emit("heal\r\n") |
|
|
self.command_str.emit("heal\r\n") |
|
|
|
|
|
# self.mqtt_str_quiet.emit(self.user," is healing." ) |
|
|
|
|
|
|
|
|
#wield timer |
|
|
#wield timer |
|
|
def wield_trig(self): |
|
|
def wield_trig(self): |
|
|
@ -435,6 +436,7 @@ class mutant(QWidget): |
|
|
if item_l == item: |
|
|
if item_l == item: |
|
|
self.command_str.emit("get "+item+"\r\n") |
|
|
self.command_str.emit("get "+item+"\r\n") |
|
|
self.command_str.emit("con "+item+"\r\n") |
|
|
self.command_str.emit("con "+item+"\r\n") |
|
|
|
|
|
self.mqtt_str_quiet.emit(self.user," converted " + item ) |
|
|
try: |
|
|
try: |
|
|
self.local_items.remove(item_l) |
|
|
self.local_items.remove(item_l) |
|
|
except: |
|
|
except: |
|
|
@ -555,6 +557,7 @@ class mutant(QWidget): |
|
|
if result.find("You suffer") != -1: |
|
|
if result.find("You suffer") != -1: |
|
|
self.hits = self.hits + 1 |
|
|
self.hits = self.hits + 1 |
|
|
if self.hits == 2: |
|
|
if self.hits == 2: |
|
|
|
|
|
|
|
|
self.command_str.emit("heal\r\n") |
|
|
self.command_str.emit("heal\r\n") |
|
|
self.command_str.emit("heal\r\n") |
|
|
self.command_str.emit("heal\r\n") |
|
|
self.hits = 0 |
|
|
self.hits = 0 |
|
|
@ -601,6 +604,7 @@ class mutant(QWidget): |
|
|
def script_function(self,function): |
|
|
def script_function(self,function): |
|
|
if function == "DEPOSIT": |
|
|
if function == "DEPOSIT": |
|
|
self.command_str.emit("deposit "+str(self.riblets)+"\r\n") |
|
|
self.command_str.emit("deposit "+str(self.riblets)+"\r\n") |
|
|
|
|
|
self.mqtt_str_quiet.emit(self.user," deposited "+str(self.riblets)+" riblets" ) |
|
|
self.riblets = 0 |
|
|
self.riblets = 0 |
|
|
if function == "STOCK": |
|
|
if function == "STOCK": |
|
|
self.stock_items() |
|
|
self.stock_items() |
|
|
|