Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. já sei porque não funciono,vc tem que adiciona "registerCreatureEvent" no login.lua manualmente mesmo assim: amulet inf.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then if (getPlayerSlotItem(cid, 2).itemid == 10719) then doCreatureSetDropLoot(cid, false) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return TRUE end end return TRUE end creaturescript.xml <event type="preparedeath" name="Amulet Inf" event="script" value="amulet inf.lua"/> login.lua registerCreatureEvent(cid, "Amulet Inf") items.xml <item id="10719" article="an" name="infinito amulet"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="absorbPercentAll" value="30" /> </item>
  2. são realmente lindas,mais porque temos 2 de membros? e eu acho que o simbolo delas poderiam ser trocados dependendo do cargo que o membro é pelo oque eu vi só mudaram as cores :X abraços
  3. checkpremium.lua function onLogin(cid) local pos = {x = 160, y = 54, z = 7} -- posiçao do templo. if isPremium(cid) == TRUE then setPlayerStorageValue(cid, 9899, 1) elseif getPlayerStorageValue(cid, 9899) == 1 and isPremium(cid) == FALSE then doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Sua Premium Account acabou.") setPlayerStorageValue(cid, 9899, -1) end return TRUE end em creaturescript.xml <event type="login" name="checkPa" script="checkpremium.lua"/>
  4. amulet inf.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then if (getPlayerSlotItem(cid, 2).itemid == 10719) then doCreatureSetDropLoot(cid, false) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return TRUE end end registerCreatureEvent(cid, "Amulet Inf") return TRUE end creaturescript.xml <event type="preparedeath" name="Amulet Inf" event="script" value="amulet inf.lua"/> items.xml <item id="10719" article="an" name="infinito amulet"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="absorbPercentAll" value="30" /> </item>
  5. brother a arvores depois não volta ao normal? coloco um addEvent para a arvore voltar depois de X minutos mais é isso ai,espero que seje o primeiro de muitos outro scripts =] abraços e parabens
  6. em creaturescript/script notloot.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == TRUE then doCreatureSetDropLoot(cid, false) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return TRUE end return TRUE end em data\creaturescripts\scripts\login.lua adiciona a linha: registerCreatureEvent(cid, "NotLoot") creaturescripts.xml adicione: <event type="preparedeath" name="NotLoot" event="script" value="notloot.lua"/>
  7. faz assim entao: function onUse(cid, item, frompos, item2, topos) local config = { lvl = 1500, porta_fechada = 5748, -- id da porta fechada porta_aberta = 5749 -- id da porta aberta } if getPlayerLevel(cid) >= config.lvl then if item.itemid == config.porta_fechada then doTransformItem(item.uid,config.porta_aberta) elseif item.itemid == config.porta_aberta then doTransformItem(item.uid,config.porta_fechada) end else doPlayerSendTextMessage(cid,22,'Você precisa ter level ' .. config.lvl .. ' ou mais para passar pela porta.') end return TRUE end
  8. PQP CARA era só edita o script que eu tinha te passado,de vez de ser 10k colocava 1,5k.. function onUse(cid, item, fromPosition, itemEx, toPosition) local level = 1500 if getPlayerLevel(cid) >= level then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de level ".. level .." ou mais para entrar..") end return TRUE end
  9. @UP este tipo de comentario é considerado flood, se eu pegar vc dinovo será alertado abraços
  10. Luis Say: mon Zutun
  11. function onSay(cid,words) local porta_fechada = 5128 local porta_aberta = 5129 if(words == "!abrirporta") then local posDor = getThingfromPos({x = 155, y = 53, z = 7, stackpos=1}) -- pos da porta if posDor.itemid == porta_fechada then doTransformItem(posDor.uid,porta_aberta) else doPlayerSendTextMessage(cid,22,"Você não pode fechar porque a porta ainda deve estar aberta!.") end elseif(words == "!fecharporta") then local item = getTileItemById({ x = 155, y = 53, z = 7 }, porta_aberta) -- pos da porta if(item.uid > 0)then doTransformItem(item.uid,porta_fechada) end end return TRUE end talkactions.xml <talkaction words="!fecharporta;!abrirporta" script="NOME DO SCRIPT.lua"/>
  12. Vodkart

    Auto-Promotion

    Dá para fazer pelo Onlogin(Creaturescript) que vai acontecer quando ele logar também dá para fazer pelo onThink(Globalevents) só que vai lagar muito o servidor e tbm da pra fazer para quando o player pega level 20 e for premium ele ganha a promote :X
  13. é porque tem que mudar o valor da storage no script a storage do devilmoon não era 1020...
  14. talkacitons addtutor.lua function onSay(cid, words, param) local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local days = t[2] local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end local daysvalue = days*3600*24 local storageplayer = getPlayerStorageValue(player, 14000) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você deu " ..days.." dias de tutor para o jogador chamado "..t[1]..".") doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "você agora é tutor por "..days.." dias.") setPlayerStorageValue(player, 14000, time) setPlayerGroupId(player, 2) return TRUE end talakctions.xml <talkaction log="yes" words="/tutor" access="5" event="script" value="addtutor.lua"/> Comando: /tutor NOME,DIAS creaturescript tutorcheck.lua function onLogin(cid) if getPlayerStorageValue(cid, 14000) - os.time() > 0 then setPlayerStorageValue(cid, 20536, 1) elseif getPlayerStorageValue(cid, 20536) == 1 and getPlayerStorageValue(cid, 14000) - os.time() < 1 or getPlayerStorageValue(cid, 14000) - os.time() == 0 then doPlayerPopupFYI(cid, "Você deixou de ser um Tutor.") setPlayerStorageValue(cid, 20536, -1) setPlayerStorageValue(cid, 14000, -1) setPlayerGroupId(cid, 1) end return TRUE end em creaturescript.xml <event type="login" name="TutorCheck" script="tutorcheck.lua"/>
  15. Vodkart

    Letras F

    letra F de FUCK este script nem é seu cara já existe em 90% dos servidores fail pra vc
  16. function onUse(cid, item, frompos, item2, topos) local lvl = 10000 if getPlayerLevel(cid) >= lvl then doTransformItem(item.uid,item.itemid+1) else doPlayerSendTextMessage(cid,22,'Você precisa ter level ' .. lvl .. ' ou mais para passar pela porta.') end return TRUE end
  17. ai eu digo uma coisa e vc diz outra coisa e o pedido não está bem formulado,e não poderá ser atendido
  18. fechado
  19. não sei se voc~e sabe mais é quase impossivel isso, a não ser que você saiba mecher pelas source para cada ponte da um atributo como def,attack,ml,etc...
  20. lixo filho da puta
  21. ae achei um jeito mto simples uma storage,vou mostrar. em creaturescript/script Vocation_Outfit.lua --[[ By Vodkart ]]-- local config={ {outfit={138,130,140,132},voc={1,5},storage=40850}, -- sorcerer {outfit={148,144,149,145},voc={2,6},storage=40851}, -- druids {outfit={156,152,150,146},voc={3,7},storage=40852}, -- paladinos {outfit={139,131,137,129},voc={4,8},storage=40853} -- knight } function onLogin(cid) for a =1,#config do if isInArray(config[a].voc, getPlayerVocation(cid)) and getPlayerStorageValue(cid, config[a].storage) == -1 then setPlayerStorageValue(cid, config[a].storage, 1) for i = 1, #config[a].outfit do doPlayerAddOutfit(cid, config[a].outfit[i], 3) end break end end return TRUE end em creraturescript.xml <event type="login" name="Out" script="Vocation_Outfit.lua"/> explicação: outfit={148,144,149,145} 148 Druid addon female 144 Druid addon male 149 Wizard addon female 145 Wizard addon male só ir adicionando o addon male e female que vão ganhar... agora em Outfits.xml sabendo que as storage 40850 é pra sorcerer 40851 é pra druid 40852 é pra paladino 40853 é pra knight vc vai colocar assim nas outfits que vc adicono: quest="NOME DA STORAGE" exemplo do meu script: <outfit id="3" quest="40850"> <list gender="0" lookType="138" name="Mage"/> <list gender="1" lookType="130" name="Mage"/> </outfit> <outfit id="5" premium="yes" quest="40850"> <list gender="0" lookType="140" name="Noblewoman"/> <list gender="1" lookType="132" name="Nobleman"/> </outfit> <outfit id="9" premium="yes" quest="40851"> <list gender="0" lookType="148" name="Druid"/> <list gender="1" lookType="144" name="Druid"/> </outfit> <outfit id="10" premium="yes" quest="40851"> <list gender="0" lookType="149" name="Wizard"/> <list gender="1" lookType="145" name="Wizard"/> </outfit> <outfit id="13" premium="yes" default="0" quest="40852"> <list gender="0" lookType="156" name="Assassin"/> <list gender="1" lookType="152" name="Assassin"/> </outfit> <outfit id="11" premium="yes" quest="40852"> <list gender="0" lookType="150" name="Oriental"/> <list gender="1" lookType="146" name="Oriental"/> </outfit> <outfit id="4" quest="40853"> <list gender="0" lookType="139" name="Knight"/> <list gender="1" lookType="131" name="Knight"/> </outfit> <outfit id="2" quest="40853"> <list gender="0" lookType="137" name="Hunter"/> <list gender="1" lookType="129" name="Hunter"/> </outfit> entenderam?
  22. acho que esse script é falho,porque? porque se ele equipar e ganhar a golden legs(que vai aparecer na bp),ele poderá jogar a legs no chão,e desequipar a boota,ou sejá não vai remover a golden legs,e vai fica burland o script :X
  23. a pergunta é Como fazer isso? como podemos elaborar o script? alguma ideia?
  24. function onUse(cid, item, frompos, item2, topos) local level = 10 local msgsucess = "Bem vindo!" -- mensagem que vai aparece caso ele passar pela porta local msgfault = "Você não tem level suficiente!" -- mensagem que ira aparecer caso ele nao tiver o magic level if getPlayerLevel(cid) >= level then doTransformItem(item.uid, item.itemid) doTeleportThing(cid, topos, TRUE) doSendMagicEffect(topos, 12) doPlayerSendTextMessage(cid, 22, msgsucess) else doPlayerSendTextMessage(cid, 22, msgfault) end return TRUE end
  25. troque o "cid" pelo "pid" function onThink(interval, lastExecution) for _, pid in ipairs(getPlayersOnline()) do doPlayerSendTextMessage(pid, MESSAGE_INFO_DESCR, 'If you need help you can use HELP CHAT (CTRL+T) or contact support_ot@hotmail.com.') end return TRUE end
  • Quem Está Navegando   0 membros estão online

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