Tuesday, February 9th 2010, 8:20pm UTC+1

You are not logged in.

  • Login
  • Register

Mushroorn

Raideur

Date of registration: Dec 10th 2005

Posts: 441

Gender: male

1

Wednesday, December 12th 2007, 2:43am

affiche le deutérium consommé lors d'une expédition ou un stationnement chez un allié

Description : Actuellement la dernière page ne permet pas de connaître la quantité de carburant réellement consommée par notre flotte en expédition ou en stationnement chez un allié. Ce script affiche la quantité de deutérium qui sera consommée par la flotte pendant la durée de stationnement sélectionnée.

Cliquer ici pour installer

AVANT


APRES


Si vous appréciez cet outil merci de ne pas poster "c'est super" ou "c'est bien" ou tout autre message inutile. Si vous voulez aider, notez le sujet tout en bas.
Tout message de flood ou sans interêt sera sanctionné sans hésitation par un avertissement
1 2

This post has been edited 5 times, last edit by "Mushroorn" (Dec 12th 2007, 3:36pm)

  • Go to the top of the page

Date of registration: Mar 13th 2007

Posts: 1,105

Gender: male

Location: france ^^ dans le chn'ord

2

Wednesday, December 12th 2007, 3:06am

merki :D il fonctionne nikel cher moi :)




Uni 42: top 400:admin: " Reprise le 24/09/08 après 3 mois d'arrêt d'ogame":j4d3:

  • Go to the top of the page

kwijibo

Diplomate

Date of registration: May 10th 2005

Posts: 617

Gender: male

Location: Chicoutimi/québec

3

Wednesday, December 12th 2007, 5:22am

genial ^^

mais

quand je clique sur ton lien d'installation, ca m'ouvre un onglet sur firefox page blanche avec ce texte la

Quoted

// ==UserScript==
// @name OGame : Holding Consumption
// @author Black Cat
// @description OGame : Holding Consumption
// @include http://*/game/index.php?page=flotten3*
// @exclude
// ==/UserScript==

(function(){

var select = document.evaluate("//select/option[@value='1']/..", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;
if (select) {
deut_cost = new Array(); //Deuterium Costs for Hold Mission (per hour)
deut_cost["202"] = 5; //Small Cargo
deut_cost["203"] = 5; //Large Cargo
deut_cost["204"] = 2; //Light Fighter
deut_cost["205"] = 7; //Heavy Fighter
deut_cost["206"] = 30; //Cruiser
deut_cost["207"] = 50; //Battleship
deut_cost["208"] = 100; //Colony Ship
deut_cost["209"] = 30; //Recycler
deut_cost["210"] = 0.1; //Espionage Probe
deut_cost["211"] = 100; //Bomber
deut_cost["212"] = 0; //Solar Satellite
deut_cost["213"] = 100; //Destroyer
deut_cost["214"] = 0.1; //Deathstar
deut_cost["215"] = 25; //Battlecruiser

var cost_per_hour = 0;
for (var i = 200; i < 220; i++) {
shipcount = document.getElementsByName("ship" + i)[0];
if (shipcount)
cost_per_hour += shipcount.value*deut_cost;
}

select.parentNode.setAttribute("colspan","2");
var th = document.createElement("th");
th.setAttribute("id","total_deut_cost");
select.parentNode.parentNode.appendChild(th);
var script = "javascript:document.getElementById('total_deut_cost').innerHTML=tsdpkt(consumption()+Math.floor(this.value*" + cost_per_hour + "));";
select.setAttribute("onchange",script);
select.setAttribute("onkeyup",script);
var options = select.getElementsByTagName("option");
for (var i = 0; i < options.length; i++) {
options[i].setAttribute("onmouseover",script);
}
document.body.setAttribute("onload","javascript:document.getElementById('total_deut_cost').innerHTML=tsdpkt(consumption()+Math.floor(document.getElementById('content').getElementsByTagName('select')[0].value*" + cost_per_hour + "));");
}
})();


on fait comment pour installer ce genre de scripts? merci!
[L.D] Uni 6

Lunes recues: 3

Lunes Crées :

Involontairement a l'ennemi: une trentaine par accident -.-

Volontairement aux alliés : 3-4 avec acharnement -_-
  • Go to the top of the page

Date of registration: Apr 24th 2006

Posts: 1,602

Gender: male

Location: Univers 41 et 52

4

Wednesday, December 12th 2007, 6:43am

RE: affiche le deutérium consommé lors d'une expédition

Très bon script.

Quoted

Mushroorn a écrit :

PS : je n'ai pas pu tester sur un univers avec attaque groupée ou on peut stationner chez un allié. Je suppose que comme pour les expéditions on ne sait pas combien de deutérium on consomme suivant le temps de stationnement. Il est possible que mon script fonctionne également mais pas sur ?(


Pour ce qui est des stationnement sur une planète alliée , ton script marche parfaitement, autant pour les expéditions que pour les stationnements.
  • Go to the top of the page

didoman

Diplomate

Date of registration: Dec 1st 2005

Posts: 843

Gender: male

Location: Entre ici -><- et là -><-

5

Wednesday, December 12th 2007, 7:36am

faut déja avoir installé greasemonkey avant
en cliquant sur https://addons.mozilla.org/fr/firefox/addon/748

sinon c'est un trés bon script bravo d'y avoir pensé

Uni 22 : Retraité

This post has been edited 2 times, last edit by "didoman" (Dec 12th 2007, 7:38am)

  • Go to the top of the page

Mushroorn

Raideur

Date of registration: Dec 10th 2005

Posts: 441

Gender: male

6

Wednesday, December 12th 2007, 7:44am

ok clement134 merci d'avoir testé pour le stationnement chez un allié ;)
1 2
  • Go to the top of the page

albertus

Apprenti

Date of registration: Sep 30th 2007

Posts: 120

Location: from the out of space

7

Wednesday, December 12th 2007, 3:18pm

Super très utile ce script parce des fois on avait des surprises lors des stationnement prolonger.
fait nous en plein d'autres script super boulot.
:clap: :clap: :clap: :clap:
  • Go to the top of the page

Date of registration: Sep 19th 2007

Posts: 833

Gender: male

8

Wednesday, December 12th 2007, 4:58pm

+10 tres bon script ;) merci

