Ir para conteúdo

DuuhCarvalho

Conde
  • Total de itens

    988
  • Registro em

  • Última visita

  • Dias Ganhos

    22

Posts postados por DuuhCarvalho

  1. editei esse post

    Alguém pode me falar o que tem de errado nesse script

     

    era pra dar Magic mais ta dando Fist Fighting

     

    os outros estão funcionando menos o de MAGIC

     

     

     

    function onUse(cid, item, frompos, item2, topos)

     

    if item.uid == 7475 then

    queststatus = getPlayerStorageValue(cid,7475)

    if queststatus == -1 then

    if getPlayerVocation(cid) == 1 or 2 then

    doPlayerSendTextMessage(cid,24,"Você ganhou skill.")

    doPlayerAddSkillTry(cid, MAGIC, 5)

    setPlayerStorageValue(cid,7475,1)

     

    elseif getPlayerVocation (cid) == 3 then

    doPlayerSendTextMessage(cid,24,"Você ganhou skill.")

    doPlayerAddSkillTry(cid, SKILL_DISTANCE, 1)

    setPlayerStorageValue(cid,7475,1)

     

    elseif getPlayerVocation (cid) == 4 then

    doPlayerSendTextMessage(cid,24,"Você ganhou skill.")

    doPlayerAddSkillTry(cid, SKILL_SWORD, 1)

    doPlayerAddSkillTry(cid, SKILL_AXE, 1)

    setPlayerStorageValue(cid,7475,1)

    end

     

    else

    doPlayerSendTextMessage(cid,24,"Você ja Feis essa quest.")

    end

     

    end

    return 1

    end

  2. foda man ajemte cria topico e a galera nem liga que tenso

     

    ifstring.find(tostring(getCreatureName(cid)),"[[Vip]]")then

     

     

     

    so tira o Vip e por o que vc quiser tipo

     

     

     

    ifstring.find(tostring(getCreatureName(cid)),"[[snow]]")then

     

     

     

     

    ai quando posta na area errada esse povo a indafica xiando se for isso manim so faser isso ai

     

    AI QUANDO VC DER VIP AHUM JOGADOR VAI FICA [sNOW] Potrexzinhox

     

    Mano é só ter paciência vcs postam as coisas e querem que em 5 minutos já teja resposta :/

  3. Agora vai de ctz...

    function onUse(cid, item, fromPosition, itemEx, toPosition)
    
    pid = getPlayerGUID(cid)
    
    if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then
    							doPlayerSetVocation(cid, 22)
    							doPlayerSetMaxCapacity(cid, 435)
    							doSendMagicEffect(getCreaturePosition(cid), 13)
    							doRemoveCreature(cid)
    							db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
    							for id=0, 8 do
    							db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. id ..";")								
    							end
    							doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
    elseif getPlayerVocation(cid) == 14 and getPlayerLevel(cid) ~= 510 then
    							doPlayerSetVocation(cid, 21)
    							doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
    							doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
    							doPlayerAddMana(cid, -getPlayerMana(cid)+35)
    							setCreatureMaxHealth(cid,  -setCreatureMaxHealth(cid)+185)
    							setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
    							doPlayerSetMaxCapacity(cid, 435)
    							doSendMagicEffect(getCreaturePosition(cid), 13)
    							doRemoveCreature(cid)
    							db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
    							for id=0, 8 do
    							db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
    							end
    							return TRUE
    elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) ~= 250 then
    							doPlayerSetVocation(cid, 22)
    							doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
    							doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
    							doPlayerAddMana(cid, -getPlayerMana(cid)+35)
    							setCreatureMaxHealth(cid,  -setCreatureMaxHealth(cid)+185)
    							setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
    							doPlayerSetMaxCapacity(cid, 435)
    							doSendMagicEffect(getCreaturePosition(cid), 13)
    							doRemoveCreature(cid)
    							db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
    							for id=0, 8 do
    							db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
    							end
    							return TRUE
    elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) ~= 510 then
    							doPlayerSetVocation(cid, 19)
    							doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
    							doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
    							doPlayerAddMana(cid, -getPlayerMana(cid)+35)
    							setCreatureMaxHealth(cid,  -setCreatureMaxHealth(cid)+185)
    							setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
    							doPlayerSetMaxCapacity(cid, 435)
    							doSendMagicEffect(getCreaturePosition(cid), 13)
    							doRemoveCreature(cid)
    							db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
    							for id=0, 8 do
    							db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
    							end
    							return TRUE
    else
    doPlayerSendCancel(cid, "Você não pode mais Resetar!")
    end
    
    return TRUE
    end
    

     

    Eu amo esse cara rsrs'

    Sempre ajudando, Ele é o melhor (y'

  4. Claro mano é que to aprendendo agr a mexer em action e creaturescript #desculpa

     

    Ocorreu um erro

    Você já atingiu seu limite de reputações positivas para hoje

     

     

     

    LoL nem dei REP+ HOJE só dei 1 REP+ e foi ontem quando sair isso tedo seu REP+ ook ? :DD

     

     

     

     

     

     

    eu também, meu nível de Lua é um pouco iniciante, eu também mecho mais é com creaturescript, falow man, espero que alguem consiga te ajudar :D

    valeu ^^

     

     

    Ja aconteceu isso cmg, depois vc dar preocupa ñ e Brigado pelo rep+ apesar de não ter te ajudado

  5. MAno pode ser comando talkactions? pq ak no meu ot deu certo pelo talkactions

     

     

    function onSay(cid, words, param)

     

     

    if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then

    doPlayerSetVocation(cid, 22)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e

     

    você concluiu seu primeiro reset.")

     

    elseif getPlayerVocation(cid) == 14 and getPlayerLevel(cid) ~= 510 then

    doPlayerSetVocation(cid, 21)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e

     

    você concluiu seu primeiro reset.")

     

    elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) ~= 250 then

    doPlayerSetVocation(cid, 22)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e

     

    você concluiu seu primeiro reset.")

     

    elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) ~= 510 then

    doPlayerSetVocation(cid, 19)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e

     

    você concluiu seu primeiro reset.")

     

     

    else

    doPlayerSendCancel(cid, "Você não pode mais Resetar!")

    end

     

    return TRUE

    end

     

     

     

    TAG:

    <talkaction words="!comando a ser falado" event="script" value="nome que vc colocou no arquivo.lua"/>

     

    é do mesmo jeito mano so que esse é falando e ñ por quest serve? se servir testa ai (y'

  6. tenta esse nem testei :D

     

     

    function onUse(cid, item, fromPosition, itemEx, toPosition)

     

    if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then

    doPlayerSetVocation(cid, 22)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, -getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, -getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")

     

    elseif getPlayerVocation(cid) == 14 and getPlayerLevel(cid) ~= 510 then

    doPlayerSetVocation(cid, 21)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, -getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, -getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")

     

    elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) ~= 250 then

    doPlayerSetVocation(cid, 22)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, -getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, -getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")

     

    elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) ~= 510 then

    doPlayerSetVocation(cid, 19)

    doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))

    setCreatureMaxHealth(cid, -getCreatureMaxHealth(cid)+185)

    setCreatureMaxMana(cid, -getCreatureMaxMana(cid)+35)

    doPlayerSetMaxCapacity(cid, 435)

    doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)

    doPlayerAddMana(cid, -getPlayerMana(cid)+35)

    doSendMagicEffect(getCreaturePosition(cid), 13)

    doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)

    doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")

     

     

    else

    doPlayerSendCancel(cid, "Você não pode mais Resetar!")

    end

     

    end

  7. rsrs editei, não sabia onde postar :/

     

    Pessoal to aqui para pedir a vocês um tutorial de como criar script.lua, um tutorial que seja fácil de entender já achei uns aqui no Xtibia mais ta muito complicado, então peço a você que criem um e postem aqui ou me mande um que já tenha aqui no xtibia mais que não seja complicado, que seja bem explicado #PorFavor

     

     

    se estiver na area errada por favor não fechem, so movam e me avisei para da proxima vez eu não errar denovo #PorFavor

     

     

    Valendo Rep+ por 1 semana

     

    primeiro, aumente o tamanho da sua letra.

     

    segundo, olhe este link: http://www.xtibia.co...ost__p__1050037

     

    não ta dando pra entrar nesse link ai :/

  8. Pessoal to aqui para pedir a vocês um tutorial de como criar script.lua, um tutorial que seja fácil de entender já achei uns aqui no Xtibia mais ta muito complicado, então peço a você que criem um e postem aqui ou me mande um que já tenha aqui no xtibia mais que não seja complicado, que seja bem explicado #PorFavor

     

     

    se estiver na area errada por favor não fechem, so movam e me avisei para da proxima vez eu não errar denovo #PorFavor

     

     

    Valendo Rep+ por 1 semana

  • Quem Está Navegando   0 membros estão online

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