Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. não não... capaz cara você é um exemplo a ser seguido aqui,entrega os script tudo mal feito e pela metade quem dera eu ser q nem vc desculpa ai qualquer coisa bj
  2. esse script é bem fácil de fazer,pena que só tenha uns colaborador pão com bosta ae se amanha eu tiver um tempo eu faço pra vc e ensino a adicionar mais spells no npc tal ai crio umas variaveis bem faceis de serem adicionadas
  3. tenta soh coloquei pras primeira 4 voc vlw nome do seu npc.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Nome do seu npc" script="nome do seu script.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="133" head="114" body="119" legs="132" feet="114"/> </npc> nome do seu script.lua 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 falas = { [1] = { -- druid hi = 'Hello, mage of the skies. blablabla {yes} ?', yes = 'ok mage! kkkkk', no = 'ok then mage', bye = 'Good bye '.. getCreatureName(cid) ..'.' }, [2] = { -- sorc hi = 'Hello my forest enchanter blablabla {yes} ?', yes = 'ok forest enchanter! kkkkk', no = 'ok then forest gamp', bye = 'Good bye '.. getCreatureName(cid) ..'.' }, [3] = { -- paladin hi = 'Hey! Super shooter blablabla {yes} ?', yes = 'ok Super shooter! kkkkk', no = 'ok then super shooter', bye = 'Good bye '.. getCreatureName(cid) ..'.' }, [4] = { -- knight hi = 'Aye, guardian blablabla {yes} ?', yes = 'ok guardian! kkkkk', no = 'ok then gaydian', bye = 'Good bye '.. getCreatureName(cid) ..'.' } } if(msgcontains(msg, 'hi') or msgcontains(msg, 'HI')) then if not falas[getPlayerVocation(cid)] then selfSay('desculpe,não falo com você!', cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) else selfSay(falas[getPlayerVocation(cid)].hi, cid) talkState[talkUser] = 1 end elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then selfSay(falas[getPlayerVocation(cid)].yes, cid) talkState[talkUser] = 2 elseif msg == 'no' and talkState[talkUser] >= 1 then selfSay(falas[getPlayerVocation(cid)].no, cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) elseif msg == 'bye' then selfSay(falas[getPlayerVocation(cid)].bye, cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  4. tenta colocar assim: function onThink(interval, lastExecution) info = { [0] = "aaaaaaa", [1] = "bbbbbbb", [2] = "ccccccc", [3] = "ddddddd" } storage = 59645 if getGlobalStorageValue(storage) == -1 then setGlobalStorageValue(storage,getGlobalStorageValue(storage)+1) end doBroadcastMessage(info[getGlobalStorageValue(storage)], MESSAGE_STATUS_CONSOLE_ORANGE) if getGlobalStorageValue(storage) < #info then setGlobalStorageValue(storage,getGlobalStorageValue(storage)+1) else setGlobalStorageValue(storage,getGlobalStorageValue(storage)-#info) end return TRUE end
  5. blz npc está ai,só configurar... 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 config = { acess_door1 = 98547, acess_door2 = 98548, item = 8547 -- item q o jogador terá q trazer } local sex = { [0] = 312, -- addon female [1] = 313 -- adon male } if(msgcontains(msg, 'mission') or msgcontains(msg, 'MISSION')) then if getPlayerStorageValue(cid, 56533) <= 0 then if getPlayerStorageValue(cid, acess_door1) <= 0 then selfSay('Olá jogador,você pode me trazer um item que está atrás daquela porta que fica em blablabla? {yes}', cid) talkState[talkUser] = 1 else selfSay('Aqui está você de novo! consegiu trazer o item que lhe pedi? {yes}', cid) talkState[talkUser] = 2 end else selfSay('você já completou a quest,vá embora!', cid) talkState[talkUser] = 0 end elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then setPlayerStorageValue(cid, config.acess_door1, 1) selfSay('muito bem,vá em frente e entre naquela porta e me traga o item!', cid) talkState[talkUser] = 0 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then if doPlayerRemoveItem(cid,config.item,1) then doPlayerAddOutfit(cid,sex[getPlayerSex(cid)],3) setPlayerStorageValue(cid, config.acess_door2, 1) setPlayerStorageValue(cid, 56533, 1) selfSay('aqui está seu addon,você tbm recebeu acesso para outra porta!', cid) doSendMagicEffect(getPlayerPosition(cid), 2) else selfSay('Você não possui nenhum item!.', cid) talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] >= 1 then selfSay("Volte quando achar melhor!", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) as porta você sabe fazer né? só colocar em uniqueID o número das storages q no caso são 98547 e 98548
  6. vou ficar atento,se bem que não faz a menor diferença...hackeando ou não o megaup vai ficar fechado até sabe lá quando
  7. Vodkart

    Anel De Exp

    coloca <attribute key="duration" value="3600"/>
  8. nome do seu script function onThink(interval, lastExecution) local mensagens = {"digite a mensagem 1","digite a mensagem 2","digite a mensagem 3","digite a mensagem 4"} return doBroadcastMessage(mensagens[math.random(#mensagens)], MESSAGE_STATUS_CONSOLE_ORANGE) end globalevents.xml <globalevent name="MsgText" interval="1800" script="nome do seu script.lua"/>" ta configurado pra 30 minutos 1800 = 30 minutos 3600 = 1 hr flw
  9. mas eu to dizendo que o erro tbm vai aparecer no executável lol
  10. sim,vai dar a mensagem no executável do ot
  11. Autor: Jetro Explicação: É uma função que serve para saber se a conta possui ou não uma certa Key(Storage),muito usada para aquelas situações de jogadores quando alcançarem um determinado level ganharem dias de vip ou premium,não tem aquele bug de todos os jogadores da conta pegarem esses dias. adicione em data/lib/050-function.lua Version by Jetro: Version by Cykotitan: Exemplo de como usar: if (hasAccountStorageValue(cid, 3232, 4)) then doPlayerSendCancel(cid, "You have already done this quest") else doPlayerAddItem(cid, item, count) end
  12. você só lê esse tipo de noticia né safadinho
  13. Para melhorar a organização,porque não faz tudo num mesmo MOD? acho que ficaria mais fácil de configurar... É só uma idéia,abraços!
  14. pois é que merda de user tbm que sempre posta mesma coisa
  15. vejam aí: http://www.xtibia.com/forum/topic/179099-gente-noticia-urgente/
  16. bom tópico -q
  17. to la soh entrar tinha saido mais ja votlei
  18. tem meu msn aqui no meu perfil só me adc q eu vou bater um papo bem caliente com vc
  19. fala xuxuzinho diga oq vc quer
  20. Vodkart

    Systema Premium

    testou o meu? coloco a tag certa mano tem q ver certinho ae
  21. function onStepIn(cid, item, position, fromPosition) local tileConfig = { kickPos = fromPosition, kickEffect = CONST_ME_POFF, kickMsg = "You need to be a vip player to access this area.", enterMsg = "Welcome to vip area. Enjoy!", enterEffect = CONST_ME_MAGIC_BLUE, } if isPlayer(cid) == true then if isPremium(cid) == FALSE then doTeleportThing(cid, tileConfig.kickPos) doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect) doPlayerSendCancel(cid, tileConfig.kickMsg) return end doPlayerSendTextMessage(cid, 25, tileConfig.enterMsg) doSendMagicEffect(position, tileConfig.enterEffect) return true end end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...