Who is help me ?
Grab the code with xpackettool and add it to the script.
Hocam nasıl yapabilrim ? Biraz daha aydınlatır mısın beni ?
Nasıl yapacağıma dair hiç bir fikrim yok.
I dont know. How to make this. Please help me
xpackettool araştır. kod yakalamayı öğren ve oluşturmuş olduğun kervan scriptine yapıştır. Dene
Kanka elimde şöyle bir kod var. Daha önce ki oynadıgım serverdan kalma bir arkadaş yardımcı olmuştu gene buradan. Sorun şu ki bu serverda ki confirm tıklatma olayını nasıl yapacağımı bilmiyorum. Sen biliyorsan sana zahmet yardımcı olur musun ? Çok sevinirim gerçekten.
from phBot import * import phBotChat from time import sleep import urllib.request # Return string containing the kervankey def getKervanKey(): # Try to get KervanKey from url key = loadKervanKeyFromSite() # Checking success through phBot if key: log(“Plugin: KervanKey has been extracted [”+key+"]") else: log(“Plugin: KervanKey not found”) return key # Load website to extract the key def loadKervanKeyFromSite(): # Emulating a quick browser to open google docs req = urllib.request.Request(“https://www.joysro.net/code.php”, headers={‘User-Agent’ : “Mozilla/5.0 (Windows NT 6.2; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0”}) # Getting stream resp = urllib.request.urlopen(req) # Getting data html = str(resp.read().decode(“utf-8”)) # Extracting data from excel (CSV format) index = html.find(’
’) if index != -1: return html[index+4:].split("
")[0] return “” # All chat messages received are sent to this function def handle_chat(t, player, msg): if player: if player == “JOYCONTROL” and “joysro.net” in msg: sleep(1.0) phBotChat.Private(player,getKervanKey()) # Success at loading log(“Plugin: xKervanKey v0.1.0 successfully loaded.”) getKervanKey() # Just for testing purpose
Nasıl bir değişiklik yapıcam bu kodlar da hiç bir fikrim yok sen biliyorsan sevinirim dediğim gibi.
xPacketTool a bakındım biraz böyle bir kod buldum.
Button “Add” clicked
def btnAddOpcode_clicked():
# parse to HEX or fail trying
opcode = int(QtBind.text(gui,tbxOpcodes),16)
if opcode and not lstOpcodes_exists(opcode):
data = {}
if os.path.exists(getConfig()):
with open(getConfig(),“r”) as f:
data = json.load(f)
# Add or Create opcode into the list
if “Opcodes” in data:
data[“Opcodes”].append(‘0x{:02X}’.format(opcode))
else:
data[“Opcodes”] = [‘0x{:02X}’.format(opcode)]
with open(getConfig(),“w”) as f:
f.write(json.dumps(data, indent=4, sort_keys=True))
QtBind.append(gui,lstOpcodes,‘0x{:02X}’.format(opcode))
# saved successfully
QtBind.setText(gui, tbxOpcodes,"")
log(“Plugin: Added opcode [0x”+’{:02X}’.format(opcode)+"]")
Kervan alırken ekran da confirm penceresi açılıyor ona tıklamamızı istiyor her seferin de. Onu nasıl buraya yaparım hiç bir fikrim yok
Who is help me ? I need help.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.