Hello i am getting an interesting bug

when i try to open a merchant npc with packet analyzer i can open it but when i try to open it with a plugin i made its stucking npc select screen. With my plugin i can select the npc but i cant open its window. can anyone help ?

from phBot import *
import pyautogui
def sat©:
pyautogui.click(100, 430)
pyautogui.click(100, 430)
def al():
pyautogui.keyDown(“CTRL”)
pyautogui.click(100, 430)
pyautogui.keyUp(“CTRL”)
def npc©:
log(c[1])
if c[1]==“s1”:
calis(0x7045,“8C 00 00 00”)
elif c[1]==“s2”:
calis(0x704B,“8C 00 00 00”)
calis(0x7046,“8C 00 00 00 0C”)
elif c[1]==“s3”:
calis(0x704B,“8C 00 00 00”)
return 0
def malAl©:
al()
return 0
def calis(op,dat):
if dat:
Packet = bytearray()
data = dat.split()
i = 0
while i < len(data):
Packet.append(int(data[i],16))
i += 1
inject_joymax(op,Packet,False)

are you there?

maybe

Use script Commands instead.