Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. todos somos feios vdd
  2. Vodkart

    Ajuda , Vip System

    posta o tile vip q vc fez ai acho que é o tile q esta errado
  3. BUMP OQ RAPAZ? ESSE COMENTÁRIO É CONSIDERADO FLOOD. VOU REPORTAR PELA PALHAÇADA
  4. da rep pro fireelement,pois ele deu a idéia. abraços
  5. coloca assim <outfit id="13" premium="yes" quest="XXXX"> XXXX é a storage ai no npc vc coloca pra ele dar essa storage(XXXX),depois disso o player q fez essa quest ou compro sei lá vai poder usar a outfit
  6. só colocar no login.lua antes do return TRUE local sex = {[0] = 156,[1] = 152} doPlayerRemOutfit(cid, sex[getPlayerSex(cid)], 3) acho que é isso,eu vi na lista de funções,caso não dê certo teria que fazer uma Query
  7. acho que vc pode usar essa função: doPlayerRemOutfit(cid, looktype, addons)
  8. pra isso n tem salvação
  9. essa é foda
  10. Olá! Que bom te ver por aqui,fico feliz!
  11. não não,esse script do piso é na pasta movements... ve la na pasta movements se tem algum script chamado "vipe.lua" se nao tiver cria lá e usa o script q eu te mandei ali em cima
  12. coloca em login.lua local voc = { [1] = {x = 32360, y = 31782, z = 7}, [2] = {x = 23244, y = 4343, z = 7}, [3] = {x = 34232, y = 33232, z = 7}, [4] = {x = 33212, y = 3555, z = 7} } if getPlayerStorageValue(cid, 43434) <= 0 then doTeleportThing(cid, voc[getPlayerVocation(cid)]) setPlayerStorageValue(cid, 43434, 1) end
  13. --- ve la em movements se ja n tem esse script: Segundo passo. vá até movements/scripts crie um arquivo.lua e renomeie para vipe.lua dentro coloque: -- Script Vip Sytem 1.0 -- function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Você não e vip ,fale com Administrador do Server.", msgWelcome = "Seja Bem Vindo a Area vip." } if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end Em movements.xml adicione a tag: <movevent type="StepIn" uniqueid="13700" event="script" value="vipe.lua"/>
  14. ve lá em talkations onde eles compram esse vip por 10kk ve la o nome do comando e onde fica,ai vc abre e coloca aki
  15. ta e qual é o seu sistema vip?
  16. 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 price = 1 local vocations = {5,6,7,8} local level = 100 if(msgcontains(msg, 'promote dois') or msgcontains(msg, 'second promotion')) then selfSay('Você quer ser promovido por '..price..' gps? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if isInArray(vocations, getPlayerVocation(cid)) then if getPlayerLevel(cid) >= level then if doPlayerRemoveMoney(cid,price) == TRUE then setPlayerPromotionLevel(cid, 2) selfSay('Parabens! Voce tem sua segunda promocao. ', cid) talkState[talkUser] = 0 else selfSay('Você não tem ' .. price .. ' gps para ser promovido', cid) talkState[talkUser] = 0 end else selfSay('Desculpe, você precisa ter level '.. level .. ' ou mais para se promover!', cid) talkState[talkUser] = 0 end else selfSay('Desculpe, mais você não possui a primeira promotion.', cid) talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] >= 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  17. na verdade o sistema ja foi feito. como é um double topic irei reportar
  18. n tem nd em actions é em movements e creaturescript
  19. Vodkart

    Vital900 Na Rl

    to esperando uma foto menos avacalhada...
  20. function onUse(cid,item,fromPosition,itemEx,toPosition) local item,count = 2580,1 doPlayerSendTextMessage(cid,25,"Parabéns vc terminou a quest!") doPlayerAddItem(cid,item,count) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) return TRUE end
  21. @UP ele tem que relogar
  22. TÓPICO FECHADO
  23. só adicionar um "return TRUE" nesse script do aol eu vi que é de graça? então não precisa a função para remover o money do jogador,ficando: function onSay(cid, words, param) return doPlayerAddItem(cid, 2173, 1) end ou claro function onSay(cid, words, param) if doPlayerRemoveMoney(cid, 0) == TRUE then doPlayerAddItem(cid, 2173, 1) else doPlayerSendCancel(cid, 'You don\'t have enough money.') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end return TRUE end
  24. última dúvida! Tem que ter level para falar com o npc? e no seu ot as outfit tem sexo? por exemplo pro char male outfit 289 e pra female outfit 290
  25. function onSay(cid, words, param) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return TRUE end local pid = getPlayerByNameWildcard(param) local tmp = getPlayerIp(pid) if(doAddIpBanishment(tmp) or pid == 0 or (isPlayerGhost(pid) == TRUE)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.") return TRUE end if isPlayerGhost(pid) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, getCreatureName(pid) .. " has been banned.") doAddIpBanishment(tmp, 7 * 24 * 60 * 60) doRemoveCreature(pid) end return TRUE end <talkaction log="yes" access="5" words="/ban" event="script" value="nome do seu script.lua"/>
  • Quem Está Navegando   0 membros estão online

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