You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
- « previous
- 1
- 2
- 3
- next »
![]() |
|||||||
---|---|---|---|---|---|---|---|
|
Log in to see images!
I SHOULD GET A PEEN FOR THIS OR SOMETHING IDK |
||||||
Posted On: 07/31/2011 3:12PM | View Johnald The Robo...'s Profile | # | ||||||
|
aldo give him all the peens |
||||||
Posted On: 07/31/2011 3:20PM | View bobdisgea's Profile | # | ||||||
|
Just reporting back that everything works and wondering why im happy i can play fwz again. |
||||||
Posted On: 07/31/2011 3:39PM | View bobdisgea's Profile | # | ||||||
|
Log in to see images!
OOOOOH I WONDER WHAT THIS SCRIPT DOES~ |
||||||
Posted On: 07/31/2011 3:45PM | View Johnald The Robo...'s Profile | # | ||||||
|
Hmm. I can’t click on “Install” to install anymore in Mozilla. Opens up the text of the script. Can you write a script to install scripts please? |
||||||
Posted On: 07/31/2011 4:15PM | View Bacchus's Profile | # | ||||||
|
Bacchus Posted:
Do you have Greasemonkey enabled? I think that was my problem. |
||||||
Posted On: 07/31/2011 5:46PM | sdgrbbum09 | # | ||||||
|
Johnald The Robot Posted:
alt that probably doesnt work because its probably out of date who cares i’m certainly not going to test it…
// ==UserScript== // @name VisitBot V2 // @namespace derp // @description bot that runs visits for you. // @include */forums/battle/* // ==/UserScript== // DO NOT REDO THE TOOLBAR WITH THIS SCRIPT ACTIVE IT WILL PROBABLY GET SAD // this is the wait time between threads. it needs to be enough that the server doesnt get mad. var wait = 1000; //milliseconds /* todo: - check if attacks have enough secondary to be used - use consumables */ var numthreads = getNumThreads(); var pwnedthreads = 0; var moveHistory = new Array(); // get the number of threads in the forum function getNumThreads() { return dogreat timesent.getElementById("thread_list").getElementsByTagName("a").length; } // move on to the next thread based off how many have been pwned. function goToNextThread() { if (numthreads>pwnedthreads) { var func = dogreat timesent.getElementById("thread_list").getElementsByTagName("a")[numthreads-pwnedthreads-1].attributes.getNamedItem("onclick").value; func = func.substring(0, func.indexOf(";")); eval("unsafeWindow."+func); } } // gets the number of items in your toolbar function getNumToolbarItems() { var items = dogreat timesent.getElementById("toolbar_items").getElementsByTagName("div"); var count = 0; for (var i = 0; i<items.length; i++) if (items[i].attributes.getNamedItem("id").value.indexOf("toolbar_item")>-1) count++; return count; } // returns an array of the valid attacks: index = toolbar spot, value = true if available. function getEnabledAttacks() { var attacks = new Array(); var validAttacks = new Array(); for (var i = 0; i < getNumToolbarItems(); i++){ attacks[i] = dogreat timesent.getElementById("toolbar_item_"+i); if (attacks[i].attributes.getNamedItem("clbum").value == "item disabled") validAttacks[i]=false; else validAttacks[i]=true; } return validAttacks; } // returns an array of attack MINIMUM damage function getAttackMinDmg() { var attacks = new Array(); var minDmgs = new Array(); var s = ""; for (var i = 0; i < getNumToolbarItems(); i++){ attacks[i] = dogreat timesent.getElementById("toolbar_item_"+i).getElementsByTagName("img")[1]; s = attacks[i].attributes.getNamedItem("alt").value; if (s.indexOf("AFK") > -1) { minDmgs[i] = 0; continue; } if (s.indexOf("Attack -") > -1 || s.indexOf("Attack") < 0) { minDmgs[i] = NaN; continue; } for (var x = 0; x < s.length; x++) if (!isNaN(parseInt(s[x]))) break; s= s.substr(x); minDmgs[i] = parseInt(s); } return minDmgs; } // get the number of turns before each attack is available function getAttackNumTurns() { var attacks = new Array(); var turns = new Array(); for (var i = 0; i < getNumToolbarItems(); i++){ attacks[i] = dogreat timesent.getElementById("toolbar_item_"+i).getElementsByTagName("a")[0]; if (attacks[i].attributes.getNamedItem("turns")) { turns[i] = attacks[i].attributes.getNamedItem("turns").value; } else turns[i] = NaN; } return turns; } // gets the best attack // needs to account for line noise type things function getBestAttack() { var attacks = getEnabledAttacks(); var damages = getAttackMinDmg(); var goodOnes = new Array(); var x = 0; for (var i = 0; i< attacks.length; i++) { if (attacks[i] && !isNaN(damages[i])) { goodOnes[x]=new Array(2); goodOnes[x][0] = damages[i]; goodOnes[x][1] = i; x++; } } //GM_log("goodones = " +goodOnes); var td = -1; var t = -1; for(var q = 0; q < goodOnes.length; q++) { if(goodOnes[q][0]>td) { td=goodOnes[q][0]; t=goodOnes[q][1]; } } if(t==9) t= 0; else if(t==-1) {} // do nothing else t=t+1; moveHistory.push(t); return t; } // boolean whether or not the thread needs another attack function needsMoreAttack() { var pwnageElement = dogreat timesent.getElementById("enemy_property_bar_pwnage"); var totalPwnage = parseInt(pwnageElement.attributes.getNamedItem("maximum_value").value); var currentPwnage = parseInt(pwnageElement.attributes.getNamedItem("current_value").value); var b = (currentPwnage < totalPwnage) return b; } // run when battle log appended with stuff. function botTasticFunk(event) { var line = event.target.innerHTML; if (line.indexOf("entered")>-1) { window.setTimeout(oneAttack, (wait)) return; } if (((line.indexOf("lost") >- 1) || (line.indexOf("missed") >- 1)) && needsMoreAttack()){ window.setTimeout(oneAttack, (wait)); return; } if (line.indexOf("pwned")>-1) { pwnedthreads++; window.setTimeout(goToNextThread, wait); return; } if (pwnedthreads >= numthreads) { // move history numbers are toolbar location GM_log("Thread? Dead. Move history: " + moveHistory); window.setTimeout(goAway, wait * 2); return; } //GM_log("nothing on this line: " + line); } function oneAttack() { var attack = getBestAttack(); if (attack < 0) { // there's a bug in getBestAttack that if the toolbar hasn't gone active it breaks. // this will re-call it until the toolbar has gone active properly. window.setTimeout(oneAttack, (wait)); return; } unsafeWindow.Toolbar.select_toolbar(attack); } function goAway() {window.location.href = "/bookmarks"} if (window.location.href.indexOf("forumwarz")>-1) { dogreat timesent.getElementById('log_list').addEventListener("DOMNodeInserted",botTasticFunk, false); var visits_left = dogreat timesent.getElementById('visits_left').attributes.getNamedItem("style"); if (!visits_left) { goToNextThread(); } } |
||||||
Posted On: 07/31/2011 7:10PM | View aSh-gangSTA-685's Profile | # | ||||||
|
Log in to see images! TUBSWEETIE edited this message on 09/20/2011 1:49AM |
||||||
Posted On: 07/31/2011 7:23PM | View TUBSWEETIE's Profile | # | ||||||
|
Log in to see images! TUBSWEETIE edited this message on 09/20/2011 1:48AM |
||||||
Posted On: 07/31/2011 7:25PM | View TUBSWEETIE's Profile | # | ||||||
|
Johnald The Robot Posted:
Make it not get stuck in an endless loop when you run out of douchebaggery/sexiness/whatever the **** the others are. |
||||||
Posted On: 08/01/2011 12:14AM | View Ricket's Profile | # | ||||||
|
Ricket Posted:
tia |
||||||
Posted On: 08/01/2011 12:15AM | View Ricket's Profile | # | ||||||
|
johnald if you have some time would you mind looking at a couple more? http://userscripts.org/scripts/show/55892 |
||||||
Posted On: 08/01/2011 10:29AM | View bobdisgea's Profile | # | ||||||
|
|||||||
Posted On: 08/01/2011 2:02PM | View Joseph of Suburb...'s Profile | # | ||||||
|
|||||||
Posted On: 08/01/2011 2:45PM | View Aldo_Anything's Profile | # | ||||||
|
Could those who use it test, if the forum Clubbed Penquin is working with the script? |
||||||
Posted On: 08/07/2011 10:39AM | View Aldo_Anything's Profile | # | ||||||
|
Aldo_Anything Posted:
use what |
||||||
Posted On: 08/07/2011 12:35PM | View bobdisgea's Profile | # | ||||||
mY m4n’s t4lk1n9 4b0u7 th3 Streak Marker 5cr1p7. l00kin9 1ik3 7hi5: addForum("Church of Saiyantology", 95, "????1??", "34251"); addForum("Clubbed Penquin", 312, "????1??", "10524"); addForum("Coffee-Shop Authors' Guild", 276, "????1??", "31524"); |
|||||||
Posted On: 08/07/2011 4:37PM | View Karl Koch's Profile | # | ||||||
|
Ricket Posted:
I WASN’T GOING TO DO THIS **** YOU
DONE |
||||||
Posted On: 08/07/2011 8:21PM | View Johnald The Robo...'s Profile | # | ||||||
|
In Spite Of Posted:
THIS ONE WORKS PRETTY WELL OTHER THAN THE PART WHEN A FORUM HEALS ITSELF IT JUST STAYS THERE AND DOES NOTHING. ALSO A LITTLE LESS NAIIVE WITH THE ATTACKS
|
||||||
Posted On: 08/07/2011 9:20PM | View Johnald The Robo...'s Profile | # | ||||||
|
TO ALL THOSE PEOPLE ****ING THAT THEY WANT THE GREASEMONKEY SCRIPTS WORKING IN CHROME OR SOMETHING MAKE SURE YOU HAVE TAMPERMONKEY INSTALLED BEFORE INSTALLING THE SCRIPT
https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo
NOT CHECKED ON ALL THE SCRIPTS BUT A LOT OF THEM SEEM TO WORK WITH THIS ONE |
||||||
Posted On: 08/21/2011 4:56PM | View Johnald The Robo...'s Profile | # | ||||||
- « previous
- 1
- 2
- 3
- next »