Ir para conteúdo

Mr. Crimson Prince

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Obrigado
    Mr. Crimson Prince recebeu reputação de Kamishimeru em (Resolvido)Players deslogando com battle status   
    o problema era que eu coloquei minha acc como group id 6, não apenas o character, ai todos os char criados nela não respeitava funções taxadas para players ... burrice minha 
  2. Obrigado
    Mr. Crimson Prince recebeu reputação de DarkRed em (Resolvido)[PEDIDO]Sistema de correr " para ot 8.54 :D   
    em: data\talkactions\scripts\
    crie o arquivo correr.lua e cole isso dentro
    function onSay(cid, words, param) if exhaustion.get(cid, 501) then doPlayerSendCancel(cid, 'You can use this command only once per 10 seconds.') return true end doCreatureSay(cid, "correr", TALKTYPE_ORANGE_1) doChangeSpeed(cid, 1 * 500) doSendMagicEffect(getPlayerPosition(cid), 1) exhaustion.set(cid, 501, 10) return true end  explicação:
    if exhaustion.get(cid, 501) then <------------- 501 tempo de exaust da função 10 segundos. doChangeSpeed(cid, 1 * 500) <------------------ 500 velocidade alterada, modifique a gosto doCreatureSay(cid, "correr", TALKTYPE_ORANGE_1) <--- cor da letra e o que vai dizer doSendMagicEffect(getPlayerPosition(cid), 1) <- 1 efeito a ser exibido, altere se preferir  depois vá em: data\talkactions\
    clique com o botão direito no arquivo "talkactions.xml" em seguida "Edit/Editar" 
    e acrescente a seguinte tag:
    <talkaction words="correr" event="script" value="correr.lua"/>
  3. Gostei
    Mr. Crimson Prince recebeu reputação de willianbau em Dbko Arena Server   
    alguém já testou o serve ?
  4. Gostei
    Mr. Crimson Prince recebeu reputação de LulSeck em Ajuda com First Items Gesior Por Favor   
    no firstitems.lua troca por esse :
      local config = {     [1] = {         --equipment spellbook, wand of vortex, magician's robe, mage hat, studded legs, leather boots, scarf         {{2175, 1}, {2190, 1}, {8819, 1}, {8820, 1}, {2468, 1}, {2643, 1}, {2661, 1}},         --container rope, shovel, mana potion         {{2120, 1}, {2554, 1}, {2789, 10}}     },     [2] = {         --equipment spellbook, snakebite rod, magician's robe, mage hat, studded legs, leather boots scarf         {{2175, 1}, {2182, 1}, {8819, 1}, {8820, 1}, {2468, 1}, {2643, 1}, {2661, 1}},         --container rope, shovel, mana potion         {{2120, 1}, {2554, 1}, {2789, 10}}     },     [3] = {         --equipment dwrven shield, 5 spear, ranger's cloak, ranger legs scarf, legion helmet         {{2525, 1}, {2389, 5}, {2660, 1}, {8923, 1}, {2643, 1}, {2661, 1}, {2480, 1}},         --container rope, shovel, health potion, bow, 50 arrow         {{2120, 1}, {2554, 1}, {2789, 10}, {2456, 1}, {2544, 50}}     },     [4] = {         --equipment dwarven shield, steel axe, brass armor, brass helmet, brass legs scarf         {{2525, 1}, {8601, 1}, {2465, 1}, {2460, 1}, {2478, 1}, {2643, 1}, {2661, 1}},         --container jagged sword, daramian mace, rope, shovel, health potion         {{8602, 1}, {2439, 1}, {2120, 1}, {2554, 1}, {2789, 10}}     } } function onLogin(cid)     local player = Player(cid)     local targetVocation = config[player:getVocation():getId()]     if not targetVocation then         return true     end     if player:getLastLoginSaved() == 0 then         for i = 1, #targetVocation[1] do             player:addItem(targetVocation[1][i][1], targetVocation[1][i][2])         end               local backpack = player:addItem(1988)         for i = 1, #targetVocation[2] do             backpack:addItem(targetVocation[2][i][1], targetVocation[2][i][2])         end     end     return true end e verifica se tem essa linha no creaturescripts.xml :
    <event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
  5. Gostei
    Mr. Crimson Prince recebeu reputação de Magonnite em [Pedido Action]Bau que ganha item e teleporta 8.00   
    Ta aqui o script :
       
    function onUse(cid, item, fromPosition, itemEx, toPosition)    if getPlayerLevel(cid) >= 150 then      doPlayerAddItem(cid, 2100, 1)         doTeleportThing(cid, {x=3274,y=3447,z=7})         else          doPlayerSendCancel(cid, "This action is not possible.")        end      return true  end  
    Adiciona no actions.xml
      <action itemid="2788" event="script" value="bau/bau.lua"/>
  6. Gostei
    Mr. Crimson Prince recebeu reputação de lango rullez em (Resolvido)Como diminuir a CAP da potion.   
    data/items/items.xml
     
    Ctrl + F e digite o ID do item
     
    vai estar assim
    <item id="7620" article="a" name="mana potion"> <attribute key="weight" value="180"/> </item> aqui altera o cap/oz/peso
    <attribute key="weight" value="180"/> coloque no value o numero desejado para ser o novo peso ;
  7. Gostei
    Mr. Crimson Prince recebeu reputação de RenanPhellip em [WAR SYSTEM] LINUX   
    vc adicionou no configure.ac na hora da compilação o parâmetro :
    OPTIONAL_FLAGS="" OPTIONAL_FLAGS="-D__WAR_SYSTEM__"  
  8. Gostei
    Mr. Crimson Prince recebeu reputação de Sentsuizan em [Pedido Action]Bau que ganha item e teleporta 8.00   
    Ta aqui o script :
       
    function onUse(cid, item, fromPosition, itemEx, toPosition)    if getPlayerLevel(cid) >= 150 then      doPlayerAddItem(cid, 2100, 1)         doTeleportThing(cid, {x=3274,y=3447,z=7})         else          doPlayerSendCancel(cid, "This action is not possible.")        end      return true  end  
    Adiciona no actions.xml
      <action itemid="2788" event="script" value="bau/bau.lua"/>
  9. Gostei
    Mr. Crimson Prince deu reputação a Summ em RESOLVIDO Sistema de mendigo   
    mendigo.lua 
    local table = { stg = 99487, -- Não mudar cost = 1000, -- Quantia a ser doada pos = {x = xxxx, y = xxx, z = x} -- Pos que vai ser teleportado onde vai encontrar o outro NPC } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) npcHandler.topic = {} 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 if getPlayerStorageValue(cid, table.stg) > 0 then npcHandler:say('Obrigado amigo de bom coracao, voce ja me ajudou.', cid) return true else if msgcontains(msg, 'ajudar') then npcHandler:say('Voce teria '..table.cost..' gps pra me ajudar ?', cid) npcHandler.topic[cid] = 1 elseif msgcontains(msg, 'sim') and npcHandler.topic[cid] == 1 then if doPlayerRemoveMoney(cid, table.cost) then npcHandler:say('Obrigado!', cid) doTeleportThing(cid, table.pos) setPlayerStorageValue(cid, table.stg, 1) else npcHandler:say('Voce tem pouco dinheiro! Melhor guardar, para não passar pela minha situacao', cid) end npcHandler.topic[cid] = 0 elseif msgcontains(msg, 'nao') then npcHandler.topic[cid] = 0 npcHandler:say('Espero que voce nunca precise de ajuda.', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) mendigo.xml
    <?xml version="1.0" encoding="UTF-8"?> <npc name="Mendigo" script="data/npc/scripts/mendigo.lua" walkinterval="25" floorchange="0" access="5" lookdir="1" > <health now="150" max="150"/> <look type="133" head="95" body="86" legs="86" feet="38" addons="3"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|! Voce pode me {ajudar}?"/> </parameters> <voices interval="10"> <voice text="Sera que alguma pessoa poderia me ajudar?" yell="0"/> </voices> </npc> rico.lua
    local table = { stg = 99487, -- Não mudar stg2 = 99488, -- Não mudar itemid = xxxx -- Id do item que irá ganhar } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) npcHandler.topic = {} 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 if getPlayerStorageValue(cid, table.stg) > 0 then if getPlayerStorageValue(cid, table.stg2) < 1 then if msgcontains(msg, 'mendigo') then npcHandler:say('Ah é você amigo, eu era aquele mendigo sim, aconteceu varias coisas e aqui estou hahaha... brincadeiras a parte, tenho {algo} pra te dar por ter me ajudado', cid) npcHandler.topic[cid] = 1 elseif msgcontains(msg, 'algo') npcHandler.topic == 1 then npcHandler:say('Sim, faça bom proveito disso.') doPlayerAddItem(cid, table.itemid, 1) setPlayerStorageValue(cid, table.stg2, 1) end else npcHandler:say('Foi muito bom te conhecer cara, te considero até hoje') npcHandler.topic[cid] = 0 end else npcHandler:say('Nem te conheço cara... vá embora') npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) rico.xml
    <?xml version="1.0" encoding="UTF-8"?> <npc name="Rico" script="data/npc/scripts/rico.lua" walkinterval="25" floorchange="0" access="5" lookdir="1" > <health now="150" max="150"/> <look type="133" head="95" body="86" legs="86" feet="38" addons="3"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|! Se eu te fala-se que eu era um mendigo tu acreditaria ?"/> </parameters> </npc> Configurações :
     
    mendigo.lua = pos = {x = xxxx, y = xxx, z = x} -- Pos que vai ser teleportado onde vai encontrar o outro NPC
     
    rico.lua = itemid = xxxx -- Id do item que irá ganhar
     
     
     
     
     
     
     
    Agradecimentos ao Bruno Minervino por ter me ajudado e ensinado.
  10. Gostei
    Mr. Crimson Prince deu reputação a Summ em RESOLVIDO Sistema de mendigo   
    local table = { stg = 99487, -- Não mudar stg2 = 99488, -- Não mudar itemid = 3184 -- Id do item que irá ganhar } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) npcHandler.topic = {} 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 if getPlayerStorageValue(cid, table.stg) > 0 then if getPlayerStorageValue(cid, table.stg2) < 1 then if msgcontains(msg, 'mendigo') then npcHandler:say('Ah e voce amigo, eu era aquele mendigo sim, aconteceu varias coisas e aqui estou hahaha... brincadeiras a parte, tenho {algo} pra te dar por ter me ajudado.', cid) npcHandler.topic[cid] = 1 elseif msgcontains(msg:lower(), 'algo') and npcHandler.topic == 1 then npcHandler:say('Sim, faça bom proveito disso.', cid) doPlayerAddItem(cid, table.itemid, 1) setPlayerStorageValue(cid, table.stg2, 1) npcHandler.topic[cid] = 0 end else npcHandler:say('Foi muito bom te conhecer cara, te considero até hoje', cid) npcHandler.topic[cid] = 0 end else npcHandler:say('Nem te conheço cara... vá embora', cid) npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  11. Gostei
    Mr. Crimson Prince deu reputação a Summ em (Resolvido)[ PEDIDO ] Portinhas Por profissão   
    function onUse(cid, item, topos) local doors = { [88651] = {vocation = {1, 5, 2, 6}, messageFail = "Sorry, you need to be a Sorcerer or Druid to pass."}, [88653] = {vocation = {3, 7}, messageFail = "Sorry, you need to be a Paladin or Royal Paladin to pass."}, [88654] = {vocation = {4, 8}, messageFail = "Sorry, you need to be a Knight or Elite Knight to pass."} } if isInArray(doors[item.actionid].vocation, getPlayerVocation(cid)) then doTeleportThing(cid, toPosition, true) doTransformItem(item.uid, item.itemid + 1) else return doPlayerSendCancel(cid, doors[item.actionid].messageFail) end return true end
  12. Gostei
    Mr. Crimson Prince deu reputação a Summ em Premdays   
    config.php
    $config['site']['newaccount_premdays'] = 10;
  13. Gostei
    Mr. Crimson Prince deu reputação a Summ em (Resolvido)[ PEDIDO ] Portinhas Por profissão   
    function onUse(cid, item, topos) local doors = { [88651] = {vocation = {1, 5, 2, 6}, messageFail = "Sorry, you need to be a Sorcerer or Druid to pass."}, [88653] = {vocation = {3, 7}, messageFail = "Sorry, you need to be a Paladin or Royal Paladin to pass."}, [88654] = {vocation = {4, 8}, messageFail = "Sorry, you need to be a Knight or Elite Knight to pass."} } if isInArray(doors[item.actionid].vocation, getPlayerVocation(cid)) then doTeleportThing(cid, toPosition) doTransformItem(item.uid, item.itemid + 1) else return doPlayerSendCancel(cid, doors[item.actionid].messageFail) end return true end <action actionid="88651;88653;88654" event="script" value="portavocation.lua"/>
  14. Gostei
    Mr. Crimson Prince deu reputação a Flavio S. Cabral em [ERRO] Script não pôde ser aberto   
    No such file or directory --> Nenhum arquivo ou diretório encontrado.
     
    Verifique se o caminho e o nome do arquivo ou a extensão (.lua) esteja correta. Crie outro arquivo se necessário com um nomediferente.lua e tente.
  15. Gostei
    local vocations = {5, 6, 7, 8} -- Não modifique... local stg = 98749 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 if msgcontains(msg:lower(), 'voc suprem') then selfSay('Deseja virar {Voc suprem} ?', cid) talkState[talkUser] = 1 elseif msgcontains(msg:lower(), 'yes') and talkState[talkUser] == 1 then if getPlayerStorageValue(cid, stg) < 1 then if isInArray(vocations, getPlayerVocation(cid)) > 4 then if getPlayerItemCount(cid, 142) >= 1 then doPlayerRemoveItem(cid, 142, 1) doPlayerSetVocation(cid, getPlayerVocation(cid) + 4) selfSay('Parabéns você acaba de completar Asgard.', cid) setPlayerStorageValue(cid, stg, 1) talkState[talkUser] = 0 else selfSay('Você não tem {suprem vocation} suficientes.', cid) talkState[talkUser] = 0 end else selfSay('Você não tem a primeira promotion', cid) talkState[talkUser] = 0 end else selfSay('Você já tem vocation suprema', cid) talkState[talkUser] = 0 end elseif msgcontains(msg:lower(), 'no') or msgcontains(msg:lower(), 'bye') then selfSay('Bye!', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  16. Gostei
    Mr. Crimson Prince deu reputação a Flavio S. Cabral em (Resolvido)errro Script pLayer not found   
    function onStepIn(cid, item, frompos, item2, topos) if isPlayer(cid) then doSendAnimatedText(getPlayerPosition(cid), ""..getPlayerName(cid).."", TEXTCOLOR_DARKRED) doPlayerAddItem(cid, 965, 1) end return true end
  17. Gostei
    Mr. Crimson Prince deu reputação a Summ em (Resolvido)Request - Quest que dá SSA com 100 cargas   
    function onUse(cid, item) local storage = 105487 local itemid = 2197 local count = 100 if getPlayerStorageValue(cid, storage) < 1 then doPlayerAddItem(cid, itemid, count) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received " .. itemid .. ".") setPlayerStorage(cid, storage, 1) else return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Item not found") end return true end
  18. Gostei
    Mr. Crimson Prince deu reputação a Summ em [Pedido] Script !bless   
    Primeiro se diz que "quando os jogadores morrem eles não estão perdendo absolutamente nada, nem exp level, skill, ml ou itens" ou seja não perde nada ...
    Mas agora os player que tem bless morrem perdem pouca exp, não perde nenhuma skill e os player sem bless perdem experiência correta, mas não perdem skills.
     
    Só deixou eu mais confuso AHSUAHUSH, o script de bless ta correto, e pelo que eu entendi não é problema na bless, porque se o cara ta sem bless e ele morre não perde o que deveria perder   , config.lua ta normal tb   
  19. Gostei
    @ADM Lucas OTBR Pronto agr vai funcionar testei aqui.
    function onKill(cid, target) if isPlayer(cid) and isPlayer(target) == true then local heart = doPlayerAddItem(cid, 5943, 1) doItemSetAttribute(heart, "description", "Killed at " .. getPlayerLevel(target) .. " by " .. getPlayerName(cid) .. ".") end return true end @zipter98 Depois de 30 minutos fazendo cagada aqui olhei um script e vi isso msm hahaha, só que percebi que essa função doSetItemSpecialDescription(uid, descri) fica adicionando item infinitamente ao player   
  20. Gostei
    function onKill(cid, target) if isPlayer(cid) and isPlayer(target) then doSetItemSpecialDescription(doPlayerAddItem(cid, 5943, 1), "name", "" ..getPlayerName(target).. " Heart's") doSetItemSpecialDescription(doPlayerAddItem(cid, 5943, 1), "description", "Killed at Level "..getPlayerLevel(target).." by "..getPlayerName(cid)..". " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "(Unjustified)" or "(Justified)")) end return true end
  21. Gostei
    Mr. Crimson Prince deu reputação a Summ em Talkaction Para Premium   
    http://www.tibiaking.com/forum/topic/35667-broadcast-system-100/
  22. Gostei
    Mr. Crimson Prince deu reputação a f.silva em (Resolvido)Erro no xampp   
    mas desde quando precisa liberar as portas pra entrar no phpmyadmin ?
  23. Gostei
    Mr. Crimson Prince deu reputação a f.silva em (Resolvido)Erro no xampp   
    Cara não é querendo ser ignorante, mas esse tipo de erro acontece quando o cara que está instalando em questão não tem nem a vontade de ler pra saber o que fazer e só faz cagada na instalação...
     
    O que custa escrever na aba de pesquisas um tutorialzinho pra aprender um pouco... http://www.tibiaking.com/forum/topic/8861-como-criar-um-site-para-seu-servidor/ 
    Basta seguir o tutorial apenas instalando uma outra versão, no caso 1.7.3 ... mas antes desinstale completamente o xampp antigo, vai em meu computador, disco local C: ou D: (o que tu instalou) e verifica se a pasta foi completamente excluída se não faça isso... reinicie o pc ... e siga o tutorial ... não tem erro até minha vó consegue;
     
    Os cara aqui do fórum antes de postar um tópico deveria ao menos tentar resolver o problema sozinho ou dar uma pesquisada durante uns 5 minutinhos pra descobrir o que fez de errado, pq vejo tópicos com erros que nem vontade de perder meu tempo digitando dá, de tão na cara que o erro tá;
  24. Gostei
    Mr. Crimson Prince deu reputação a f.silva em (Resolvido)(AJUDA) Erro Pagina Cast System Gesior ACC   
    ALTER TABLE `players` ADD `viewers` int(11) not null default '0';
  25. Gostei
    Mr. Crimson Prince deu reputação a f.silva em (Resolvido)(AJUDA) Erro Pagina Cast System Gesior ACC   
    Usa esse comando : ALTER TABLE `players` ADD `promotion` int(11) not null default '0';

Informação Importante

Confirmação de Termo