-
Posts
56 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by xlDino
-
this might help you get started, PM with any questions
-
Would this fix wilderness ditch warning with webwalking? or do i need my own handler
-
Not true. Post amazon prime bot cleanup day
-
Found this out after hahahahaha
-
This method finds what direction the player is facing based on the previous tile, and assigns it to the 'direction' string. private void checkPlayerDirection() { int currentX = myPlayer().getX(); int currentY = myPlayer().getY(); int deltaX = currentX - previousX; int deltaY = currentY - previousY; if (deltaX == 0 && deltaY == 0) { direction = previousDirection; // Use the previous direction when not moving } else if (deltaX == 0) { direction = deltaY > 0 ? "North" : "South"; } else if (deltaY == 0) { direction = deltaX > 0 ? "East" : "West"; } else if (deltaX > 0) { direction = deltaY > 0 ? "North-East" : "South-East"; } else { direction = deltaY > 0 ? "North-West" : "South-West"; } if (!direction.equals(previousDirection)) { log("Player is facing: " + direction); previousDirection = direction; } } onStart previousX = myPlayer().getX(); previousY = myPlayer().getY(); onLoop checkPlayerDirection(); previousX = myPlayer().getX(); previousY = myPlayer().getY(); Variables int previousX; int previousY; String direction; String previousDirection; Usage if(direction == "North") { //do something }
-
Check which way the player is facing? Not the compass, the player.
xlDino replied to saintpaul1's topic in Scripting Help
-
public void projectilePrayerSwitch() { for (Projectile p : projectiles.getAll()) { if (p.getId() == 2176) { log("NPC attacked with magic!"); prayer.set(PrayerButton.PROTECT_FROM_MAGIC, true); } else if (p.getId() == 2178) { log("NPC attacked with ranged!"); prayer.set(PrayerButton.PROTECT_FROM_MISSILES, true); } } } and animations public void animationPrayerSwitch() { // Iterate over all NPCs for (NPC npc : npcs.getAll()) { // Get the current animation ID of the NPC int animationId = npc.getAnimation(); // Check if the NPC is attacking with magic if (animationId == 711) { log("NPC attacked with magic!"); // Activate Protect from Magic prayer.set(PrayerButton.PROTECT_FROM_MAGIC, true); } // Check if the NPC is attacking with ranged else if (animationId == 249 || animationId == 250) { log("NPC attacked with ranged!"); // Activate Protect from Missiles prayer.set(PrayerButton.PROTECT_FROM_MISSILES, true); } } }
-
Yea, not the average rs player. Bot to simulate the average player, not the top 0.1% and your bans WILL decrease
-
Currently 70+ agility on multiple accounts. Bans are at an all time low using stealth mode + new mouse. If botting agility you should babysit and only bot 20-30mins at a time, with frequent breaks. Would you sit and do 3 hours of agility irl?
-
Any chance to add family crest for goldsmith gauntlets?
-
Got it figured out, script is running flawlessly now! Not using ibans
-
Long term user here, I'm looking to make a script. It will be fully open source, and community lead. So for starters, are there any niche's that could be filled? What would be a good start that's not been done to death? Hopefully this is the start of something great!
-
No support for ibans staff/rune pouch?
-
Does script support the agility shortcut?
-
Script is taking a long time to startup. Wont show correct XP gained in combat skill, and wont alch cause it thinks im out of nature runes (they're in my rune pouch)! Just thought i'd let you know
-
Could I get a trial please?
-
Title says it all! willing to use a middleman looking for $25 CAD pm me on discord xlDino#8544