Solutions
-
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 -
ViitinG's post in (Resolvido)ajuda nascer com vip was marked as the answerProcure antes de criar o tópico amigo !
http://www.tibiaking.com/forum/topic/2623-creaturescript-ganhar-3-dias-de-premium-ao-logar-pela-primeira-vez/
-
ViitinG's post in (Resolvido)Nao consigo logar no meu server was marked as the answerNão.O IP 127.0.0.1 é somente para você entrar.
-
ViitinG's post in (Resolvido)ola como eu tiro o comando /t was marked as the answerCuidado com double post amigo,você só poder dar UP após 24 horas !
É só mudar no talkactions.xml está tag,bote o access 3 ou 5 :
<talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/> -
ViitinG's post in (Resolvido)Dúvidas Cortina was marked as the answerColoque ela pelo "Raw Palette>Hangables" ao invés de "Doodad Palette>Hangables".
-
ViitinG's post in (Resolvido)quando augem morrer no meu baiak was marked as the answer"data/creaturescript/scripts/saveplayer" :
local config = { savePlayer = true, healPlayerOnLevel = true } function onAdvance(cid, skill, oldLevel, newLevel) if(skill == SKILL__EXPERIENCE) then return true end if(skill == SKILL__LEVEL and config.healPlayerOnLevel) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid)) end if(config.savePlayer) then doPlayerSave(cid, true) end return true end "data/creaturescripts/creaturescripts.xml" :
<event type="advance" name="SavePlayer event="script" value="saveplayer.lua"/> "data/creaturescripts/scripts/login.lua" :
registerCreatureEvent(cid, "SavePlayer")
O 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)Sistema De Refino was marked as the answerAntes de criar um tópico tente pesquisar pelo mesmo amigo !
Da uma olhada neste : http://www.tibiaking.com/forum/topic/11580-perfect-upgrade-system/
-
ViitinG's post in (Resolvido)Icon System was marked as the answerResolvido.
-
ViitinG's post in (Resolvido)erro deslogando com blatle was marked as the answerVerifica se na pasta "data/creaturescripts/scripts" tem algum script para retirar o battle quando entrar na protection zone.
-
ViitinG's post in (Resolvido)Área de mergulho ? was marked as the answerRaw Palette>Sea.
-
ViitinG's post in (Resolvido)Magic Wall nao desaparece! 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 → OTServ Geral"
Para: "OTServ → Suporte OTServ → Suporte de Scripts"
Verifica se a tag do item.xml está assim :
<item id="1497" article="a" name="magic wall"> <attribute key="type" value="magicfield" /> <attribute key="decayTo" value="0" /> <attribute key="duration" value="20" /> </item> -
ViitinG's post in (Resolvido)Não consigo adicionar atributos aos itens was marked as the answerVocê tem que adicionar o item no movements.xml amigo.
Exemplo :
<movevent type="DeEquip" itemid="8900" slot="shield" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="8900" slot="shield" level="40" event="function" value="onEquipItem"> </movevent -
ViitinG's post in (Resolvido)Logout was marked as the answer"data/creaturescripts/creaturescripts.xml" :
<event type="think" name="Idle" event="script" value="idle.lua"/> "data/creaturescripts/scripts/idle.lua" :
local config = { idleWarning = getConfigValue('idleWarningTime'), idleKick = getConfigValue('idleKickTime') } function onThink(cid, interval) if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or getPlayerCustomFlagValue(cid, PlayerCustomFlag_AllowIdle)) then return true end local idleTime = getPlayerIdleTime(cid) + interval doPlayerSetIdleTime(cid, idleTime) if(config.idleKick > 0 and idleTime > config.idleKick) then doRemoveCreature(cid) elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes" if(config.idleKick > 0) then message = message .. ", you will be disconnected in " local diff = math.ceil((config.idleWarning - config.idleKick) / 60000) if(diff > 1) then message = message .. diff .. " minutes" else message = message .. "one minute" end message = message .. " if you are still idle" end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return true end "data/creaturescripts/login.lua" :
registerCreatureEvent(cid, "Idle") Agora é só alterar o tempo no neste local que você citou do config.lua.
-
ViitinG's post in (Resolvido)Teleport que aparece em X dias was marked as the answerTenta assim :
local config = { day = "Monday","Wednesday","Friday","Sunday", pos = {x=151, y=77, z=6}, -- Posição aonde sera criado o teleport topos = {x=550, y=34, z=7}, -- Posição pra onde o teleport ira levar o player time = 5, -- tempo que o teleport ira sumir em minutos msg_open = "The Portal to Hell was opened due to a war between angels and demons, run to the path of the Pits of Hell and kill Luciferus and his demons, the portal will close in 5 minutes.", -- mensagem ao abrir o teleport msg_close = "Lucifer found that some humans have managed to get into his reign and shut the gate." -- mensagem ao fechar o teleport } local function DelTp() local t = getTileItemById(config.pos, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(config.pos, CONST_ME_POFF) end end function onTimer() if (os.date("%A") == config.day) then doCreateTeleport(1387, config.topos, config.pos) doBroadcastMessage(config.msg_open) addEvent(DelTp, config.time*60*1000) addEvent(doBroadcastMessage, config.time*60*1000, config.msg_close) end return true end -
ViitinG's post in (Resolvido)Sqllite studio was marked as the answerTenta atualizar o SQLStudio,pelo que estou vendo ele está na versão 1.1.1 aí !
-
ViitinG's post in (Resolvido)[Pedido] Mount-ao Clicar no item was marked as the answerAmigo antes de criar um tópico tente procurar pelo que precisa !
Ve se isso pode te ajudar : http://www.tibiaking.com/forum/topic/31842-item-mount-exclusivo1031-a-1037tfs-10/
-
ViitinG's post in (Resolvido)Players comando !save was marked as the answerTente esse aqui então :
"data/talkactions/scripts/save.lua" :
local savingEvent = 0 function onSay(cid, words, param) if getPlayerAccess(cid) ~= 0 then if isNumber(param) == TRUE then stopEvent(savingEvent) save(tonumber(param) * 60 * 1000) else saveServer() end end end function save(delay) saveServer() if delay > 0 then savingEvent = addEvent(save, delay, delay) end end "data/talkactions/talkactions.xml" :
<talkaction words="/save" script="save.lua" /> -
ViitinG's post in (Resolvido)ERROS BÁSICOS AO INICIAR OT was marked as the answerIsso não é erro nenhum é apenas um warning avisando que não tem as houses dos IDs citados.Não influência em nada mas caso você queira tirar é só remover as houses pelos IDs que mostra no warning.
-
ViitinG's post in (Resolvido)[AJUDA] Quero Script Pro Pk Sair Com 10 Segundos was marked as the answerVocê pode mudar isso no config.lua brother :
pzLocked = 30 * 1000 -
ViitinG's post in (Resolvido)[AJUDA] New player área. was marked as the answerBota para o player quando criar uma nova conta ele nascer no lugar onde pega seus rewards e quando o player entrar no teleport para ir para o templo ele vai virar morador do templo e toda hora que morrer ele vai voltar para o templo e não para o local dos rewards.
Mude a coordenada do Account Manager para o templo e a coordenada de newplayer para a sala de rewards e no teleport que está na area de reward você bota o actionid 30021 em vermelho você bota o townid da cidade que ele vai virar morador.
-
ViitinG's post in (Resolvido)Auto Clean e Auto Save was marked as the answerO de save é 3600000 !
obs : para fazer as contas basta botar "60000xMinutos" no caso "60000x30" para 30 minutos e "60000x60" para uma hora.
@danihcv isto serve para dar clean após um global save,como ele quer um clean em 30 minutos e um save em 1 hora e não 1 hora para os dois,tem que ser feito nos scripts.