Ir para conteúdo

Zaruss

Campones
  • Total de itens

    93
  • Registro em

  • Última visita

Tudo que Zaruss postou

  1. Zaruss

    Colocar dano

    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, 134) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionParam(condition, CONDITION_PARAM_SPEED, -30000) setConditionFormula(condition, -0.9, 0, -0.9, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, 252) return doCombat(cid, combat, var) end Tambem-lhe pergunto qual a finalidade de uma magia igual utani hur tira dano?
  2. 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 item_gain = 2424 -- reward id local item_need = 1199 -- need item id local item_qnt = 5222 -- item_need amount if(msgcontains(msg, 'mission') or msgcontains(msg, 'change')) then selfSay('Mission {Securiry Seal Quest} mission involves the safety of the village, I need you to retrieve the seals that akatsuki stole the village I will reciprocate with a Madara Legs...', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'securiry seal quest') and talkState[talkUser] == 1) then if getPlayerStorageValue(cid, 20069) >= 1 then selfSay('Please do not insist, you have done this quest recently.', cid) talkState[talkUser] = 0 return true end selfSay('These stamps 500 security seal you will find in Akatsuki Bandits, go get it, ok?', cid) talkState[talkUser] = 2 return true end if(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then if getPlayerItemCount(cid, item_need) < 500 then selfSay('You are trying to trick me young man? You do not have the '..getItemNameById(item_need)..'.', cid) talkState[talkUser] = 0 return true end selfSay('Congratulations young warrior, you managed to finish this mission, go in peace.', cid) talkState[talkUser] = 0 setPlayerStorageValue(cid, 20069, 1) doPlayerAddItem(cid, item_gain, item_qnt) doPlayerRemoveItem(cid, item_need, 500) return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) quando você for testa, teste com 500 do item 2155 <<< o item requerido pelo npc
  3. vc modificou isso? local item_gain = 2424 -- id do item que ira ganhar local item_need = 1199 -- id do item que precisa local item_qnt = 5222 -- quantidade que ira ganha eu acho e quando vc testou vc tinha 500 do item 1199???
  4. 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 item_gain = 2424 -- reward id local item_need = 1199 -- need item id local item_qnt = 5222 -- item_need amount if(msgcontains(msg, 'mission') or msgcontains(msg, 'change')) then selfSay('Mission {Securiry Seal Quest} mission involves the safety of the village, I need you to retrieve the seals that akatsuki stole the village I will reciprocate with a Madara Legs...', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'securiry seal quest') and talkState[talkUser] == 1) then if getPlayerStorageValue(cid, 20069) >= 1 then selfSay('Please do not insist, you have done this quest recently.', cid) talkState[talkUser] = 0 return true end selfSay('These stamps 500 security seal you will find in Akatsuki Bandits, go get it, ok?', cid) talkState[talkUser] = 2 return true end if(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then if getPlayerItemCount(cid, item_need) < 500 then selfSay('You are trying to trick me young man? You do not have the '..getItemNameById(item_need)..'.', cid) talkState[talkUser] = 0 return true end selfSay('Congratulations young warrior, you managed to finish this mission, go in peace.', cid) talkState[talkUser] = 0 setPlayerStorageValue(cid, 20069, 1) doPlayerAddItem(cid, item_gain, item_qnt) return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  5. Retirado roksas arrumou ja.
  6. você abandonou esse topico?
  7. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) function onCastSpell(cid, var) local jogadorpos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} local monsterpos = getCreaturePosition(target) if target == isMonster or isCreature then doTeleportThing(cid,monsterpos) doSendMagicEffect(jogadorpos, 229) doSendMagicEffect(position1, 31) else doPlayerSendTextMessage(cid,20,'Precisa Selecionar um Alvo') end end
  8. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) function onCastSpell(cid, var) local jogadorpos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local monsterpos = getCreaturePosition(target) if target == isMonster or isCreature then doTeleportThing(cid,monsterpos) doSendMagicEffect(jogadorpos, 229) else doPlayerSendTextMessage(cid,20,'Precisa Selecionar um Alvo') end end
  9. Ola, eu queria pedir 2 scripts. 1°King of city: Seria onde um player mata um monstro chamado King e ira vira o novo rei da cidade e quem mata ele vira rei e o cargo dele sai mais ele pode mata o rei e vira rei denovo e o player que e rei ganha uma certa quantia de cada player que mora na cidade dele 2°Dominate cities. Seria onde um player da cidade1 for para a cidade2 e começar a atacar ira aparecer uma mensagem para todos os players da cidade 2 "o Player .......... esta atacando sua cidade. Proteja sua cidade." e ira aparecer para os players da cidade1 "Ajude o .......... A dominar a cidade ........ corra antes que ele morra." e quando os players da cidade1 estiver todos mortos ou fora da cidade2 ira paracer uma mensagem "Parabens por proteger sua cidade" e pra cidade1 "Vocês nao conseguiram domina a cidade......." e se o player consegui domina a cidade ira aparecer essa mensagem para os players da cidade1 "Parabens vocês dominaram a cidade........." e para os players da cidade2 "Vocês perderam sua cidade =/" e ira mudar o nome da cidade exemplo se tava thais e carlin dominou ira ficar Cidade dominada por Carlin. E tambem ira parecer a cidade do player quando de look. Obrigado desde já.(se nao consegui tudo bem)
  10. Zaruss

    Position

    Entao duvida sanada?
  11. function onSay(cid, words, param, channel) param = param or "" if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player ".. param .." not found.") return true end doShowTextDialog(cid, 2175, "Informações Pessoais\n" .. "\nNome: " .. getCreatureName(pid) .. "\nSexo: " .. (getPlayerSex(pid) == 0 and "Feminino" or "Masculino") .. "\nLevel: " .. getPlayerLevel(pid) .. "\nChakra: " .. getPlayerMagLevel(pid) .. "\nVIP: " .. (getCreatureStorage(pid, 13540) > os.time() and "Sim" or "Não") .. "\nSaldo Bancário: " .. getPlayerBalance(pid) .. "\n\nAtributos\n" .. "\nTaijutsu - " .. getPlayerSkillLevel(pid, 0) .. "\nNinjutsu - " .. getPlayerSkillLevel(pid, 1) .. "\nGenjutsu - " .. getPlayerSkillLevel(pid, 2) .. "\nKenjutsu - " .. getPlayerSkillLevel(pid, 3) .. "\nDistance - " .. getPlayerSkillLevel(pid, 4) .. "\nDefense - " .. getPlayerSkillLevel(pid, 5) .. "\nFishing - " .. getPlayerSkillLevel(pid, 6) .. "\nHealth Max: " .. getCreatureMaxHealth(cid) .. "\nHealth: " .. getCreatureHealth(cid) .. "\n\nInformações da Tribo\n" .. "\nNome: " .. getPlayerGuildName(pid) .. "\nPosto: " .. getPlayerGuildRank(pid) .. "\nNível: " .. getPlayerGuildLevel(pid)) return true end
  12. function onSay(cid, words, param, channel) param = param or "" if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player ".. param .." not found.") return true end doShowTextDialog(cid, 2175, "Informações Pessoais\n" .. "\nNome: " .. getCreatureName(pid) .. "\nSexo: " .. (getPlayerSex(pid) == 0 and "Feminino" or "Masculino") .. "\nLevel: " .. getPlayerLevel(pid) .. "\nChakra: " .. getPlayerMagLevel(pid) .. "\nVIP: " .. (getCreatureStorage(pid, 13540) > os.time() and "Sim" or "Não") .. "\nSaldo Bancário: " .. getPlayerBalance(pid) .. "\n\nAtributos\n" .. "\nTaijutsu - " .. getPlayerSkillLevel(pid, 0) .. "\nNinjutsu - " .. getPlayerSkillLevel(pid, 1) .. "\nGenjutsu - " .. getPlayerSkillLevel(pid, 2) .. "\nKenjutsu - " .. getPlayerSkillLevel(pid, 3) .. "\nDistance - " .. getPlayerSkillLevel(pid, 4) .. "\nDefense - " .. getPlayerSkillLevel(pid, 5) .. "\nFishing - " .. getPlayerSkillLevel(pid, 6) .. "\nHealth Max: " .. getCreatureMaxHealth(pid, 7) .. "\nHealth: " .. getCreatureHealth(pid, 8) .. "\n\nInformações da Tribo\n" .. "\nNome: " .. getPlayerGuildName(pid) .. "\nPosto: " .. getPlayerGuildRank(pid) .. "\nNível: " .. getPlayerGuildLevel(pid)) return true end
  13. malz: function onSay(cid, words, param, channel) param = param or "" if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player ".. param .." not found.") return true end doShowTextDialog(cid, 2175, "Informações Pessoais\n" .. "\nNome: " .. getCreatureName(pid) .. "\nSexo: " .. (getPlayerSex(pid) == 0 and "Feminino" or "Masculino") .. "\nLevel: " .. getPlayerLevel(pid) .. "\nChakra: " .. getPlayerMagLevel(pid) .. "\nVIP: " .. (getCreatureStorage(pid, 13540) > os.time() and "Sim" or "Não") .. "\nSaldo Bancário: " .. getPlayerBalance(pid) .. "\n\nAtributos\n" .. "\nTaijutsu - " .. getPlayerSkillLevel(pid, 0) .. "\nNinjutsu - " .. getPlayerSkillLevel(pid, 1) .. "\nGenjutsu - " .. getPlayerSkillLevel(pid, 2) .. "\nKenjutsu - " .. getPlayerSkillLevel(pid, 3) .. "\nDistance - " .. getPlayerSkillLevel(pid, 4) .. "\nDefense - " .. getPlayerSkillLevel(pid, 5) .. "\nFishing - " .. getPlayerSkillLevel(pid, 6) .. "\nHealth Max: " .. getPlayerMaxHealth(pid, 7) .. "\nHealth: " .. getPlayerHealth(pid, 8) .. "\n\nInformações da Tribo\n" .. "\nNome: " .. getPlayerGuildName(pid) .. "\nPosto: " .. getPlayerGuildRank(pid) .. "\nNível: " .. getPlayerGuildLevel(pid)) return true end
  14. function onSay(cid, words, param, channel) param = param or "" if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player ".. param .." not found.") return true end doShowTextDialog(cid, 2175, "Informações Pessoais\n" .. "\nNome: " .. getCreatureName(pid) .. "\nHealth Max: " .. getPlayerMaxHealth(pid) "\nHealth: " .. getPlayerHealth(pid) "\nSexo: " .. (getPlayerSex(pid) == 0 and "Feminino" or "Masculino") .. "\nLevel: " .. getPlayerLevel(pid) .. "\nChakra: " .. getPlayerMagLevel(pid) .. "\nVIP: " .. (getCreatureStorage(pid, 13540) > os.time() and "Sim" or "Não") .. "\nSaldo Bancário: " .. getPlayerBalance(pid) .. "\n\nAtributos\n" .. "\nTaijutsu - " .. getPlayerSkillLevel(pid, 0) .. "\nNinjutsu - " .. getPlayerSkillLevel(pid, 1) .. "\nGenjutsu - " .. getPlayerSkillLevel(pid, 2) .. "\nKenjutsu - " .. getPlayerSkillLevel(pid, 3) .. "\nDistance - " .. getPlayerSkillLevel(pid, 4) .. "\nDefense - " .. getPlayerSkillLevel(pid, 5) .. "\nFishing - " .. getPlayerSkillLevel(pid, 6) .. "\n\nInformações da Tribo\n" .. "\nNome: " .. getPlayerGuildName(pid) .. "\nPosto: " .. getPlayerGuildRank(pid) .. "\nNível: " .. getPlayerGuildLevel(pid)) return true end ve se funfa
  15. Zaruss

    NPC de addons

    Esse npc so da o primeiro addon de so uma outfit eu quero que de todos os primeiros addons por 500k
  16. Zaruss

    NPC de addons

    Nao e esse que quero e que o player falasse first addons e o npc vende-se todos os primeiros addon e depois o player falasse second addons e o npc desse os second addons dos outfits pra ele
  17. Zaruss

    NPC de addons

    Alguêm tem algum script de npc de addon para a versao 10.10 que eu possa usar mais que n compre um addon por vez e sim por partes por que todos que eu achei você compra 1 addon de uma outfit Simplesmente um npc que quando você fala first ele te vende todos ou first addon por 500k de todos os outfits e second tbm 1kk Obrigado desde já.
  18. Zaruss

    Erro potions

    local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [2150] = {empty = 7478, splash = 7, health = {5000, 5000}}, -- heal potion [2151] = {empty = 7478, splash = 7, health = {20000, 20000}}, -- heal strong potion [2144] = {empty = 7478, splash = 7, mana = {5000, 5000}}, -- strong mana potion [2149] = {empty = 7478, splash = 7, mana = {15000, 15000}}, -- great mana potion [2146] = {empty = 7478, splash = 7, health = {38000, 38000}, mana = {45000, 45000}}, -- ultimate potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then end return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return TRUE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "I feel better!") else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "I feel better!", TALKTYPE_SAY, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return TRUE end nem sei se vai funfa
  19. [resolvido pode apaga]
  20. Zaruss

    Para que serve

    3º acho que e quando um player pegar skull adicionar o item 12635 e se vc quer quando o player tiver com skull perde o set 4º e pra quando o player morre nao passa de lvl 8 exemplo: eu to lvl 8 ai chega um fdp lazarento e me mata ao enves (nao sei se escreve assim) de ir pro lvl 7 eu continuo no 8
  21. Tonyhn e Omega
  22. mix yourots ou galaxy
  23. Tentei faze boa mais nao saiu o que eu esperava olha: Qual das 5 e a pior? Qual das 5 e a melhor?
  24. pronto ve se agora fica melhor que a outra, so que fiz mais algumas
  25. Zaruss

    Para que serve

    ele e que nem o lvl em stages quando vc chega a um certo skill vai ficando mais dificil e é so modifica isso aki: skillStages[SKILL_SWORD] = { {0,8},{60,5},{80,2},{100,1} } ali em {0,8} o 0 e o skill que vai começar o script e em 8 e a stage que tera ate o player chega na proxima stage e e o mesmo pros outros
  • Quem Está Navegando   0 membros estão online

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