TWLan Forum

Full Version: Statue & Paladin (Richtig!)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
wie ich gesagt habe

Old pro

Ich möchte ja aber die alte Statue^^
"Guten Tag, ich hätte gerne Milch, die abgelaufen ist." Wink
Nicht persönlich nehmen, aber so kommt es grad bei mir an.
Wieso will jemand die alte Grafik?

Was passiert denn, wenn du das Tool einfach mit der alten Grafik installierst?
Wenn du an den Grafiken und an der CSS-Datei nix geändert hast, müsstest du eigentlich nur diese Zeile ersetzen (sollte Zeile 16 sein):
Ort: /htdocs/admin/actions/statue_c.php
Code:
$cl_builds->set_graphicCoords("277,231,256,265,266,285,292,287,306,266");';
Durch diese ersetzen:
Code:
$cl_builds->set_graphicCoords("218, 199, 231, 221, 229, 257, 202, 257, 197, 209");';
Danach Statue einmal deaktivieren und dann wieder aktivieren Wink

LG
Molt
I suspect a syntax error, shouldn't the trailing '; be removed?
No, because it is a string (variable) that starts on a higher row and contains PHP code, as you can see, which is terminated with ; and then the string ends and there should be ';

LG
Molt
Ah I see. Gee, big file, setup_statue.php: 1333 lines! :p
^^
Yes, it contains all statue files, the code to setup or delete it in English and German, so it's quite big Big Grin

LG
Molt
also ich muss zugeben dieses tool war der grund mir 1.4 zu installieren^^

Nur eine Frage:
Wo kann man die Punkte ändern, weil momentan gibt die Statue nur 8 Punkte, bei ds sinds aber 24 Wink
Geh mal in [dslan]/htdocs/include/configs/ in die buildings.php und suche diese Stelle:

PHP Code:
$cl_builds->add_build("Statue","statue");
$cl_builds->set_woodprice("220","1");
$cl_builds->set_stoneprice("220","1");
$cl_builds->set_ironprice("220","1");
$cl_builds->set_bhprice("10","1");
$cl_builds->set_time("600","1");
$cl_builds->set_points("8","1");
$cl_builds->set_needbuilds(array());
$cl_builds->set_maxstage("1");
$cl_builds->set_specials(array());
$cl_builds->set_description("An der Statue huldigen die Dorfbewohner deinem Paladin. Sollte dein Paladin einmal fallen, kannst du hier einen deiner Kämpfer zum neuen Paladin ernennen.");
$cl_builds->set_graphicCoords("277,231,256,265,266,285,292,287,306,266"); 

Ändere dort
PHP Code:
$cl_builds->set_points("8","1"); 

in

PHP Code:
$cl_builds->set_points("24","1"); 
um, dann müsstest du 24 Punkte bekommen. Das ganze habe ich jetzt nicht getestet, müsste aber funktionieren.

Speichern nicht vergessen Wink

edit: Am besten nach der änderung, in localhost/admin nen Reset machen!

mfg
Christian
ABER!
In /htdocs/admin/actions/statue_c.php musst du die Zeile mit den Punkten auch noch ändern!
Sonst ändert sich das beim nächsten Aktivieren wieder!

LG
Molt
templates/game_overview_graphic.tpl could not be found.

das heisst?????


Was soll ich tun?
"DSLan/htdocs/templates/game_overview_graphic.tpl"
Diese Datei existiert offenbar bei dir nicht.

Wo hast du denn den Fehler bekommen? (z.B. setup_statue.php)

LG
Molt
Zeig mal die ganze Fehlermeldung pls.

LG
Molt
statue.php installed
admin/actions/statue.php installed
admin/actions/statue_c.php installed
admin/extern_modules/statue.php installed
admin/templates/index_statue.tpl installed
templates/game_statue.tpl installed
templates/game_overview_graphic.tpl could not be found.

Warning: fopen(templates/game_overview_noGraphic.tpl) [function.fopen]: failed to open stream: No such file or directory in F:\Ds Lan\All in One v1.7\htdocs\setup_statue.php on line 960
templates/game_overview_noGraphic.tpl could not be found.
script.js edited


Install finished
Paladin & Statue Adminpanel

Start
Hä?

http://localhost/setup_statue.php?do=setup

=> Alles reinkopieren was da steht.

LG
Molt
statue.php installed
admin/actions/statue.php installed
admin/actions/statue_c.php installed
admin/extern_modules/statue.php installed
admin/templates/index_statue.tpl installed
templates/game_statue.tpl installed
templates/game_overview_graphic.tpl could not be found.

Warning: fopen(templates/game_overview_noGraphic.tpl) [function.fopen]: failed to open stream: No such file or directory in F:\Ds Lan\All in One v1.7\htdocs\setup_statue.php on line 960
templates/game_overview_noGraphic.tpl could not be found.
script.js edited


Install finished
Paladin & Statue Adminpanel

Start
bei mir ist es so, dass ich den Code nicht finde, weil ich die Seite nicht finde.
You're possibly using an old version. This tool works on 1.4 only.
hat sich schon erledigt
Pages: 1 2 3 4 5