Gladiatus Arena

By m4rtini Last update Feb 20, 2008 — Installed 10,820 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 18 posts, 11 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Dark Simon Scriptwright

Let me know if there is a script that works with all languages. Where can I find it?

 
amadeus_fantasy User

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?

 
frosty22 User

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'); 
}
  		    });

}

 
frosty22 User

Hi,
I use this script, but I probably found the bug. I was watching the data which this script including to the page http://www.gladiatustools.com/calc.php. I find that the values(level, skill, agility...) own person (a) are little similar but incorrect. The values of enemy in arena, which script sending to the simulate are correct.

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.

 
clyps User

Thanks alot Neil Craig.
Works fine now :)
Although it only shows win/draw

Is there anyway to make the script work on the index.php?mod=highscore ?
Tried just adding *gladiatus.se*mod=highscore*, didnt work though :p

 
Neil Craig Scriptwright

To make it work for Gladiatus.com

Step 1:
Go to 'Manage Scripts' and change the 'Included pages' filter from
*gladiatus.no*mod=arena* to your countrycode
(*gladiatus.com*mod=arena*)

Step 2:
Go to the script editor and change the 9th line from

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

 
RecMe User

this script does int work for me :/
p.s. others script working fine

 
RecMe User

but why i can use this script only on 1 server at the same time ?

 
RecMe User

yes man thx a lot !
script over powered :D

 
RecMe User

hey i hawe a problem :
Line:10
Char: 2
error: 'document' is undefined
code: 800A1391
Source: Microsoft JScript runtime error

who can exactly explain how to use this script and all other script ?
thx

 
clyps User

I tried with the html version of ö (&ouml) and i tried changing the content-type to charset=ISO-8859-1 but still no progress grr.

 
clyps User

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

 
m4rtini Script's Author

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.

 
clyps User

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

 
chey User

what the script is supposed to do?
i have installed it and i see no change
ps playing on french server

 
Poilas User

Then i try to load it it pops me an error:

Line:10
Char: 2
error: 'document' is indefined
code: 800A1391
Source: Microsoft JScript runtime error

How could i repair that?

 
Haades User

Great job, thank you m4rtini

For other servers:
Step 1: go to 'Manage Scripts' and change the 'Included pages' filter from
*gladiatus.no*mod=arena* to your countrycode
(*gladiatus.hu*mod=arena*)

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
('Ubersicht' in the original game,
'Áttekintés' in hungarian, 'Oversikt' in norvegian, etc,)

var ex = ".//a[@title='Áttekintés']";

Save script, refresh page, wait for calculate

Thats all :)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel