Ir para conteúdo

ZoR

Membro
  • Registro em

  • Última visita

Tudo que ZoR postou

  1. local exp = math.random(1, 100) local t_abela = { item_id = 7158, msg = "", vocs = 1, voca = "Sorcerer, Master Sorcerer", level = 8, } function onUse(cid, item, frompos, item2, topos) playerpos = getPlayerPosition(cid) if item.itemid == t_abela.item_id and getPlayerLevel(cid) >= t_abela.level then doPlayerAddSkillTry(cid, 400) doSendMagicEffect(playerpos,30) doCreatureSay(cid, mensagem, 3) doRemoveItem(cid, item.uid, 1) doPlayerSendTextMessage(cid,20, "Você ganhou " ..exp.. " de experiência.") else doPlayerSendCancel(cid, "Desculpe, mais apenas " ..t_abela.voca.. " com level " ..t_abela.level.."+ pode usar este item.") end return 1 end troquei a função doPlayerAddManaSpent(cid, 400) por doPlayerAddSkillTry(cid, 400) não sei bem se é essa função pois nunca tentei criar tal script! dei uma arrumada e tirei aquele monte de local e fiz uma tabela. coloquei math.random para ficar mais variado a EXP vai de 1, 100
  2. remove normal -- Goku [vocation id] = { level, nova voc, looktype, efeito} [1] = { 30, 2, 2, 118}, primeira tansformação [2] = { 50, 3, 535, 114}, segunda transformação [3] = { 75, 4, 3, 114}, terceira transformação [4] = { 100, 5, 4, 121}, quarta transformação [5] = { 150, 6, 5, 114}, quinta transformação [6] = { 180, 7, 7, 116}, sexta transformação [7] = { 200, 8, 8, 114}, ............... exempplo -- Goku [vocation id] = { level, nova voc, looktype, efeito} [1] = { 30, 2, 2, 118}, primeira tansformação [2] = { 50, 3, 535, 114}, segunda transformação [3] = { 75, 4, 3, 114}, terceira transformação [4] = { 100, 5, 4, 121}, quarta transformação outra opção -- Goku [vocation id] = { level, nova voc, looktype, efeito} [1] = { 30, 2, 2, 118}, primeira tansformação [2] = { 50, 3, 535, 114}, segunda transformação [3] = { 75, 4, 3, 114}, terceira transformação [4] = { 150, 6, 5, 114}, quinta transformação [5] = { 200, 8, 8, 114},
  3. pra mudar a roupa só criar um talkaction
  4. local tabl = { vocations = { Naruto = 1, 123, -- outfit Sasuke = 1, 123, Sakura = 1, 123, }, storages = { Naruto = 1234123, -- storages Sasuke = 1234123, Sakura = 1234123, }, nome = { Naruto = "Naruto Kurama mode", Sakura = "Maluco zika", }, } function onUse(cid, item) if getPlayerStorageValue(cid, tabl.getPlayerVocation(cid, #storages)) >= 0 then doPlayerSendTextMessage(cid, 21, "Você já usou esse item nessa vocation") end if getPlayerVocation(cid, tabl.#vocations[1]) and setPlayerStorageValue(cid, #storages, 1) then doPlayerAddOutfit(cid, tabl.#vocations[2]) doPlayerSendTextMessage(cid, 21, "Você recebeu uma Skin" .. getPlayerVocation(cid, #nome)) end end pelo que entendi do seu sistema é um sistema de skin que ganha uma skin quando clica? não sei se o sistema irá funcionar então teste. @Phineasz
  5. local ponto = 11395 -- n mude local storage = 15412 -- mude para outro local qtsdepontos = 1 -- quantidade de pontos function onUse(cid, item) if getPlayerStorageValue(cid, storage) >= 0 then return doPlayerBroadcastMessage(cid, "Voce ja recebeu.") end if ponto == ponto then -- n mude doAccountAddPoints(cid, qtsdepontos) doPlayerRemoveItem(cid, 2179) doPlayerAddItem(cid, ponto, 1) -- não mexa doPlayerBroadcastMessage(cid, "Voce recebeu") setPlayerStorageValue(cid, storage, 1) -- não mexa end end @djteteh tentei seguir a linha de raciocínio do topico que vc mandou então para que o script funcione você vai precisar ter a lib do topico Pasta Lib / Crie um arquivo com o nome de '048-ppoints.lua' Actions.XML Creditos ao : ViitinG
  6. sim eu refiz o code, iniciei em lua faz uns 3 - 4 dias
  7. acho que não, eu aprendi com algumas pessoas
  8. local ponto = 11395 -- n mude local storage = 15412 -- mude para outro function onUse(cid, item) if getPlayerStorageValue(cid, storage) >= 0 then return doPlayerBroadcastMessage(cid, "Voce ja recebeu.") end if ponto == ponto then -- n mude doPlayerRemoveItem(cid, 2179) doPlayerAddItem(cid, ponto, 1) -- não mexa doPlayerBroadcastMessage(cid, "Voce recebeu") setPlayerStorageValue(cid, storage, 1) -- não mexa end end @djteteh
  9. qual script você tá usando?
  10. @ITALOx local item = {itemui = id do item que e usado, looktype = id da outfit} local efeito = coloca o efeito function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemui == item.itemui then doRemoveItem(item.itemui, 1) doSendMagicEffect(getCreaturePosition(cid), efeito) doSetCreatureOutfit(cid, item.looktype) doPlayerAddOutfit(cid, look, 3) end return true end
  11. local item = {itemui = id do item que e usado, looktype = id da outfit} local efeito = coloca o efeito function OnUse(cid, item) if item.itemui == item.itemui then doRemoveItem(item.itemui, 1) doSendMagicEffect(getCreaturePosition(cid), efeito) doSetCreatureOutfit(cid, item.looktype) doPlayerAddOutfit(cid, look, 3) end return true end
  12. pega oque eu te mandei ali em cima, eu refiz o script!
  13. manda oush -- Script feito NemesisZor (ZoR#9373) -- -- Por favor não remova os créditos -- -- Alterado por NemesisZor (ZoR#9373) -- ----------------------------------------- -------- não remover creditos!! --------- ----------------------------------------- local item = {itemui = id, looktype = id} local efeito = coloca o id efeito function OnUse(cid, item) if item.itemui == item.itemui then doRemoveItem(item.itemui, 1) doSendMagicEffect(getCreaturePosition(cid), efeito) doSetCreatureOutfit(cid, item.looktype) doPlayerAddOutfit(cid, look, 3) end return true end @ITALOx criei o meu script, teste
  14. diga, talvez eu possa
  15. não sei, teste
  16. -- Script feito por Movie (Movie#4361) -- -- Por favor não remova os créditos -- -- Alterado por NemesisZor (ZoR#9373) -- ----------------------------------------- -------- Não remover creditos!! --------- local outfit = 1434 -- Altere aqui o outfit local efeito = 5 -- Número do efeito que gostaria que aparecesse -- Não mexa daqui pra baixo -- function onUse(cid, item, fromPosition, itemEx, toPosition) doRemoveItem(item.uid, 1) doSendMagicEffect(getCreaturePosition(cid), efeito) doSetCreatureOutfit(cid, outfit) doPlayerAddOutfit(cid, 3) return true end -- Script feito por Movie (Movie#4361) -- -- Por favor não remova os créditos -- -- Alterado por NemesisZor () -- ----------------------------------------- -------- Não remover creditos!! --------- editei o script do amigo acima ai @movie teste agora @ITALOx caso queira algo diferente me informe que altero!
  17. poste o script, possui erro ?
  18. Não gera erros, apenas não seta a storage e nem verifica. @Brunds
  19. Olá segundo tópico que crio com o mesmo intuito. aprendi muito oque foi me ensinado pelo Lyu pelo tópico passado, porém estou com problemas sem setar storage. Sim, sou iniciante em lua pelo modo que estou fazendo é um modo que ira ter muitos codigos e sei que possui modo mais facil de ser feito. porém é um modo que estou aprendendo, logo mais tento trazer algo mais profissional. então o problema desse script é que não sei setar a a storage no player, minha duvida basicamente é sobre toda a função getPlayerStorageValue(cid) e SetPlayerStorageValue(cid). alguém pode me dar uma ajuda?
  20. local tabela = { [1] = "Shukaku", [2] = "Matatabi", [3] = "Isobu", [4] = "Yonbi", [5] = "Gobi", [6] = "Saiken", [7] = "Chomei", [8] = "Hachibi", [9] = "Kurama" } function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local type = getPlayerStorageValue(thing.uid, 89745) local tabela = getPlayerStorageValue(thing.uid, 1234255) doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "She" or "He").." are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 4 and "Anbu" or type == 5 and "Sennin" or type == 6 and "Akatsuki Member")) doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) .." Jinchuuriki " ..(tabela[1] == "Shukaku" and tabela[2] == "Matatabi" or tabela ==[3] "Isobu" and tabela[4] == "Yonbi" or tabela[5] == "Gobi" and tabela[6] == "Saiken" or tabela[7] == "Chomei" and tabela[8] == "Hachibi" or tabela[9] == "Kurama")) end return true end end end @leozincorsair
  21. poderia me passar o seu jinchuurik sistem?
  22. sobre o if eu que não fechei mesmo,era só pra ver se estava certo,mas obrigado por lembrar. eu tentei fazer um script com tabela mas não sei se foi muito certo item = 3124 itemtable = { [1] = { -- index 1 // não mudar health = 50, stamina = 100, forca = 10, }, [2] = { -- index 2 // não mudar health = 100, -- pode ser alterado stamina = 200, -- pode ser alterado forca = 20 -- pode ser alterado } } function OnUse(cid, item) if getPlayerLevel(cid) == 100 then setCreatureMaxHealth(cid, itemtable[1].health) setCreatureMaxMana(cid, itemtable[1].stamina) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, itemtable[1].forca) -- mude SWORD para uma dessas = AXE,CLUB,DISTANCE,FIST,SHIELD else doPlayerSendMessage(cid, 21, "Você não tem level 100 para usar esse item") -- mensagem que ira retornar caso não tenha level end if getPlayerLevel(cid) == 200 then setCreatureMaxHealth(cid, itemtable[2].health) setCreatureMaxMana(cid, itemtable[2].stamina) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, itemtable[2].forca) -- não troque CONDITION_PARAM_SKILL // apenas oque foi dito a cima!!!!! else doPlayerSendMessage(cid, 21, "Você não tem level 200 para usar esse item") -- mensagem que ira retornar caso não tenha level end ---------------- mensagem carinhosa para o retardado que queira usar isso depois do level necessario ---------------------------- if getPlayerLevel(cid) == 101 then doPlayerSendMessage(cid, 21, "TROUXA NÃO VOU DEIXAR VOCÊ QUERER USAR NO LEVEL 101") elseif getPlayerLevel(cid) == 201 then doPlayerSendMessage(cid, 21, "TROUXA NÃO VOU DEIXAR VOCÊ QUERER USAR NO LEVEL 201") end -------------- apenas para checar se não foi outro item que deu essas skills em um possivel bug ---------------------------- if item ~= 3214 then print("checar item 3214") end return true end @Lyu
  23. eu tinha entendido que você queria que o player que usa-se tal tecnica iria demorar para ir para a dimension
  24. item = 4123 -- id do item function onUse(cid, item) if item == 4123 then local tempo = 60 -- tempo que dura local skillfist = 15 -- quantos ira aumentar o skill de Fist local skillsword = 15 -- quantos ira aumentar o skill de Sword local skillaxe = 15 -- quantos ira aumentar o skill de Axe local skillclub = 15 -- quantos ira aumentar o skill de Club local skilldistance = 15 -- quantos ira aumentar o skill de Distance local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) function magicEffect(tempo2,tempo3,cid) if (isCreature(cid)) then if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then for i=1, #effect do local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} doSendMagicEffect(position, effect[i]) end end end end function onCastSpell(cid, var) if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(magicEffect, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 300 end setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado. else doPlayerSendCancel(cid, "Voce ja esta com Buff.") end end end end actions <action actionid="ID O MESMO QUE ESTÁ NO SCRIPT" evente = "script" value="LOCAL ONDE ESTA O SCRIPT.lua"/> @louco3626

Informação Importante

Confirmação de Termo