Ex top 80 uni 50 sans forcer
  • Go to the top of the page

Sagawa

Colon

Date of registration: Mar 2nd 2006

Posts: 1,057

9

Wednesday, December 12th 2007, 5:18pm

10/10 très bon travail. Il est juste dommage que les joueurs doivent le faire a la place de la gf.
Les recycleurs recrutent pour l'univers 72 [Gemini]. Candidature sur notre Forum.
Top 20 Univers 38
  • Go to the top of the page

Diomede

Apprenti

Date of registration: Oct 30th 2007

Posts: 100

Gender: male

Location: U.W.1

10

Friday, December 14th 2007, 11:41pm

Script très ontéréssent
  • Go to the top of the page

Mushroorn

Raideur

Date of registration: Dec 10th 2005

Posts: 441

Gender: male

11

Saturday, December 15th 2007, 12:08am

l'idée est en cours de discution par le groupe suggestion (en interne)
1 2

This post has been edited 1 times, last edit by "Mushroorn" (Dec 15th 2007, 12:09am)

  • Go to the top of the page

Date of registration: Apr 24th 2006

Posts: 1,602

Gender: male

Location: Univers 41 et 52

12

Saturday, December 15th 2007, 9:22am

Tu ne saurais pas pourquoi chez moi, la consommation de deutérium est écrite en blanc alors que sur ton screenshot , elle est écrite en vert ?
  • Go to the top of the page

Date of registration: Mar 13th 2007

Posts: 1,105

Gender: male

Location: france ^^ dans le chn'ord

13

Saturday, December 15th 2007, 12:54pm

tout simplement car il a fait une mise a jour :rolleyes:




Uni 42: top 400:admin: " Reprise le 24/09/08 après 3 mois d'arrêt d'ogame":j4d3:

  • Go to the top of the page

Date of registration: Apr 24th 2006

Posts: 1,602

Gender: male

Location: Univers 41 et 52

14

Saturday, December 15th 2007, 2:35pm

Quoted

call of duty a écrit :
tout simplement car il a fait une mise a jour :rolleyes:


Ok dans ce cas, la, cela serait bien de prévenir quand il y as une nouvelle mise à jours.
  • Go to the top of the page

lemort

Lieutenant

Date of registration: Feb 23rd 2006

Posts: 3,137

Location: ici ou la ...

15

Saturday, December 15th 2007, 4:24pm

bonjour j'ai une question a propos de ce script, comment fai il pour savoir le nom de vaisseau que l'on a envoyé ?

pack de scripts pour ogame : lien et description
  • Go to the top of the page

Mushroorn

Raideur

Date of registration: Dec 10th 2005

Posts: 441

Gender: male

16

Saturday, December 15th 2007, 6:33pm

@clement134 : pour un simple changement de couleur j'ai pas trouvé ca nécessaire de poster :D

@lemort : le nombre de vaisseaux envoyés est caché dans le code source de la page :p
1 2
  • Go to the top of the page

lemort

Lieutenant

Date of registration: Feb 23rd 2006

Posts: 3,137

Location: ici ou la ...

17

Saturday, December 15th 2007, 6:51pm

alors tu vien de trouver un nouvel utilisateur pour ton script :D
beau travail

pack de scripts pour ogame : lien et description
  • Go to the top of the page

God of War

Apprenti

Date of registration: Oct 28th 2007

Posts: 62

Gender: male

Location: Entrain d'asstiquer mon EDLM

18

Saturday, December 22nd 2007, 6:19pm

Très bon script
Uni13:Top1000
Uni55: Top 700 sa avance :]

_______________________
  • Go to the top of the page

Date of registration: Jul 18th 2006

Posts: 26

Gender: male

19

Saturday, December 22nd 2007, 7:51pm

Une simple petite question, ce script, il inclue le changement de consommation de deutérium pour les quelques vaisseaux concerné ?

Image :


  • Go to the top of the page

aurele13

Diplomate

Date of registration: May 23rd 2007

Posts: 732

Gender: male

Location: Je vends un vaisseau de bataille pas chére !

20

Saturday, December 22nd 2007, 8:30pm

Comment fait t'on pour l'installé ?
Y a t'il autre chose a téléchargé avant ?
-43 .KILLER. top 34 arété / Hof : pouaaaa...
-53 .KILLER. top 450--->700 en cours / Hof : 5...


  • Go to the top of the page