Ir para conteúdo

thalia

Artesão
  • Total de itens

    104
  • Registro em

  • Última visita

  • Dias Ganhos

    20

Tudo que thalia postou

  1. =D de nada mano ! sempre que você resolver erros nos scripts eu posto seu créditos!
  2. O item que ia poderá quebrar é o 1285 ~~> Crie um arquivo o nome rock.lua em action/scripts e cole isto dentro: local function doRemoveItemFromPos(position, itemid, count) local item = getTileItemById(position, itemid) if(item.uid ~= 0)then return doRemoveItem(item.uid, count or -1) end return false end function onUse(cid, item, fromPosition, itemEx, toPosition) local pokes = { ['rhyhorn'] = {1}, ['rhydon'] = {1}, -- é só ir adicionando ['NOME'] = {1}, } local summons = getCreatureSummons(cid) if #summons < 1 then return doPlayerSendCancel(cid, 'Para usar o rock precisa-se de um pokemon de pedra') end local pokemon = pokes[getCreatureName(getCreatureSummons(cid)[1])] local name = getCreatureName(getCreatureSummons(cid)[1]) if not pokes[name] then return doPlayerSendCancel(cid, "Este pokemon não consegue usar o rock smash.") end if itemEx.itemid == 1285 then local pos = getThingPos(itemEx.uid) doRemoveItem(itemEx.uid,1) doCreateItem(3610,1,toPosition) doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT) addEvent(doRemoveItemFromPos, 5000, toPosition, 3610) addEvent(doCreateItem,5005,1285,1,pos) return true end return false end E na xml de actions.xml : Ali em rosa é o número do item pra dar rock OBS: tem que ser usable (ter aquela opção use white). Feito isso é só vc ter o pokemon e clica na rocha ! Créditos ao Drakylucas Da rep se ajudei!
  3. porque voce não cria um topico em dúvidas sobre mapping?
  4. Tente o seguinte, entre data/creaturescripts/scripts/login.lua Nessa parte 10 = 10% do level.. algo parecido
  5. Olá Estou montando um servidor de Avatar! ~~>Avatar Elements<~~ Com as 4 dobras: Fire Water Earth Air -> e o Avatar <- Meu objetivo é trazer um jogo diferente e muita diversão Minhas idéias para o servidor : Sistema de avatar: uma alavanca que sempre será liberada tal hora , e quem for o primeiro a puchar será o avatar por 24h Sistema de Forja: forjar um item, criar itens... Sistema de voo: sistema de voo será para air, ou pra quem tiver um pet (Appa) tambem voara! Sistema de dobras: spells em combo, trazendo aquele efeito de estar dobrando e controlando a magia! Sistema de pergaminho: para aprender a dobrar(soltar magia) você deverá ter um pergaminho para aprender como usa-lá ;D E outros sistemas .. ( Aceito Sugestões *-* ) Algumas spells já estão feitas e o servidor já está sendo criado.. E preciso de uma equipe dedicada para sair o mais rapido possivel o servidor! Precisa-se de: Mapper Scripter Programador Web Designer Spriter Client Maker Envie seu Curriculo : Nome: Idade: Carja desejada: Tempo de experiencia: Msn ou email: Group do msn: group1382612@groupsim.com Estarei postando noticas aqui! Fotos, videos de como está ficando! Aqui +/- de como será uma dobra(foi só um exemplo, pois será melhor): Onda de fogo Chicote de fogo Parede de pedra
  6. Amigo seção errada (: Mais vou ajudar tente o seguinte : local config = { removeOnUse = "no", 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 = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit 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 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)) 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, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) return true end não testei, se não der poste aqui!
  7. Olha KungLao , tá indo bem hein =D Script bem rox
  8. Legal =D Seria melhor vc atualizar aquele outro topico não? Arvore que da dinheiro Versão 2 !rs Só uma idéia ^^ Bom Script!
  9. N4K4MUR4 Não sei se vai funcionar com 8.1
  10. Ok Então tente assim if #getCreatureSummons(cid) >= 1 then for _,z in pairs(getCreatureSummons(cid)) do if getDescription(item.uid):find(getCreatureName(z)) then doTransformItem(item.uid, pokein) if getPlayerGroupId(cid) ~= 6 then setPlayerGroupId(cid, 1) else setPlayerGroupId(cid, 6) end doCreatureSay(cid, pokes[getCreatureName(z)].back, TALKTYPE_SAY) doItemSetAttribute(item.uid, "description", getDescription(item.uid):sub(1, findLetter(getDescription(item.uid), ".")) .. " HP = ["..getCreatureHealth(z).."/"..getCreatureMaxHealth(z).."]") setPlayerStorageValue(cid, 61204, 0) doSendMagicEffect(getCreaturePosition(z), 10) return doRemoveCreature(z) end end end Se não der poste aqi
  11. A spr e dat que eu uso, tem na net pra download, se eu achar eu posto aqui
  12. Olá, estou aqui com mais um script que eu vi que muita gente estava precisando -- SCRIPT ATUALIZADO -- BUG ARRUMADO Funciona assim: Você está lá caçando uns monstros(pokes) ai o monstro começa a atacar você ,e você solta seu pokemon da pokeball e o monstro não pode mais te atacar e ele começa a atacar seu pokemon(summno)... È muito simples : ~~> Entre em data/xml/groups.xml e abra, e add essa tag: <group id="7" name="Pokemon" flags="8" access="0" violationReasons="4" nameViolationFlags="2"/> Feche e salve. ~~> Agora em creaturescripts/scripts, crie um arquivo chamado pokemon.lua e cole isso dentro: function onThink(cid, interval) if(not isCreature(cid)) then return end local id = getPlayerGroupId(cid) if #getCreatureSummons(cid) >= 1 then setPlayerGroupId(cid, 7) end if #getCreatureSummons(cid) == 0 then setPlayerGroupId(cid, 1) end if id > 1 and id < 7 then setPlayerGroupId(cid, id) end end ~~> Em login.lua registre isso: registerCreatureEvent(cid, "Pokemon") ~~> Agora em creaturescripts.xml add isto: <event type="think" name="Pokemon" event="script" value="pokemon.lua"/> ~~ ~~ ~~ ~~ Criatividade não é crime! Créditos : Drakylucas por começar com isso =D
  13. tenta assim: if #getCreatureSummons(cid) >= 1 then for _,z in pairs(getCreatureSummons(cid)) do if getDescription(item.uid):find(getCreatureName(z)) then if getPlayerGroupId(cid) == 6 then setPlayerGroupId(cid, 6) end doTransformItem(item.uid, pokein) setPlayerGroupId(cid, 1) doCreatureSay(cid, pokes[getCreatureName(z)].back, TALKTYPE_SAY) doItemSetAttribute(item.uid, "description", getDescription(item.uid):sub(1, findLetter(getDescription(item.uid), ".")) .. " HP = ["..getCreatureHealth(z).."/"..getCreatureMaxHealth(z).."]") setPlayerStorageValue(cid, 61204, 0) doSendMagicEffect(getCreaturePosition(z), 10) return doRemoveCreature(z) end end end Qualquer coisa da um toque aqui
  14. Cara, essa V2 Supera qualquer sistema Muito BOM mesmo REP FOREVER
  • Quem Está Navegando   0 membros estão online

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