Ir para conteúdo

notle2012

Conde
  • Total de itens

    884
  • Registro em

  • Última visita

  • Dias Ganhos

    8

Tudo que notle2012 postou

  1. fisso um test aqui rapido com pda vc nem disse que base vc usa? data\actions\scripts\box.lua actions.xml <action itemid="11638;11639;11640;11641;2100" event="script" value="box.lua"/> eu adicionei box 5 com id 2100 de test quando vc for usa tem que edita 2100 do actions.xml e da box.lua [2100] edita red [2100] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Lapras", "Gyarados", "Scyther"}}}
  2. fala mais sobre esse script ​como ele funciona se vc ja viu em algum ot seila sair magias? fala detalhes pode ajudar fazer esse script
  3. bom vc só falou que quer um npc que troca 8 item por 1 mais não deu detalhes como npc ia falar esc então fisso um rapidinho aqui testa ai data\npc\scripts\nomedoarquivo.lua data\npc\nomedoarquivo.xml
  4. criei um aqui rapidinho data\actions\scripts\liquids\great_mana.lua function onUse(cid, item, fromPosition, itemEx, toPosition) --- configuration by notle local min = 1250 --- minimo que vai curar com menos 299 de lvl local max = 1650 --- maximo que vai curar com menos 299 de lvl local min300 = 2250 --- minimo que vai curar com lvl 300 local max300 = 2650 --- maximo que vai curar com lvl 300 local min500 = 3250 --- minimo que vai curar com lvl 500 local max500 = 3650 --- maximo que vai curar com lvl 500 local exhaust = 1100 -- Tempo para player poder se curar novamente! (1000 por segundos) local lvl1,lvl2,lvl3 = 299,499,500 -- modificação de level ta de 300 a 499 e de 500 pra + --- configuration by notle if (getPlayerStorageValue(cid, 14725) <= os.time()) then if getPlayerLevel(cid) <= lvl1 then doPlayerAddMana(itemEx.uid, math.random(min, max)) elseif getPlayerLevel(cid) >= lvl1+1 and getPlayerLevel(cid) <= lvl2 then doPlayerAddMana(itemEx.uid, math.random(min300, max300)) elseif getPlayerLevel(cid) >= lvl3 then doPlayerAddMana(itemEx.uid, math.random(min500, max500)) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 14722, os.time()+exhaust/1000) else doPlayerSendCancel(cid, "Desculpe, você só pode se curar novamente depois de "..exhaust.." segundos.") end end end actions.xml <action itemid="???" event="script" value="liquids/great_mana.lua na onde ta com ??? vc coloca id da great mana
  5. data\creaturescripts\scripts\advance.lua local config = { [0] = { "Fist skill UP", 30}, -- 30 = variable[2] -- Animation effect [1] = { "Club skill UP", 30}, -- 30 = variable[2] -- Animation effect [2] = { "Sword skill UP", 30}, -- 30 = variable[2] -- Animation effect [3] = { "Axe skill UP", 30}, -- 30 = variable[2] -- Animation effect [4] = { "Distance skill UP", 30}, -- 30 = variable[2] -- Animation effect [5] = { "Shield skill UP", 30}, -- 30 = variable[2] -- Animation effect [6] = { "Fishing skill UP", 30}, -- 30 = variable[2] -- Animation effect [7] = { "Magic level UP", 30}, -- 30 = variable[2] -- Animation effect [8] = { "Level UP", 30} -- 30 = variable[2] -- Animation effect } function onAdvance(cid, skill, oldlevel, newlevel) local pos = getPlayerPosition(cid) local effectPositions = { {x = pos.x, y = pos.y - 3, z = pos.z}, {x = pos.x, y = pos.y + 3, z = pos.z}, {x = pos.x - 3, y = pos.y, z = pos.z}, {x = pos.x + 3, y = pos.y, z = pos.z}, {x = pos.x - 2, y = pos.y - 2, z = pos.z}, {x = pos.x + 2, y = pos.y - 2, z = pos.z}, {x = pos.x + 2, y = pos.y + 2, z = pos.z}, {x = pos.x - 2, y = pos.y + 2, z = pos.z} } for type, variable in pairs(config) do if skill == type then doCreatureSay(cid, ""..variable[1].." ["..newlevel.."]", TALKTYPE_ORANGE_1) for _, ePos in ipairs(effectPositions) do doSendDistanceShoot(pos, ePos, CONST_ANI_SMALLHOLY) doSendMagicEffect(ePos, CONST_ME_HOLYAREA) end end end return TRUE end adiciona isso no login registerCreatureEvent(cid, ""Playeradvance") creaturescripts.xml <event type="advance" name="Playeradvance" event="script" value="advance.lua"/>
  6. ata mais essas paradas e de bot, que os cara loga vários char MAGEBOMB
  7. vai em data\lib\configuration.lua procura por Charmander achar algo que tem a ver com level só editar exemplo o de red ["Charmander"] = {offense = 5.2, defense = 4.3, specialattack = 6, vitality = 3.9, agility = 128, exp = 65, level = 18, type = "fire", type2 = "no type"},
  8. Pedido Atendido Reportado Aqui
  9. acho muito difícil alguém fazer isso pra vc eu posso te ajudar com esse vídeo que ensina hookar as dll mais demora muito programa necessário Stud_PE outro video e modo difícil mais tbm mais rápido http://www.youtube.com/watch?v=VLPZSAqhpU4
  10. já tem mesmo mais se vc quer outro pega ai vai kick todos online data\talkactions\scripts\nomedoarquivo.lua function onSay(cid, words, param) local players = getPlayersOnline() for i=1, #players do doRemoveCreature(players[i]) end return true end talkactions.xml <talkaction words="!test" event="script" value="nomedoarquivo.lua"/> só troca nome do comando e nome do arquivo
  11. Duvida Sanada Reportado Aqui
  12. ata mais esse tbm era bom assim player não ia se move ate passa 30s , brun123 posto outro ver ai veio Tem que colocar as tags de stepin/stepout fica em data\movements\movements.xml
  13. pelo oq eu entendi esse pode ressorver seu problema testa ai local events ={} local tempo = 30 -- tempo em segundos local pos = {x = 160, y = 54, z = 7} local function doTeleportThingNoError(guid, pos) local cid = getPlayerByGUID(guid) events[guid] = nil if not isCreature(cid) then return end doTeleportThing(cid, pos) doCreatureSetNoMove(cid, false) end function onStepIn(cid, item, oldPos) if events[getPlayerGUID(cid)] then stopEvent(events[getPlayerGUID(cid)]) doPlayerSendTextMessage(cid, 27, "Contagem zerada.") end doPlayerSendTextMessage(cid, 27, "Contagem iniciada, daqui " .. tempo .. " segundos você será teleportado") doCreatureSetNoMove(cid, true) events[getPlayerGUID(cid)] = addEvent(doTeleportThingNoError, tempo * 1000, getPlayerGUID(cid), pos) return true end
  14. rsrs realmente os tópico do monsterot parece quase a mesma coisa coloca mais detalhes fica mais fácil pra ajuda eu ja vi brun123 postando umas 2 vez pra te ajuda em outros topico não sei cade link quando achar edit aqui
  15. tenta assim function onKillPlayer(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) then if isPlayer(lastHitKiller) then doPlayerAddSoul(lastHitKiller, 1) doSendAnimatedText(getCreaturePosition(lastHitKiller), "FRAG!", 144, lastHitKiller) if isPlayer(mostDamageKiller) and mostDamageKiller ~= lastHitKiller then doPlayerAddSoul(mostDamageKiller, 1) doSendAnimatedText(getCreaturePosition(mostDamageKiller), "FRAG!", 150, mostDamageKiller) end if getBooleanFromString(getConfigValue("experienceByKillingPlayers")) and lastHitKiller ~= cid then if BAG_OF_SSA and lastHitKiller ~= cid then doPlayerBuyItemContainer(lastHitKiller, 1996, 2197, 1, 0, 5) if mostDamageKiller ~= lastHitKiller then doPlayerBuyItemContainer(mostDamageKiller, 1996, 2197, 1, 0, 5) end end local gainLevel = LEVEL_GAIN_FOR_KILL if tonumber(gainLevel) == nil then gainLevel = math.floor(getPlayerLevel(cid) * 999990) --Aqui você muda a quantidade --de experiencia que vai ser adicionado nos Killers local gold = (math.random (getPlayerLevel(cid)/50, getPlayerLevel(cid)/10)) doPlayerAddItem(mostDamageKiller, 2148, gold) end --print("lastHitKiller: ".. lastHitKiller) print("mostDamageKiller: ".. mostDamageKiller) --print("cid: ".. cid) print("MAXIMUM_LEVEL:") print(MAXIMUM_LEVEL) --print("\n\n\n") print(lastHitKiller ~= cid) print(MAXIMUM_LEVEL == nil) print if (getPlayerLevel(mostDamageKiller) < MAXIMUM_LEVEL) then if (lastHitKiller ~= cid) and ((MAXIMUM_LEVEL == nil) or (getPlayerLevel(lastHitKiller) < MAXIMUM_LEVEL)) then doPlayerAddExperience(lastHitKiller, gainLevel) end if ((mostDamageKiller ~= lastHitKiller) and (mostDamageKiller ~= cid)) and ((MAXIMUM_LEVEL == nil) or (getPlayerLevel(mostDamageKiller) < MAXIMUM_LEVEL)) then doPlayerAddExperience(mostDamageKiller, gainLevel) doPlayerAddItem(mostDamageKiller, 2148, gold) end end end end end end
  16. eu re fisso pelo os id se vc quer como uma box mais tinha que ter atributos nos cards??? não entendi muito bem essa parte 'doItemSetAttribute' mais testa ai local card_id = {2160, 2161, 2162, 2163, 2164, 2165, 2166, 2167, 2168, 2169, 2170} -- joga os id dos card aqui function onUse(cid, item, frompos, item2, topos) local level = 50 -- level if item.itemid == 2112 then -- id da box if getPlayerLevel(cid) >= level then local w = math.random (1,#card_id) doPlayerAddItem(cid, card_id[w]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"you opened a pack of cards. and won card ["..getItemNameById(card_id[w]).."]") doRemoveItem(item.uid, 1) else doPlayerSendCancel(cid,"You must be at least level "..level.."") end return true end end
  17. vc pode começa conhecendo melhor os arquivos.lua das suas spells, qual pokemon vc usa se por pda fica em data\lib\pokemon moves.lua
  18. vlw espero que todos que queria esse servidor sem level venha a baixar @ImBack já mandei pm pode dizer la
  19. notle2012

    Help

    pq não escreveu em português mesmo tenta assim function onUse(cid, item, frompos, item2, topos) tabela_status = { [6512] = {name="offense", value = 5}, [8982] = {name="defense", value = 5}, [9019] = {name="agility", value = 5}, [9693] = {name="vitality", value = 5}, [2322] = {name="specialattack", value = 5}, } if #getCreatureSummons(cid) > 0 then doPlayerSendCancel(cid, "Please back your pokemon.") return false end local pb = getPlayerSlotItem(cid, 8) local pokename = getItemAttribute(pb.uid, "poke") doRemoveItem(item.uid, 1) local status = tabela_status[item.itemid] local pbstat= getItemAttribute(pb.uid, status.name) local st = pbstat + tabela_status[item.itemid].value doItemSetAttribute(pb.uid, status.name , st) doPlayerSendTextMessage((cid), 27, "Your "..pokename.." has eaned "..status.value.." "..status.name.." points!") doSendFlareEffect(getThingPos(cid)) return true end
  20. aqui amigo eu apostei ele sem level esses dias da uma olhada http://www.xtibia.com/forum/topic/194213-pokemon-centurion-sem-lvl-by-notle/
  21. testa esse eu adicionei isso LOOKTYPE_DA_MOTO2 = 504, -- outfit da moto se for female
  22. deve ter colocando numero errado com map editor pq essa etapa e muito importante 21212
  23. é né mais eu não rep - por double tópico
  24. pokemon centurion sem level versão 854 Informações: scan do servidor link - https://www.virustot...sis/1347738982/ se quiser com level baixa do amigo cacaiu link - http://www.xtibia.co...emon-centurion/ como titulo ja disse é Pokemon Centurion modifiquei ele pra fica sem level como muitas pessoas fica pedindo Pokemon Centurion sem level agora já pode baixar ^.^ espero que gostei uma simples imagem eu sei que tem muito mais pokemon mais tirei uma foto rápida rsrs DOWNLOADS senha do god Creditos mais um bug encontrado boost machine não tava pegando vai em data\actions\scripts\boost.lua esse servidor e pra todos que queria Pokemon Centurion sem level que tentava deixa sem level e bugava tudo aqui bug fui arrumando as poucos tudo que encontrava comente galera
  • Quem Está Navegando   0 membros estão online

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