Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
Let me know if there is a script that works with all languages. Where can I find it? |
|
|
hi,who knows from where i can download this script?i need him only for me.please a lot help me.or who knows script like this?someone who can help me? |
|
|
Ou I found the soulution on this bug -> I try the change variable "url" in function ajax2, and it works, but everybody must include his own url adress:
function ajax2(url, num)
{
GM_xmlhttpRequest({
method: "GET",
url: 'http://s1.gladiatus.cz/game/index.php?mod=overview',
onload: function(responseDetails)
{
pulled = document.createElement('div');
pulled.innerHTML = responseDetails.responseText;
stats[num] = new Array();
stats[num][0] = getStats(pulled, 'char_level');
stats[num][1] = getStats(pulled, 'char_f1');
stats[num][2] = getStats(pulled, 'char_f2');
stats[num][3] = getStats(pulled, 'char_f4');
stats[num][4] = getStats(pulled, 'char_panzer');
dmg = getStats(pulled, 'char_schaden');
stats[num][5] = dmg.split('-')[0].replace(/^\s+|\s+$/g, '');
stats[num][6] = dmg.split('-')[1].replace(/^\s+|\s+$/g, '');
div = doSomethingWithClasses("arena_table")[1];
link = new Array();
link[1] = div.childNodes[1].childNodes[1].childNodes[2].childNodes[3].childNodes[0];
link[2] = div.childNodes[1].childNodes[1].childNodes[4].childNodes[3].childNodes[0];
link[3] = div.childNodes[1].childNodes[1].childNodes[6].childNodes[3].childNodes[0];
link[4] = div.childNodes[1].childNodes[1].childNodes[8].childNodes[3].childNodes[0];
ajax(link[1].href, '1');
ajax(link[2].href, '2');
ajax(link[3].href, '3');
ajax(link[4].href, '4');
}
});
}
|
|
|
Hi,
I dont understand this script too much, but I think that this array are incorrect data: --> I think that num=0 for own person (a).
stats[num][0] = getStats(pulled, 'char_level');
stats[num][1] = getStats(pulled, 'char_f1');
stats[num][2] = getStats(pulled, 'char_f2');
stats[num][3] = getStats(pulled, 'char_f4');
stats[num][4] = getStats(pulled, 'char_panzer');
dmg = getStats(pulled, 'char_schaden');
stats[num][5] = dmg.split('-')[0].replace(/^\s+|\s+$/g, '');
stats[num][6] = dmg.split('-')[1].replace(/^\s+|\s+$/g, '')
Maybe, you can try fix it that way - loading values from page "...index.php?mod=overview" if you know how. If somebody know, how can fix it, I will be happy. I hope that you understand my english. |
|
|
Thanks alot Neil Craig.
Is there anyway to make the script work on the index.php?mod=highscore ?
|
|
|
To make it work for Gladiatus.com Step 1:
Step 2:
var ex = ".//a[@title='Oversikt']"; to var ex = ".//a[substring(@href, 1, 23)='index.php?mod=player&p=']"; Save script, refresh page, wait for calculate |
|
|
this script does int work for me :/
|
|
|
but why i can use this script only on 1 server at the same time ? |
|
|
yes man thx a lot !
|
|
|
hey i hawe a problem :
who can exactly explain how to use this script and all other script ?
|
|
|
I tried with the html version of ö (ö) and i tried changing the content-type to charset=ISO-8859-1 but still no progress grr. |
|
|
Hejsan m4rtini It doesnt return any specific errors from the script. I do get "Unknown setting "filter"" and "Unknown setting "width"" though. But i get those even if i dont run the script. I read somewhere that you can use other characters for Å Ä and Ö though. But since I got no experience with java whatsoever i cant figure it out. Any thoughts? Thanks |
|
|
i don't think the problem lies in the special letter, tho i might be wrong. you should try to open your error console and look for errors. for those with the same error as poilas go download greasemonkey. |
|
|
I changed the needed code as Haades commented, but still I dont see any win or loose texts. Id really like to use this script. I changed .no to .se since im swedish obviously, and the Oversikt to Översikt. Can the problem lie in the Ö letter? Help much appritiated :S |
|
|
what the script is supposed to do?
|
|
|
Then i try to load it it pops me an error: Line:10
How could i repair that? |
|
|
Great job, thank you m4rtini For other servers:
Step2: go to the script editor and change the 9th line from var ex = ".//a[@title='Oversikt']"; to your first top-left menu item names in the game
var ex = ".//a[@title='Áttekintés']"; Save script, refresh page, wait for calculate Thats all :) |