-
Total de itens
27 -
Registro em
-
Última visita
Tipo de Conteúdo
Perfis
Fóruns
Calendário
Publique
Posts postados por davidvietro
-
-
1 hora atrás, Jobs disse:
Não estou podendo logar agora.
Pode me mandar prints dos mapa por e-mail?
-
Procuro Mapper com experiência comprovada, será necessário enviar ou demonstrar projetos já realizados.
Preciso que seja feito lugares de caça, quests e muitas outras funções que envolvem mapping.
Pagamento em dinheiro por serviço realizado.
Contato: [email protected]
-
Olá, estou com um problema no meu site, anteriormente essa barra bugada no topo aparecia só em algumas especificas páginas, dai aparentemente, sem motivo nenhum, começou a aparecer em todas.
(imagem do problema no final do post)
Não sei onde exatamente está o problema então vou publicar meu Header.php e meu Basic.css
Header.php
Citar<html><?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time; ?>
<head><link rel="shortcut icon" href="layout/images/global/general/fasv.ico" type="image/x-icon">
<link rel="icon" href="layout/images/global/general/fasv.ico" type="image/x-icon"><title>Tibia Canob</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Tibia Canob is a high experencie alternative server of game Tibia." />
<meta name="keywords" content="tibia, ot, otserv, canob, canobot, baiak, open tibia," /><link href="layout/styles/basic.css" rel="stylesheet" type="text/css">
<link href="layout/styles/news.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="layout/javascripts/generic.js"></script>
<script type='text/javascript'>
var loginStatus=0;
loginStatus='false';
var activeSubmenuItem='latestnews';
var IMAGES=0; IMAGES='layout/images';
var LINK_ACCOUNT=0;
LINK_ACCOUNT='{$path}/index.php/account';
var g_FormName='';
var g_FormField='';
var g_Deactivated=false;
</script>
<SCRIPT TYPE="text/javascript">
<!-- // Framekiller
setTimeout ("changePage()", 6000);
function changePage()
{
if (parent.frames.length > 2) {
if (browserTyp == "ie") {
parent.location=document.location;
} else {
self.top.location=document.location;
}
}
}
// -->
</SCRIPT>
<script type="text/javascript" src="layout/javascripts/initialize.js"></script>
</head>
<body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();" onLoad="SetFormFocus()">
<a name="top" ></a>
<div id="ArtworkHelper" style="background-image:url(layout/images/global/header/background-artwork.jpg);">
<div id="DeactivationContainer" ></div>
<div id="Bodycontainer" >
<div id="ContentRow">
<?php include 'layout/leftside.php'; ?>
<div id="ContentColumn">
<div id="Content" class="Content">
<div id="ContentHelper">
<div id="news" class="Box">
<div class="Corner-tl" style="background-image:url(layout/images/global/content/corner-tl.gif);"></div>
<div class="Corner-tr" style="background-image:url(layout/images/global/content/corner-tr.gif);"></div>
<div class="Border_1" style="background-image:url(layout/images/global/content/border-1.gif);"></div>
<div class="BorderTitleText" style="background-image:url(layout/images/global/content/title-background-green.gif);"></div>
alt="Contentbox headline" />
<div class="Border_2">
<div class="Border_3">
<div class="BoxContent" style="background-image:url(layout/images/global/content/scroll.gif);">Basic.css
Citarbody {
margin: 0px;
padding: 0px;
background-color: #051122;
}.create {
background: url('images/loginbox-font-create-account.gif');
width: 125px;
height: 12px;
}
.create:hover {
background: url('images/loginbox-font-create-account-over.gif');
width: 125px;
height: 12px;
}#RightArtwork #PlayersOnline a:hover {
text-decoration:none;
}.logout {
background: url('images/loginbox-font-logout.gif');
width: 125px;
height: 12px;
}
.logout:hover {
background: url('images/loginbox-font-logout-over.gif');
width: 125px;
height: 12px;
}.login {
background-image: url('images/_sbutton_login.gif'), url('images/sbutton.gif');
width: 135px;
height: 35px;
}
.login:hover {
background-image: url('images/_sbutton_login.gif'), url('images/sbutton_over.gif'), url('images/sbutton.gif');
background-repeat: no-repeat;
width: 135px;
height: 35px;
}.myaccount {
background-image: url('images/_sbutton_myaccount.gif'), url('images/sbutton.gif');
width: 135px;
height: 35px;
}
.myaccount:hover {
background-image: url('images/_sbutton_myaccount.gif'), url('images/sbutton_over.gif'), url('images/sbutton.gif');
background-repeat: no-repeat;
width: 135px;
height: 35px;
}#online {
color: white;
}#newz a {
color: #909090;
}table {
margin: 10px 0 30px 0;
width: 740px;
color: orange;
}.galleryImage {
max-width: 730px;
}#myaccountTable tr.yellow td, #highscoresTable tr.yellow td, #onlinelistTable tr.yellow td, #guildsTable tr.yellow td, #guildViewTable tr.yellow td, #buypointsTable tr.yellow td, #shopTable tr.yellow td {
color: rgb(200, 200, 200);
}#characterprofileTable tr.yellow td, #housesTable tr.yellow td, #guildwarTable tr.yellow td, #guildwarViewTable tr.yellow td, #supportTable tr.yellow td, #deathsTable tr.yellow td, #killersTable tr.yellow td {
color: rgb(200, 200, 200);
}table tr th, table tr td {
background: #555555;
/*color: #FFF; */
color: #cccccc;
padding: 7px 4px;
text-align: left;
}tr.yellow td {
background: rgb(89, 10, 10);
padding: 7px 4px;
text-align: left;
}
table tr td {
background: rgb(212, 192, 161);
/*color: #FFF; */
border-top: 1px solid #FFF;
}/* guild war */
tr.special:hover td {
background: #cccccc;
}tr.special {
cursor: pointer;
}ul.war_list li {
font-size:18px;
}.OptionContainer input {
vertical-align: middle;
margin: 0px;
margin-right: 3px;
}
.OptionContainer label {
vertical-align: middle;
}
#DeactivationContainer{
position: absolute;
top: 0px;
left: 0px;
z-index: 80;
height: 1300px;
width: 100%;
background-color: black;
filter: alpha(opacity=75);
opacity: 0.75;
-moz-opacity: 0.75;
display: none;
}
#DeactivationContainerThemebox {
position: absolute;
top: 0px;
left: 0px;
z-index: 95;
height: 600px;
width: 100%;
display: none;
}
#ArtworkHelper {
text-align: center;
background-position: top center;
background-attachment: scroll;
background-repeat: no-repeat;
top: 0px;
padding-top:155px;
width: 100%;
height: 100%;
min-width: 1000px;
}/* container to implement min/max width */
#Bodycontainer {
text-align: center;
width: 1200px;
margin: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
display: table;
}.Forum #Bodycontainer {
width: 1200px;
}#MenuColumn {
position: absolute;
width: 180px;
top: 160px;
margin-right: 15px;
margin-left: 15px;
padding: 0px;
font-family: Arial, sans-serif;
font-size: 10pt;
font-weight: bold;
line-height: 12pt;
text-align: left;
}
* html #MenuColumn {
top: 155px;
margin-left: -190px;
}
#ContentColumn {
margin: 0px;
margin-left: 205px;
margin-right: 205px;
text-align: left;
}
* html #ContentColumn {
width: 790px;
}
#ThemeboxesColumn {
text-align: center;
position: absolute;
top: 0px;
right: 0px;
width: 180px;
margin-top: -144px;
margin-left: 15px;
margin-right: -190px;
filter: alpha(opacity=100);
}
* html #ThemeboxesColumn {
top: 5px;
height: 1000px;
}
#Footer {
font-family: Verdana, Arial, Times New Roman, sans-serif;
font-size: 7pt;
font-weight: normal;
text-align: center;
position: relative;
width: 100%;
padding-bottom: 20px;
color: white;
}
* html #Footer {
padding-bottom: 120px;
margin-bottom: 50px;
}/* Footer linkes */
#Footer a:link { color: white; text-decoration: none; }
#Footer a:visited { color: white; text-decoration: none; }
#Footer a:focus { color: white; text-decoration: none; }
#Footer a:active { color: white; text-decoration: underline; }
#Footer a:hover { color: white; text-decoration: underline; }/** -------------------------------
* Stylesheet declarations for the
* HEADER AREA
* -------------------------------
*/#LeftArtwork {
position: absolute;
height: 140px;
width: 166px;
top: -140px;
left: 4px;
background-repeat: no-repeat;
z-index:5;
}#LeftArtwork #TibiaLogoArtworkTop {
position: absolute;
top: -17px;
left: -14px;
height: 158px;
width: 196x;
z-index: 5;
cursor: pointer;
border: 0px;
}#RightArtwork {
text-align: left;
position: absolute;
top: 143px;
right: 24px;
width: 132px;
background-repeat: no-repeat;
z-index: 90;
}#RightArtwork #Monster {
position: absolute;
height: 80px;
width: 80px;
top: -137px;
left: 8px;
z-index: 15;
cursor: pointer;
}#PedestalAndOnline {
position: absolute;
top: -105px;
width: 153px;
height: 107px;
left:-10px;
}#RightArtwork #PlayersOnline {
font-family: Verdana, Arial, Times New Roman, sans-serif;
font-size: 7pt;
line-height: 8pt;
text-align: center;
position: absolute;
width: 92px;
bottom: 11px;
left: 21px;
color: #cfa600;
border-bottom: 1px solid #010101;
cursor: pointer;
}
/** -------------------------------
* Stylesheet declarations for the
* LOGINBOX
* -------------------------------
*/#Loginbox {
position: relative;
left: 5px;
top: 8px;
width: 100%;
margin-bottom: 42px;
background-repeat: no-repeat;
}#Loginbox #LoginTop {
position: absolute;
left: -5px;
top: -12px;
height: 12px;
width: 180px;
background-repeat: no-repeat;
}#Loginbox #LoginBottom {
position: absolute;
top: 52px;
left: -5px;
height: 12px;
width: 180px;
background-repeat: no-repeat;
}#Loginbox .LoginBorder {
position: absolute;
top: 0px;
height: 52px;
width: 8px;
background-repeat: repeat-y;
z-index: 10;
}#Loginbox #BorderRight {
right: 9px;
}#Loginbox .Loginstatus {
position: relative;
top: 0px;
left: 5px;
height: 13px;
width: 160px;
}#Loginbox .LoginstatusText {
position: absolute;
top: 1px;
left: 18px;
width: 124px;
height: 11px;
cursor: pointer;
}#Loginbox #LoginstatusText_1 {
top: 2px;
cursor: default;
}#Loginbox #LoginstatusText_12 {
top: 2px;
cursor: default;
}
#Loginbox #LoginstatusText_2_1 {
visibility: visible;
}#Loginbox #LoginstatusText_2_2 {
visibility: hidden;
}#LoginBox #LoginButtonContainer {
margin-left: 5px;
height: 26px;
width: 160px;
background-repeat: repeat-y;
}#Loginbox #LoginButton {
position: relative;
top: 1px;
left: 12px;
height: 25px;
width: 135px;
}#Loginbox #LoginButton .Button {
position: relative;
top: 0px;
left: 0px;
width: 135px;
height: 25px;
visibility: hidden;
}#Loginbox #LoginButton #ButtonText {
position: absolute;
top: 0px;
left: 0px;
height: 22px;
width: 135px;
z-index: 15;
cursor: pointer;
}
#Loginbox #LoginButton #ButtonText2 {
position: absolute;
top: 0px;
left: 0px;
height: 22px;
width: 135px;
z-index: 15;
cursor: pointer;
}
/** -------------------------------
* Stylesheet declarations for the
* MENU
* -------------------------------
*/#Menu {
position: relative;
left: 5px;
background-repeat: no-repeat;
}#MenuTop {
position: absolute;
left: -5px;
top: -12px;
height: 12px;
width: 180px;
background-repeat: no-repeat;
}#MenuBottom {
position: relative;
left: -5px;
bottom: 0px;
height: 12px;
width: 180px;
background-repeat: no-repeat;
}/* Menuitems */
.MenuButton {
position: relative;
height: 32px;
width: 170px;
display: block;
cursor: pointer;
}.Button {
position: relative;
height: 32px;
width: 170px;
visibility: hidden;
display: block;
}.Extend {
position: absolute;
top: 20px;
right: -2px;
height: 12px;
width: 12px;
background-repeat: no-repeat;
}.Lights {
visibility: hidden;
}.Light_lu {
position: absolute;
top: 2px;
left: 3px;
height: 2px;
width: 2px;
background-repeat: no-repeat;
}.Light_ru {
position: absolute;
top: 2px;
right: 3px;
height: 2px;
width: 2px;
background-repeat: no-repeat;
}.Light_ld {
position: absolute;
height: 2px;
width: 2px;
top: 28px;
left: 3px;
}.Icon {
position: absolute;
height: 32px;
width: 32px;
top: 0px;
left: 8px;
}.Label {
position: absolute;
height: 22px;
width: 116px;
top: 6px;
left: 42px;
}/* Submenus(items) */
.LeftChain {
position: absolute;
top: 0px;
left: -5px;
height: 33px;
width: 7px;
background-repeat: repeat-y;
}.RightChain {
position: absolute;
top: 0px;
right: -4px;
height: 33px;
width: 7px;
background-repeat: repeat-y;
}.Submenu {
position: relative;
margin-left: 5px;
margin-right: 5px;
background-color: #161616;
width: 160px;
}.Submenuitem {
position: relative;
margin: 0px;
padding: 0px;
}.ActiveSubmenuItemIcon {
position: absolute;
background-color: #161616;
top: 5px;
left: 3px;
width: 10px;
height: 10px;
background-repeat: no-repeat;
visibility: hidden;
}.SubmenuitemLabel {
margin: 0px;
border-top: 0;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 15px;
border-bottom: 1px solid #636363;
overflow: hidden;
}/* Submenu links */
.Submenu a:link { color: #d7d7d7; text-decoration: none; }
.Submenu a:visited { color: #d7d7d7; text-decoration: none; }
.Submenu a:focus { color: #d7d7d7; text-decoration: none; }
.Submenu a:active { color: white; text-decoration: none; }
.Submenu a:hover { color: white; text-decoration: none; }/** -------------------------------
* Stylesheet declarations for the
* CONTENT AREA
* -------------------------------
*/.Content .BoxContent {
padding: 10px;
}/* "tanhack" for correction of IE bug */
* html .Content {
top: -5px;
}.Content {
position: relative;
top: 0px;
width: 100%;
z-index: 100;
}/* "star-HTML-hack" to correct the position of the content area */
* html .Content {
position: relative;
top: 796px;
margin: 20px;
border: 0px dashed #051122;
border-right-width: 550px;
}#ContentHelper {
position: relative;
}/* "star-HTML-hack" to to implement min-width in IE */
* html #ContentHelper {
display: inline-block;
position: relative;
top: -800px;
margin: -20px;
margin-right: -570px;
}.Content .Box {
font-size: 0pt;
position: relative;
margin: 5px;
margin-bottom: 18px;
color: #5A2800;
border-left: 2px solid #3a3738;
border-right: 2px solid #3a3738;
background-color: #debb9d;
background-repeat: no-repeat;
overflow: visible;
}.Content .BoxContent {
font-family: Verdana, Arial, Times New Roman, sans-serif;
font-size: 9pt;
background-color: #FFF2db;
color: #5A2800;
min-height: 367px;
height: auto !important;
height: 387px;
}/* "star-HTML-hack" to correct Box width in IE */
* html .Content .Box {
width: 100%;
}
/* "star-HTML-hack" to correct BoxContent width in IE */
* html .Content .BoxContent {
width: 100%;
}.Content th {
font-family: Verdana, Arial, Times New Roman, sans-serif;
font-size: 10pt;
font-weight: bold;
text-align: left;
color: white;
background-color: #505050;
}.Content .BoxContent td {
font-family: Verdana, Arial, Times New Roman, sans-serif;
font-size: 10pt;
color: #5A2800;
}
.Content .BoxContent .yellow td {
font-family: Verdana, Arial, Times New Roman, sans-serif;
font-size: 10pt;
/*color: #5A2800;*/
color: rgb(200, 200, 200);
}/* Content Links */
.Content a {
font-family: Verdana, Arial, Times New Roman, sans-serif;
color: #031251;
font-weight: bold;
text-decoration: none;
}
.Content a:hover {
font-family: Verdana, Arial, Times New Roman, sans-serif;
text-decoration: underline;
color: #031972;
font-weight: bold;
}
.Content .HelpLink {
font-size: 7pt;
cursor: pointer;
}
.TableHeadlineNavigation {
margin-top: 4px;
font-size: 8px;
float: right;
}
.TableHeadlineNavigation a {
color: white;
}
.TableHeadlineNavigation a:hover {
color: white;
}
/* Corners */.Content .Corner-tl {
position: absolute;
top: -4px;
left: -5px;
width: 17px;
height: 17px;
z-index: 50;
}.Content .Corner-tr {
position: absolute;
top: -4px;
right: -5px;
width: 17px;
height: 17px;
z-index: 50;
}.Content .BottomCornersHelper {
position: absolute;
width: 100%;
}.Content .CornerWrapper-b {
position: absolute;
width:100%;
}.Content .Corner-bl {
position: absolute;
bottom: -4px;
left: -6px;
width: 17px;
height: 17px;
z-index: 50;
}.Content .Corner-br {
position: absolute;
bottom: -4px;
right: -6px;
width: 17px;
height: 17px;
z-index: 50;
}/* Borders */
.Content .Border_1 {
position: relative;
height: 6px;
width: 100%;
background-repeat: repeat-x;
}.news {
position: absolute;
top: -1px;
left: 0px;
margin-left: 5px;
margin-right: 5px;
}.date {
font-size: 7pt;
position: absolute;
top: 10px;
left: 50px;
width: 120px;
color: white;
}.name {
position: relative;
top: 7px;
left: 170px;
font-size: 10pt;
font-weight: bold;
color: white;
}.Content .BorderTitleText {
position: relative;
height: 28px;
margin-bottom: 5px;
background-repeat: repeat-x;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
}.Content .Title {
position: absolute;
top: 6px;
left: 5px;
}.Content .Border_2 {
margin: 4px;
padding: 0px;
background-color: #793d03;
}.Content .Border_3 {
margin: 1px;
border-top: 1px solid #793d03;
border-bottom: 1px solid #793d03;
}/** -------------------------------
* Stylesheet declarations for the
* THEMEBOXES of the Tibia
* website
* -------------------------------
*/.Themebox {
position: relative;
margin-bottom: 10px;
top: 140px;
width: 180px;
height: 154px;
}
#Themeboxes div {
font-size: 10pt;
background-repeat: no-repeat;
}
#Themeboxes .ThemeboxButton {
position: absolute;
bottom: 20px;
left: 22px;
height: 25px;
width: 135px;
cursor: pointer;
}
#Themeboxes .Bottom {
position: absolute;
bottom: 0px;
left: 0px;
height: 12px;
width: 180px;
}
/* "star-HTML-hack" to correct the position of the bottom element */
* html #Themeboxes .Bottom {
bottom: -3px;
}
#Themeboxes #NewcomerBox .ThemeboxButton {
bottom: 15px;
}
#Themeboxes #PremiumBox {
height: 164px;
}
#Themeboxes #JobBox {
height: 164px;
}
#Themeboxes #ScreenshotBox #ScreenshotContent {
position: relative;
height: 111px;
width: 170px;
top: 31px;
left: 0px;
margin-left: 5px;
margin-right: 5px;
border: 0;
cursor: pointer;
}
#Themeboxes #CurrentPollBox #CurrentPollText {
font-family: Verdana, Arial, sans-serif;
font-weight: bold;
line-height: 11pt;
color: #5A2800;
position: absolute;
height: 70px;
width: 150px;
top: 37px;
left: 15px;
padding-top: 5px;
overflow: hidden;
}#Themeboxes #FansiteBox {
position: relative;
height: 188px;
}
#Themeboxes #FansiteLogoFrame {
position: relative;
top: 31px;
width: 180;
height: 145px;
}
#Themeboxes #FansiteLogo {
position: relative;
height: 100px;
width: 150px;
top: 8px;
border: 0;
cursor: pointer;
}
#Themeboxes #FansiteBox .ThemeboxButton {
bottom: 19px;
}/** -------------------------------
* OLD Stylesheet declarations for
* the CONTENT AREA
* -------------------------------
*/.Content .BoxContent td .white {
color: #EFEFEF;
visibility: visible;
}.Content .BoxContent td .whites {
color: #EFEFEF;
visibility: visible;
font-size: 9pt;
}.Content .BoxContent .white {
color: #EFEFEF;
visibility: visible;
}.Content .BoxContent td .green {
color: #00BF00;
}.Content .BoxContent td .yellow {
color: #FFBB05;
}.Content .BoxContent td .red {
color: #EF0000;
}.Content .BoxContent td .grey {
color: #808080;
}.Content .BoxContent td .orange {
color: #FF9712;
}/** -------------------------------
* OLD Stylesheet declarations for
* the CONTENT AREA (forum)
* -------------------------------
*/.Content .BoxContent .ff_info {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 10pt;
color : #5A2800;
visibility : visible;
}.Content .ff_white a {
color: #FFFFFF;
}.Content .BoxContent .ff_white {
font-family : Verdana, Arial, Times New Roman, sans-serif;
color : #EFEFEF;
visibility : visible;
font-size : 7pt;
font-weight: bold;
}.Content .BoxContent .ff_red {
font-family : Verdana, Arial, Times New Roman, sans-serif;
color : #EF0000;
visibility : visible;
font-size : 8pt;
font-weight: bold;
}.Content .BoxContent .ff_whitelarge {
font-family : Verdana, Arial, Times New Roman, sans-serif;
color : #EFEFEF;
visibility : visible;
font-size : 9pt;
font-weight: bold;
}.Content .BoxContent .ff_info {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 8pt;
color : #5A2800;
visibility : visible;
}.Content .BoxContent .ff_infotext {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 8pt;
color : #5A2800;
visibility : visible;
line-height: 12pt;
}.Content .BoxContent .ff_smallinfo {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 7pt;
color : #5A2800;
visibility : visible;
}.Content .BoxContent .ff_large {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 12pt;
color : #5A2800;
visibility : visible;
}.Content .BoxContent .ff_pagetext {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 9pt;
color : #5A2800;
visibility : visible;
line-height: 13pt;
}.Content .BoxContent .ff_pagetextgrey {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 9pt;
color : #505050;
visibility : visible;
line-height: 13pt;
}.Content .BoxContent .ff_pagetextred {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 9pt;
color : #F00;
visibility : visible;
line-height: 13pt;
}.Content .BoxContent .ff_correct {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size : 11pt;
color : #FF0000;
visibility : visible;
font-weight: bold;
}/** ------------------------------
* new payment and error handling
* ------------------------------
*/.PaymentOrderTypeImage {
width: 81px;
height: 80px;
margin-right:5px;
}
.PaymentMethodBrandingSmall {
width: 48px;
height: 30px;
}
.PaymentMethodBrandingBig {
width: 103px;
height: 65px;
}
.PaymentResultImage {
float: left;
margin-right: 8px;
margin-top: 3px;
width: 62px;
height: 60px;
}
.FormFieldError {
font-size: 8pt;
color: red;
}
.SmallBox {
position: relative;
font-size: 1px;
}
.SmallBox .ErrorMessage {
font-size: 8pt;
position: relative;
color: red;
height: 100%;
background-color: #d4c0a1;
padding: 5px;
padding-left: 43px;
}
.SmallBox .Message {
font-size: 10pt;
position: relative;
height: 100%;
background-color: #d4c0a1;
padding: 10px;
}
.SmallBox .ErrorMessage ul {
padding-left: 15px;
}
.SmallBox .BoxFrameHorizontal {
position: relative;
height: 4px;
}
.SmallBox .BoxFrameVerticalRight {
position: absolute;
right: 0px;
top: 0px;
width: 3px;
background-repeat: repeat-y;
height: 100%;
}
.SmallBox .BoxFrameVerticalLeft {
position: absolute;
left: 0px;
top: 0px;
width: 3px;
background-repeat: repeat-y;
height: 100%;
}
.SmallBox .MessageContainer {
position: relative;
height: 100%;
}
.SmallBox .BoxFrameEdgeLeftTop {
position: absolute;
left: -1px;
top: -1px;
width: 5px;
height: 5px;
}
.SmallBox .BoxFrameEdgeLeftBottom {
position: absolute;
left: -1px;
bottom: -1px;
width: 5px;
height: 5px;
}
.SmallBox .BoxFrameEdgeRightTop {
position: absolute;
right: -1px;
top: -1px;
width: 5px;
height: 5px;
}
.SmallBox .BoxFrameEdgeRightBottom {
position: absolute;
right: -1px;
bottom: -1px;
width: 5px;
height: 5px;
}
.SmallBox .AttentionSign {
position: absolute;
top: 3px;
left: 8px;
width: 30px;
height: 26px;
}
/** ----------------
* new process bars
* ----------------
*/#ProgressBar #Headline {
text-align: center;
font-size: 14pt;
font-weight: bold;
margin-bottom: 5px;
}
#ProgressBar #MainContainer {
position: relative;
top: 10px;
height: 50px;
margin-bottom: 25px;
}
#ProgressBar #BackgroundContainer {
position: relative;
width: 100%;
}#ProgressBar #BackgroundContainerLeftEnd {
position: absolute;
float: left;
}
#ProgressBar #BackgroundContainerCenter {
position: absolute;
left: 0px;
top: 0px;
height: 17px;
width: 100%;
}
#ProgressBar #BackgroundContainerCenterImage {
position: relative;
margin-left: 25px;
margin-right: 25px;
height: 17px;
}
#ProgressBar #BackgroundContainerRightEnd {
position: absolute;
right: 0px;
top: 0px;
float: right;
}
#ProgressBar #TubeLeftEnd {
position: absolute;
left: 25px;
top: 4px;
}
#ProgressBar #TubeRightEnd {
position: absolute;
right: 25px;
top: 4px;
z-index: 0;
}
#ProgressBar .Steps {
position: relative;
height: 39px;
font-size: 9px;
float: left;
top: -11px;
margin-left: -1px;
}
#ProgressBar #StepsContainer1 {
text-align: right;
margin-left: 92px;
margin-right: 40px;
height: 10px;
}
#ProgressBar #StepsContainer2 {
width: 100%;
height: 10px;
}
#ProgressBar .TubeContainer {
position: relative;
padding-right: 47px;
}
#ProgressBar .Tube {
position: relative;
top: 16px;
left: 0px;
width: 100%;
height: 7px;
background: #FFFFFF none repeat scroll 0%;
}
* html #ProgressBar .Tube {
top: 13px;
}
#ProgressBar .SingleStepContainer {
position: absolute;
top: 0px;
width: 47px;
height: 30px;
right: 0px;
text-align: center;
}
#ProgressBar #FirstStep .SingleStepContainer {
left: 45px;
width: 47px;
position: absolute;
}
#ProgressBar .StepIcon {
position: absolute;
right: 0px;
}
* html #ProgressBar .StepIcon {
right: -1px;
}
#ProgressBar #FirstStep .StepIcon {
top: 0px;
left: 0px;
}
#ProgressBar .StepText {
top: 40px;
position: absolute;
width: 200px;
right: -77px;
}
/** -------------------------------
* Stylesheet declarations for the
* NEW TABLES
* -------------------------------
*/.TableContainer {
border: 1px solid black;
position: relative;
width: 100%;
font-size: 1px;
}
.TableContainer .Odd {
background-color: #f1e0c6;
}
.TableContainer .Even {
background-color: #d5c0a1;
}/* TABLEHEADER DECORATION */
.TableContainer .CaptionContainer {
position: relative;
font-size: 1pt;
background-color: #5f4d41 !important;
height: 100%;
width: 100%;
text-align: left;
}
.TableContainer .CaptionContainer .CaptionInnerContainer {
position: relative;
background-color: #5f4d41;
width: 100%;
height: 100%;
padding-top: 3px;
padding-bottom: 4px;
}
.TableContainer .CaptionContainer .Text {
font-family: Verdana, Arial, Times New Roman, sans-serif;
font-size: 10pt;
font-weight: bold;
text-align: left;
color: white;
padding-left: 10px;
padding-top: 0px;
padding-bottom: 0px;
}
.TableContainer .CaptionContainer .CaptionEdgeLeftTop {
position: absolute;
width: 5px;
height: 5px;
top: -2px;
left: -2px;
z-index: 50;
}
.TableContainer .CaptionContainer .CaptionEdgeRightTop {
position: absolute;
width: 5px;
height: 5px;
top: -2px;
right: -2px;
z-index: 50;
}
.TableContainer .CaptionContainer .CaptionEdgeLeftBottom {
position: absolute;
width: 5px;
height: 5px;
left: -2px;
bottom: -3px;
z-index: 50;
}
.TableContainer .CaptionContainer .CaptionEdgeRightBottom {
position: absolute;
width: 5px;
height: 5px;
right: -2px;
bottom: -3px;
z-index: 50;
}
.TableContainer .CaptionContainer .CaptionBorderTop {
position: absolute;
width: 100%;
height: 4px;
left: 0px;
top: -1px;
}
.TableContainer .CaptionContainer .CaptionBorderBottom {
position: absolute;
width: 100%;
height: 4px;
left: 0px;
bottom: -2px;
}
.TableContainer .CaptionContainer .CaptionVerticalLeft {
position: absolute;
height: 100%;
width: 3px;
left: -1px;
top: 0px;
}
.TableContainer .CaptionContainer .CaptionVerticalRight {
position: absolute;
height: 100%;
width: 3px;
right: -1px;
top: 0px;
}
* html .TableContainer .CaptionContainer .CaptionEdgeRightTop {
right: -3px;
}
* html .TableContainer .CaptionContainer .CaptionEdgeLeftBottom {
bottom: -4px;
}
* html .TableContainer .CaptionContainer .CaptionEdgeRightBottom {
right: -3px;
bottom: -4px;
}
* html .TableContainer .CaptionContainer .CaptionBorderBottom {
bottom: -3;
}
* html .TableContainer .CaptionContainer .CaptionVerticalRight {
right: -2px;
}
/* TABLE CONTENT */
.TableContentContainer {
border: 1px solid #5F4D41;
position: relative;
margin-right: 4px;
height: 100%;
background-color: #d4c0a1;
padding: 0px;
}
.TableContent {
width: 100%;
border-collapse: collapse;
}
.TableContent td {
padding-left: 5px;
padding-top: 2px;
padding-right: 5px;
padding-bottom: 2px;
}
/* INNERLYOUT 1 */
.TableContainer .Table1 {
width: 100%;
background-color: #d4c0a1;
border: 2px solid #55636c;
}
.TableContainer .Table1 .InnerTableContainer {
padding: 5px;
}
/* INNERLYOUT 2 */
.TableContainer .Table2 {
width: 100%;
border: 2px solid #55636c;
background-color: #f1e0c5;
padding: 0px;
margin: 0px;
border-collapse: collapse;
}
.TableContainer .Table2 td {
padding: 0px;
margin: 0px;
}
.TableContainer .Table2 .InnerTableContainer {
margin-top: 1px;
}
.TableContainer .Table2 .InnerTableContainer table {
border-collapse: collapse;
}
.TableContainer .Table2 .InnerTableContainer td {
padding-top: 2px;
padding-left: 5px;
padding-bottom: 2px;
padding-right: 5px;
border: 1px solid #faf0d7;
}
/* INNERLYOUT 3 */
.TableContainer .Table3 {
width: 100%;
border: 2px solid #55636c;
background-color: #f1e0c5;
}
.TableContainer .Table3 .InnerTableContainer {
width: 100%;
position: relative;
margin-top: 5px;
margin-left: 3px;
}
.TableContainer .Table3 .TableContentAndRightShadow td {
border: 1px solid #faf0d7;
}
/* INNERLYOUT 4 */
.TableContainer .Table4 {
width: 100%;
border: 2px solid #55636c;
background-color: #f1e0c5;
}
.TableContainer .Table4 .InnerTableContainer {
width: 100%;
position: relative;
margin-top: 3px;
}
.TableContainer .Table4 .TableContentAndRightShadow .TableContent td {
padding-left: 4px;
padding-top: 2px;
padding-bottom: 2px;
}
/* INNERLYOUT 5 */
.TableContainer .Table5 {
width: 100%;
border: 2px solid #55636c;
background-color: #f1e0c5;
}
.TableContainer .Table5 .InnerTableContainer {
width: 100%;
position: relative;
margin-top: 5px;
margin-left: 3px;
}
.TableContainer .Table5 .TableContentAndRightShadow .TableContent td {
padding-left: 4px;
padding-top: 2px;
padding-bottom: 2px;
}
/* SHADOWS */
.TableShadowContainerRightTop {
position: relative;
top: 0px;
right: 3px;
margin-right: 0px;
font-size: 1px;
float: right;
z-index: 99;
}
.TableShadowRightTop {
position: absolute;
top: 0px;
right: 0px;
width: 4px;
height: 5px;
z-index: 99;
}
.TableContentAndRightShadow {
position: relative;
background-repeat: repeat-y;
background-position: top right;
margin-right: 3px;
font-size: 1px;
}
.TableShadowContainer {
position: relative;
margin-right: 5px;
}
.TableBottomShadow {
position: relative;
font-size: 1px;
height: 5px;
width: 100%;
padding: 0px;
margin: 0px;
}
.TableBottomLeftShadow {
position: relative;
height: 5px;
width: 4px;
float: left;
padding: 0px;
margin: 0px;
}
.TableBottomRightShadow {
position: relative;
float: right;
right: -2px;
top: 0px;
height: 5px;
width: 4px;
}
/* HEADLESS CONTENT TABLE */
.HeadlessTable {
border: 0px;
border-style: solid;
border-color: #656565;
border-top-width: 1px;
border-top-color: white;
border-left-width: 1px;
border-left-color: white;
border-bottom-width: 1px;
border-right-width: 1px;
border-right-color: #656565;
margin-left: 15px;
}
/* LABELS */
.LabelV {
font-weight: bold;
padding-right: 10px;
white-space: nowrap;
vertical-align: top;
}
.LabelV150 {
font-weight: bold;
padding-right: 10px;
white-space: nowrap;
vertical-align: top;
width: 150px;
}
.LabelV200 {
font-weight: bold;
padding-right: 10px;
white-space: nowrap;
vertical-align: top;
width: 200px;
}
.LabelH {
font-weight: bold;
padding-right: 10px;
white-space: nowrap;
background-color: #d5c0a1;}
.LabelH td {
background-color: #d5c0a1;
padding-left: 5px;
padding-top: 2px;
padding-right: 5px;
padding-bottom: 2px;
}/* BUTTONS */
.InnerTableButtonRow {
width: 100%;
padding-left: 1px;
padding-right: 0px;
padding-bottom: 4px;
border: 0px;
}
.InnerTableButtonRow td {
padding-right: 4px;
}
.BigButton {
position: relative;
width: 135px;
height: 25px;
z-index: 10;
}
.BigButtonOver {
position: absolute;
top: 0px;
left: 0px;
width: 137px;
height: 25px;
visibility: hidden;
z-index: 15;
}
.ButtonText {
position: absolute;
top: 0px;
left: 0px;
height: 25px;
width: 135px;
z-index: 20;
}
.TopButtonContainer {
position: relative;
right: 4px;
top: 4px;
z-index: 60;
}
.TopButtonContainerInnerTable {
position: absolute;
right: 4px;
top: 2px;
z-index: 60;
}
* html .TopButtonContainer {
right: 27px;
}
.TopButtonContainer .TopButton {
position: absolute;
right: 0px;
z-index: 55;
}
#world_list_tr td {
text-align: left;
}
.OptionContainer {
text-align: center;
}
label {
cursor: pointer;
}
.InputIndicator {
position: relative;
top: 5px;
left: 218px;
height: 12px;
width: 12px;
background-repeat: no-repeat;
}
* html .InputIndicator {
left: 0px;
}
.sortarrow {
width: 10px;
height: 10px;
}
/* FORUM - general post format */
.ForumPost {
position: relative;
height: 100%;
width: 798px;
margin: -5px;
}
.PostUpper {
clear: both;
}
.PostLower {
clear: both;
border-top: 1px solid #fff0d9;
height: 50px;
padding: 4px 0px;
}
.PostSeparatorV {
position: absolute;
width: 1px;
height: 100%;
background-color: #fff0d9;
left: 185px;
}
* html .PostCharacterText {
width: 185px;
}
.PostCharacterText {
width: 175px;
float: left;
padding: 5px;
}
.PostText {
position: relative;
min-height: 150px;
width: 100%;
overflow-x: auto;
overflow-y: visible;
width: 600px;
word-wrap: break-word;
padding: 5px;
}
.PostDetails {
width: 175px;
float: left;
padding: 0px 5px;
font-size: 7pt;
}
.PostActions {
position: relative;
overflow-x: auto;
overflow-y: visible;
word-wrap: break-word;
font-size: 8pt;
padding: 10px;
padding-right: 0px;
margin-left: 180px;
width: 600px;
}
.PostActions .AdditionalBox {
float: right;
white-space: nowrap;
text-align: right;
margin: 4px 4px 0px 0px;
}
/* FORUM - CipSoft post format */
.CipPost .CipBorder {
font-size: 1px;
position: absolute;
width: 798px;
height: 3px;
z-index: 99;
}
.CipPost .CipBorderBottom {
position: absolute;
}
.CipPost .CipBorderBottom .CipBorder {
bottom: 0px;
}
.CipPost .CipBorder .CipBorderCornerL {
position: absolute;
width: 3px;
height: 3px;
top: 0px;
left: 0px;
z-index: 99;
}
.CipPost .CipBorder .CipBorderH {
position: absolute;
width: 792px;
height: 3px;
top: 0px;
left: 3px
}
.CipPost .CipBorder .CipBorderCornerR {
position: absolute;
width: 3px;
height: 3px;
top: 0px;
right: 0px;
z-index: 99;
}
.CipPost .CipBorderLeft {
font-size: 1px;
width: 3px;
position: absolute;
top: 0px;
height: 100%;
z-index: 0;
}
.CipPost .CipBorderLeft .CipBorderV {
position: absolute;
top: 0px;
left: 0px;
width: 3px;
height: 100%;
}
.CipPost .CipBorderRight .CipBorderV {
position: absolute;
top: 0px;
right: 0px;
width: 3px;
height: 100%;
}
.CipPost .CipPostIcon {
position: relative;
top: 7px;
left: 12px;
widht: 60px;
height: 60px;
}.PostDetailsHelper {
position: relative;
}/* Znote FORUM */
/* Znote FORUM */
/* Znote FORUM */
/* Znote FORUM */.adminTable {
margin: 0px;
padding: 0px;
position: relative;
display: block;
top: -34px;
}
.adminTable tr td {
width: 210px;
max-height: 35px;
}
.adminTable tr td form, .adminTable tr td form input {
width: 174px;
height: 35px;
}
.postButton {
margin: 0px;
padding: 0px;
position: relative;
display: block;
float: left;
top: -34px;
}.editThread {
margin: 0px;
padding: 0px;
position: relative;
display: block;
float: left;
top: -36px;
}
.editThread tr, .editThread tr td, .editThread tr td form, .editThread tr td form input {
margin: 0px;
padding: 0px;
height: 20px;
}
.updateTable tr td input {
width: 500px;
} -
Alguém disponível pra me ajudar?
-
9 horas atrás, ian brunner disse:
Olá gente, gostaria de saber se alguém tem algum vídeo explicando como hospedar o servidor no meu Dragon ball server.
Dicas de qual Vps contratar, e como fazer tal hospedagem.
Grato desde já.Eu não sei se pode divulgar uma marca de VPS aqui que não seja anunciante, caso não pode, me desculpem.
Mas o melhor que já usei foi o 4youstart.com, o atendimento é ótimo, os preços são muito bons também (pra um cloud, considerando que o desempenho será melhor que vps)
-
Bem, eu acho justo que os programadores cobrem pelo seus serviços, da mesma forma que quem hospeda o servidor normalmente tem o lucro como objetivo principal.
Removido.
-
Olá, eu possuo um sistema de reset por storage.
A storage do reset é: 378378
Eu gostaria que essa storage aparecesse no perfil de um player da seguinte forma:
(ilustrei um exemplo no paint)
meu characterprofile.php
Citar<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
if ($config['log_ip'])
{
znote_visitor_insert_detailed_data(4);
}if (isset($_GET['name']) === true && empty($_GET['name']) === false)
{
$name = getValue($_GET['name']);
$user_id = user_character_exist($name);
if ($user_id !== false)
{
if ($config['TFSVersion'] == 'TFS_10')
{
$profile_data = user_character_data($user_id, 'account_id', 'name', 'level', 'vocation', 'health', 'healthmax', 'experience', 'mana', 'manamax', 'sex', 'lastlogin');
$profile_data['online'] = user_is_online_10($user_id);
if ($config['Ach'])
{
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`=(int)$user_id");
}
}
else
{
$profile_data = user_character_data($user_id, 'name', 'account_id', 'level', 'vocation', 'health', 'healthmax', 'experience', 'mana', 'manamax', 'lastlogin', 'online', 'sex');
}
$profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment');
$account_data = user_znote_account_data($profile_data['account_id'], 'flag');
$guild_exist = false;
if (get_character_guild_rank($user_id) > 0)
{
$guild_exist = true;
$guild = get_player_guild_data($user_id);
$guild_name = get_guild_name($guild['guild_id']);
}
?>
<!-- PROFILE MARKUP HERE-->
<!-- Profile name -->
<h1><font class="profile_font" name="profile_font_header">Perfil: <?php echo $profile_data['name']; ?></font></h1>
<ul class="unstyled"><?php
/*/
/ Player character profile EQ shower
/ Based on code from CorneX
/ Written to Znote AAC by Znote.
/ Should work on all TFS versions.
/ Znote AAC 1.4+
/*/// Item image server
$imageServer = $config['shop']['imageServer'];
$imageType = $config['shop']['imageType'];
if (count($imageType) < 3) $imageType = 'gif';
// Fetch player equipped data
$PEQD = mysql_select_multi("SELECT `player_id`, `pid`, `itemtype`, `count` FROM `player_items` WHERE `player_id`='$user_id' AND `pid`<'11'");
// If player have equipped items
if ($PEQD !== false) {
// PEQD = Player EQ Data
$PEQ = array(
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
8 => false,
9 => false,
10 => false,
);
// Fill player equipments array with fetched data results (PEQD)
foreach ($PEQD as $EQ) $PEQ[$EQ['pid']] = "http://{$imageServer}/".$EQ['itemtype'].".{$imageType}";
?>
<!-- Fix item positions CSS -->
<style type="text/css">
/* CSS by CorneX */
.signBgrnd {
background-image:url('eq/outfit.png');
background-repeat:no-repeat;
position:relative;
float: right;
margin:10px;
padding:10px;
height:153px;
width:118px;
}
/* Weapon */
.signBgrnd .wep {
position: absolute;
top: 56px;
left: 6px;
width: 32px;
height: 32px;
}
.signBgrnd .wep img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* Armor */
.signBgrnd .arm {
position: absolute;
top: 41px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .arm img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* Helmet */
.signBgrnd .helm {
position: absolute;
top: 5px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .helm img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* legs */
.signBgrnd .legs {
position: absolute;
top: 79px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .legs img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* boots */
.signBgrnd .boots {
position: absolute;
top: 116px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .boots img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* ring */
.signBgrnd .ring {
position: absolute;
top: 93px;
left: 6px;
width: 32px;
height: 32px;
}
.signBgrnd .ring img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* amulet */
.signBgrnd .amulet {
position: absolute;
top: 20px;
left: 7px;
width: 32px;
height: 32px;
}
.signBgrnd .amulet img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* backpack */
.signBgrnd .backpack {
position: absolute;
top: 20px;
left: 80px;
width: 32px;
height: 32px;
}
.signBgrnd .backpack img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* shield */
.signBgrnd .shield {
position: absolute;
top: 56px;
left: 80px;
width: 32px;
height: 32px;
}
.signBgrnd .shield img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* arrow */
.signBgrnd .arrow {
position: absolute;
top: 93px;
left: 80px;
width: 32px;
height: 32px;
}
.signBgrnd .arrow img {
background-image:url('eq/bg.png');
max-width: 100%;
}
</style>
<!-- Render HTML -->
<div class="signBgrnd">
<div class="helm">
<?php
if ($PEQ[1] != false) {
?>
<img src="<?php echo $PEQ[1]; ?>" alt="Image of player helmet">
<?php
}
?>
</div>
<div class="amulet">
<?php
if ($PEQ[2] != false) {
?>
<img src="<?php echo $PEQ[2]; ?>" alt="Image of player amulet">
<?php
}
?>
</div>
<div class="wep">
<?php
if ($PEQ[6] != false) {
?>
<img src="<?php echo $PEQ[6]; ?>" alt="Image of player left hand">
<?php
}
?>
</div>
<div class="ring">
<?php
if ($PEQ[9] != false) {
?>
<img src="<?php echo $PEQ[9]; ?>" alt="Image of player ring">
<?php
}
?>
</div>
<div class="arm">
<?php
if ($PEQ[4] != false) {
?>
<img src="<?php echo $PEQ[4]; ?>" alt="Image of player armor">
<?php
}
?>
</div>
<div class="legs">
<?php
if ($PEQ[7] != false) {
?>
<img src="<?php echo $PEQ[7]; ?>" alt="Image of player legs">
<?php
}
?>
</div>
<div class="boots">
<?php
if ($PEQ[8] != false) {
?>
<img src="<?php echo $PEQ[8]; ?>" alt="Image of player boots">
<?php
}
?>
</div>
<div class="backpack">
<?php
if ($PEQ[3] != false) {
?>
<img src="<?php echo $PEQ[3]; ?>" alt="Image of player backpack">
<?php
}
?>
</div>
<div class="shield">
<?php
if ($PEQ[5] != false) {
?>
<img src="<?php echo $PEQ[5]; ?>" alt="Image of player shield">
<?php
}
?>
</div>
<div class="arrow">
<?php
if ($PEQ[10] != false) {
?>
<img src="<?php echo $PEQ[10]; ?>" alt="Image of player arrow">
<?php
}
?>
</div>
</div>
<?php
}
?> <!-- END EQ SHOWER --><?php
/*/
/ Znote AAC 1.4+ detailed character info (HP, MP, lvL, Exp, skills)
/ HTML code based on code from Gesior
/*/
$tableWidth = 540;
if ($config['TFSVersion'] != 'TFS_10') {
$playerData = mysql_select_multi("SELECT `value` FROM `player_skills` WHERE `player_id`='$user_id' LIMIT 7;");
$playerData['fist'] = $playerData[0]['value']; unset($playerData[0]);
$playerData['club'] = $playerData[1]['value']; unset($playerData[1]);
$playerData['sword'] = $playerData[2]['value']; unset($playerData[2]);
$playerData['axe'] = $playerData[3]['value']; unset($playerData[3]);
$playerData['dist'] = $playerData[4]['value']; unset($playerData[4]);
$playerData['shield'] = $playerData[5]['value']; unset($playerData[5]);
$playerData['fish'] = $playerData[6]['value']; unset($playerData[6]);$player = mysql_select_single("SELECT `health`, `healthmax`, `mana`, `manamax`, `experience`, `maglevel`, `level` FROM `players` WHERE `id`='$user_id' LIMIT 1;");
$playerData['magic'] = $player['maglevel'];
$playerData['exp'] = array(
'now' => $player['experience'],
'next' => (int)(level_to_experience($player['level']+1) - $player['experience']),
'percent' => (int)(($player['experience'] - level_to_experience($player['level'])) / (level_to_experience($player['level']+1) - $player['experience']) * 100)
);
$playerData['health'] = array(
'now' => $player['health'],
'max' => $player['healthmax'],
'percent' => (int)($player['health'] / $player['healthmax'] * 100),
);
$playerData['mana'] = array(
'now' => $player['mana'],
'max' => $player['manamax'],
'percent' => (int)($player['mana'] / $player['manamax'] * 100),
);
} else {
$player = mysql_select_single("SELECT `health`, `healthmax`, `mana`, `manamax`, `experience`, `skill_fist`, `skill_club`, `skill_sword`, `skill_axe`, `skill_dist`, `skill_shielding`, `skill_fishing`, `maglevel`, `level` FROM `players` WHERE `id`='$user_id' LIMIT 1;");
$playerData = array(
'fist' => $player['skill_fist'],
'club' => $player['skill_club'],
'sword' => $player['skill_sword'],
'axe' => $player['skill_axe'],
'dist' => $player['skill_dist'],
'shield' => $player['skill_shielding'],
'fish' => $player['skill_fishing'],
'magic' => $player['maglevel'],
'exp' => array(
'now' => $player['experience'],
'next' => (int)(level_to_experience($player['level']+1) - $player['experience']),
'percent' => (int)(($player['experience'] - level_to_experience($player['level'])) / (level_to_experience($player['level']+1) - $player['experience']) * 100)
),
'health' => array(
'now' => $player['health'],
'max' => $player['healthmax'],
'percent' => (int)($player['health'] / $player['healthmax'] * 100),
),
'mana' => array(
'now' => $player['mana'],
'max' => $player['manamax'],
'percent' => (int)($player['mana'] / $player['manamax'] * 100),
)
);
}
// Incase they have more health/mana than they should due to equipment bonus etc
if ($playerData['exp']['percent'] > 100) $playerData['exp']['percent'] = 100;
if ($playerData['health']['percent'] > 100) $playerData['health']['percent'] = 100;
if ($playerData['mana']['percent'] > 100) $playerData['mana']['percent'] = 100;
//data_dump($playerData, false, "Player Data");
?>
<!-- PLAYER SKILLS TABLE -->
<table cellspacing="1" cellpadding="4" style="width: <?php echo $tableWidth; ?>px;">
<tr class="yellow">
<th>Fist</th>
<th>Club</th>
<th>Sword</th>
<th>Axe</th>
<th>Dist</th>
<th>Shield</th>
<th>Fish</th>
<th>Magic</th>
</tr>
<tr>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['fist']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['club']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['sword']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['axe']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['dist']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['shield']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['fish']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['magic']; ?>
</td>
</tr>
</table>
<!-- PLAYER INFO TABLE -->
<table cellspacing="1" cellpadding="4" style="width: <?php echo $tableWidth; ?>px;">
<tr>
<td bgcolor="#F1E0C6" align="left" width="20%">
<b>Player HP:</b>
</td>
<td bgcolor="#F1E0C6" align="left">
<?php echo $playerData['health']['now'].'/'.$playerData['health']['max']; ?>
<div style="width: 100%; height: 3px; border: 1px solid #000;">
<div style="background: red; width: <?php echo $playerData['health']['percent']; ?>%; height: 3px;">
</div>
</div>
</td>
</tr>
<tr>
<td bgcolor="#D4C0A1" align="left">
<b>Player MP:</b>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['mana']['now'].'/'.$playerData['mana']['max']; ?>
<div style="width: 100%; height: 3px; border: 1px solid #000;">
<div style="background: blue; width: <?php echo $playerData['mana']['percent']; ?>%; height: 3px;">
</div>
</div>
</td>
</tr>
<tr>
<td bgcolor="#D4C0A1" align="left">
<b>Player XP:</b>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo number_format($playerData['exp']['now'], 0, "", " "); ?> Experience.
</td>
</tr>
<tr>
<td bgcolor="#F1E0C6" align="left">
<b>To Next Lvl:</b>
</td>
<td bgcolor="#F1E0C6" align="left">
Need <b><?php echo number_format($playerData['exp']['next'], 0, "", " "); ?> experience (<?php echo 100-$playerData['exp']['percent']; ?>%)</b> to Level <b><?php echo $player['level']+1; ?></b>.
<div title="99.320604545 %" style="width: 100%; height: 3px; border: 1px solid #000;">
<div style="background: red; width: <?php echo $playerData['exp']['percent']; ?>%; height: 3px;"></div>
</div>
</td>
</tr>
</table>
<!-- END detailed character info --><?php
if ($config['country_flags'])
{ ?>
<!-- Player country data -->
<li><font class="profile_font" name="profile_font_country">Country: <?php echo '<img src="\flags\\' . $account_data['flag'] . '.png">'; ?></font></li><?php
} ?><!-- Player male / female -->
<li>
<font class="profile_font" name="profile_font_level">Sexo:
<?php
if ($profile_data['sex'] == 1)
{
echo 'Masculino';
}
else
{
echo 'Feminino';
}
?>
</font>
</li>
<!-- Player level -->
<li>
<font class="profile_font" name="profile_font_level">Level:
<?php
echo $profile_data['level'];
?>
</font>
</li>
<!-- Player vocation -->
<li><font class="profile_font" name="profile_font_vocation">Classe: <?php echo vocation_id_to_name($profile_data['vocation']); ?></font></li>
<!-- Player guild -->
<?php
if ($guild_exist)
{
?>
<li>
<font class="profile_font" name="profile_font_vocation">
<b><?php echo $guild['rank_name']; ?> </b> of <a href="guilds.php?name=<?php echo $guild_name; ?>"><?php echo $guild_name; ?></a>
</font>
</li>
<?php
}
?>
<!-- Player last login -->
<li>
<font class="profile_font" name="profile_font_lastlogin">Last Login:
<?php
if ($profile_data['lastlogin'] != 0)
{
echo getClock($profile_data['lastlogin'], true, true);
}
else
{
echo 'Never.';
}
?>
</font>
</li>
<!-- Achievement start -->
<?php
if ($config['Ach'])
{
foreach ($achievementPoints as $achievement)
{
//if player doesn't have any achievement points it won't echo the line below.
if ($achievement > 0)
{
echo '<li>Achievement Points: ' . $achievement . '</li>';
}
}
}
?>
<!-- Achievement end -->
<!-- Display house start -->
<?php
if ($config['TFSVersion'] !== 'TFS_02')
{
$townid = ($config['TFSVersion'] === 'TFS_03') ? 'town' : 'town_id';
$houses = mysql_select_multi("SELECT `id`, `owner`, `name`, `$townid` AS `town_id` FROM `houses` WHERE `owner` = $user_id;");
if ($houses)
{
$playerlist = array();
foreach ($houses as $h)
{
if ($h['owner'] > 0)
{
$playerlist[] = $h['owner'];
}
if ($profile_data['id'] = $h['owner'])
{
?>
<li>House: <?php echo $h['name']; ?>, <?php
foreach ($config['towns'] as $key => $value)
{
if ($key == $h['town_id'])
{
echo $value;
}
}
?>
</li>
<?php
}
}
}
}
?>
<!-- Display house end -->
<!-- Display player status -->
<li><font class="profile_font" name="profile_font_status">Status:</font> <?php
if ($config['TFSVersion'] == 'TFS_10')
{
if ($profile_data['online'])
{
echo '<font class="profile_font" name="profile_font_online" color="green"><b>ONLINE</b></font>';
}
else
{
echo '<font class="profile_font" name="profile_font_online" color="red"><b>OFFLINE</b></font>';
}
}
else
{
if ($profile_data['online'])
{
echo '<font class="profile_font" name="profile_font_online" color="green"><b>ONLINE</b></font>';
}
else
{
echo '<font class="profile_font" name="profile_font_online" color="red"><b>OFFLINE</b></font>';
}
}
?>
</li>
<!-- Display player status end -->
<!-- Player created -->
<li><font class="profile_font" name="profile_font_created">Created: <?php echo getClock($profile_znote_data['created'], true); ?></font></li>
<!-- Player Comment -->
<?php
//if player doesnt have set a comment dont show it.
if (!empty($profile_znote_data['comment']))
{ ?>
<li>
<font class="profile_font" name="profile_font_comment">Comment:</font><br>
<textarea name="profile_comment_textarea" cols="70" rows="10" readonly="readonly" class="span12"><?php echo $profile_znote_data['comment']; ?></textarea>
</li>
<?php
}
?>
<!-- Achievements start -->
<?php if ($config['Ach'])
{ ?>
<h3 class="header-ok">Achievements</h3>
<div id="accordion">
<h3>Show/hide player achievements</h3>
<div>
<table class="table table-striped table-bordered">
<tbody>
<style>
#secondD {
margin-left:0px;
}
</style>
<?php
foreach ($config['achievements'] as $key => $achiv)
{
$uery = mysql_select_single("SELECT `player_id`, `value`, `key` FROM `player_storage` WHERE `player_id`='$user_id' AND `key`='$key' LIMIT 1;");
if (!empty($uery) || $uery !== false)
{
foreach ($uery as $luery)
{
if ($luery == $key)
{
if (!array_key_exists($key, $achiv))
{
echo '<tr><td width="17%">' .$achiv[0]. '</td><td>' .$achiv[1]. '</td>';
if (!isset($achiv['secret']))
{
echo '<td><img id="secondD" src="http://img04.imgland.net/PuMz0mVqSG.gif"></td>';
}
echo '<td>'. $achiv['points'] .'</td>';
echo '<tr>';
}
}
}
}
}
?>
</tbody>
</table>
</div>
</div><br>
<?php
}
?>
<!-- Achievements end -->
<!-- DEATH LIST -->
<li>
<b>Death List:</b><br>
<?php
if ($config['TFSVersion'] == 'TFS_02')
{
$array = user_fetch_deathlist($user_id);
if ($array)
{
?>
<ul>
<?php
// Design and present the list
foreach ($array as $value)
{ ?>
<li>
<?php
$value['time'] = getClock($value['time'], true);
if ($value['is_player'] == 1)
{
$value['killed_by'] = 'player: <a href="characterprofile.php?name='. $value['killed_by'] .'">'. $value['killed_by'] .'</a>';
}
else
{
$value['killed_by'] = 'monster: '. $value['killed_by'] .'.';
}
echo '['. $value['time'] .'] Killed at level '. $value['level'] .' by '. $value['killed_by']; ?>
</li>
<?php
}
?>
</ul>
<?php
}
else
{
echo '<b><font color="green">Esse jogador nunca morreu.</font></b>';
}
}
else if ($config['TFSVersion'] == 'TFS_10')
{
$deaths = mysql_select_multi("SELECT
`player_id`, `time`, `level`, `killed_by`, `is_player`,
`mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`
FROM `player_deaths`
WHERE `player_id`=$user_id ORDER BY `time` DESC LIMIT 10;");if ($deaths)
{
foreach ($deaths as $d)
{
?>
<li>
<?php echo "<b>".getClock($d['time'], true, true)."</b>";
$lasthit = ($d['is_player']) ? "<a href='characterprofile.php?name=".$d['killed_by']."'>".$d['killed_by']."</a>" : $d['killed_by'];
echo ": Killed at level ".$d['level']." by $lasthit";
if ($d['unjustified'])
{echo " <font color='red' style='font-style: italic;'>(unjustified)</font>";}
$mostdmg = ($d['mostdamage_by'] !== $d['killed_by']) ? true : false;
if ($mostdmg)
{
$mostdmg = ($d['mostdamage_is_player']) ? "<a href='characterprofile.php?name=".$d['mostdamage_by']."'>".$d['mostdamage_by']."</a>" : $d['mostdamage_by'];
echo "<br>and by $mostdmg.";
if ($d['mostdamage_unjustified'])
{ echo " <font color='red' style='font-style: italic;'>(unjustified)</font>"; }
}
else
{ echo " <b>(soloed)</b>"; }
?>
</li>
<?php
}
}
else
{
echo '<b><font color="green">Esse jogador nunca morreu.</font></b>';
}
}
else if ($config['TFSVersion'] == 'TFS_03')
{
//mysql_select_single("SELECT * FROM players WHERE name='TEST DEBUG';");
$array = user_fetch_deathlist03($user_id);
if ($array)
{?>
<ul>
<?php
// Design and present the list
foreach ($array as $value)
{ ?>
<li>
<?php
$value[3] = user_get_killer_id(user_get_kid($value['id']));
if ($value[3] !== false && $value[3] >= 1)
{
$namedata = user_character_data((int)$value[3], 'name');
if ($namedata !== false)
{
$value[3] = $namedata['name'];
$value[3] = 'player: <a href="characterprofile.php?name='. $value[3] .'">'. $value[3] .'</a>';
}
else
{
$value[3] = 'deleted player.';
}
}
else
{
$value[3] = user_get_killer_m_name(user_get_kid($value['id']));
if ($value[3] === false)
{ $value[3] = 'deleted player.'; }
}
echo '['. getClock($value['date'], true) .'] Killed at level '. $value['level'] .' by '. $value[3];
echo '</li>';
}
?>
</ul>
<?php
}
else { echo '<b><font color="green">Este jogador nunca morreu.</font></b>'; }
}
?>
</li>
<!-- END DEATH LIST -->
<!-- QUEST PROGRESSION -->
<?php
$totalquests = 0;
$completedquests = 0;
$firstrun = 1;
if ($config['EnableQuests'] == true)
{
$sqlquests = mysql_select_multi("SELECT `player_id`, `key`, `value` FROM player_storage WHERE `player_id` = $user_id");
foreach ($config['quests'] as $cquest)
{
$totalquests = $totalquests + 1;
foreach ($sqlquests as $dbquest)
{
if ($cquest[0] == $dbquest['key'] && $cquest[1] == $dbquest['value'])
{
$completedquests = $completedquests + 1;
}
}
if ($cquest[3] == 1)
{
if ($completedquests != 0)
{
if ($firstrun == 1)
{
?>
<li>
<b> Quest progression </b>
<table id="characterprofileQuest" class="table table-striped table-hover">
<tr class="yellow">
<th>Quest:</th>
<th>progression:</th>
</tr>
<?php
$firstrun = 0;
}
$completed = $completedquests / $totalquests * 100;
?>
<tr>
<td><?php echo $cquest[2]; ?></td>
<td id="progress">
<span id="percent"><?php echo round($completed); ?>%</span>
<div id="bar" style="width: '.$completed.'%"></div>
</td>
</tr>
<?php
}
$completedquests = 0;
$totalquests = 0;
}
}
}
if ($firstrun == 0)
{ ?>
</table></li>
<?php
}
?>
<!-- END QUEST PROGRESSION -->
<!-- CHARACTER LIST -->
<?php
if (user_character_hide($profile_data['name']) != 1 && user_character_list_count(user_character_account_id($name)) > 1)
{
?>
<li>
<b>Outros personagens visiveis desta conta:</b><br>
<?php
$characters = user_character_list(user_character_account_id($profile_data['name']));
// characters: [0] = name, [1] = level, [2] = vocation, [3] = town_id, [4] = lastlogin, [5] = online
if ($characters && count($characters) > 0)
{
?>
<table id="characterprofileTable" class="table table-striped table-hover">
<tr class="yellow">
<th>Nome:</th>
<th>Level:</th>
<th>Classe:</th>
<th>Ultimo Login:</th>
<th>Status:</th>
</tr>
<?php
// Design and present the list
foreach ($characters as $char)
{
if ($char['name'] != $profile_data['name'])
{
if (hide_char_to_name(user_character_hide($char['name'])) != 'hidden')
{ ?>
<tr>
<td><a href="characterprofile.php?name=<?php echo $char['name']; ?>"><?php echo $char['name']; ?></a></td>
<td><?php echo (int)$char['level']; ?></td>
<td><?php echo $char['vocation']; ?></td>
<td><?php echo $char['lastlogin']; ?></td>
<td><?php echo $char['online']; ?></td>
</tr>
<?php
}
}
}
?>
</table>
<?php
}
else
{
echo '<b><font color="green">Esse jogar nunca morreu.</font></b>';
}
?>
</li>
<?php
}
?>
<!-- END CHARACTER LIST -->
<li>
<font class="profile_font" name="profile_font_share_url">Address:
<a href="
<?php
if ($config['htwrite'])
{
echo "http://" . $_SERVER['HTTP_HOST']."/" . $profile_data['name'];
}
else
{
echo "http://" . $_SERVER['HTTP_HOST'] . "/characterprofile.php?name=" . $profile_data['name'];
}
?>">
<?php
if ($config['htwrite'])
{
echo "http://".$_SERVER['HTTP_HOST']."/". $profile_data['name'];
}
else
{
echo "http://".$_SERVER['HTTP_HOST']."/characterprofile.php?name=". $profile_data['name'];
}
?>
</a></font></li>
</ul>
<!-- END PROFILE MARKUP HERE-->
<?php
}
else
{
echo htmlentities(strip_tags($name, ENT_QUOTES)) . ' does not exist.';
}
}
else
{
header('Location: index.php');
}include 'layout/overall/footer.php'; ?>
Caso a pessoa que me ajudar queira, eu recompenso em 30 reais de pontos vip no meu servidor que é o tibiacanob.com
-
Olá, eu gostaria de saber se existe algum comando no SQL de forma que eu possa salvar todos os emails das contas cadastradas em um arquivo de texto.
Essa função seria útil no meu caso para mandar emails aos jogadores sobre promoções, eventos, etc.
-
Em 28/10/2012 at 16:00, thiagobji disse:
É o seguinte, eu já sofri com esse bug e é muito chato mesmo, creio que muitas pessoas sofrem também, eu achei esse script em um outro fórum, então venho postar aqui pros membros do TibiaKing que tem esse mesmo erro para ajudar eles a soluciona-lo.
Então você precisa ir até a pasta data\npc\lib\npcsystem
Abra o arquivo npchandler.lua e procure (control+f) por "function NpcHandler:isInRange(cid)" (sem aspas)
modifique essa linha:
function NpcHandler:isInRange(cid) local distance = getNpcDistanceTo(cid) or -1 return distance ~= -1 and distance <= self.talkRadius end
Por:
function NpcHandler:isInRange(cid) local distance = getDistanceBetween(getCreaturePosition(getNpcCid()), getCreaturePosition(cid)) if(distance == -1) then return false end return (distance <= self.talkRadius) end
Cara, se funcionar você salvou minha vida
-
Olá, pessoal eu estou com esse erro aparecendo direto no console:
Basta o servidor ficar online por umas duas até cinco horas, que ele começa a aparecer, e quando acontece, o server fica todo lagado.
Preciso muito da ajuda de alguém pra solucionar isso, já tentei substituir arquivos do npchandler e não funcionou. -
9 horas atrás, BrunoMaia disse:
Isto é um erro de syntax, você esqueceu de digitar o "<" em algum local do código
Consegui arrumar amigo, muito obrigado
-
Galera, o que seria esse erro no console?
Citar[15/03/2016 23:14:46] > Loading desktop.ini...[Error - ScriptingManager::loadFromXml] Cannot load mod mods/desktop.ini
[15/03/2016 23:14:46] Line: 1, Info: Start tag expected, '<' not found -
Galera, então, eu uso o Znote ACC e um layout de Global. Gostaria que no perfil dos players, aparecesse o número de resets que ele possui. O meu sistema de reset é por storage.
Storage Reset: 378378
Foto de como queria mais ou menos:
Meu characterprofile.php
Citar<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
if ($config['log_ip'])
{
znote_visitor_insert_detailed_data(4);
}if (isset($_GET['name']) === true && empty($_GET['name']) === false)
{
$name = getValue($_GET['name']);
$user_id = user_character_exist($name);
if ($user_id !== false)
{
if ($config['TFSVersion'] == 'TFS_10')
{
$profile_data = user_character_data($user_id, 'account_id', 'name', 'level', 'vocation', 'health', 'healthmax', 'experience', 'mana', 'manamax', 'sex', 'lastlogin');
$profile_data['online'] = user_is_online_10($user_id);
if ($config['Ach'])
{
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`=(int)$user_id");
}
}
else
{
$profile_data = user_character_data($user_id, 'name', 'account_id', 'level', 'vocation', 'health', 'healthmax', 'experience', 'mana', 'manamax', 'lastlogin', 'online', 'sex');
}
$profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment');
$account_data = user_znote_account_data($profile_data['account_id'], 'flag');
$guild_exist = false;
if (get_character_guild_rank($user_id) > 0)
{
$guild_exist = true;
$guild = get_player_guild_data($user_id);
$guild_name = get_guild_name($guild['guild_id']);
}
?>
<!-- PROFILE MARKUP HERE-->
<!-- Profile name -->
<h1><font class="profile_font" name="profile_font_header">Perfil: <?php echo $profile_data['name']; ?></font></h1>
<ul class="unstyled"><?php
/*/
/ Player character profile EQ shower
/ Based on code from CorneX
/ Written to Znote AAC by Znote.
/ Should work on all TFS versions.
/ Znote AAC 1.4+
/*/// Item image server
$imageServer = $config['shop']['imageServer'];
$imageType = $config['shop']['imageType'];
if (count($imageType) < 3) $imageType = 'gif';
// Fetch player equipped data
$PEQD = mysql_select_multi("SELECT `player_id`, `pid`, `itemtype`, `count` FROM `player_items` WHERE `player_id`='$user_id' AND `pid`<'11'");
// If player have equipped items
if ($PEQD !== false) {
// PEQD = Player EQ Data
$PEQ = array(
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
8 => false,
9 => false,
10 => false,
);
// Fill player equipments array with fetched data results (PEQD)
foreach ($PEQD as $EQ) $PEQ[$EQ['pid']] = "http://{$imageServer}/".$EQ['itemtype'].".{$imageType}";
?>
<!-- Fix item positions CSS -->
<style type="text/css">
/* CSS by CorneX */
.signBgrnd {
background-image:url('eq/outfit.png');
background-repeat:no-repeat;
position:relative;
float: right;
margin:10px;
padding:10px;
height:153px;
width:118px;
}
/* Weapon */
.signBgrnd .wep {
position: absolute;
top: 56px;
left: 6px;
width: 32px;
height: 32px;
}
.signBgrnd .wep img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* Armor */
.signBgrnd .arm {
position: absolute;
top: 41px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .arm img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* Helmet */
.signBgrnd .helm {
position: absolute;
top: 5px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .helm img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* legs */
.signBgrnd .legs {
position: absolute;
top: 79px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .legs img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* boots */
.signBgrnd .boots {
position: absolute;
top: 116px;
left: 43px;
width: 32px;
height: 32px;
}
.signBgrnd .boots img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* ring */
.signBgrnd .ring {
position: absolute;
top: 93px;
left: 6px;
width: 32px;
height: 32px;
}
.signBgrnd .ring img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* amulet */
.signBgrnd .amulet {
position: absolute;
top: 20px;
left: 7px;
width: 32px;
height: 32px;
}
.signBgrnd .amulet img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* backpack */
.signBgrnd .backpack {
position: absolute;
top: 20px;
left: 80px;
width: 32px;
height: 32px;
}
.signBgrnd .backpack img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* shield */
.signBgrnd .shield {
position: absolute;
top: 56px;
left: 80px;
width: 32px;
height: 32px;
}
.signBgrnd .shield img {
background-image:url('eq/bg.png');
max-width: 100%;
}
/* arrow */
.signBgrnd .arrow {
position: absolute;
top: 93px;
left: 80px;
width: 32px;
height: 32px;
}
.signBgrnd .arrow img {
background-image:url('eq/bg.png');
max-width: 100%;
}
</style>
<!-- Render HTML -->
<div class="signBgrnd">
<div class="helm">
<?php
if ($PEQ[1] != false) {
?>
<img src="<?php echo $PEQ[1]; ?>" alt="Image of player helmet">
<?php
}
?>
</div>
<div class="amulet">
<?php
if ($PEQ[2] != false) {
?>
<img src="<?php echo $PEQ[2]; ?>" alt="Image of player amulet">
<?php
}
?>
</div>
<div class="wep">
<?php
if ($PEQ[6] != false) {
?>
<img src="<?php echo $PEQ[6]; ?>" alt="Image of player left hand">
<?php
}
?>
</div>
<div class="ring">
<?php
if ($PEQ[9] != false) {
?>
<img src="<?php echo $PEQ[9]; ?>" alt="Image of player ring">
<?php
}
?>
</div>
<div class="arm">
<?php
if ($PEQ[4] != false) {
?>
<img src="<?php echo $PEQ[4]; ?>" alt="Image of player armor">
<?php
}
?>
</div>
<div class="legs">
<?php
if ($PEQ[7] != false) {
?>
<img src="<?php echo $PEQ[7]; ?>" alt="Image of player legs">
<?php
}
?>
</div>
<div class="boots">
<?php
if ($PEQ[8] != false) {
?>
<img src="<?php echo $PEQ[8]; ?>" alt="Image of player boots">
<?php
}
?>
</div>
<div class="backpack">
<?php
if ($PEQ[3] != false) {
?>
<img src="<?php echo $PEQ[3]; ?>" alt="Image of player backpack">
<?php
}
?>
</div>
<div class="shield">
<?php
if ($PEQ[5] != false) {
?>
<img src="<?php echo $PEQ[5]; ?>" alt="Image of player shield">
<?php
}
?>
</div>
<div class="arrow">
<?php
if ($PEQ[10] != false) {
?>
<img src="<?php echo $PEQ[10]; ?>" alt="Image of player arrow">
<?php
}
?>
</div>
</div>
<?php
}
?> <!-- END EQ SHOWER --><?php
/*/
/ Znote AAC 1.4+ detailed character info (HP, MP, lvL, Exp, skills)
/ HTML code based on code from Gesior
/*/
$tableWidth = 540;
if ($config['TFSVersion'] != 'TFS_10') {
$playerData = mysql_select_multi("SELECT `value` FROM `player_skills` WHERE `player_id`='$user_id' LIMIT 7;");
$playerData['fist'] = $playerData[0]['value']; unset($playerData[0]);
$playerData['club'] = $playerData[1]['value']; unset($playerData[1]);
$playerData['sword'] = $playerData[2]['value']; unset($playerData[2]);
$playerData['axe'] = $playerData[3]['value']; unset($playerData[3]);
$playerData['dist'] = $playerData[4]['value']; unset($playerData[4]);
$playerData['shield'] = $playerData[5]['value']; unset($playerData[5]);
$playerData['fish'] = $playerData[6]['value']; unset($playerData[6]);$player = mysql_select_single("SELECT `health`, `healthmax`, `mana`, `manamax`, `experience`, `maglevel`, `level` FROM `players` WHERE `id`='$user_id' LIMIT 1;");
$playerData['magic'] = $player['maglevel'];
$playerData['exp'] = array(
'now' => $player['experience'],
'next' => (int)(level_to_experience($player['level']+1) - $player['experience']),
'percent' => (int)(($player['experience'] - level_to_experience($player['level'])) / (level_to_experience($player['level']+1) - $player['experience']) * 100)
);
$playerData['health'] = array(
'now' => $player['health'],
'max' => $player['healthmax'],
'percent' => (int)($player['health'] / $player['healthmax'] * 100),
);
$playerData['mana'] = array(
'now' => $player['mana'],
'max' => $player['manamax'],
'percent' => (int)($player['mana'] / $player['manamax'] * 100),
);
} else {
$player = mysql_select_single("SELECT `health`, `healthmax`, `mana`, `manamax`, `experience`, `skill_fist`, `skill_club`, `skill_sword`, `skill_axe`, `skill_dist`, `skill_shielding`, `skill_fishing`, `maglevel`, `level` FROM `players` WHERE `id`='$user_id' LIMIT 1;");
$playerData = array(
'fist' => $player['skill_fist'],
'club' => $player['skill_club'],
'sword' => $player['skill_sword'],
'axe' => $player['skill_axe'],
'dist' => $player['skill_dist'],
'shield' => $player['skill_shielding'],
'fish' => $player['skill_fishing'],
'magic' => $player['maglevel'],
'exp' => array(
'now' => $player['experience'],
'next' => (int)(level_to_experience($player['level']+1) - $player['experience']),
'percent' => (int)(($player['experience'] - level_to_experience($player['level'])) / (level_to_experience($player['level']+1) - $player['experience']) * 100)
),
'health' => array(
'now' => $player['health'],
'max' => $player['healthmax'],
'percent' => (int)($player['health'] / $player['healthmax'] * 100),
),
'mana' => array(
'now' => $player['mana'],
'max' => $player['manamax'],
'percent' => (int)($player['mana'] / $player['manamax'] * 100),
)
);
}
// Incase they have more health/mana than they should due to equipment bonus etc
if ($playerData['exp']['percent'] > 100) $playerData['exp']['percent'] = 100;
if ($playerData['health']['percent'] > 100) $playerData['health']['percent'] = 100;
if ($playerData['mana']['percent'] > 100) $playerData['mana']['percent'] = 100;
//data_dump($playerData, false, "Player Data");
?>
<!-- PLAYER SKILLS TABLE -->
<table cellspacing="1" cellpadding="4" style="width: <?php echo $tableWidth; ?>px;">
<tr class="yellow">
<th>Fist</th>
<th>Club</th>
<th>Sword</th>
<th>Axe</th>
<th>Dist</th>
<th>Shield</th>
<th>Fish</th>
<th>Magic</th>
</tr>
<tr>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['fist']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['club']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['sword']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['axe']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['dist']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['shield']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['fish']; ?>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['magic']; ?>
</td>
</tr>
</table>
<!-- PLAYER INFO TABLE -->
<table cellspacing="1" cellpadding="4" style="width: <?php echo $tableWidth; ?>px;">
<tr>
<td bgcolor="#F1E0C6" align="left" width="20%">
<b>Player HP:</b>
</td>
<td bgcolor="#F1E0C6" align="left">
<?php echo $playerData['health']['now'].'/'.$playerData['health']['max']; ?>
<div style="width: 100%; height: 3px; border: 1px solid #000;">
<div style="background: red; width: <?php echo $playerData['health']['percent']; ?>%; height: 3px;">
</div>
</div>
</td>
</tr>
<tr>
<td bgcolor="#D4C0A1" align="left">
<b>Player MP:</b>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo $playerData['mana']['now'].'/'.$playerData['mana']['max']; ?>
<div style="width: 100%; height: 3px; border: 1px solid #000;">
<div style="background: blue; width: <?php echo $playerData['mana']['percent']; ?>%; height: 3px;">
</div>
</div>
</td>
</tr>
<tr>
<td bgcolor="#D4C0A1" align="left">
<b>Player XP:</b>
</td>
<td bgcolor="#D4C0A1" align="left">
<?php echo number_format($playerData['exp']['now'], 0, "", " "); ?> Experience.
</td>
</tr>
<tr>
<td bgcolor="#F1E0C6" align="left">
<b>To Next Lvl:</b>
</td>
<td bgcolor="#F1E0C6" align="left">
Need <b><?php echo number_format($playerData['exp']['next'], 0, "", " "); ?> experience (<?php echo 100-$playerData['exp']['percent']; ?>%)</b> to Level <b><?php echo $player['level']+1; ?></b>.
<div title="99.320604545 %" style="width: 100%; height: 3px; border: 1px solid #000;">
<div style="background: red; width: <?php echo $playerData['exp']['percent']; ?>%; height: 3px;"></div>
</div>
</td>
</tr>
</table>
<!-- END detailed character info --><?php
if ($config['country_flags'])
{ ?>
<!-- Player country data -->
<li><font class="profile_font" name="profile_font_country">Country: <?php echo '<img src="\flags\\' . $account_data['flag'] . '.png">'; ?></font></li><?php
} ?>
<!-- Player male / female -->
<li>
<font class="profile_font" name="profile_font_level">Sexo:
<?php
if ($profile_data['sex'] == 1)
{
echo 'Masculino';
}
else
{
echo 'Feminino';
}
?>
</font>
</li>
<!-- Player level -->
<li>
<font class="profile_font" name="profile_font_level">Level:
<?php
echo $profile_data['level'];
?>
</font>
</li>
<!-- Player vocation -->
<li><font class="profile_font" name="profile_font_vocation">Classe: <?php echo vocation_id_to_name($profile_data['vocation']); ?></font></li>
<!-- Player guild -->
<?php
if ($guild_exist)
{
?>
<li>
<font class="profile_font" name="profile_font_vocation">
<b><?php echo $guild['rank_name']; ?> </b> of <a href="guilds.php?name=<?php echo $guild_name; ?>"><?php echo $guild_name; ?></a>
</font>
</li>
<?php
}
?>
<!-- Player last login -->
<li>
<font class="profile_font" name="profile_font_lastlogin">Last Login:
<?php
if ($profile_data['lastlogin'] != 0)
{
echo getClock($profile_data['lastlogin'], true, true);
}
else
{
echo 'Never.';
}
?>
</font>
</li>
<!-- Achievement start -->
<?php
if ($config['Ach'])
{
foreach ($achievementPoints as $achievement)
{
//if player doesn't have any achievement points it won't echo the line below.
if ($achievement > 0)
{
echo '<li>Achievement Points: ' . $achievement . '</li>';
}
}
}
?>
<!-- Achievement end -->
<!-- Display house start -->
<?php
if ($config['TFSVersion'] !== 'TFS_02')
{
$townid = ($config['TFSVersion'] === 'TFS_03') ? 'town' : 'town_id';
$houses = mysql_select_multi("SELECT `id`, `owner`, `name`, `$townid` AS `town_id` FROM `houses` WHERE `owner` = $user_id;");
if ($houses)
{
$playerlist = array();
foreach ($houses as $h)
{
if ($h['owner'] > 0)
{
$playerlist[] = $h['owner'];
}
if ($profile_data['id'] = $h['owner'])
{
?>
<li>House: <?php echo $h['name']; ?>, <?php
foreach ($config['towns'] as $key => $value)
{
if ($key == $h['town_id'])
{
echo $value;
}
}
?>
</li>
<?php
}
}
}
}
?>
<!-- Display house end -->
<!-- Display player status -->
<li><font class="profile_font" name="profile_font_status">Status:</font> <?php
if ($config['TFSVersion'] == 'TFS_10')
{
if ($profile_data['online'])
{
echo '<font class="profile_font" name="profile_font_online" color="green"><b>ONLINE</b></font>';
}
else
{
echo '<font class="profile_font" name="profile_font_online" color="red"><b>OFFLINE</b></font>';
}
}
else
{
if ($profile_data['online'])
{
echo '<font class="profile_font" name="profile_font_online" color="green"><b>ONLINE</b></font>';
}
else
{
echo '<font class="profile_font" name="profile_font_online" color="red"><b>OFFLINE</b></font>';
}
}
?>
</li>
<!-- Display player status end -->
<!-- Player created -->
<li><font class="profile_font" name="profile_font_created">Created: <?php echo getClock($profile_znote_data['created'], true); ?></font></li>
<!-- Player Comment -->
<?php
//if player doesnt have set a comment dont show it.
if (!empty($profile_znote_data['comment']))
{ ?>
<li>
<font class="profile_font" name="profile_font_comment">Comment:</font><br>
<textarea name="profile_comment_textarea" cols="70" rows="10" readonly="readonly" class="span12"><?php echo $profile_znote_data['comment']; ?></textarea>
</li>
<?php
}
?>
<!-- Achievements start -->
<?php if ($config['Ach'])
{ ?>
<h3 class="header-ok">Achievements</h3>
<div id="accordion">
<h3>Show/hide player achievements</h3>
<div>
<table class="table table-striped table-bordered">
<tbody>
<style>
#secondD {
margin-left:0px;
}
</style>
<?php
foreach ($config['achievements'] as $key => $achiv)
{
$uery = mysql_select_single("SELECT `player_id`, `value`, `key` FROM `player_storage` WHERE `player_id`='$user_id' AND `key`='$key' LIMIT 1;");
if (!empty($uery) || $uery !== false)
{
foreach ($uery as $luery)
{
if ($luery == $key)
{
if (!array_key_exists($key, $achiv))
{
echo '<tr><td width="17%">' .$achiv[0]. '</td><td>' .$achiv[1]. '</td>';
if (!isset($achiv['secret']))
{
echo '<td><img id="secondD" src="http://img04.imgland.net/PuMz0mVqSG.gif"></td>';
}
echo '<td>'. $achiv['points'] .'</td>';
echo '<tr>';
}
}
}
}
}
?>
</tbody>
</table>
</div>
</div><br>
<?php
}
?>
<!-- Achievements end -->
<!-- DEATH LIST -->
<li>
<b>Death List:</b><br>
<?php
if ($config['TFSVersion'] == 'TFS_02')
{
$array = user_fetch_deathlist($user_id);
if ($array)
{
?>
<ul>
<?php
// Design and present the list
foreach ($array as $value)
{ ?>
<li>
<?php
$value['time'] = getClock($value['time'], true);
if ($value['is_player'] == 1)
{
$value['killed_by'] = 'player: <a href="characterprofile.php?name='. $value['killed_by'] .'">'. $value['killed_by'] .'</a>';
}
else
{
$value['killed_by'] = 'monster: '. $value['killed_by'] .'.';
}
echo '['. $value['time'] .'] Killed at level '. $value['level'] .' by '. $value['killed_by']; ?>
</li>
<?php
}
?>
</ul>
<?php
}
else
{
echo '<b><font color="green">Esse jogador nunca morreu.</font></b>';
}
}
else if ($config['TFSVersion'] == 'TFS_10')
{
$deaths = mysql_select_multi("SELECT
`player_id`, `time`, `level`, `killed_by`, `is_player`,
`mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`
FROM `player_deaths`
WHERE `player_id`=$user_id ORDER BY `time` DESC LIMIT 10;");if ($deaths)
{
foreach ($deaths as $d)
{
?>
<li>
<?php echo "<b>".getClock($d['time'], true, true)."</b>";
$lasthit = ($d['is_player']) ? "<a href='characterprofile.php?name=".$d['killed_by']."'>".$d['killed_by']."</a>" : $d['killed_by'];
echo ": Killed at level ".$d['level']." by $lasthit";
if ($d['unjustified'])
{echo " <font color='red' style='font-style: italic;'>(unjustified)</font>";}
$mostdmg = ($d['mostdamage_by'] !== $d['killed_by']) ? true : false;
if ($mostdmg)
{
$mostdmg = ($d['mostdamage_is_player']) ? "<a href='characterprofile.php?name=".$d['mostdamage_by']."'>".$d['mostdamage_by']."</a>" : $d['mostdamage_by'];
echo "<br>and by $mostdmg.";
if ($d['mostdamage_unjustified'])
{ echo " <font color='red' style='font-style: italic;'>(unjustified)</font>"; }
}
else
{ echo " <b>(soloed)</b>"; }
?>
</li>
<?php
}
}
else
{
echo '<b><font color="green">Esse jogador nunca morreu.</font></b>';
}
}
else if ($config['TFSVersion'] == 'TFS_03')
{
//mysql_select_single("SELECT * FROM players WHERE name='TEST DEBUG';");
$array = user_fetch_deathlist03($user_id);
if ($array)
{?>
<ul>
<?php
// Design and present the list
foreach ($array as $value)
{ ?>
<li>
<?php
$value[3] = user_get_killer_id(user_get_kid($value['id']));
if ($value[3] !== false && $value[3] >= 1)
{
$namedata = user_character_data((int)$value[3], 'name');
if ($namedata !== false)
{
$value[3] = $namedata['name'];
$value[3] = 'player: <a href="characterprofile.php?name='. $value[3] .'">'. $value[3] .'</a>';
}
else
{
$value[3] = 'deleted player.';
}
}
else
{
$value[3] = user_get_killer_m_name(user_get_kid($value['id']));
if ($value[3] === false)
{ $value[3] = 'deleted player.'; }
}
echo '['. getClock($value['date'], true) .'] Killed at level '. $value['level'] .' by '. $value[3];
echo '</li>';
}
?>
</ul>
<?php
}
else { echo '<b><font color="green">Este jogador nunca morreu.</font></b>'; }
}
?>
</li>
<!-- END DEATH LIST -->
<!-- QUEST PROGRESSION -->
<?php
$totalquests = 0;
$completedquests = 0;
$firstrun = 1;
if ($config['EnableQuests'] == true)
{
$sqlquests = mysql_select_multi("SELECT `player_id`, `key`, `value` FROM player_storage WHERE `player_id` = $user_id");
foreach ($config['quests'] as $cquest)
{
$totalquests = $totalquests + 1;
foreach ($sqlquests as $dbquest)
{
if ($cquest[0] == $dbquest['key'] && $cquest[1] == $dbquest['value'])
{
$completedquests = $completedquests + 1;
}
}
if ($cquest[3] == 1)
{
if ($completedquests != 0)
{
if ($firstrun == 1)
{
?>
<li>
<b> Quest progression </b>
<table id="characterprofileQuest" class="table table-striped table-hover">
<tr class="yellow">
<th>Quest:</th>
<th>progression:</th>
</tr>
<?php
$firstrun = 0;
}
$completed = $completedquests / $totalquests * 100;
?>
<tr>
<td><?php echo $cquest[2]; ?></td>
<td id="progress">
<span id="percent"><?php echo round($completed); ?>%</span>
<div id="bar" style="width: '.$completed.'%"></div>
</td>
</tr>
<?php
}
$completedquests = 0;
$totalquests = 0;
}
}
}
if ($firstrun == 0)
{ ?>
</table></li>
<?php
}
?>
<!-- END QUEST PROGRESSION -->
<!-- CHARACTER LIST -->
<?php
if (user_character_hide($profile_data['name']) != 1 && user_character_list_count(user_character_account_id($name)) > 1)
{
?>
<li>
<b>Outros personagens visiveis desta conta:</b><br>
<?php
$characters = user_character_list(user_character_account_id($profile_data['name']));
// characters: [0] = name, [1] = level, [2] = vocation, [3] = town_id, [4] = lastlogin, [5] = online
if ($characters && count($characters) > 0)
{
?>
<table id="characterprofileTable" class="table table-striped table-hover">
<tr class="yellow">
<th>Nome:</th>
<th>Level:</th>
<th>Classe:</th>
<th>Ultimo Login:</th>
<th>Status:</th>
</tr>
<?php
// Design and present the list
foreach ($characters as $char)
{
if ($char['name'] != $profile_data['name'])
{
if (hide_char_to_name(user_character_hide($char['name'])) != 'hidden')
{ ?>
<tr>
<td><a href="characterprofile.php?name=<?php echo $char['name']; ?>"><?php echo $char['name']; ?></a></td>
<td><?php echo (int)$char['level']; ?></td>
<td><?php echo $char['vocation']; ?></td>
<td><?php echo $char['lastlogin']; ?></td>
<td><?php echo $char['online']; ?></td>
</tr>
<?php
}
}
}
?>
</table>
<?php
}
else
{
echo '<b><font color="green">Esse jogar nunca morreu.</font></b>';
}
?>
</li>
<?php
}
?>
<!-- END CHARACTER LIST -->
<li>
<font class="profile_font" name="profile_font_share_url">Address:
<a href="
<?php
if ($config['htwrite'])
{
echo "http://" . $_SERVER['HTTP_HOST']."/" . $profile_data['name'];
}
else
{
echo "http://" . $_SERVER['HTTP_HOST'] . "/characterprofile.php?name=" . $profile_data['name'];
}
?>">
<?php
if ($config['htwrite'])
{
echo "http://".$_SERVER['HTTP_HOST']."/". $profile_data['name'];
}
else
{
echo "http://".$_SERVER['HTTP_HOST']."/characterprofile.php?name=". $profile_data['name'];
}
?>
</a></font></li>
</ul>
<!-- END PROFILE MARKUP HERE-->
<?php
}
else
{
echo htmlentities(strip_tags($name, ENT_QUOTES)) . ' does not exist.';
}
}
else
{
header('Location: index.php');
}include 'layout/overall/footer.php'; ?>
-
Pessoal, estou usando um script do Keilost1
É um script que faz com que seu char fique girando nos trainer para que não seja pego pelo otservlist como um personagem ausente, e consequentemente, tome ban na lista de servidores.
O script é esse:
Citarfunction mudarVis(uid)
look = getCreatureLookDirection(uid)
look = look < 3 and look + 1 or 0
doCreatureSetLookDirection(uid, look)
addEvent(mudarVis, 2000, uid)
endlocal events1 = {}
local trainerst = 456488function onStepIn(cid)
events1[getPlayerGUID(cid)] = addEvent(mudarVis, 1000, cid)
doPlayerSendTextMessage(cid, 27, "Bem-vindo a sua sala de treinamento, você será movimentado automaticamente para que continue treinando!")
setPlayerStorageValue(cid,trainerst,1)
return true
endfunction onStepOut(cid)
stopEvent(events1[getPlayerGUID(cid)])
setPlayerStorageValue(cid,trainerst,-1)
return true
end
<!-- Training Tiles Idle --> <movevent type="StepIn" actionid="15432" event="script" value="idletile.lua" /> <movevent type="StepOut" actionid="15432" event="script" value="idletile.lua" />
Ele funcionaria corretamente se após sair do piso do trainer que configurei a action ID o personagem não continuasse rodando sem parar. A única maneira de fazer pará-lo nessa situação seria relogando.
Creio que o "trainerst,-1" no OnStepOut não esteja funcionando. Há alguma alternativa?
-
9 horas atrás, strakh disse:
Pelo o que eu entendi isso ai é padrão do banco, como ele compara por string, ele vai ler primeiro os que começam com 1 e depois 2 e assim por diante.
Exemplo: 1, 11, 12 , 100, 101... 2, 20, 21, 22, 200... 3, 30, 31, 32, 300...
Isso é apenas na parte de exibição do banco, internamente ele se organiza de forma correta.
Entendi. Então infelizmente meu rank por reset não dará certo, né?
Eu vou usar o seu primeiro script de exibição por level e reset então. :D -
3 horas atrás, strakh disse:
@davidvietro Opa, que bom
Qualquer coisa estamos aqui...
Cara, estou com um problema aqui, mas não envolve seu script (ele está perfeito)
É o seguinte, o meu banco de dados organiza os resets por ordem de 9>8>7>6... porém, a partir do número 10 ou 11, na linha de organização, ele fica abaixo do 1. Consegue entender? vou te mandar uma foto:
http://s11.postimg.org/teqhzy64z/aaa.jpg
Teria como mudar isso? pq nos ranks do reset vai aparecer só os players com até 9 resets, após isso, será desconsiderado porque o database entende ser um número menor.
-
3 minutos atrás, strakh disse:
@davidvietro Olá, desculpe a demora, eu não estava em casa .
Teste esse novo script, ajustei a parte da ordenação e da tag small (se puder posta uma print):
<?php $limitt = 5; $_storage = 378378; $skills = mysql_select_multi("SELECT a.name, a.level, a.experience, b.resets FROM (SELECT * FROM players WHERE group_id < 2 AND name != 'Account Manager') a left join (SELECT b.player_id, b.value as resets FROM player_storage b WHERE b.key = '$_storage') b on (a.id = b.player_id) ORDER BY b.resets DESC, a.level DESC, a.experience DESC LIMIT $limitt"); $number_of_rows = 0; foreach($skills as $skillss) { $number_of_rows++; echo '+ <b></b><a href="characterprofile.php?name='.urlencode($skillss['name']).'" class="menu">'.$skillss['name'].'</a><br>'; echo '<em class="style2">Level: <b>'.urlencode($skillss['level']).'</b> <small>Resets: <b>'. (($skillss['resets'])? $skillss['resets'] : 0) .'</b></small></em></li><br />'; } ?>
Cara, funcionou perfeitamente! Você é demais! muito obrigado!!!
Segue o print:
-
Cara, não funcionou muito bem.
Apareceu os resets, mas ainda não estar organizando pelo reset mas sim pelo level. E também bugou a fonte. A primeira palavra do player o tamanho da fonte ficou normal, o restante foi diminuindo gradualmente. Vou tentar arrumar aqui, mas já fico muito agradecido pela ajuda. Se tiver alguma ideia de como solucionar, agradeço mais ainda :D
Edição:
Cara, descobri que o problema do tamanho das fontes era por um comando <small> que não estava fechado, já arrumei.
O problema agora é a ordem, gostaria que fosse organizado por resets e não por level :D -
-
Galera, eu preciso de uma ajuda. Tenho um template de ranking no meu site, ele está configurado como padrão por level.
Porém, eu gostaria de mostrar esse ranking por números de reset. O sistema de reset que uso é por storage, em que linha deveria alterar para mostrar os valores organizados de uma storage?
A storage é: 378378
topplayers.phpCitar<div class="mod-tab">
<div class="module">
<div class="module-2">
<div class="module-3">
<div class="module-4">
<div class="module-5 deepest">
<div class="header-container-1">
<div class="header-container-2">
<div class="header-l"></div>
<div class="header-r"></div>
<h3 class="module"><span class="color">Top 5</span> Jogadores</h3>
</div>
</div>
<div style="overflow: hidden;">
<div>
<div>
<?php
$limitt = 5;
$skills = mysql_select_multi("SELECT `name`,`level`,`experience` FROM `players` WHERE `group_id` < '2' AND `name` != 'Account Manager' ORDER BY `level` DESC, `experience` DESC LIMIT $limitt");
$number_of_rows = 0;
foreach($skills as $skillss) {
$number_of_rows++;
echo '+ <b></b><a href="characterprofile.php?name='.urlencode($skillss['name']).'" class="menu">'.$skillss['name'].'</a><br>';
echo '<em class="style2">Level: <b>'.urlencode($skillss['level']).'</b></em></li><br />';
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> -
Olá, galera. Eu gostaria que alguém me ajudasse a desenvolver um script, que na minha ideia de leigo, é razoavelmente simples: um NPC que guarda logs.
Exemplo, um player chega pro npc, fala algo e esse algo é guardado num arquivo log dentro do servidor.
Desde já agradeço.
Procuro Mapper. Pagamento em R$
em Formação de Equipe
Postado
Te enviei um e-mail, aguardo contato.