Ir para conteúdo

Executer

Membro
  • Registro em

  • Última visita

Tudo que Executer postou

  1. Fica dando debug aqui pq?
  2. Bom eu não sei edita, mas esta ae o talkaction que carrega a soft e a firewalker. pq o talkaction do Renato ae, esta é criando uma soft nova e nao carregando. --talkactions.xml <talkaction words="!soft" event="script" value="soft.lua"/> <talkaction words="!firewalker" event="script" value="firewalker.lua"/> ----------------------------------------------------------------------------------------------------------- --Script --Soft function onSay(cid, words, param, channel) local k = getPlayerItemById(cid, true, 10021).uid if k == 0 then doCreatureSay(cid, 'You don\'t have worn Soft Boots.', TALKTYPE_ORANGE_1, false, cid) elseif not doPlayerRemoveMoney(cid, 10000) then doCreatureSay(cid, 'You don\'t have enough money.', TALKTYPE_ORANGE_1, false, cid) else doCreatureSay(cid, 'You refilled your Soft Boots.', TALKTYPE_ORANGE_1, false, cid) doTransformItem(k, 6132) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN) return true end return doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) end -------------------------------------------------------------------------------------------------------------- --Firewalker function onSay(cid, words, param, channel) local k = getPlayerItemById(cid, true, 10022).uid if k == 0 then doCreatureSay(cid, 'You don\'t have worn Firewalker Boots.', TALKTYPE_ORANGE_1, false, cid) elseif not doPlayerRemoveMoney(cid, 10000) then doCreatureSay(cid, 'You don\'t have enough money.', TALKTYPE_ORANGE_1, false, cid) else doCreatureSay(cid, 'You refilled your Firewalker Boots.', TALKTYPE_ORANGE_1, false, cid) doTransformItem(k, 9933) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN) return true end return doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) end
  3. Cheio de bugs, feio pra caramba.
  4. arquivo not foun.
  5. Acho que fica melhor com esse na pasta data/talkactions/script/ function onSay(cid, item, words, param) local count = getPlayerInstantSpellCount(cid) local text = "" local t = {} local prevLevel = -1 local line = "" for i = 0, count - 1 do local spell = getPlayerInstantSpellInfo(cid, i) if spell.level ~= 0 then if spell.manapercent > 0 then spell.mana = spell.manapercent .. "%" end table.insert(t, spell) end end table.sort(t, function(a, b) return a.level < b.level end) for i, spell in ipairs(t) do if prevLevel ~= spell.level then if i ~= 1 then line = "" end line = line .. "- Spells for Level " .. spell.level .. ":\n" prevLevel = spell.level end text = text .. line .."• ".. spell.words .." - " .. spell.name .. ": " .. spell.mana .. "\n" end doShowTextDialog(cid, 7528, text) return TRUE end
  6. Gostaria que me ajudase, estou com um erro, quando eu abro o mapa no rme editor ele fica tudo preto não da pra editar, eu ja fiz de tudo procurei varios tuto porem nada resolve.
  7. Executer postou uma resposta no tópico em Suporte Tibia OTServer
    Olá, estou com o mesmo erro. aqui está o .php <?PHP $woe = $SQL->query(" SELECT w.id AS id, w.time AS time, g.name AS guild, p.name AS name, w.started AS start, w.guild AS guild_id FROM woe AS w INNER JOIN players AS p ON p.id = w.breaker INNER JOIN guilds AS g ON g.id = w.guild ORDER BY id DESC LIMIT 10; "); foreach ($woe as $k=>$v) { $winners .=" <TR BGCOLOR=\"".$config['site'][($k % 2 == 1 ? 'light' : 'dark').'border']."\"> <TD>{$v[id]}</TD> <TD><a href='index.php?subtopic=guilds&action=show&guild=" . $v[guild_id] . "'>$v[guild]</a></TD> <TD>{$v[name]}</TD> <TD>" . date("d/m/y H:i:s", $v[start]) . "</TD> <TD>" . date("d/m/y H:i:s", $v[time]) . "</TD> </TR> "; } $main_content .= ' <center><img src="images/woe.png"></center> '; if(!$winners) { $main_content .= ' <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white> <B>Vencedor do War of Emperium</B> </TD> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <TD> Ainda n&atilde;o h&aacute; vencedores no War of Emperium do '.$config['server']['serverName'].' . </TD> </TR> </TABLE> <br>'; } else { $main_content .= " <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR=\"{$config['site']['vdarkborder']}\"> <TD CLASS=white width=5%> <B>No.</B> </TD> <TD CLASS=white width=30%> <B>Winner guild</B> </TD> <TD CLASS=white width=25%> <B>Conquest by</B> </TD> <TD CLASS=white width=20%> <B>Start time</B> </TD> <TD CLASS=white width=20%> <B>Last conquest</B> </TD> </TR> $winners </TABLE> <br>"; } $main_content .='<table width="100%" cellspacing="1" cellpadding="6"> <tr widht="100%" bgcolor="#505050"> <th align="center">Informa&ccedil;&otilde;es do Castle</th> </tr> <tr widht="100%" bgcolor="#D4C0A1"> <td><font color="red"><b>Morrer no Castle n&atilde;o perde EXP, SKILLS, ML e nem ITENS.</b></font></td> </tr> <tr widht="100%" bgcolor="#F1E0C6"> <td><b>A guild que ter o dominio do castelo ganhará 200k por conquista + 5% de bônus de experience.</b></td> </tr> <tr widht="100%" bgcolor="#D4C0A1"> <td>&Eacute um evento que ocorre Segundas, Quartas e Sábados ás 20:00 horas, no qual as guilds tentam dominar o castelo destruindo seus geradores.</td> </tr> <tr widht="100%" bgcolor="#F1E0C6"> <td>Primeiro, &eacute; obrigatorio ter guild, depois &eacute; s&oacute; registra-la usando o comando <b>!guildjoin</b> .</td> </tr> <tr widht="100%" bgcolor="#D4C0A1"> <td>Durante 1 hora, as guilds tem que tentar tomar o m&aacute;ximo de controle do castelo War of Emperium. Ap&oacute;s uma das guilds ter destru&iacute;do o &uacute;ltimo gerador, ela ter&aacute; que defender o seu dom&iacute;nio no castelo evitando que outras guilds destruam o &uacute;ltimo Gerador novamente, isso durante o tempo restante do castelo. Para ajudar na defesa do castelo o lider da guild poder&aacute; puxar uma alavanca localizada logo acima do &uacute;ltimo gerador que ir&aacute; summonar 7 guardi&otilde;es, isso custar&aacute; 1kk.</td> </tr> <tr widht="100%" bgcolor="#F1E0C6"> <td>Sempre que o evento come&ccedil;ar irá abri um teleporte no <b>Templo de Thais</b> poder&aacute; ser acessado por todos e tamb&eacute;m poder&aacute; tentar invadir o castelo após digitar o comando <b>!guildjoin</b>.</td> </tr> <tr widht="100%" bgcolor="#D4C0A1"> <td>Para tomar controle do castle a guild ter&aacute; que destruir 3 Geradores localizados dentro do castelo, ap&oacute;s destruir os 2 primeiros geradores &agrave; Leste e Oeste, aparecer&aacute; 2 teleportes ao Norte e dar&aacute; acesso ao &uacute;ltimo Gerador.</td> </tr> <tr widht="100%" bgcolor="#F1E0C6"> <td> Comandos &uacute;teis no castelo: <ul> <li> <b>!recall</b> s&oacute; pode ser executado pelo l&iacute;der da guild e cada 5 minutos, teletransporta todos os membros da guilda online ao lado dele. </li> <li> <b>/woe info</b> ver quanto tempo resta e quem est&aacute; dominando o castelo atualmente. </li> </td> </tr> <tr width="100%" bgcolor="#D4C0A1"> </tr> </table></center><br> <center><object width="425" height="350"><embed src="http://www.youtube.com/v/dYH0Quwxw-U" type="application/x-shockwave-flash" width="425" height="350"></embed></object></center><br/> <br> '; ?> OBS: Quando eu tiro essa parte ele funciona normal, porem tenho medo de deixa sem e resultar em algum bug. Des de já agradeço! $woe = $SQL->query(" SELECT w.id AS id, w.time AS time, g.name AS guild, p.name AS name, w.started AS start, w.guild AS guild_id FROM woe AS w INNER JOIN players AS p ON p.id = w.breaker INNER JOIN guilds AS g ON g.id = w.guild ORDER BY id DESC LIMIT 10; ");

Informação Importante

Confirmação de Termo