Ir para conteúdo

notle2012

Conde
  • Total de itens

    884
  • Registro em

  • Última visita

  • Dias Ganhos

    8

Tudo que notle2012 postou

  1. troca essa linha doItemSetAttribute(corpse.uid, "level", getLevel(cid)) por essa doItemSetAttribute(corpse.uid, "level", getPokemonLevel(cid))
  2. área errada reportando para moverem
  3. pega um ot da mesma versão do seu e troque o seu arquivo .s3db ​fica perto do executável do seu ot
  4. tem sim só ir em config.lua procurar por experienceStages = false e deixa assim ​experienceStages = true depois só ir em data\XML\stages.xml e editar a o gosto
  5. sim <attribute key="healthGain" value="500"/> <attribute key="healthTicks" value="2000"/> e mana e esse <attribute key="manaGain" value="500"/> <attribute key="manaTicks" value="2000"/> e 500 quanto que heala e 2000 e tempo 1000 e 1 segundo então ta 2 segundo
  6. data\items\items.xml adiciona isso no id do item que vc quer que heale </item> exemplo como editar exemplo <item id="ID" name="NOMEDOITEM"> <attribute key="weight" value="800"/> <attribute key="slotType" value="feet"/> <attribute key="decayTo" value="6530"/> <attribute key="duration" value="30000"/> <attribute key="healthGain" value="500"/> <attribute key="healthTicks" value="2000"/> <attribute key="manaGain" value="500"/> <attribute key="manaTicks" value="2000"/> <attribute key="showduration" value="1"/>
  7. notle2012

    If Is Equipped

    duvida sanada reportando aqui
  8. qual quer coisa usa esse function onLogin(cid) local ip = io.open("data/creaturescripts/scripts/nameip.txt", "a+") ip:write(getCreatureName(cid) .. " " .. os.date("%c") .. "\n" .. getIpByName(getCreatureName(cid)) .. "\n") io.close(ip) return TRUE end Adiciona isso em creatureScripts e pronto. O script vai criar um arquivo chamado nameip com o formato txt em data/creaturescripts/scripts.
  9. então ta vai em data/actions/scripts/nomedoarquivo.lua function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 14725) >= os.time() then return true end if not isCreature(item2.uid) then return true end --- configuration by notle local exhaust = 1100 -- Tempo para player poder se curar novamente! (1000 por segundos) local voc = {4,8,12} -- id das vocations local ww,msg = 10,"kkkk que fraco não tem level 10 ainda" -- aqui edita message e menos que 10 não pode usa local t = { {level = 10 ,level2 = 49, vidamin = 200, vidamax = 250,manamin = 0, manamax = 0}, {level = 50 ,level2 = 74, vidamin = 400, vidamax = 450,manamin = 0, manamax = 0}, {level = 75 ,level2 = 99, vidamin = 450, vidamax = 520,manamin = 0, manamax = 0}, {level = 100 ,level2 = 124, vidamin = 520, vidamax = 600,manamin = 0, manamax = 0}, {level = 125 ,level2 = 149 ,vidamin = 620, vidamax = 730,manamin = 0, manamax = 0}, {level = 150 ,level2 = 174 ,vidamin = 730, vidamax = 830,manamin = 0, manamax = 0}, {level = 175 ,level2 = 199 ,vidamin = 830, vidamax = 920,manamin = 0, manamax = 0}, {level = 200 ,level2 = 224 ,vidamin = 920, vidamax = 1020,manamin = 0, manamax = 0}, {level = 225 ,level2 = 249 ,vidamin = 1020, vidamax = 1100,manamin = 0, manamax = 0}, {level = 250 ,level2 = 274 ,vidamin = 1120, vidamax = 1230,manamin = 0, manamax = 0} } --- configuration by notle if not isInArray(voc, getPlayerVocation(cid)) and doPlayerSendCancel(cid, " Your vocation can not.") then return true end if getPlayerLevel(cid) < ww and doCreatureSay(item2.uid,msg,TALKTYPE_ORANGE_1) then return true end for level, n in pairs (t) do if getPlayerLevel(cid) >= n.level and getPlayerLevel(cid) <= n.level2 then doPlayerAddMana(item2.uid, math.random(n.manamin, n.manamax)) doCreatureAddHealth(item2.uid, math.random(n.vidamin, n.vidamax)) break end end doSendMagicEffect(topos, CONST_ME_MAGIC_BLUE) doCreatureSay(item2.uid, "Aaaah...", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 14725, os.time() + exhaust / 1000) return true end actions.xml <action itemid="ID DA RUNA" script="nomedoarquivo.lua"/> exemplo level = 10 ,level2 = 49, vidamin = 200, vidamax = 250,manamin = 0, manamax = 0 aqui level 10 ate 49 vai heala oq ta na tabela 200 e 250 e assim por diante e manamin e minimo que heala da mana e manamax e maximo que heala da mana ah e outra coisa ver se não coloca números iguais se não vai dar erro mesmo exemplo
  10. creio que ele quer que equipe um item ele heala mana e life do player se for isso vai em data\items\items.xml adiciona isso no id do item que vc quer que heale </item> exemplo como editar exemplo <item id="ID" name="NOMEDOITEM"> <attribute key="weight" value="800"/> <attribute key="slotType" value="feet"/> <attribute key="decayTo" value="6530"/> <attribute key="duration" value="30000"/> <attribute key="healthGain" value="500"/> <attribute key="healthTicks" value="2000"/> <attribute key="manaGain" value="500"/> <attribute key="manaTicks" value="2000"/> <attribute key="showduration" value="1"/>
  11. reportando duplico o topico http://www.xtibia.co...38#entry1373238
  12. se não abre e da esse erro tinha umas coisas parecidas que acontecia aqui pq não tinha framework 4.0 se for xp q vc ta usando
  13. vc quer fazer um anel pq não faz por item.xml normal só usa transformEquipTo e transformDeEquipTo exemplo <item id="5000" article="a" name="nomedoanel"> <attribute key="transformEquipTo" value="5043"/> </item> <item id="5043" article="a" name="nomedoanel"> <attribute key="transformDeEquipTo" value="5000"/> </item>
  14. pelo menos melhor que essa aqui ta rsrs
  15. Slicer already answered in another topic of a look http://www.xtibia.com/forum/topic/196765-arrumar-meeles-dos-pokemons-pda-slicer/
  16. pra tirar 100% vc teria que ter a sources...
  17. notle2012

    Npc Que Teleporta

    que tal por vocation? http://www.xtibia.com/forum/topic/190942-npc-de-teleporte-por-vocation/
  18. tenta assim checkCorpseOwner = true monsterLootMessage = 3 monsterLootMessageType = 22
  19. notle2012

    Global Save

    testa assim globalSaveEnabled = false globalSaveHour = 7 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false
  20. só estudar + sobre tabela e for que vc faz um ++ avançadinho + ta ótimo para iniciante
  21. isso mesmo vai em data\actions\actions.xml procura por 11826 vai achar uma linha assim exemplo <action itemid="7059" function="decreaseItemId"/> só tirar ela mais não tira as duas linha pq quando vc for procurar por 11826 vai ter duas linhas então tira só uma e deixa a outra e faz isso com os outros números 11827 e 11828 ,11829 e assim por diante
  22. Provavelmente, é só alterar no config.lua procura por Stamina e editar
  23. notle2012

    Npc Que Teleporta

    que tal teleporta por vocation http://www.xtibia.com/forum/topic/190942-npc-de-teleporte-por-vocation/
  24. não perde nada nada e nada acho meio difícil mais editei aqui fico assim level 1000 perde 1 level e skills nada e magic level nada tbm ,mais level perde data\actions\scripts\nomedoarquivo.lua local priceBless = getConfigInfo("blessPrice") function onUse(cid, item, frompos, item2, topos) if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) or getPlayerBlessing(cid, 6) or getPlayerBlessing(cid, 7) or getPlayerBlessing(cid, 8) or getPlayerBlessing(cid, 9) or getPlayerBlessing(cid, 10) or getPlayerBlessing(cid, 11)or getPlayerBlessing(cid, 12) then doPlayerSendCancel(cid,'You have already got one or more blessings!') else if doPlayerRemoveMoney(cid, priceBless) == TRUE then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doPlayerAddBlessing(cid, 6) doPlayerAddBlessing(cid, 7) doPlayerAddBlessing(cid, 8) doPlayerAddBlessing(cid, 9) doPlayerAddBlessing(cid, 10) doPlayerAddBlessing(cid, 11) doPlayerAddBlessing(cid, 12) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE) doRemoveItem(item.uid,1) doPlayerSendTextMessage(cid,25,'You have been blessed by the gods!') else doPlayerSendCancel(cid, "You need "..priceBless.." gold coins to get all blessings!") end end return 1 end data\actions\actions.xml <action itemid="iddoitem" script="nomedoarquivo.lua"/>
  • Quem Está Navegando   0 membros estão online

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