
Solutions
-
Yan Liima's post in startupDatabaseOptimization was marked as the answer@BangxDisso não tem definido na source para ativar/desativar no config. Então nada do que tu ta tentando fazer irá resolver.
Da uma checada no seu server_config da database. Vê se está tudo certinho lá. Seta a versão da db com o valor 27.
server_config.sql
-
Yan Liima's post in [Pedido] Me ajudem a resolve esse erro ao compilar was marked as the answerEu li sua mensagem no privado, e os arquivos que você me mandou pude perceber que teve alterações nos arquivos necessário para compilação no Linux. Da uma olhada lá.
-
Yan Liima's post in [Pedido] Me ajudem a compilar minha source, está dando erro. was marked as the answerAmigo possa ser que o comentário que eu fiz te ajude:
E por favor se for responder responda aqui no seu tópico, e não lá... rs
-
Yan Liima's post in (Resolvido)Ajuda site Modern tfs 0.4 DBO was marked as the answer@OrientalzVai no arquivo que te falei e substitui:
function generate_recovery_key() { $this->load->helper("form"); $ide = new IDE; $ide->requireLogin(); $this->load->model("Account_model");
POR:
function generate_recovery_key() { $this->load->helper("form"); $ide = new IDE; $ide->requireLogin(); $this->load->model("Account_model"); if($this->Account_model->getRecoveryKey($_SESSION['name'])) { alert("<b>You can't generate a new KEY</b>"); return false; }
-
Yan Liima's post in (Resolvido)Query para limpeza de ids was marked as the answerDepois de selecionar a tabela, vai em Operações ou Configurações. Lá tu altera o valor do AUTO_INCREMENT. Ele vai seguir em diante, de acordo com o valor anterior. Assim conforme vai tendo novos ids, ele vai aumentado...
-
Yan Liima's post in (Resolvido)Script Quest para Dbo was marked as the answerTa certo a script do rapaz, só troca o aid por uid.
TAG:
<action uniqueid="40000-40001" event="script" value="quest.lua"/> Script:
local config = { ["Primeira Quest"] = {uid = 40000, premio = {2160,1}, str = 160000}, ["Segunda Quest"] = {uid = 40001, premio = {2159,1}, str = 160001} } function onUse(cid, item, frompos, item2, topos) for index, quest in pairs(config) do if item.uid == quest.uid then if getPlayerStorageValue(cid, quest.str) ~= 1 then doPlayerSendTextMessage(cid,22,"Você cumpriu a "..index.." e ganhou "..quest.premio[2].." "..string.lower(getItemNameById(quest.premio[1]))) doPlayerAddItem(cid,quest.premio[1],quest.premio[2]) setPlayerStorageValue(cid,quest.str,1) else doPlayerSendTextMessage(cid,22,"Você já cumpriu a "..index) end end end return true end
-
Yan Liima's post in (Resolvido)Character List was marked as the answerEra só procurar no fórum irmão. Link:
-
Yan Liima's post in (Resolvido)Salvar local do ADM was marked as the answerSeria isso?
ou esse
-
Yan Liima's post in (Resolvido)Colocar exausted nesse comando was marked as the answerQuando for um script meu pode me marcar que ajudo na questão.
Tem como fazer dessa maneira:
Ou assim:
-- Créditos para Yan Liima - Night criador da script. local time = 4 -- em segundos 1 = 1 segundo 2 = 2 segundos... local config = { storage = 2193, str_seconds = 120, -- storage e segundos } local say_events = {} local function SayText(cid) if isPlayer(cid) == TRUE then if say_events[getPlayerGUID(cid)] ~= nil then if isPlayer(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"Treinando!", math.random(01,255)) end say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000 / 2, cid) doCreatureSetNoMove(cid, true) end end return TRUE end function onSay(cid, words, param, channel) if getPlayerStorageValue(cid, config.storage) > os.time() then return doPlayerSendCancel(cid, "Espere " .. getPlayerStorageValue(cid, config.storage) - os.time() .. " segundos.") end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Utilize '".. words .. " on' para ligar e '".. words .. " off' para desligar.") return true end if param == "on" then if isPlayer(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"Treinando", math.random(01,255)) end say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000, cid) doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"Você está em modo 'Training'.") doPlayerSendTextMessage(cid,20,"Para sair do modo 'training' diga ".. words .. " off") setPlayerStorageValue(cid, config.storage, os.time() + config.str_seconds) -- LINHA QUE ADC A O EXAUSTED, SÓ COPIAR PARA OUTRO LOCAL SE NECESSARIO elseif param == "off" then stopEvent(say_events[getPlayerGUID(cid)]) say_events[getPlayerGUID(cid)] = nil doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"Você não está mais em modo 'Training'.") doCreatureSetNoMove(cid, false) end return TRUE end
-
Yan Liima's post in (Resolvido)Adicionar Random outfit was marked as the answerPensou correto, só faltou saber executar. Veja como ficaria:
local looktype = {3025, 3026} -- looktype da outfit. function onUse(cid, item, frompos, item2, topos) local random_outfit = looktype[math.random(1, #looktype)] if getCreatureOutfit(cid).lookType ~= random_outfit then doSetCreatureOutfit(cid, {lookType = random_outfit}, -1) else doPlayerSendTextMessage (cid, 19, "Você já está utilizando esta roupa!") end return true end
-
Yan Liima's post in (Resolvido)Por maximo level nesse script was marked as the answerlocal keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local items = { item1 = {6544, 13489}, -- item1 item que será pedido e que será dado na primeira troca } local counts = { count1 = {25, 1}, -- count1 quantidade que será pedido e que será dado na primeira troca } function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'kagome') then selfSay('Voce deseja paga '.. counts.count1[1] ..' '.. getItemNameById(items.item1[1]) ..' por'.. counts.count1[2] ..' '.. getItemNameById(items.item1[2]) ..'?',cid) talkState[talkUser] = 1 elseif talkState[talkUser] == 1 then if msgcontains(msg, 'yes') then if getPlayerLevel(cid) <= 20 then if getPlayerItemCount(cid, items.item1[1]) >= counts.count1[1] then doPlayerRemoveItem(cid, items.item1[1], counts.count1[1]) doPlayerAddItem(cid, items.item1[2], counts.count1[2]) selfSay('Obrigado! Voce acaba de paga '.. counts.count1[1] ..' '.. getItemNameById(items.item1[1]) ..' por '.. counts.count1[2] ..' '.. getItemNameById(items.item1[2]) ..'.', cid) talkState[talkUser] = 0 else selfSay('Voce precisa de '.. counts.count1[1] ..' '.. getItemNameById(items.item1[1]) ..'.', cid) end else selfSay('Voce precisa ter no maximo level 20.', cid) end end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Yan Liima's post in (Resolvido)NPC Teleportador was marked as the answerFiz esse para um rapaz há um tempo atrás, creio que é isso que deseja. Só editar:
local DESTINO = {x=1024, y=1026, z=7} -- POS local DESTINO2 = {x=1358, y=669, z=6} -- POS local DESTINO3 = {x=592, y=829, z=7} -- POS local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg:lower()) end function onThink() npcHandler:onThink() end local talkState = {} function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if getCreatureCondition(cid, CONDITION_INFIGHT) == false then if msgcontains(msg, "viajar") then selfSay("Posso te levar para: {Hakai City}, {Desert City}, {Ice City}", cid) elseif msgcontains(msg, "hakai city") then selfSay("OK!", cid) doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, DESTINO) doSendMagicEffect(DESTINO, 10) elseif msgcontains(msg, "desert city") then selfSay("OK!", cid) doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, DESTINO2) doSendMagicEffect(DESTINO2, 10) elseif msgcontains(msg, "ice city") then selfSay("OK!", cid) doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, DESTINO3) doSendMagicEffect(DESTINO3, 10) end else selfSay("Desculpe, mas você está em batalha.", cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Yan Liima's post in (Resolvido)abrir sempre que logar o trade chat , automático was marked as the answerNo seu login.lua dentro da função onLogin, antes do ultimo return true coloque:
doPlayerOpenChannel(cid, 6) -- 6 é o ID do channel
-
Yan Liima's post in (Resolvido)Script de quando der Look em um item aparecer um Texto was marked as the answeractions.xml
<action itemid="ID_DO_ITEM" script="arquivo.lua" /> lua
function onUse(cid, item, frompos, item2, topos) doShowTextDialog(cid, 4854, "TEXTO") return true end
-
Yan Liima's post in (Resolvido)coloca pra dar mana para o player aqui was marked as the answerlocal combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0) function onUseWeapon(cid, var) local skill = getPlayerSkill(cid,SKILL_AXE) -- Change this to the type of weapon you are using local mat = 0.085*0.5*50*skill+(getPlayerLevel(cid)/5) -- Change 50 to the attack of the weapon local min = 25 -- this means 5% minimum healing local max = 40 -- this means 15% maximum healing local addmana = math.random((mat * (min/100)), (mat * (max/100))) if getPlayerLevel(cid) >= 5 then doCreatureAddMana(cid, addmana) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) doCombat(cid, combat, var) else doPlayerSendCancel(cid, 'You need level 20 to use this weapon.') end end
-
Yan Liima's post in (Resolvido)Ajuda Script de Ban was marked as the answer@Lyu god
Segue a correção meninas, e vê se funciona:
local reasons = {[1] = 2, [2] = 5, [3] = 12, [4] = 19} function isBanned(GUID) local query = db.getResult("SELECT active FROM bans WHERE param = "..GUID) if query:getID() > -1 then repeat if query:getDataInt("active") == 1 then return true end until not query:next() query:free() -- somente se query:getID() for maior que -1 end return false end function onSay(cid, words, param) if param:lower() == "reasons" then return doPlayerSendTextMessage(cid, 27, "1 - unsuitable name, 2 - spamming, 3 - use of unnoficial software, 4 - destructive behaviour.") end local param = string.explode(param, ',') if words == "!ban" then local adminid = getPlayerGUID(cid) local player_name = param[1] local days = type(tonumber(param[2])) == 'number' and tonumber(param[2]) * 24 * 3600 or false local comment = param[3] local reason = reasons[tonumber(param[4])] or 19 if not param[1] then doPlayerSendTextMessage(cid, 27, "Command requires parameters: name, days, comment, reason.") elseif not getPlayerGUIDByName(player_name) then doPlayerSendTextMessage(cid, 27, "Invalid player.") elseif not days then doPlayerSendTextMessage(cid, 27, "Invalid number of days.") else if not comment then comment = "No comment was added" end local player_to_ban = getPlayerGUIDByName(player_name) if isBanned(player_to_ban) then return doPlayerSendTextMessage(cid, 27, "This player is already banned.") end local func = db.query or db.executeQuery if func('INSERT INTO bans (type, value, param, active, expires, added, admin_id, comment, reason, action) VALUES (3, 3, '..player_to_ban..', 1, '..os.time() + days..', '..os.time()..', '..adminid..', "'..comment..'", '..reason..', 2)') then doPlayerSendTextMessage(cid, 27, "Player "..player_name.." has been banned.") local kick = getCreatureByName(player_name) if kick then doRemoveCreature(kick) end else doPlayerSendTextMessage(cid, 27, "Error while banning.") end end elseif words == "!unban" then local player_name = param[1] local unban_player = getPlayerGUIDByName(player_name) if unban_player then local func = db.query or db.executeQuery if not isBanned(unban_player) then return doPlayerSendTextMessage(cid, 27, "Player is currently not banned.") end if func("UPDATE bans SET active = 0 WHERE param = "..unban_player) then doPlayerSendTextMessage(cid, 27, "Player "..player_name.." has been successfully unbanned.") else doPlayerSendTextMessage(cid, 27, "Error while unbanning.") end else doPlayerSendTextMessage(cid, 27, "Invalid player name specified.") end end return true end
-
Yan Liima's post in (Resolvido)[Ajuda] Como ver rank de Skills. ModernAcc was marked as the answerNão sei como está seus outros highscore, mas creio que o valor que coloquei esteja certo, já que é o padrão que vem no models.
<?php require("config.php"); $ide = new IDE; try {$ide->loadInjections("highscores");} catch(Exception $e) {error($e->getMessage()); } echo form_open('highscores'); $uri = $this->uri->segment(5) ? $this->uri->segment(5) : 0; if(count($config['worlds']) > 1) { echo "<b>World</b> "; echo "<select name='world'>"; foreach($config['worlds'] as $id=>$name) { if($_POST['world'] == $id) echo "<option selected='true' value='$id'>$name</option>"; else echo "<option value='$id'>$name</option>"; } echo "</select>"; } echo " <b>Rank de</b> "; echo "<select name='skill'>"; echo "<option class='skill' ".set_select('skill', 1, true)." value='level'>Level</option>"; echo "<option class='skill' ".set_select('skill', 9)." value='magic'>Magic Level</option>"; echo "<option class='skill' ".set_select('skill', 2)." value='1'>Fist fighting</option>"; echo "<option class='skill' ".set_select('skill', 3)." value='2'>Club fighting</option>"; echo "<option class='skill' ".set_select('skill', 4)." value='3'>Sword fighting</option>"; echo "<option class='skill' ".set_select('skill', 5)." value='4'>Axe fighting</option>"; echo "<option class='skill' ".set_select('skill', 6)." value='5'>Distance fighting</option>"; echo "<option class='skill' ".set_select('skill', 7)." value='6'>Shielding</option>"; echo "<option class='skill' ".set_select('skill', 8)." value='7'>Fishing</option>"; echo "</select>"; echo " <input type='submit' value='Mostrar'>"; echo "</form>"; echo "<h2><center>Ranking of ". (is_numeric($type) ? $skills[$type] : $type) ." on ".$config['worlds'][$world]."</center></h2>"; $i = 1 + $uri; echo "<table width='100%'>"; if(is_numeric($type)) { echo "<tr><td width='5%'><b><center>*</center></b></td><td width='40%'><center><b>Name</b></center></td><td width='5%'><center><b>Skill</b></center></td></tr>"; foreach($players as $player) { if(in_array($player['name'], $config['newchar_vocations'][0])) continue; echo '<tr><td width="5%" align="center">'.$i.'</center></td><td width="40%" align="center"><a href="'.WEBSITE.'/index.php/character/view/'.$player['name'].'" class="'. ($player['online'] ? 'green' : 'red') .'">'.$player['name'].'</a></td><td width="5%" align="center">'.$player['value'].'</td></tr>'; $i++; } }else{ switch($type) { case 'level': echo "<tr><td width='5%'><b><center>*</center></b></td><td width='40%'><center><b>Name</b></center></td><td width='10%'><center><b>Exp</b></center></td><td width='5%'><center><b>Level</b></center></td></tr>"; foreach($players as $player) { if(in_array($player['name'], $config['newchar_vocations'][0])) continue; echo '<tr><td width="5%" align="center">'.$i.'</td><td width="40%" align="center"><a href="'.WEBSITE.'/index.php/character/view/'.$player['name'].'" class="'. ($player['online'] ? 'green' : 'red') .'">'.$player['name'].'</a></td><td width="10%" align="center">'.$player['experience'].'</td><td width="5%" align="center">'.$player['level'].'</td></tr>'; $i++; } break; case 'magic': echo "<tr><td width='5%'><b><center>*</center></b></td><td width='40%'><center><b>Name</b></center></td><td width='5%'><center><b>Magic</b></center></td></tr>"; foreach($players as $player) { if(in_array($player['name'], $config['newchar_vocations'][0])) continue; echo '<tr><td width="5%" align="center">'.$i.'</td><td width="40%" align="center"><a href="'.WEBSITE.'/index.php/character/view/'.$player['name'].'" class="'. ($player['online'] ? 'green' : 'red') .'">'.$player['name'].'</a></td><td width="5%" align="center">'. $player['maglevel'] .'</td></tr>'; $i++; } break; } } echo "</table>"; echo $this->pagination->create_links();
-
Yan Liima's post in (Resolvido)[Pedido] Após morte voltar em local aleatório was marked as the answerCreaturescript:
local hospitalpos = { [1] = {x = 1021, y = 981, z = 7}, -- posições pra onde o player será teleportado ao morrer [2] = {x = 1026, y = 981, z = 7}, [3] = {x = 1030, y = 981, z = 7}, } local str = 66666 function onDeath(cid, position) registerCreatureEvent(cid, "DeathPlayerHospital_L") if isPlayer(cid) then setPlayerStorageValue(cid, str, 1) end return true end function onLogin(cid) registerCreatureEvent(cid, "DeathPlayerHospital") if isPlayer(cid) then if getPlayerStorageValue(cid, str) == 1 then setPlayerStorageValue(cid, str, -1) doTeleportThing(cid, hospitalpos[math.random(#hospitalpos)], true) end end return true end <event type="login" name="DeathPlayerHospital_L" event="script" value="arquivo.lua"/> <event type="death" name="DeathPlayerHospital" event="script" value="arquivo.lua"/>
-
Yan Liima's post in (Resolvido)O QUE CAUSA ESSE ERRO AO MUDAR TEMPLATE? was marked as the answerVamos supor que na pasta templates temos uma pasta chamada "Tibia" com index.tpl e imagens... no config.php teriamos que por:
$config['layout'] = "Tibia"; Certo? mas não é só isso não, no index.tpl teriamos que alterar também, como por exemplo:
<link rel="stylesheet" type="text/css" href="{$path}/templates/Tibia/main.css" /> etc... Dependendo depois da modificação teriamos que apertar o CTRL + SHIFT + R no site.
-
Yan Liima's post in (Resolvido)player mata outro e ganha item ,dinheiro e xp. was marked as the answer@Storm thanks! só faltou o #items que também é necessario alterar.
@EmoooooPra que serveria o anti MC? bom, tenta ai:
local config = { items = {{2160,20},{2148,2}}, -- ID DO ITEM, QUANTIDADE level = 1, -- Quanto irá adicionar de level storage = 673420 -- Storage } function onDeath(cid, corpse, deathList) if not isPlayer(cid) then return true end local killer = deathList[1] local ip = true if #config > 0 and isInArray(config,getPlayerIp(killer)) then ip = false end if ip and isPlayer(killer) and getPlayerStorageValue(killer, config.storage) <= 0 then doPlayerAddExperience(killer, (getPlayerExperience(cid) + config.level)) for i = 1, #config.items do doPlayerAddItem(killer, config.items[i][1], config.items[i][2]) setPlayerStorageValue(killer, config.storage, 1) end return true end return true end function onLogin(cid) registerCreatureEvent(cid, "LootPlayerDeath") return true end Apenas com a storage:
local config = { items = {{2160,20},{2148,2}}, -- ID DO ITEM, QUANTIDADE level = 1, -- Quanto irá adicionar de level storage = 673420 } function onDeath(cid, corpse, deathList) if not isPlayer(cid) then return true end local killer = deathList[1] if isPlayer(killer) and getPlayerStorageValue(killer, config.storage) <= 0 then doPlayerAddExperience(killer, (getPlayerExperience(cid) + config.level)) for i = 1, #config.items do doPlayerAddItem(killer, config.items[i][1], config.items[i][2]) setPlayerStorageValue(killer, config.storage, 1) end return true end return true end function onLogin(cid) registerCreatureEvent(cid, "LootPlayerDeath") return true end
-
Yan Liima's post in (Resolvido)[ModerAcc] Erro na página de Guilds was marked as the answerIsso ai mesmo!
Como que eu mandei pelo celular deve ter bugado ksksks. Baixe esses arquivos da guild e teste
system.rar
-
Yan Liima's post in (Resolvido)[Pedido] Bonus cast open e bloquear para x area was marked as the answer@DeathRocks esse é um pedido que a galera costuma ignorar. As vezes por ser chato de fazer, mas não deixa de ser interessante... Apesar do que muitos pensa, isso é algo facil de se fazer, e pra não dizer que ninguém te ajudou, irei tentar ajuda-lo, pois to de bobeira mesmo ksksks. Vamos lá...
Aqui está o seu novo mods:
Em seu creaturescript crie um arquivo com qualquer nome e coles isto lá:
function onKill(cid, target) if isPlayer(cid) and isMonster(target) then if getPlayerStorageValue(cid, 1013120) >= 1 then local exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) local count = ((getMonsterInfo(string.lower(getCreatureName(target))).experience*1.05*exp)/2) -- 1.05 = 5% doPlayerAddExperience(cid, count) addEvent(doSendAnimatedText, 500, getCreaturePosition(cid), '+'..count, math.random(50,60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você ganhou 5% a mais de exp por estar com cast ligado.") end return true end return true end TAG:
<event type="kill" name="ExpCast" event="script" value="arquivo.lua"/> Agora vá em seu login.lua e adicione isso junto com os demais:
registerCreatureEvent(cid, "ExpCast") Ainda em login.lua procure pela mensagem de ultimo login, por padrão ele estará assim:
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." Logo abaixo adicione:
setPlayerStorageValue(cid, 1013120,0) setPlayerStorageValue(cid, 1013121,0)
Prontinho xD
Não tinha como eu testar aqui, então se der algum problema me avise. Sobre o de não usar o cast em trainers eu coloquei ali para você por a posição do fromPosition e toPosition. Mas ai só evitaria de poder ativar o cast nessa área, caso o jogador já tenha ativado antes de ir para esse local, irá funcionar normal. Não consegui pensar em algo para cancelar o cast...
-
Yan Liima's post in (Resolvido)Juntar 2 scripts em 1 so Ajudem!! was marked as the answerTenta ai jovem:
-
Yan Liima's post in (Resolvido)[ModerAcc] Erro ao criar vocation no site was marked as the answerOs
$config['vocations'] $config['server_vocations'] Estão errados. É ID da vocation e o nome dela. Não de 1 em diante... Ex, o seu está
$config['vocations'] = array(1=>"Naruto". Só que o ID da vocation naruto é 13, certo? então altera ai...
Em htdocs\system\application\views\create.php vai ser a mesma coisa em:
<select name="vocation" class="keyboardInput" id="vocation"> <option value="13">Naruto</option> Valor da vocation e nome...
E sobre algumas vocações dar erro de sample, é porque o Sample não existe no banco de dados, ou existe mas tu colocou o nome errado no config ou no banco de dados...
-
Yan Liima's post in (Resolvido)Aumento de Dano/Heal com Transform was marked as the answerQual o servidor que você está utilizando? Deve ter alguma script no creaturescript que faça com que a transform reverta ao dar logout.
Sobre adicionar health e creio que gostaria de adicionar mana também é só tu adaptar isso no seu script de transform:
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+10000) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+10000) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid)) Pra aumentar o dano creio que seria na vocations.xml.