Dexter Bots 9 Share Posted December 29, 2023 Hello dear community, I wanted to ask why there are no bots for the Abyss, let alone how one can interact with the Zamorak Mage for teleportation via script. NPC.interact doesn't seem to work; could it be due to that? Link to comment Share on other sites More sharing options...
xyz111 81 Share Posted December 29, 2023 (edited) Show code? Do you have abyss requirement unlocked? Edited December 29, 2023 by xyz111 Link to comment Share on other sites More sharing options...
Dexter Bots 9 Author Share Posted December 29, 2023 (edited) Hi case IntaractWithMagier: // Mage of Zamorak if (Navigation.ZamorakMagier_Area.contains(Players.getLocal().getTile())) { NPC ZamorakMagier = NPCs.closest(Navigation.Zamorak_Magier); if (ZamorakMagier != null) { ZamorakMagier.interact("Teleport"); // Hier kannst du weitere Aktionen hinzufügen, die nach der Interaktion mit dem Magier ausgeführt werden sollen. } } break; Yes i have. The rune crafting process, including teleporting out with a ring to Ferox Enclave, then proceeding to the chest to handle banking, and passing through the barrier to the Zamorak Mage area, all runs smoothly (Abyss is still in development). However, when it comes to interacting with the Zamorak Mage, he simply does not respond. I have attempted various options, and the cases should ideally be executed and passed cleanly in the main script. This is the other Option: but cant find an Import case IntaractWithMagier: // Mage of Zamorak if (Navigation.ZamorakMagier_Area.contains(Players.getLocal().getTile())) { NPC ZamorakMagier = NPCs.closest(Navigation.Zamorak_Magier); if (ZamorakMagier != null) { String[] dialogues = ZamorakMagier.getDialogues(); if (dialogues.length >= 2) { ZamorakMagier.interact(dialogues[1]); // Wähle die 2. Option im Dialog } else { Alternative implementieren, falls es nicht genug Dialogoptionen gibt } // weitere Aktionen } } break; Edited December 29, 2023 by DexterMacro Link to comment Share on other sites More sharing options...
Dexter Bots 9 Author Share Posted December 29, 2023 Pretty funny, everything else worked except this one thing. In the end, it was all correct, except that the player wasn't allowed to animate themselves even though it was allowed. How can this be bypassed? case WalkingToMagier: if (!Players.getLocal().isMoving()) { Walking.walk(Navigation.ZamorakMagier_Area); Logger.log("Walking to Magier"); } break; case IntaractWithMagier: // Mage of Zamorak if (!Players.getLocal().isAnimating() && !Players.getLocal().isMoving()) { NPC Magier = NPCs.closest(Navigation.Zamorak_Magier); Logger.log("Interact with Magier"); if (Magier != null) { Magier.interact("Teleport"); sleep(1200); } // Hier kannst du weitere Aktionen hinzufügen, die nach der Interaktion mit dem Magier ausgeführt werden sollen. } break; Link to comment Share on other sites More sharing options...
MaximusPrimo 59 Share Posted December 29, 2023 The interact looks correct. I'm going to assume the Zamorak_Magier is returning null. Link to comment Share on other sites More sharing options...
Dexter Bots 9 Author Share Posted December 29, 2023 (edited) so it work and teleporting in Abys and now more scripting for de finish (Mine Rock or Gap) then use Nature Rift and Craft and Tele Back then is for forst finish) I'll then put a demo online case WalkingToMagier: if (!Players.getLocal().isMoving()) { Walking.walk(Navigation.ZamorakMagier_Area); Logger.log("Walking to Magier"); } break; case IntaractWithMagier: // Mage of Zamorak if (!Players.getLocal().isAnimating() && !Players.getLocal().isMoving()) { NPC Magier = NPCs.closest(Navigation.Zamorak_Magier); Logger.log("Interact with Magier"); if (Magier != null) { Magier.interact("Teleport"); sleep(1200); } // Hier kannst du weitere Aktionen hinzufügen, die nach der Interaktion mit dem Magier ausgeführt werden sollen. } break; Edited December 29, 2023 by DexterMacro Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now