Tudo que Sociopata postou
-
Tirando Bug do gesior-Server offline e 0 players
Olá, muitos usuários do Gesior acc maker ja perceberam que no canto superior direito aparece Server Offline Apesar dele estar online tudo certinho, alguns conseguem arrumar e quando arruma fica 0 players apesar de estar 10 por exemplo, pensado nisso resolvi fazer um tuto de como arrumar. 1º Para arrumar esse bug do ''Server Offline'', basta ir no arquivo em \xampp\htdocs\layouts\tibiacom\layout.php nele, encontre if($config['status']['serverStatus_online'] == 1) 2º substituia por Pronto! Problema do Server Offline Resolvido! mais pera aí ! de que adianta se agora ta aparecendo 0 players online? 3º Agora, adicione ainda no layout.php, antes da tag <head> o seguinte script: <?PHP $update_interval = 10; if(count($config['site']['worlds']) > 1) { $worlds .= '<i>Select world:</i> '; foreach($config['site']['worlds'] as $id => $world_n) { $worlds .= ' <a href="?subtopic=whoisonline&world='.$id.'">'.$world_n.'</a> , '; if($id == (int) $_GET['world']) { $world_id = $id; $world_name = $world_n; } } $main_content .= substr($worlds, 0, strlen($worlds)-3); } if(!isset($world_id)) { $world_id = 0; $world_name = $config['server']['serverName']; } $order = $_REQUEST['order']; if($order == 'level') $orderby = 'level'; elseif($order == 'vocation') $orderby = 'vocation'; if(empty($orderby)) $orderby = 'name'; $tmp_file_name = 'cache/whoisonline-'.$orderby.'-'.$world_id.'.tmp'; if(file_exists($tmp_file_name) && filemtime($tmp_file_name) > (time() - $update_interval)) { $tmp_file_content = explode(",", file_get_contents($tmp_file_name)); $number_of_players_online = $tmp_file_content[0]; $players_rows = $tmp_file_content[1]; } else { $players_online_data = $SQL->query('SELECT * FROM players WHERE world_id = '.(int) $world_id.' AND online > 0 ORDER BY '.$orderby); $number_of_players_online = 0; foreach($players_online_data as $player) { $number_of_players_online++; $acc = $SQL->query('SELECT * FROM '.$SQL->tableName('accounts').' WHERE '.$SQL->fieldName('id').' = '.$player['account_id'].'')->fetch(); if(is_int($number_of_players_online / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $rs = ""; if ($player['skulltime'] > 0 && $player['skull'] == 3) $rs = "<img style='border: 0;' src='./images/whiteskull.gif'/>"; elseif ($player['skulltime'] = $player['skull'] == 4) $rs = "<img style='border: 0;' src='./images/redskull.gif'/>"; elseif ($player['skulltime'] = $player['skull'] == 5) $rs = "<img style='border: 0;' src='./images/blackskull.gif'/>"; $players_rows .= '<TR BGCOLOR='.$bgcolor.'><TD WIDTH=10%><image src="images/flags/'.$acc['flag'].'.png"/></TD><TD WIDTH=70%><A HREF="?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].$rs.'</A></TD><TD WIDTH=10%>'.$player['level'].'</TD><TD WIDTH=20%>'.$vocation_name[$world_id][$player['promotion']][$player['vocation']].'</TD></TR>'; } } 4º E onde estiver (em baixo do if que você alterou no passo 1) Substitua por Pronto ! Foi usado o Gesior 0.3.8 CREDITOS TheFog Sociopata
-
Atendente da telefonica esculacha cliente.
então eu vo mida de mau hsuahsuahsuahsuahsuahsuahushaushaushaus
- {AJUDA} Erro no server..
- {AJUDA} Erro no server..
- {AJUDA} Erro no server..
-
[8.54] Naruto Open Wings
ja tentou cria outro e dar GOD?
-
[Resolvido] [SOCORRO] GESIOR !
Se vc quiser e conseguir fazer o oq o gpedro disse eu fiz um video +/- de como proteger seu site esse é o meu - http://tibiaking.com/forum/topic/9125-protegendo-seu-site/ e esse do gpedro q ele explica no fim do video como proteger - http://tibiaking.com/forum/topic/8928-criando-abas-paginas-e-corrigindo-seguranca-do-gesioraac/
-
Gesior ACC (Last Version) - Última Versão
Diga o erro para poder te ajudar e arrumar
-
[Resolvido] Sobre o evento! - dúvida
Duvida sanada Topico Fechado
-
[Action] Remover Pedra com Alavanca
Amigo o seu problema eu o mesmo q eu tive oq acontece é que vc trocou as alavancas eu acho em vez de vc colocar ela com o id - 1945 vc colocou 1946 n mude nada no seu mapa editor so troque seu script por esse e veja se funciona function onUse(cid, item, toPosition) rock1pos = {x=XXXX, y=YYYY, z=ZZ, stackpos=1} -- Posição da Pedra getrock1 = getThingfromPos(rock1pos) UniID = 3331 -- UniqueID que vai ser adicionado na alavanca rockID = 1304 -- ID da pedra if item.uid == UniID and item.itemid == 1946 and getrock1.itemid == rockID then doRemoveItem(getrock1.uid, 1) doTransformItem(item.uid, item.itemid+1) doSendMagicEffect(rock1pos, 2) elseif item.uid == UniID and item.itemid == 1945 then doCreateItem(rockID, 1, rock1pos) doTransformItem(item.uid,item.itemid-1) doSendMagicEffect(rock1pos, 13) end return TRUE end tbm pode não ser isso mas acho q é
-
[Resolvido] Sobre o evento! - dúvida
se vc está falando sobre o da SS do concurso de natal e ano novo das frases o resultado ja saiu RESULTADO
-
(Resolvido) Ajuda com esse script
function onEquip(cid, item, slot) doTransformItem(item.uid, 6092, 1) doPlayerSendTextMessage(cid, 22, ' ') if getConfigValue("experienceStages") == "yes" then doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*4) else doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*4) end return TRUE end function onDeEquip(cid, item, slot) doTransformItem(item.uid, 6091, 1) doPlayerSendTextMessage(cid, 22, ' ') doPlayerSetExperienceRate(cid, 1) getConfigValue(key) return TRUE end estou aprendendo script mas acho q é isso tenta esse ae
- Queremos sua opinião!
-
(Resolvido) Erro Gesior ACC
Tenta esse n sou mto bom com PHP mas veja ae
- [Gesior] Ultima Skill Avançada!
-
[Gesior] Ultima Skill Avançada!
Bem aqui vai o tutorial de uma nova estatistica para o Gesior Acc Maker a Lastest Skill Advanced. Adicione esse codigo SQL no seu PhpMyadmin DROP TABLE IF EXISTS `player_advances`; CREATE TABLE `player_advances` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cid` int(11) DEFAULT NULL, `skill` int(11) DEFAULT NULL, `oldlevel` int(11) DEFAULT NULL, `newlevel` int(11) DEFAULT NULL, `time` int(11) DEFAULT NULL, UNIQUE KEY `id` (`id`), KEY `cid` (`cid`), CONSTRAINT `player_advances_ibfk_1` FOREIGN KEY (`cid`) REFERENCES `players` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; Agora em seu OT em creaturescripts/creaturescripts.xml adicione isso <event type="advance" name="PlayerAdvance" event="script" value="playeradvance.lua"/> Agora em creaturescripts\scripts crie um arquivo .LUA com o nome playeradvance e dentro coloque isso! function onAdvance(cid, skill, oldLevel, newLevel)[/font][/color] [color=#282828][font=helvetica, arial, sans-serif] db.executeQuery("INSERT INTO player_advances (cid, skill, oldlevel, newlevel, time) VALUES ('" .. getPlayerGUID(cid) .. "', '" .. skill .."', '" .. oldLevel .."', '" .. newLevel .."', '" .. os.time() .. "' )")[/font][/color] [color=#282828][font=helvetica, arial, sans-serif] return true end Dentro co creaturescript/scripts/login.lua adicione isso! registerCreatureEvent(cid, "PlayerAdvance") Agora em characters.php logo após de signatures adicione isso! //BEGIN Player advances by jerryb1988 from otfans.net if($config['site']['number_of_advances'] > 0) { $numadvances = $config['site']['number_of_advances']; $advances = 0; $player_advances = $SQL->query('SELECT * FROM `player_advances` WHERE `cid` = '.$player->getId().' ORDER BY `time` DESC LIMIT '.$numadvances.';');[/font][/color] [color=#282828][font=helvetica, arial, sans-serif] foreach($player_advances as $advance) { $skill = $advance['skill']; if ($skill == 0){$skill_name = '<font color=purple><B>Fist</B></font>';} if ($skill == 1){$skill_name = '<font color=purple><B>Club</B></font>';} if ($skill == 2){$skill_name = '<font color=purple><B>Sword</B></font>';} if ($skill == 3){$skill_name = '<font color=purple><B>Axe</B></font>';} if ($skill == 4){$skill_name = '<font color=purple><B>Distance</B></font>';} if ($skill == 5){$skill_name = '<font color=purple><B>Shielding</B></font>';} if ($skill == 6){$skill_name = '<font color=purple><B>Fishing</B></font>';} if ($skill == 7){$skill_name = '<font color=blue><B>Magic</B></font>';} if ($skill == 8){$skill_name = '<font color=red><B>Level</B></font>';} if(is_int($advances / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $advances++; $advances_add_content .= "<tr bgcolor=\"".$bgcolor."\"><td width=\"20%\" align=\"center\"><nobr>".date("j M Y, g:i a", $advance['time'])."</td><td>".$skill_name."</td><td width=75><font color=red><B>".$advance['oldlevel']."</B></font></td><td width=75><font color=green><B>".$advance['newlevel']."</B></font></tr>"; }[/font][/color] [color=#282828][font=helvetica, arial, sans-serif] if($advances > 0) $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=4 CLASS=white><B>Lastest Skill Advances</B></TD></TR><tr bgcolor='.$config['site']['darkborder'].'><td><b>Time</b></td><td><b>Skill</b></td><td><b>Old Level</b></td><td><b>New Level</b></td></tr>' . $advances_add_content . '</TABLE><br />'; } //END Advances by jerryb1988 from otfans.net e pra finalizar em htdocs\config/config.php adicione isso! [color=#000000][color=#0000BB]$config[/color][color=#007700][[/color][color=#DD0000]'site'[/color][color=#007700]][[/color][color=#DD0000]'show_health_information'[/color][color=#007700]] = [/color][color=#0000BB]1[/color][color=#007700]; [/color][color=#FF8000]//Show health bar [/color] [color=#0000BB]$config[/color][color=#007700][[/color][color=#DD0000]'site'[/color][color=#007700]][[/color][color=#DD0000]'show_mana_information'[/color][color=#007700]] = [/color][color=#0000BB]1[/color][color=#007700]; [/color][color=#FF8000]//Show mana bar [/color] [color=#0000BB]$config[/color][color=#007700][[/color][color=#DD0000]'site'[/color][color=#007700]][[/color][color=#DD0000]'show_exp_information'[/color][color=#007700]] = [/color][color=#0000BB]1[/color][color=#007700]; [/color][color=#FF8000]//Show exp bar [/color] [color=#0000BB]$config[/color][color=#007700][[/color][color=#DD0000]'site'[/color][color=#007700]][[/color][color=#DD0000]'number_of_advances'[/color][color=#007700]] = [/color][color=#0000BB]5[/color][color=#007700]; [/color][color=#FF8000]// number of latest skill advances to show on character page [/color][/color][/font][/color] [color=#282828][font=helvetica, arial, sans-serif][color=#000000][color=#FF8000] Bem o que exatamente ele faz? Ele mostra a ultima skill upada pelo player! Créditos jerryb1988 da Otfans PiabetaMan01 Sociopata(EU)
- Bug Gesior 3.8 Spells
- {URGENTE}Comando /attr bugado..
- {URGENTE}Comando /attr bugado..
-
{URGENTE}Comando /attr bugado..
Add esse script ae local itemFuncs = { ["attackspeed"] = setItemAttackSpeed, ["name"] = setItemName, ["plural"] = setItemPluralName, ["attack"] = setItemAttack, ["extraattack"] = setItemExtraAttack, ["defense"] = setItemDefense, ["armor"] = setItemArmor, ["extradefense"] = setItemExtraDefense, ["hitchance"] = setItemHitChance, ["range"] = setItemShootRange, ["actionid"] = doSetItemActionId, ["action"] = doSetItemActionId, ["aid"] = doSetItemActionId, ["description"] = doSetItemSpecialDescription, ["desc"] = doSetItemSpecialDescription, ["protection"] = doSetItemProtection, ["charges"] = doChangeTypeItem, ["count"] = doChangeTypeItem }[/size][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"][size=3]local creatureFuncs = { ["health"] = doCreatureAddHealth, ["maxhealth"]= setCreatureMaxHealth, ["mana"] = doCreatureAddMana, ["maxmana"] = setCreatureMaxMana, ["speed"] = doChangeSpeed, ["droploot"] = doCreatureSetDropLoot, ["cannotmove"] = doCreatureSetNoMove, ["skull"] = doCreatureSetSkullType, ["redskull"] = doPlayerSetRedSkullTicks }[/size][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"][size=3]local playerFuncs = { ["fyi"] = doPlayerPopupFYI, ["tutorial"] = doPlayerSendTutorial, ["guildrank"] = doPlayerSetGuildRank, ["guildnick"] = doPlayerSetGuildNick, ["group"] = doPlayerSetGroupId, ["vocation"] = doPlayerSetVocation, ["promotion"] = setPlayerPromotionLevel, ["stamina"] = doPlayerAddStamina, ["town"] = doPlayerSetTown, ["balance"] = doPlayerDepositMoney }[/size][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"][size=3]function onSay(cid, words, param, channel) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return TRUE end[/size][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"][size=3]local pos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z, stackpos=1} if getCreatureLookDirection(cid) == SOUTH then pos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z, stackpos=255} elseif getCreatureLookDirection(cid) == NORTH then pos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z, stackpos=255} elseif getCreatureLookDirection(cid) == EAST then pos = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z, stackpos=255} elseif getCreatureLookDirection(cid) == WEST then pos = {x=getCreaturePosition(cid).x-1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z, stackpos=255} end[/size][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"][size=3]local t = string.explode(param, ",")[/size][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"][size=3]local getThing = getThingFromPos(pos)[/size][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"][size=3]if itemFuncs[t[1]] then if getThing.itemid > 0 then if itemFuncs[t[1]](getThing.uid, t[2]) then doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can not add attribute to this item.") return TRUE end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item not found.") return TRUE end elseif creatureFuncs[t[1]] then if isCreature(getThing.uid) then if creatureFuncs[t[1]](getThing.uid, t[2]) then doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can not add attribute to this creature.") return TRUE end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.") return TRUE end elseif playerFuncs[t[1]] then if isPlayer(getThing.uid) then if playerFuncs[t[1]](getThing.uid, t[2]) then doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can not add attribute to this player.") return TRUE end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return TRUE end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Unknow attribute.") return TRUE end return TRUE end
- {URGENTE}Comando /attr bugado..
-
Como criar um script de quest
mas tem q saber fazer neh
- {URGENTE}Comando /attr bugado..
-
Duvida Narutibia
ae vai do bot
-
Duvida Narutibia
penso eu que o bot lê os arquivos tibia.spr e os outros na pasta tibia em quanto isso o cliente de narutibia tem vários arquivos bem diferentes da de tibia normal