Ir para conteúdo

Markin

Membro
  • Registro em

  • Última visita

Solutions

  1. Markin's post in (Resolvido)frags remover? was marked as the answer   
    unica coisa que se tem pra fazer no script é remover a linha doRemoveItem e depois adicionar as duas linha que mandei no items.xml
    -- [( Script created by Matheus for TibiaKing.com )] -- function onUse(cid, item, fromPosition, item2, toPosisition) local rskulls = {green = SKULL_GREEN, red = SKULL_RED, black = SKULL_BLACK} if isInArray(rskulls, getPlayerSkullType(cid)) then doPlayerSendCancel(cid,"You don't remover your frags and skulls.") doSendMagicEffect(getPlayerPosition(cid), 2) else db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doCreatureSetSkullType(cid, 0) doCreatureSay(cid, "Your frags and skulls is cleaned!", 19) doSendMagicEffect(getPlayerPosition(cid), 26) return TRUE end end
  2. Markin's post in (Resolvido)!serverinfo, pedido was marked as the answer   
    tenta
    local config = { rateExperience = getConfigInfo('rateExperience'), rateSkill = getConfigInfo('rateSkill'), rateLoot = getConfigInfo('rateLoot'), rateMagic = getConfigInfo('rateMagic'), protectionLevel = getConfigInfo('protectionLevel'), stages = getBooleanFromString(getConfigInfo('experienceStages')) } function onSay(cid, words, param, channel) local exp = config.rateExperience if(config.stages) then exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) end doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nProtection level: " .. config.protectionLevel) return true end Se não funcionar utilize este:
    local config = { rateExperience = getConfigInfo('rateExperience'), rateSkill = getConfigInfo('rateSkill'), rateLoot = getConfigInfo('rateLoot'), rateMagic = getConfigInfo('rateMagic'), rateSpawnMin = getConfigInfo('rateSpawnMin'), rateSpawnMax = getConfigInfo('rateSpawnMax'), protectionLevel = getConfigInfo('protectionLevel'), stages = getBooleanFromString(getConfigInfo('experienceStages')) } function onSay(cid, words, param, channel) local exp = config.rateExperience if(config.stages) then exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) end doPlayerSendTextMessage(cid,27, "Server Information:\n\nExperience rate: x" .. exp .. "\nLoot rate: x" .. config.rateLoot) return true end
  3. Markin's post in (Resolvido)Item que da ADM was marked as the answer   
    não sei o que é cyan mas no script deve ter a linha
    doPlayerSetGroupId(cid, 6) ao remover essa linha o script não dará mais god a quem usar o item, uma dica para encontrar o script é:
    Veja o ID do item que da ADM, vá até a pasta data/actions abra o arquivo actions.xml de um CTRL+F e coloque o id do item, vai estar mais ou menos assim:
    <action itemid="ID DO ITEM AQUI" event="script" value="NOME DO SCRIPT.lua"/> ai basta você ver o nome do script e fazer a remoção da função doPlayerSetGroupId...
  4. Markin's post in (Resolvido)Como mudo o nome do item! was marked as the answer   
    basta alterar o nome onde esta escrito jester doll para o nome que você quiser após isso reinicie o servidor.
  5. Markin's post in (Resolvido)[ERRO] Talkaction bless was marked as the answer   
    local bless = {1, 2, 3, 4, 5} local cost = 10000 function onSay(cid, words, param) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then doPlayerSendCancel(cid, "Voce ja tem todas as bless.") return TRUE end end if(doPlayerRemoveMoney(cid, cost) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) end doCreatureSay(cid, "Voce comprou bless!" ,19) doSendMagicEffect(getPlayerPosition(cid), 49) else doPlayerSendCancel(cid, "Voce precisa de 100k para a bless.") end return TRUE end
  6. Markin's post in (Resolvido)[AJUDA] erro de servidor por uma script was marked as the answer   
    usa esse aqui:
    local config = { positions = { ["Hunts"] = { x = 1024, y = 908, z = 5 }, ["Vocation"] = { x = 1033, y = 909, z = 5 }, ["Konoha"] = { x = 11, y = 794, z = 7 }, ["Retornar"] = { x = 395, y = 1223, z = 7 } } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end return TRUE end globalevents.xml
    <globalevent name="tpmensagem1" interval="2100" script="tlpmenssage.lua"/>
  7. Markin's post in (Resolvido)Como faz essa outifit? was marked as the answer   
    http://www.tibiawiki.com.br/wiki/Outfits
  8. Markin's post in (Resolvido)[Pedido] um script igual ao underwar was marked as the answer   
    Eu já joguei underwar, se eu não me engano ele quer um script que o player ao fazer seu primeiro acesso ao servidor(logar pela primeira vez) ira receber uma mensagem com a função
    doPlayerPopupFYI(cid, "bla bla bla")
  9. Markin's post in (Resolvido)IDS no RME não são os mesmo no OT was marked as the answer   
    copia o items.xml e items.otb do seu ot e cola dentro do rme na pasta da respectiva versão do mapa.
  10. Markin's post in (Resolvido)[talkactions] Vendendo item com premium account - Ajuda! was marked as the answer   
    local premium_days = 15 -- quantos dias de premium seram removidos local recompensa = 2548 -- qual item sera vendido function onSay(cid, words, param, channel) if getPlayerPremiumDays(cid) >= premium_days then doPlayerRemovePremiumDays(cid, premium_days) doPlayerAddItem(cid, recompensa, 1) -- o 1 é o tanto de itens que vai ganhar doPlayerSendTextMessage(cid, 19, "Você acabou de receber uma crown armor!") else doPlayerSendTextMessage(cid, 19, "Você precisa de no minimo 15 dias de premium account para executar este comando.") end return TRUE end
  11. Markin's post in (Resolvido)Stamina Refil was marked as the answer   
    lua: 
    function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doRemoveItem(item.uid) end return true end tag:
    <action itemid="12505" event="script" value="stamina.lua"/> Não sei quem fez o script, já estava no meu servidor.
  12. Markin's post in (Resolvido)Rep+ o3o (Alguem me passa um servidor 8.6). was marked as the answer   
    http://www.tibiaking.com/forum/topic/10756-perfect-server-global-compacto/
    eu sempre gostei de mexer com este servidor por ser estável e bem leve. 
  13. Markin's post in (Resolvido)[NPC] Premiun was marked as the answer   
    em npcs crie um arquivo com o nome premium account.xml e adicione isso dentro:
    <?xml version="1.0"?> <npc name="Premium Account" script="data/npc/scripts/premiumaccount.lua" walkinterval="2500" floorchange="0"> <health now="100" max="100"/> <look type="148" head="0" body="112" legs="93" feet="95" addons="3"/> <parameters> <parameter key="message_greet" value="Ola {|PLAYERNAME|}, voce deseja comprar premium account?" /> </parameters> </npc> Em npcs/scripts crie um arquivo com o nome premiumaccount.lua e adicione isso dentro:
    local 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local days = 30 -- dias de premium local money = 10000 -- 10k if msgcontains(msg, 'yes') then if getPlayerMoney(cid) >= money then doPlayerAddPremiumDays(cid, days) doPlayerRemoveMoney(cid, money) selfSay('Parabens '..getPlayerName(cid)..', voce adquiriu 30 dias de Premium Account!', cid) doSendMagicEffect(getPlayerPosition(cid), 28) else selfSay(''..getPlayerName(cid)..', voce nao tem dinheiro suficiente.', cid) doSendMagicEffect(getPlayerPosition(cid), 2) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  14. Markin's post in (Resolvido)Bug no Gesior ! was marked as the answer   
    Esta assim pois não tem nenhuma mensagem no site, basta adicionar que fica normal.
  15. Markin's post in (Resolvido)Pedido Xampp win 7 was marked as the answer   
    1.7.3
  16. Markin's post in (Resolvido)[ERROR] Npcs não respondem was marked as the answer   
    Vai em npc/lib/npcsystem abre o arquivo npchandler.lua apague tudo e coloque isso.
    Faça uma copia do npchandler.lua antes pois se bugar se ainda tem o outro...
     



  17. Markin's post in (Resolvido)[PEDIDO] Actions que transforma item. was marked as the answer   
    Eu acho que se botar um doPlayerRemoveItem e um doPlayerAddItem da na mesma e resolve, você deve saber fazer isso
     
    #EDITADO
    local a = { remove = 2472, -- Item que vai ser removido. add = 2495 -- Item que vai ser adicionado. } function onUse(cid, item, frompos, item2, topos) if getPlayerItemCount(cid, a.remove) >= 1 then doPlayerRemoveItem(cid, a.remove, 1) doPlayerAddItem(cid, a.add, 1) doSendMagicEffect(getPlayerPosition(cid), 28) doPlayerSendCancel(cid, "Você transformou sua "..getItemNameById(a.remove).." em uma "..getItemNameById(a.add).."!") else doPlayerSendCancel(cid, "Sua "..getItemNameById(a.remove).." deve estar dentro da backpack para transformala!") doSendMagicEffect(getPlayerPosition(cid), 2) end return TRUE end <action itemid="2472" script="testes/TESTES.lua"/>
  18. Markin's post in (Resolvido)Quero ser scripter was marked as the answer   
    Eu aprendi o básico esses dias... Eu achei que alguém ia ter que me ajudar porem oque eu aprendi foi montando meus próprios scripts e lendo tópicos.
     
    Primeiro tenha a lista de funções em mãos
    http://www.tibiaking.com/forum/topic/1988-lista-de-funcoes-lua/
     
     
    Procure nos tutoriais de scripting que você pode achar coisas básicas...
    http://www.tibiaking.com/forum/forum/136-tutoriais-de-scripting/
     
    Caso queria ajuda agora no começo adicione o skype: walzinhooo
    quando eu não estiver ocupado(quase nunca estou ocupado) eu ajudo você com o básico.
  19. Markin's post in (Resolvido)Tile que não pode passar por cima. was marked as the answer   
    movements/scripts function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) doTeleportThing(cid, lastPosition) return TRUE end movements.xml
    <movevent type="StepIn" uniqueid="24673" event="script" value="NOME DO SCRIPT"/> ai basta você adicionar a uniqueID 24673 no piso que o player não vai poder passar pelo RME e colocar o nome do script em NOME DO SCRIPT

Informação Importante

Confirmação de Termo