Solutions
-
ViitinG's post in (Resolvido)[Ajuda] trocar nome dos itens was marked as the answerAqui :
-
ViitinG's post in (Resolvido)Como faço pros players começarem Sem exura, exiva.. sem spell was marked as the answerO tópico foi movido para a área correta, preste mais atenção da próxima vez!
Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680
Este tópico foi movido:
De: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
Para: "OTServ → Suporte OTServ → Suporte de Scripts"
-
ViitinG's post in (Resolvido)arquivo login (erro no console) was marked as the answerTroca :
function onLogin(cid) local player = Player(cid) local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!" if player:getLastLoginSaved() <= 1 then loginStr = loginStr .. " Please choose your outfit." player:sendOutfitWindow() else if loginStr ~= "" then player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) end loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved())) end player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) player:registerEvent("PlayerDeath") player:registerEvent("Tirecz") player:registerEvent("inquisitionPortals") player:registerEvent("fury") player:registerEvent("wrath") player:registerEvent("scorn") player:registerEvent("spite") player:registerEvent("snake") player:registerEvent("Azerus") player:registerEvent("Vesperoth") player:registerEvent("demonOakLogout") player:registerEvent("demonOakDeath") player:registerEvent("bosseswarzone") player:registerEvent("tasks") player:registevent(EddyHavoc, 3*1000, cid) end return true -
ViitinG's post in (Resolvido)[PEDIDO] Protection zone - battle was marked as the answerTesta ae,eu não testei :
"data/creaturescripts/scripts/tirabattle.lua" :
function onThink(cid, interval) if(getTilePzInfo(getCreaturePosition(cid))) then doRemoveCondition(cid, CONDITION_INFIGHT) end end "data/creaturescripts/creaturescripts.xml" :
<event type="think" name="TiraBattle" event="script" value="tirabattle.lua"/> "data/creaturescripts/scripts/login.lua" :
registerCreatureEvent(cid, "TiraBattle") -
ViitinG's post in (Resolvido)Help!, Otserv, NAO quer entrar! was marked as the answerTenta conectar com o IP 200.223.66.144/192.168.1.2/127.0.0.1.
Caso nenhum dos três você obtenha sucesso,tente trocar o IP do config.lua para 200.223.66.144 e mantenha o DUC aberto.
Se mesmo assim não funcionar,vá até o DUC,clique em File>Preferences e clique na opção Use the IP of my local network adapter,ficando assim :
-
ViitinG's post in (Resolvido)resetar os palyers was marked as the answerExecuta os seguintes querys no SQLite Studio :
Primeiro :
UPDATE `players` SET `level` = '8', `health` = '180', `healthmax` = '180', `experience` = '4200', `mana` = '35', `manamax` = '35', `cap` = '40 Segundo :
UPDATE players SET posx = X, posy = Y, posz = Z;
Para executar os querys(abra o spoiler) :
-
ViitinG's post in (Resolvido)COMO AJEITAR O BUG DO RME was marked as the answerTalvez sua maquina não esteja aguentando abrir 2 mapas simultaneamente,se esse não for o caso tente baixar outro RME. (de outra versão)
-
ViitinG's post in (Resolvido)[AJUDA] Staff por script was marked as the answerNão testei :
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 30) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -7, -9, -5.5,-6) local condition = createConditionObject(CONDITION_CURSED) setConditionParam(condition, CONDITION_PARAM_DELAYED, 1) addDamageCondition(condition, 5, 2000, -0) setCombatCondition(combat, condition) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end -
ViitinG's post in (Resolvido)Mensagens que Aparecem no lugar errado was marked as the answerAmigo você enviou uma denuncia citando que o problema/dúvida ja foi resolvido(a),se possível deixe um comentário de como foi resolvido(a) para outros membros que estiverem com o mesmo problema/dúvida saberem como resolver.
-
ViitinG's post in (Resolvido)[AJUDA] Itens não da atribultos was marked as the answerVocê tem que colocar o item no movements.xml brother.Exemplo :
<movevent type="DeEquip" itemid="8820" slot="head" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="8820" slot="head" event="function" value="onEquipItem"> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6" showInDescription="0"/> </movevent> Explicando :
-
ViitinG's post in (Resolvido)Dúvida [Legs para Mage] was marked as the answerobs: Absolute ficou triste então os créditos vai pra ele.(fica felix seu lindu)
Para adicionar magic level faça o seguinte,abra o item.xml e procure pelo seu item.Exemplo uma plate armor normal :
<item id="2463" article="a" name="plate armor"> <attribute key="weight" value="12000" /> <attribute key="armor" value="10" /> <attribute key="slotType" value="body" /> </item> É só adicionar a tag :
<attribute key="magiclevelpoints" value="10" /> Ficando assím :
<item id="2463" article="a" name="plate armor"> <attribute key="weight" value="12000" /> <attribute key="armor" value="10" /> <attribute key="slotType" value="body" /> <attribute key="magiclevelpoints" value="10" /> </item>
E para botar somente para X vocation usar é só adicionar ela em movements.xml :
<movevent type="DeEquip" itemid="8820" slot="head" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="8820" slot="head" event="function" value="onEquipItem"> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6" showInDescription="0"/> </movevent> Explicando :
-
ViitinG's post in (Resolvido)Dúvida [Texto Mensagem em SQM] was marked as the answerTenta agora :
local config = { positions = { ["Wpr War"] = { x = 1002, y = 1002, z = 10 }, ["ROOK WAR"] = { x = 1002, y = 1008, z = 10 }, ["Evento DiceBp"] = { x = 1002, y = 995, z = 10 }, ["Evento War"] = { x = 1009, y = 1008, z = 10 }, ["Trainers"] = { x = 1006, y = 1008, z = 10 }, ["Mage Set"] = { x = 999, y = 1002, z = 10 }, ["PallyKina Set"] = { x = 1005, y = 1002, z = 10 }, ["Edited By ADM"] = { x = 1000, y = 1000, z = 7 }, ["Depot"] = { x = 997, y = 1002, z = 7 }, ["Quest 100K"] = { x = 998, y = 1008, z = 10 } } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end return TRUE end -
ViitinG's post in (Resolvido)Dúvida [Quest RME] was marked as the answerVocê tem que adicionar o script no servidor né amigo..
"data/actions/scripts/quest1.lua" :
function onUse(cid, item, frompos, item2, topos) if item.uid == 5999 then queststatus = getPlayerStorageValue(cid,8749) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"Quest completa!") (0, 255, 255)"]doPlayerAddItem(cid,2149,10) setPlayerStorageValue(cid,99530,1) else doPlayerSendTextMessage(cid,22,"Voce ja completou a quest.") end end end "data/actions/actions.xml" :
<action uniqueid="5999" script="quest1.lua"/> -
ViitinG's post in (Resolvido)Protection Zone was marked as the answerEu entendi certo,é só retirar a tool de NO PVP da "zona" que você quer e colocar a tool PVP.
Clica com o botão direito na tool NO PVP segura o CTRL e vai passando por toda a área que está com a tool de NO PVP depois é só adicionar a tool PVP ou se seu servidor ja for PVP é só deixar sem nada,no caso se a área estiver protection zone é só clicar na tool PZ Tool e fazer o mesmo processo.
-
ViitinG's post in (Resolvido)[Pedido] tile was marked as the answerCaso não esteja conseguindo com o meu eu vou explicar como configurar :
function onStepIn(cid, item, pos) if isPlayer(cid) == TRUE then if (item.actionid == 4036) then doPlayerSendTextMessage(cid,24,"Now you are citizen of CITY.") doPlayerSetTown(cid,13) elseif (item.actionid == 4037) then doPlayerSendTextMessage(cid,24,"Now you are citizen of CITY.") doPlayerSetTown(cid,4) elseif (item.actionid == 4038) then doPlayerSendTextMessage(cid,24,"Now you are citizen of CITY.") doPlayerSetTown(cid,5) end end end -
ViitinG's post in (Resolvido)Como Crio Vip Area? was marked as the answerProcure antes de criar um tópico amigo : http://www.tibiaking.com/forum/topic/7507-perfect-vip-system-20/
-
ViitinG's post in (Resolvido)ajuda: Equipamentos para todas as vocações e levellevel was marked as the answerPara colocar pra aceitar todas as vocações é no movements.xml,exemplo :
<movevent type="DeEquip" itemid="2492" slot="armor" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="2492" slot="armor" event="function" value="onEquipItem"> <vocation id="4"/> <vocation id="8" showInDescription="0"/> <vocation id="3"/> <vocation id="7" showInDescription="0"/> </movevent> Para colocar protection contra all é só adicionar a tag no item.xml :
<attribute key="absorbPercentall" value="100" /> -
ViitinG's post in (Resolvido)[duvida] item que teleporta was marked as the answerTenta :
function onUse(cid, item, frompos, item2, topos) pos = {x=265, y=265, z=8} if (isPlayerPzLocked(cid)) then return doPlayerSendCancel(cid, "Você não pode usar teleport agora!") end doTeleportThing(cid, pos) doPlayerSendTextMessage(cid,22,"Bem vindo a Danger vip.") end return TRUE -
ViitinG's post in (Resolvido)Dúvida Simples was marked as the answerfunction onSay(cid, words, param, channel) if doPlayerRemoveItem(cid, 2145, 1) then doPlayerAddItem(cid,748,1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabéns! você comprou uma addon") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Desculpe mas você não tem Diamonds suficientes para compra essa addon.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return true end
-
ViitinG's post in (Resolvido)Ajuda MAX Level was marked as the answerTenta esse então amigo :
function onAdvance(cid) if getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 2 then if getPlayerLevel(cid) >= 80 then doPlayerAddExperience(cid, (getExperienceForLevel(80) - getPlayerExperience(cid))) end return true end end -
ViitinG's post in (Resolvido)Duvida was marked as the answer"data/action/scripts/quest1.lua" :
function onUse(cid, item, fromPosition, itemEx, toPosition) a = 93520 id = 1234 if getPlayerStorageValue(cid, a) < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a "..getItemNameById(id)..".") doPlayerAddItem(cid, id, 1) doPlayerSetStorageValue(cid, a, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end return TRUE end "data/action/action.xml" :
<action actionid="93520" script="Quest1.lua"/> -
ViitinG's post in (Resolvido)[8.60] Servidor derivado baseado em Naruto. was marked as the answerBom,eu vim pela mensagem que você me mandou e como não sei muita coisa sobre servidores derivados eu vou responder oque acho sobre algumas das perguntas :
Acho que é isso,mas ai vai mais uma dica :
Se você realmente acha que isso vai dar sucesso e que você vai conseguir levar para frente essa idéia,corra atrás e não ligue para ninguem que fale que isso não vai dar sucesso,porque só se você conseguir fazer a coisa da certa que os outros vão começar a mudar as opniões,se você acha que vai dar certo vai com tudo e é claro com calma,porque nada se cria do dia para noite,você vai levar tempo para criar uma coisa que realmente faça a diferença entre os servidores.
Espero que minha humilde opnião possa ter te ajudado em alguma coisa.Abraço !
-
ViitinG's post in (Resolvido)[Ajuda] Magia Effect was marked as the answerPara mudar a cor do healing é só nas sources brother.
-
ViitinG's post in (Resolvido)ERROR 100061 was marked as the answerResolvido por Team Viewer.
Precisava liberar as portas do modem corretamente e ligar o DUC.
-
ViitinG's post in (Resolvido)Ajuda FirstItens was marked as the answerTenta assim,se não der manda o erro se possível :
local commonItems = { {itemid=2457, count=1}, -- legion helmet {itemid=2463, count=1}, -- chain armor {itemid=2647, count=1}, -- studded legs {itemid=2195, count=1}, -- leather boots {itemid=2160, count=5}, -- money {itemid=2124, count=1}, -- anel {itemid=2173, count=1} -- aol } local firstItems = { { -- SORC ITEMS {itemid=2190, count=1}, -- wand of vortex {itemid=2514, count=1}, -- mms {itemid=7620, count=1} -- mana potion }, { -- DRUID ITEMS {itemid=2182, count=1}, -- snakebite rod {itemid=2514, count=1}, -- mms {itemid=7620, count=1} -- mana potion }, { -- PALADIN ITEMS {itemid=2389, count=1}, -- spear {itemid=2514, count=1}, -- mms {itemid=7618, count=1} -- mana potion }, { -- KNIGHT ITEMS {itemid=2383, count=1}, -- spike sword {itemid=2514, count=1}, -- mms {itemid=7618, count=1} -- mana potion } } for _, items in ipairs(firstItems) do for _, item in ipairs(commonItems) do table.insert(items, item) end end local storage = 35353 function onLogin(cid) if getPlayerGroupId(cid) < 3 then local receivedItems = getPlayerStorageValue(cid, storage) if receivedItems == -1 then --[[local backpack = ]]doPlayerAddItem(cid, 1988, 1) local giveItems = firstItems[getPlayerVocation(cid)] if giveItems ~= nil then for _, v in ipairs(giveItems) do --doAddContainerItem(backpack, v.itemid, v.count or 1) doPlayerAddItem(cid, v.itemid, v.count or 1) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você recebeu seus primeiros itens !") end setPlayerStorageValue(cid, storage, 1) end return true end end