Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. Vodkart

    Remove Frags

    não entendi ele tira os frags mais não tira as skull? ou ao contrario?
  2. Script Magic Wall: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Script Wild Growth: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1499) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) return doCombat(cid, combat, var) end no npc teria que adicionar: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 -- XVX FORGER START -- function amulet(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,8262) >= 1 and getPlayerItemCount(cid,8263) >= 1 and getPlayerItemCount(cid,8264) >= 1 and getPlayerItemCount(cid,8265) >= 1 then if doPlayerRemoveItem(cid,8262,1) and doPlayerRemoveItem(cid,8263,1) and doPlayerRemoveItem(cid,8264,1) and doPlayerRemoveItem(cid,8265,1) and (doPlayerRemoveMoney(cid, 5000) == TRUE) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8266,1) end else npcHandler:say('You don\'t have these items!', cid) end end function obsidian(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,2425) >= 1 then if doPlayerRemoveItem(cid,2516,1) and doPlayerRemoveItem(cid,2425,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5908,1) end else npcHandler:say('You don\'t have these items!', cid) end end function crude(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,5879) >= 1 then if doPlayerRemoveItem(cid,5879,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5892,1) end else npcHandler:say('You don\'t have these items!', cid) end end function draconian(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,2516) >= 1 then if doPlayerRemoveItem(cid,2516,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5889,1) end else npcHandler:say('You don\'t have these items!', cid) end end function crown(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,2487) >= 1 then if doPlayerRemoveItem(cid,2487,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5887,1) end else npcHandler:say('You don\'t have these items!', cid) end end -- XVX FORGER END -- keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can forge Amulet, Obsidian Knife, Huge Chunk of Crude Iron and Piece of Draconian Steel!"}) local node1 = keywordHandler:addKeyword({'amulet'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Welcume lil. Me can do unbroken but Big Ben want gold 5000 and Big Ben need a lil time to make it unbroken. Yes or no??'}) node1:addChildKeyword({'yes'}, amulet, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true}) local node2 = keywordHandler:addKeyword({'obsidian'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a Dragon Shield and an Obsidian Lance for a Obsidian Knife?'}) node2:addChildKeyword({'yes'}, obsidian, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true}) local node3 = keywordHandler:addKeyword({'crude'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a Giant Spider Silk for a Huge Chunk of Crude Iron?'}) node3:addChildKeyword({'yes'}, crude, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true}) local node4 = keywordHandler:addKeyword({'draconian'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a Dragon Shield for a Piece of Draconian Steel?'}) node4:addChildKeyword({'yes'}, draconian, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true}) local node5 = keywordHandler:addKeyword({'crown armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a crown armor for a Piece of Royal Steel?'}) node5:addChildKeyword({'yes'}, crown, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true}) npcHandler:addModule(FocusModule:new())
  3. essa de tirar a vocation quando perde vip é facil só fazer uma função ao logar que checka se o jogador é vip e tem essa tal voc caso nao seja vip e tenha a voc,esse script retira a vocação dele... aconselho a usar o sistema de Vip account V1.0 flw
  4. aff que versão é seu ot mano? é thiagoredlife@hotmail.com usa esse:
  5. ah entao como eu vou adivinhar? nao tem como eu fazer o script se eu nao souber qual vc usa...
  6. acho que ja tinha aqui =X http://www.xtibia.com/forum/topic/134875-matar-monstro-abrir-tp-remover-parede-ganhar-storage/
  7. troca setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) por: setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HEARTS)
  8. Bom sobre as cores acho que não dá,não tem uma função especifica pra isso tentei até lookHead = getCreatureOutfit(cid).lookHead mais nesse caso ele pega a outfit que esta usando,e não a cor dela... ai se torna uma função boleana,porque nunca vai existir uma parte cintizen e outra hunter,iria dar debug... e sobre a de não dar pra trocar oufit é porque o seguinte,tem que esperar acabar o tempo ou dar logout... porque a função é assim: doSetCreatureOutfit(cid, outfit, tempo) ai vc poderia colocar para ficar soh com 10 segundos,assim ele voltaria a outfit normal depois de 10 segundos...
  9. acho que ficaria assim: function onLogin(cid) pos = {x = 32360, y = 31782, z = 7} -- POS que o player será teleportado. local outfit_male = {lookType = 128, lookHead = 20, lookBody = 30, lookLegs = 004, lookFeet = 50, lookTypeEx = 0,} local outfit_female = {lookType = 136, lookHead = 20, lookBody = 30, lookLegs = 004, lookFeet = 50, lookTypeEx = 0,} local time = 20 if getPlayerStorageValue(cid, 20500) == 1 and getPlayerPremiumDays(cid) == 0 then doTeleportThing(cid, pos) doPlayerSetTown(cid, 1) doPlayerPopupFYI(cid, "Sua premium account acabou você foi teleportado pra um templo Free.") setPlayerStorageValue(cid, 20500, -1) if getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, outfit_female, time*60*1000) else doSetCreatureOutfit(cid, outfit_male, time*60*1000) end end return TRUE end
  10. ops falha minha : < local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) local_min_Mana = 100000 local_max_Mana = 130000 local randommana = math.random(local_min_Mana,local_max_Mana) function onCastSpell(cid, var) doPlayerAddMana(cid, randommana) return doCombat(cid, combat, var) end
  11. é que o checkvip é assim: /checkvip NOME sem a virgula e tipo se vc adiciona o jogador 1 dia de vip não vai aparecer,porque ele ja conta,ai e como se fosse tipo 23 hrs e 59 minutos... ou seja nao fechando 1 dia...
  12. outro script que já existia aqui e alias esse script ja existe em 90% dos servidores... mais rlx tú é novo,procure saber se existe o script antes de postar abraços
  13. wow esse programa deve ser bom,vou baixar e etstar aqui mais tem todos os jogos e talz ai? rep + abraços
  14. esse sistema já tem aqui no xtibia seria bom pesquisar um pouco antes de postar... abraços
  15. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) local_min_Mana = 100000 local_max_Mana = 130000 local randommana = math.random(local_min_Mana,local_max_Mana) function onCastSpell(cid, var) doPlayerAddMana(cid, randommana) return doCombat(cid, combat, var) return TRUE end só editar aqui: local_min_Mana = 100000 -- minimo de mana que ser curado local_max_Mana = 130000 -- maximo de mana que sera curado
  16. que versão é seu servidor?
  17. por favor coloque em code box para melhor visualização do seu script
  18. @UP and 2UP Vocês depois que intalaram o sistema da vip account na lib,e colocaram as talkactions,entre no serve com o GOD e vocês teram que excutar o comando: /installvip e depois disso começar a usar o sistema,ou sejá dar ou remover dias de vip...
  19. @ mlecar no tópico já consta um script que nele não possui o comando !buyvip está aqui:
  20. @UP sua magia só para vip ficaria assim:
  21. Vodkart

    Magia Com Storage.

    tenta assim: local storage = 10301 function onCastSpell(cid, var) if getPlayerStorageValue(cid,storage) >= 1 then -- para ver se ele pode usar a storage return doCombat(cid, combat, var) else doPlayerSendCancel(cid, "Desculpe,Você tem que terminar a quest para usar está magia.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end return FALSE end
  22. já existe... http://www.xtibia.com/forum/topic/136434-npcs/
  • Quem Está Navegando   0 membros estão online

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