Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 02/28/16 em %

  1. Olá pessoal, LuaAutoIndent é uma ferramenta desenvolvida por um cara conhecido como Spawnova, ela detecta a sintaxe lua e indenta automaticamente seu código, basta você copiar seu código desorganizado e apertar no botão 'Indent Code' , que irá mudar o seu clipboard atual. Instruções: Selecione o código, dê Ctrl + C, clique no botão Indent code, dê Ctrl + V, Veja a diferença. Imagem: Download: LuaAutoIndent_v1.5.zip Exemplo de um código mal organizado: function eg() if true then doStuff end end O mesmo código, após usar o programa: function eg() if true then doStuff end end Assim você vê qual end fecha qual if, e fica bem mais fácil de ler o código, os scripters vão agradecer... Scan: VírusTotal LuaAutoIndent_v1.5.zip
    2 pontos
  2. JairKevick

    [Poketibia] Pfield CdBar Open Source

    Eai PokeTibianos :cool: ! Trago aqui o pfield com cd bar um servidor com sources! bom adicionei a cdbar no pfield! a alguns sistemas nada mais! Systems do PFIELD! Bike System: 100% Caught System: 100% Evolution System: 100% Go-Back System: 100% Gerações 1: 100% Gerações 2: 100% Limite de 6 Pokemons na Bag: 100% Moves System: 100% Portrait System: 100% Pokedex System: 100% Ride System: 100% Sem Level System! fly System: 100% Surf System: 100% Teleport System: 100% e etc... Observações Os systems acima apenas afirma que os sistema em si esta em 100%, quero deixa bem claro que nem todos os pokemos então adicionados ao sistemas. Lembrando tambem que possa aparece bugs porque todos os OtServs de Poketibia á Bugs... Mais Caso Ocorra algum por favor me relate que sera rapidamente corrigido. PRINTS: DOWNLOAD: http://bit.ly/1OdS1Ii Sources GitHub: https://github.com/Kevick/pfield-cdbar-source/ ​SCAN: https://www.virustotal.com/pt/url/ca440fdaf52124c425edadca296a82cef81b9306ecc1fba515dd2bfbcd8c7562/analysis/1452466545/ CREDITOS: Kevick (CDBAR-FUNCIONAL) Aberos (Otclient) Avronex CipSoft - Sem ela isso tudo nao existiria
    1 ponto
  3. Night Wolf

    Ajuda com npc

    onde tá if doPlayerRemoveMoney(cid, 250000009) == true then troca por if doPlayerRemoveMoney(cid, 250000009) and getPlayerItemCount(cid, 27044) > 0 then doPlayerRemoveItem(cid, 27044, 1) e onde tá else selfSay("Você nao tem dinheiro suficiente!", cid) coloca else selfSay("Você nao tem dinheiro suficiente ou não possui ".. getItemNameById(27044) .."!", cid)
    1 ponto
  4. valakas

    Ajuda com npc

    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, 'Evoluir') or msgcontains(msg, 'evoluir')) then --alterado v1.7 selfSay("Voce quer tranformar seu Tangela em Tangrowth? Voce precisa do Tangela+20 + 2,5kk!", cid) talkState[talkUser] = 1 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'Yes')) and talkState[talkUser] == 1 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Desculpe, voce nao esta com o pokemon na slot!", cid) talkState[talkUser] = 0 return true end --alterado v1.2 if #getCreatureSummons(cid) >= 1 then selfSay("Puxe seu pokemon para pokebola!", cid) talkState[talkUser] = 0 return true end local pb = getPlayerSlotItem(cid, 8).uid if getItemAttribute(pb, "poke") ~= "Tangela" then selfSay("Coloca seu Tangela+20 na slot por favor!", cid) talkState[talkUser] = 0 return true end if not getItemAttribute(pb, "boost") or getItemAttribute(pb, "boost") < 20 then selfSay("Desculpe seu Tangela não esta boosted +20!", cid) talkState[talkUser] = 0 return true end if (msgcontains(msg, 'Item') or msgcontains(msg, 'item')) then selfSay("eu vendo um item especial, voce vai querer?", cid) talkState[talkUser] = 1 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'Yes')) and talkState[talkUser] == 1 then doPlayerRemoveMoney(cid, 250000009) doPlayerAddItem(cid,27044,1) selfSay("aqui esta seu item", cid) talkState[talkUser] = 1 else selfSay("Você nao tem dinheiro suficiente!", cid) talkState[talkUser] = 0 return true end --100000 = 1k, 1000000 = 10k, 10000000 = 100k if doPlayerRemoveMoney(cid, 250000009) == true then selfSay("So there is it! Enjoy!", cid) doItemSetAttribute(pb, "hp", 1) doItemSetAttribute(pb, "poke", "Tangrowth") doItemSetAttribute(pb, "description", "Contains a Tangrowth.") doItemEraseAttribute(pb, "boost") doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos["Tangrowth"]) doItemSetAttribute(pb, "Icone", "yes") doTransformItem(pb, icons[getItemAttribute(pb, "poke")].on) if useKpdoDlls then doCreatureExecuteTalkAction(cid, "/pokeread") end talkState[talkUser] = 0 return true else selfSay("Você nao tem dinheiro suficiente!", cid) talkState[talkUser] = 0 return true end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) rapais sou noob em script acho que isso deve funcionar, n é certesa, eu comecei a estudar lua agora :v
    1 ponto
Líderes está configurado para São Paulo/GMT-03:00
×
×
  • Criar Novo...