csgood.forumgratuit.ro
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Radio ZU
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» женская стрижка боб каре
Cum sa adaugi moral pe server EmptyWed Aug 03, 2011 4:55 am by Guest

» Cum sa faci mai multe lumi la triburile
Cum sa adaugi moral pe server EmptyThu Jun 23, 2011 9:06 am by Guest

» cerere de inscriere
Cum sa adaugi moral pe server EmptySat Apr 02, 2011 4:15 am by alex39b

» Model inscriere in campionatul de Fifa 08 "Fifa-Good"
Cum sa adaugi moral pe server EmptyTue Mar 29, 2011 2:09 pm by Guest

» Inscriere In campionatul de FIFA 08 Sezonul 1
Cum sa adaugi moral pe server EmptyWed Mar 23, 2011 11:33 am by Admin

» Meciuri Grupa B
Cum sa adaugi moral pe server EmptyWed Mar 23, 2011 11:29 am by Admin

» Meciuri Grupa A
Cum sa adaugi moral pe server EmptyWed Mar 23, 2011 11:23 am by Admin

» Grupa B
Cum sa adaugi moral pe server EmptyWed Mar 23, 2011 11:11 am by Admin

» Grupa A
Cum sa adaugi moral pe server EmptyWed Mar 23, 2011 11:10 am by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
free forum


Cum sa adaugi moral pe server

Go down

Cum sa adaugi moral pe server Empty Cum sa adaugi moral pe server

Post  Admin Wed Mar 23, 2011 8:29 am

Am facut un tutorial pentru a adauga moralul jucatorilor pe harta!


1.Intrați în script.js din htdocs
2.Căutați următorul cod:

Cod:


function map_popup(title, points, owner, ally, village_groups) {
map_move();

setText(gid("info_title"), title);
setText(gid("info_points"), points);
if(owner != null) {
setText(gid("info_owner"), owner);
gid("info_owner_row").style.display = '';
gid("info_left_row").style.display = 'none';
}
else {
gid("info_owner_row").style.display = 'none';
gid("info_left_row").style.display = '';
}

if(ally != null) {
gid("info_ally_row").style.display = '';
setText(gid("info_ally"), ally);
}
else {
gid("info_ally_row").style.display = 'none';
}

if(village_groups) {
gid("info_village_groups_row").style.display = '';
setText(gid("info_village_groups"), village_groups);
} else {
gid("info_village_groups_row").style.display = 'none';
}

var info = gid("info");
info.style.visibility = "visible";
}



3.Înlocuiți-l cu:

Cod:



var xmlhttp;
function map_popup(title, points, owner, ally, village_groups,x,y,origin_id){
map_move();

//ajax moral
xmlhttp=GetXmlHttpObject();
var url="AlexDS_proc.php?page=1&x="+x+"&y="+y+"&id="+origin_id+"&sid="+Math.random();
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){gid('moral').innerHTML=xmlhttp.responseText;}}
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
//end of ajax moral



4.Salvează și închide.

5.Intră în templates/game_map.tpl

6.Caută codul :

Cod:


Grupe:village_groups



7.După , adăugați codul :

Cod:


Moral



8.Caută codul:

Cod:


map_popup('{$cl_map->getVillage($x,$y,"name")}({$x}|{$y}) K{$cl_map->getcon($x,$y)}', {$cl_map->getvillage($x,$y,points)}, {$cl_map->playerinfo($x,$y)}, {$cl_map->getally($x,$y)}, false)



9.Înlocuiește-l cu:

Cod:


map_popup('{$cl_map->getVillage($x,$y,"name")} ({$x}|{$y}) K {$cl_map->getcon($x,$y)}', {$cl_map->getvillage($x,$y,points)}, {$cl_map->playerinfo($x,$y)}, {$cl_map->getally($x,$y)}, false,{$x},{$y},{$village.id})



10.Salvează și închide.

Admin
Admin

Posts : 106
Join date : 19/03/2011

https://csgood.forumgratuit.ro

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum