Solutions
-
Pedro.'s post in (Resolvido)Criar Traine was marked as the answeradiciona isso em monsters.xml
<monster name="Training Monk" file="Training Monk.xml" />
agora cria um xml com o nome de Training Monk.xml
<?xml version="1.0" encoding="UTF-8"?> <monster name="Training Monk" nameDescription="a training monk" race="blood" experience="0" speed="0" manacost="0"> <health now="200000" max="200000"/> <look type="57" corpse="22567"/> <targetchange interval="60000" chance="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="0"/> <flag canpushcreatures="0"/> <flag targetdistance="1"/> <flag staticattack="50"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="0" attack="-1"/> </attacks> <defenses armor="0" defense="0"> <defense name="healing" interval="2000" chance="80" min="10000" max="20000"> <attribute key="areaEffect" value="blueshimmer"/> </defense> </defenses> <immunities> <immunity invisible="1"/> </immunities> </monster>
-
Pedro.'s post in (Resolvido)sistema que nao da pra copiar pelo mouse was marked as the answeradiciona isso em layout.php
<body onselectstart="return false" oncontextmenu="return false" ondragstart="return false" onbeforeunload="SaveMenu();" onunload="SaveMenu();" onload="SetFormFocus()">
-
Pedro.'s post in (Resolvido)Site Bugado 3.0 was marked as the answerAh, gesior 0.3x é diferente, cara isso é um warning acho que não faz muita diferença. Apenas oculte.
vai até o index e adiciona
<?php error_reporting(E_ALL || ~E_WARNING); ?> igual você fez com o timer zones
vai ficar assim
<?php error_reporting(E_ALL || ~E_WARNING); ?> <?php
-
Pedro.'s post in (Resolvido)TIRar nome was marked as the answeraqui nessa parte
$main_content .= '<center><h2>Welcome to '.$config['server']['serverName'].' Shopping</h2>
ele ta puxando o nome que ta na config, configura seu servidor corretamente.
Edite teu config.lua
-
Pedro.'s post in (Resolvido)Adicionar Hot Site was marked as the answervai até layout do seu site, exemplo: /var/www/html/layouts/tibiarl ou c: htdocs/layout/tibiarl, abre o layout.php
<div id="ActiveSubmenuItemLabel_powergamers" class="SubmenuitemLabel"><font color="#ff0000">Powergamers </font><img src="./layouts/tibiarl/images/hot2-fix.gif"></div> o meu exemplo, tá com a cor vermelha e a imagem, que está no site em images.
http://alvoria-ats.com/layouts/tibiarl/images/hot2-fix.gif
-
Pedro.'s post in (Resolvido)Site Bugado was marked as the answerQuando for copiar algo de outro lugar e estiver formatado, passa para um bloco de notas primeiro e depois joga aqui, ou remova o formatado, fica muito ruim de ler, dificulta :]
Entre em system/load.init e depois de session_start(); coloque isso na linha abaixo:
date_default_timezone_set("America/Sao_Paulo");
-
Pedro.'s post in (Resolvido)Fast Atck Igual Global was marked as the answervocations.xml, só alterar o attackspeed="2000"
2000 é o padrão
-
Pedro.'s post in (Resolvido)Alterar Velocidade do Player was marked as the answerQue eu saiba é nas source o-o
Vá em player.h e procure:
void updateBaseSpeed() { if (!hasFlag(PlayerFlag_SetMaxSpeed)) { baseSpeed = vocation->getBaseSpeed() + (2 * (level - 1)); } else { baseSpeed = PLAYER_MAX_SPEED; } } A fórmula é (2 * (level - 1)
2 * level do player - 1 = velocidade do player
-
Pedro.'s post in (Resolvido)Ajuda /save /R was marked as the answeradicione essa função em global.lua
function isNumber(str)
return tonumber(str) ~= nil
end
desculpe pela formatação, estou pelo cel
-
Pedro.'s post in (Resolvido)BUG EM SCRIPT was marked as the answerno seu config.lua o worldid tá qto?
-
Pedro.'s post in (Resolvido)Addons e mounts para todos os players was marked as the answerao invés de player:addMount(i), tente adicionar doPlayerAddMount(cid, montaria)
-
Pedro.'s post in (Resolvido)Tile por storage was marked as the answerExemplo: Eu aceitei uma quest e terminei ela, após isso eu ganhei uma storage 701.
Dai eu vou na sala de boss, para eu passar no tp antes tem um TILE que precisa dessa storage, o player passa tranquilo, porém ele consegue passar mil vezes, eu quero fazer com que ele passe apenas 1 vez. Para não fica matando o boss 20x
tópico resolvido ;x
function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, 701) <= 0 then doTeleportThing(cid, getPlayerMasterPos(cid)) doPlayerSendTextMessage(cid, 22, "Você precisa terminar a missão antes, você foi teletransportado para o templo.") elseif getPlayerStorageValue(cid, 702) <= 0 then setPlayerStorageValue(cid, 702, 1) else doTeleportThing(cid, getPlayerMasterPos(cid)) doPlayerSendTextMessage(cid, 22, "Você só pode passar aqui uma vez.") end return TRUE end -
Pedro.'s post in (Resolvido)Quest Log Ajuda was marked as the answersó você mudar a storage <quest name="The Pits of Inferno" startstorageid="39822" startstoragevalue="1"> <mission name="Acces to shortcuts" storageid="39822" startvalue="1" endvalue="2"> <missionstate id="1" description="At the end of this quest you will be able to use shortcuts."/> <missionstate id="2" description="Unlocked shortcut and now do not have to move all the 15 lever and you can use the teleport in the necromancer's house."/> </mission> <mission name="Thrones: Verminor" storageid="2082" startvalue="1" endvalue="1"> <missionstate id="1" description="You have already absorbed some of Veminor's spirit."/> </mission> <mission name="Thrones: Infernatil" storageid="2080" startvalue="1" endvalue="1"> <missionstate id="1" description="You have already absorbed some of Infernatil's spirit."/> </mission> <mission name="Thrones: Tafariel" storageid="2081" startvalue="1" endvalue="1"> <missionstate id="1" description="You have already absorbed some of Tafariel's spirit."/> </mission>
-
Pedro.'s post in (Resolvido)Npc Barqueiro was marked as the answerData > npc > script > lib > npcsystem> modules.lua troca a função "function StdModule.travel" por está aqui
-
Pedro.'s post in (Resolvido)Alguém me ajuda pfv bug Error during getDataString(salt) was marked as the answervocê tem acesso ao GOD? ou ao reload pelo distro? se tiver tente isso.
talkaction.xml
<talkaction words="!passfix;!passchange" event="script" value="password_fix.lua" /> lua
function onSay(cid, words, param, channel) local exhausttime = 1000 -- 1 second local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, exhausttime) if(hasCondition(cid, CONDITION_EXHAUST)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end doAddCondition(cid, exhaust) local accountName = getPlayerAccount(cid) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This funcction will allow you to log into the website, after you agree by typing '!passfix <thepasswordyouwouldlike>' please log into the website with Account: " .. accountName .. " Password: The password you chose, whenever you are ready type !passfix agree") return true else db.executeQuery('UPDATE accounts SET password=SHA1("'..param..'"), salt="" WHERE name="' .. accountName .. '"') doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Your password has been changed to '"..param.."' without ''.") return true end end -
Pedro.'s post in (Resolvido)Compilar Source 1.2 Com Cast System was marked as the answerconsegui, obrigado aí pela ajuda
-
Pedro.'s post in (Resolvido)[Pedido] [Npc] Pede para matar pokémons e da itens como recompensa was marked as the answerCara, não sei como funciona scripts do poke, não sei se um tfs serveria, mas conforme for tente assim.
vá até em npcs script e crie um tasks.lua e adicione
vá em npcs, e crie um xml e adicone isso.
Agora vá em creaturescript e adicione isso
<event script="killtasks.lua" name="Tasks" type="kill"/> Agora vá em creaturesript/script, crie killtasks.lua e adicione isso
e por final adicione isso em creaturescript/script/login.lua
registerCreatureEvent(cid, "Tasks"
repetindo não sei se o script irá funcionar no seu servidor, mas faz o teste.
-
Pedro.'s post in (Resolvido)Script Matar Criatura Abrir Portal was marked as the answertente assim.
local tps = { ["NOMEDOMONSTROAQUI"] = {pos = {x=1248, y=741, z=14}, toPos = {x=1248, y=739, z=14}, time = 30}, } local function removeTp(tp) local t = getTileItemById(tp.pos, 5023).uid return t > 0 and doRemoveItem(t) and doSendMagicEffect(tp.pos, CONST_ME_POFF) end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(5023, tp.toPos, tp.pos) doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, tp.time*1000, tp) end return true end Explicando o script:
pos = {x=1248, y=741, z=14} -- aode o teleport irá aparecer
toPos = {x=1248, y=739, z=14}, -- para aonde ele irá teleportar
-
Pedro.'s post in (Resolvido)Distro 10.77. [Help] was marked as the answertopico resolvido.
-
Pedro.'s post in (Resolvido)[Action] LoadFunction was marked as the answer- RESOLVIDO - - RESOLVIDO -
o problema era esse mesmo, no 8.60 movevent type funcionava, atualmente funcionou só com movevent event.
@edit não funcionou, tá dando error quando abro parecido com aquele que tava dando da action.xml E quando tento abrir porta, usar corda.. da aquele erro de baixo. Segue as imagens.
@fui conferir como estava uma movements.xml usada padrão do forgotten 1.2
<movevent event="StepIn" itemid="293" script="decay.lua"/>
e a minha
<movevent type="StepIn" itemid="293" script="decay.lua"/>
E