Mulizeu
Barão-
Total de itens
218 -
Registro em
-
Última visita
-
Dias Ganhos
4
Tudo que Mulizeu postou
-
Como Muda O Cash Quando Mata Player Server De War?
tópico respondeu ao renanxxx de Mulizeu em Lixeira Pública
Se vc olhar nas pasta onde eu disse para colocar vc vai ve se tem ou nao!... -
Como Muda O Cash Quando Mata Player Server De War?
tópico respondeu ao renanxxx de Mulizeu em Lixeira Pública
Vlw AnyurCT eu havia esquecido de explicar! -
Como Muda O Cash Quando Mata Player Server De War?
tópico respondeu ao renanxxx de Mulizeu em Lixeira Pública
Entre na pasta data/creaturescripts/scripts, e crie um arquivo chamado cash.lua, cole este código dentro: function onKill(cid, target, lastHit) local cash = 100000 if isPlayer(cid) and isPlayer(target) then if getPlayerIp(target) ~= getPlayerIp(cid) then setPlayerStorageValue(cid, 45550, (getPlayerStorageValue(cid, 45550)+cash)) end end return TRUE end ele vai dar 100k ao player quematar 2ªa: Agora em creaturescripts/creaturescripts.xml bote a tag: <event type="kill" name="Kill_Cash" event="script" value="cash.lua"/> 2ªb:Agora em creaturescripts/scripts , localize login.lua (antes do ultimo return true) e cole isto dentro: registerCreatureEvent(cid, "Kill_Cash") Se ajudei Rep++ -
tenta assim --By Mulizeu-- local config = { positions = { ["Treiners"] = { x = 510, y = 497, z = 7 }, ["Teleports"] = { x = 512, y = 497, z = 7 }, ["ItensShop"] = { x = 514, y = 497, z = 7 }, ["Arena PVP"] = { x = 513, y = 503, z = 6 }, ["Treiners"] = { x = 1163, y = 1182, z = 5 }, ["TeleportsVIP"] = { x = 1165, y = 1182, z = 5 }, ["Rahk City"] = { x = 1161, y = 1182, z = 5 }, } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end function doSendMagicEffect(position,type) pos1 = { x = 510, y = 497, z = 7 } pos2 = { x = 512, y = 497, z = 7 } pos3 = { x = 514, y = 497, z = 7 } pos4 = { x = 513, y = 503, z = 6 } pos5 = { x = 1163, y = 1182, z = 5 } pos6 = { x = 1165, y = 1182, z = 5 } pos7 = { x = 1161, y = 1182, z = 5 } doSendMagicEffect(pos1,65) doSendMagicEffect(pos2,66) doSendMagicEffect(pos3,69) doSendMagicEffect(pos4,72) doSendMagicEffect(pos5,74) doSendMagicEffect(pos6,76) doSendMagicEffect(pos7,78) end return TRUE end
-
Como Muda O Cash Quando Mata Player Server De War?
tópico respondeu ao renanxxx de Mulizeu em Lixeira Pública
Posta o script que faz essa funçao...para ver se eu posso ajuda-lo! -
-----| /= |---
-
De uma olha acima eu editei o que avia postado!
-
[Talkaction] Usar Só Se Tiver Certa Storage
tópico respondeu ao CoLoRaDo de Mulizeu em Lixeira Pública
Dei uma alterada nele ve se agr funfa .... local config = { vip = "yes", priceForEachMessage = 0, storage = 88888 } function onSay(cid, words) if not getHouseByPlayerGUID(getPlayerGUID(cid)) then if (config.vip == "yes") and getPlayerStorageValue(cid, tonumber(config.storage)) - os.time() <= 0 then doPlayerSendCancel(cid,"Você não possui vip.") return TRUE end function isWalkable(pos, creature, proj, pz) if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end return doPlayerSendCancel(cid, "Voce nao tem casa.") end local pos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))) if getCreatureCondition(cid, CONDITION_INFIGHT) then return doPlayerSendCancel(cid, "Voce tem que estar sem battle.") end if not getTilePzInfo({x=pos.x-1, y=pos.y, z=pos.z}) and isWalkable({x=pos.x-1, y=pos.y, z=pos.z}) then pos = {x=pos.x-1, y=pos.y, z=pos.z} elseif not getTilePzInfo({x=pos.x+1, y=pos.y, z=pos.z}) and isWalkable({x=pos.x+1, y=pos.y, z=pos.z}) then pos = {x=pos.x+1, y=pos.y, z=pos.z} elseif not getTilePzInfo({x=pos.x, y=pos.y+1, z=pos.z}) and isWalkable({x=pos.x, y=pos.y+1, z=pos.z}) then pos = {x=pos.x, y=pos.y+1, z=pos.z} elseif not getTilePzInfo({x=pos.x, y=pos.y-1, z=pos.z}) and isWalkable({x=pos.x, y=pos.y-1, z=pos.z}) then pos = {x=pos.x, y=pos.y-1, z=pos.z} end doTeleportThing(cid, pos) end -
Olha amigo Eu ainda sou iniciante..mais fiz um aki teste ai pra ver se funfa! --By Mulizeu-- local config = { positions = { ["Treiners"] = { x = 510, y = 497, z = 7 }, ["Teleports"] = { x = 512, y = 497, z = 7 }, ["ItensShop"] = { x = 514, y = 497, z = 7 }, ["Arena PVP"] = { x = 513, y = 503, z = 6 }, ["Treiners"] = { x = 1163, y = 1182, z = 5 }, ["TeleportsVIP"] = { x = 1165, y = 1182, z = 5 }, ["Rahk City"] = { x = 1161, y = 1182, z = 5 }, } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end function doSendMagicEffect(position,type) pos1 = { x = 510, y = 497, z = 7 } pos2 = { x = 512, y = 497, z = 7 } pos3 = { x = 514, y = 497, z = 7 } pos4 = { x = 513, y = 503, z = 6 } pos5 = { x = 1163, y = 1182, z = 5 } pos6 = { x = 1165, y = 1182, z = 5 } pos7 = { x = 1161, y = 1182, z = 5 } doSendMagicEffect(pos1,65) doSendMagicEffect(pos2,65) doSendMagicEffect(pos3,65) doSendMagicEffect(pos4,65) doSendMagicEffect(pos5,65) doSendMagicEffect(pos6,65) doSendMagicEffect(pos7,65) end return TRUE end se nao funfa Avise q eu vejo outra forma de fazer! nele ja esta os teleport's junto com os efeitos! Se ajudei rep++
-
Perdoe-me Esse script e na pasta actions dps crie uma tag assim <action uniqueid="Id Storage" script="Nome da quest.lua" />
-
Olha amigo vou te esplicar! function onUse (cid,item,frompos,item2,topos) pos = {x=1063, y=903, z=6}<< para onde ele sera teleportado UID_DO_BAU = xxxx <<<coloca um valor exemplo 1000 que ainda n tenha em seu ot STORAGE_VALUE = xxxx << Repita o valor acima para n ficar bagunça ID_DO_PREMIO = xxxx << Id do item if getPlayerLevel(cid) >= 100 then << lvl do player if item.uid == UID_DO_BAU then queststatus = getPlayerStorageValue(cid,STORAGE_VALUE) if queststatus == -1 then doTeleportThing(cid,pos) doPlayerSendTextMessage(cid,22,"Parabens! Você achou a espada perdida!") -- Msg que ira aparecer doPlayerAddItem(cid,ID_DO_PREMIO,1) setPlayerStorageValue(cid,STORAGE_VALUE,1) doSendMagicEffect(pos, CONST_ME_TELEPORT) else doPlayerSendTextMessage(cid,22,"Você ja a Recompensa.") end end else doPlayerSendCancel(cid,'Somente Players com Level 100+ conseguem abrir este bau.') end return 1 end Rep++
-
Como assim..esse script nao esta funfando ou vc quer que o efeito fique permanente??
-
Ta ae Esse Npc serve para fazer a troca de 1 Hitmonlee + 200k por 1 Elite hitmonlee, igualmente para o hitmonchan so que por Elite Hitmonchan. Go: Npc\Script crie 1 arquivo LUA chamado elitenpc e coloquei isso dentro: local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false local talkState = {} function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye sir!') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function sellPokemon(cid, name, price) local pokename = name local bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK) local itemsball = getItemsInContainerById(bp.uid, 2222) local itemsultra = getItemsInContainerById(bp.uid, 2220) for _, pok in pairs(itemsball) do if string.lower(getItemAttribute(pok, "poke"):sub(9, findLetter(getItemAttribute(pok, "poke"), "'")-1)) == pokename then if(doPlayerRemoveMoney(cid, 20000000)) then doRemoveItem(pok, 1) local health = 7800 -- Health do poke local maxhealth = 7800 -- Maximo de health do poke local description = "Contains a Elite Hitmonlee." local poke1 = "This is Elite Hitmonlee's pokeball. HP = ["..health.."/"..maxhealth.."]" item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", poke1) doItemSetAttribute(item, "nome", "Elite Hitmonlee") doItemSetAttribute(item, "description", description) doPlayerAddItemEx(cid, item, true) doTransformItem(item, 2222) selfSay('Thank You for letting me train him.') return true end end end for _, pok in pairs(itemsultra) do if string.lower(getItemAttribute(pok, "poke"):sub(9, findLetter(getItemAttribute(pok, "poke"), "'")-1)) == pokename then if(doPlayerRemoveMoney(cid, 20000000)) then doRemoveItem(pok, 1) local health = 7800 -- Health do poke local maxhealth = 7800 -- Maximo de health do poke local description = "Contains a Elite Hitmonlee." local poke1 = "This is Elite Hitmonlee's pokeball. HP = ["..health.."/"..maxhealth.."]" item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", poke1) doItemSetAttribute(item, "nome", "Elite Hitmonlee") doItemSetAttribute(item, "description", description) doPlayerAddItemEx(cid, item, true) doTransformItem(item, 2220) selfSay('Thank You for letting me train him.') return true end end end selfSay('Hey, you do not have that pokemon or the amount of money we agreed!') end function sellPokemonn(cid, name, price) local pokename = name local bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK) local itemsball = getItemsInContainerById(bp.uid, 2222) local itemsultra = getItemsInContainerById(bp.uid, 2220) for _, pok in pairs(itemsball) do if string.lower(getItemAttribute(pok, "poke"):sub(9, findLetter(getItemAttribute(pok, "poke"), "'")-1)) == pokename then if(doPlayerRemoveMoney(cid, 20000000)) then doRemoveItem(pok, 1) local health = 7800 -- Health do poke local maxhealth = 7800 -- Maximo de health do poke local description = "Contains a Elite Hitmonchan." local poke1 = "This is Elite Hitmonchan's pokeball. HP = ["..health.."/"..maxhealth.."]" item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", poke1) doItemSetAttribute(item, "nome", "Elite Hitmonchan") doItemSetAttribute(item, "description", description) doPlayerAddItemEx(cid, item, true) doTransformItem(item, 2222) selfSay('Thank You for letting me train him.') return true end end end for _, pok in pairs(itemsultra) do if string.lower(getItemAttribute(pok, "poke"):sub(9, findLetter(getItemAttribute(pok, "poke"), "'")-1)) == pokename then if(doPlayerRemoveMoney(cid, 20000000)) then doRemoveItem(pok, 1) local health = 7800 -- Health do poke local maxhealth = 7800 -- Maximo de health do poke local description = "Contains a Elite Hitmonchan." local poke1 = "This is Elite Hitmonchan's pokeball. HP = ["..health.."/"..maxhealth.."]" item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", poke1) doItemSetAttribute(item, "nome", "Elite Hitmonchan") doItemSetAttribute(item, "description", description) doPlayerAddItemEx(cid, item, true) doTransformItem(item, 2220) selfSay('Thank You for letting me train him.') return true end end end selfSay('Hey, you do not have that pokemon or the amount of money we agreed!') end function onCreatureSay(cid, type, msg) local msg = string.lower(msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if (msgcontains(msg, 'bye') and focus == cid) then selfSay('See you around then!') focus = 0 elseif (msgcontains(msg, 'hi') and (focus == 0) and (focus ~= cid) and (getDistanceToCreature(cid) <= 4)) then selfSay('Welcome! I train pokemons fighters, you have a fighter pokemon?.') focus = cid talkState[talkUser] = 1 talk_start = os.clock() elseif (msgcontains(msg, 'machamp') and talkState[talkUser] == 1 and focus == cid) then selfSay('It is impossible to defend against punches and chops distributed by his four arms. It has a great fighting spirit.') elseif (msgcontains(msg, 'thx') and talkState[talkUser] == 1 and focus == cid) then selfSay('Its nothing, tell me if you need something more.') talkState[talkUser] = 1 ---------------------------------------------------------------- elseif (msgcontains(msg, 'machoke') and talkState[talkUser] == 1 and focus == cid) then selfSay('It has a powerful body, uses a belt to power savings to regulate their movements.') elseif (msgcontains(msg, 'thx') and talkState[talkUser] == 1 and focus == cid) then selfSay('Its nothing, tell me if you need something more.') talkState[talkUser] = 1 ---------------------------------------------------------------- elseif (msgcontains(msg, 'machop') and talkState[talkUser] == 1 and focus == cid) then selfSay('A very good pokemon for intense workouts, has a great facility to master all forms of martial arts.') elseif (msgcontains(msg, 'thx') and talkState[talkUser] ~= 1 and focus == cid) then selfSay('Its nothing, tell me if you need something more.') talkState[talkUser] = 1 ---------------------------------------------------------------- elseif (msgcontains(msg, 'poliwrath') and talkState[talkUser] == 1 and focus == cid) then selfSay('Has developed muscles, the muscles used for quick attacks despite being in the water.') elseif (msgcontains(msg, 'thx') and talkState[talkUser] == 1 and focus == cid) then selfSay('Its nothing, tell me if you need something more.') talkState[talkUser] = 1 ---------------------------------------------------------------- elseif (msgcontains(msg, 'primeape') and talkState[talkUser] == 1 and focus == cid) then selfSay('An angry pokemon. gets even more furious when he lost a fight.') elseif (msgcontains(msg, 'thx') and talkState[talkUser] == 1 and focus == cid) then selfSay('Its nothing, tell me if you need something more.') talkState[talkUser] = 1 ---------------------------------------------------------------- elseif (msgcontains(msg, 'hitmonlee') and talkState[talkUser] == 1 and focus == cid) then selfSay('Interesting! Is a pokemon with legs fast and hard, has devastating kicks. Always wanted to train one of these, if you want I can train him for a sum of 200k. Accepted?') talkState[talkUser] = "hitmonlee" elseif (msgcontains(msg, 'yes') and talkState[talkUser] == "hitmonlee" and focus == cid) then sellPokemon(cid, "hitmonlee", 1) talkState[talkUser] = 1 ---------------------------------------------------------------- elseif (msgcontains(msg, 'hitmonchan') and talkState[talkUser] == 1 and focus == cid) then selfSay('Is a great boxer, a man who never gives up. I always wanted to train one of these. For an amount of 200k I can transform it into a great boxer. Accepted?') talkState[talkUser] = "hitmonchan" elseif (msgcontains(msg, 'yes') and talkState[talkUser] == "hitmonchan" and focus == cid) then sellPokemonn(cid, "hitmonchan", 1) talkState[talkUser] = 1 end end function onThink() if focus == 0 then selfTurn(1) else argx, argy, argz = selfGetPosition() dir = getDirectionTo({x=argx,y=argy,z=argz}, getThingPos(focus)) if dir == 7 then dir = 0 elseif dir == 6 then dir = 3 elseif dir == 5 then dir = 1 elseif dir == 4 then dir = 3 end selfTurn(dir) end if (os.clock() - talk_start) > 59 then if focus ~= 0 then selfSay('We have been talking for too much time!') focus = 0 end end if focus ~= 0 then a, b, c = selfGetPosition() if c ~= getThingPos(focus).z then focus = 0 end end if focus ~= 0 then if getDistanceToCreature(focus) > 4 then selfSay('Come back to sell me pokemons!') focus = 0 end end return true end Data/Npc crie 1 npc e adicione isso dentro: <?xml version="1.0" encoding="UTF-8"?> <npc name="Raviel" script="elitenpc.lua" walkinterval="350000" floorchange="0" speed="0"> <health now="150" max="150"/> <look type="313"/> <parameters> <parameter key="message_greet" value="Welcome! I train pokemons fighters, you have a fighter pokemon?"/> <parameter key="message_farewell" value="Bye."/> <parameter key="message_idletimeout" value="Bye."/> <parameter key="message_walkaway" value="Bye."/> </parameters> </npc> O npc ira perguntar se vc tem algum pokemon do tipo lutador. Se falar Hitmonlee ow Hitmonchan ele dará uma breve descrição deles , e fala que sempre teve vontade de treinar 1 desses. Ai eh só o player fala Yes com 1 desses 2 pokes na bag + 200k e pronto. Com os outros pokes , ele soh irar falar sobre eles Creditos 100% DeathAngels Rep++
-
Se quizer ajuda pra fazer a quest fala!
-
[Talkaction] Usar Só Se Tiver Certa Storage
tópico respondeu ao CoLoRaDo de Mulizeu em Lixeira Pública
Teste esse! function isWalkable(pos, creature, proj, pz)-- by Nord local config = { vip = "yes", priceForEachMessage = 0, storage = 88888 } if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function onSay(cid, words) if not getHouseByPlayerGUID(getPlayerGUID(cid)) then if (config.vip == "yes") and getPlayerStorageValue(cid, tonumber(config.storage)) - os.time() <= 0 then doPlayerSendCancel(cid,"Você não possui vip.") return TRUE end return doPlayerSendCancel(cid, "Voce nao tem casa.") end local pos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))) if getCreatureCondition(cid, CONDITION_INFIGHT) then return doPlayerSendCancel(cid, "Voce tem que estar sem battle.") end if not getTilePzInfo({x=pos.x-1, y=pos.y, z=pos.z}) and isWalkable({x=pos.x-1, y=pos.y, z=pos.z}) then pos = {x=pos.x-1, y=pos.y, z=pos.z} elseif not getTilePzInfo({x=pos.x+1, y=pos.y, z=pos.z}) and isWalkable({x=pos.x+1, y=pos.y, z=pos.z}) then pos = {x=pos.x+1, y=pos.y, z=pos.z} elseif not getTilePzInfo({x=pos.x, y=pos.y+1, z=pos.z}) and isWalkable({x=pos.x, y=pos.y+1, z=pos.z}) then pos = {x=pos.x, y=pos.y+1, z=pos.z} elseif not getTilePzInfo({x=pos.x, y=pos.y-1, z=pos.z}) and isWalkable({x=pos.x, y=pos.y-1, z=pos.z}) then pos = {x=pos.x, y=pos.y-1, z=pos.z} end doTeleportThing(cid, pos) end -
Olha amigo por que vc nao faz um bau de quest que de a sword! e na mensagem do bau vc coloca .."Voce ganhou a espada perdida" Se nao e como o nosso amigo Ablank disse...!!
-
[Ajudaaa] No Sistema De M1 A M12
tópico respondeu ao williansacho de Mulizeu em Actions e Talkactions
Bom tem esse modo Que o betinhowz666 Falou e tem esse aki tbm Que ajuda Na pasta creaturescript/scripts, crie um arquivo .lua com nome de notattack.lua, e adc esse script. function onCast(cid, target) if isMonster(target) or isPlayer(target) then return false end return true end no arkivo creaturesscript.xml adc á tag : <event type="cast" name="NotAttack" event="script" value="notattack.lua"/> agora é a parte + complicadinha... se vc usa go/back do mkalo vc tem ki adc isso no script de go/back nessa parte : registerCreatureEvent(pk, "DiePoke") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") vc muda para : registerCreatureEvent(pk, "DiePoke") registerCreatureEvent(pk, "NotAttack") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") é só ir adicionando : registerCreatureEvent(pk, "NotAttack") vc vai encontrar isso no arquivo tbem, de ride, surf, e fly, mude lá tbem. nao sei se e possivel fazer por esse aki no pokemon maluko mais teste..! Sobre por os attacks nos pokemon vc Baixa os move's Va na pasta data\talkactions\scripts e depois na pasta data\talkactions abra o arquivo talkactions.xml e coloque o seguinte : <talkaction words="m1" case-sensitive="no" event="script" value="move1.lua"/> <talkaction words="m2" case-sensitive="no" event="script" value="move2.lua"/> <talkaction words="m3" case-sensitive="no" event="script" value="move3.lua"/> <talkaction words="m4" case-sensitive="no" event="script" value="move4.lua"/> <talkaction words="m5" case-sensitive="no" event="script" value="move5.lua"/> <talkaction words="m6" case-sensitive="no" event="script" value="move6.lua"/> <talkaction words="m7" case-sensitive="no" event="script" value="move7.lua"/> <talkaction words="m8" case-sensitive="no" event="script" value="move8.lua"/> <talkaction words="m9" case-sensitive="no" event="script" value="move9.lua"/> <talkaction words="m10" case-sensitive="no" event="script" value="move10.lua"/> <talkaction words="m11" case-sensitive="no" event="script" value="move11.lua"/> <talkaction words="m12" case-sensitive="no" event="script" value="move12.lua"/> Portrait Sobre o portrait Primeiramente vá em movements/scripts e copie qualquer script substituia o nome dele por "portrait" apague todo o conteudo do mesmo, e adicione isso ao arquivo: local fotos = { ["bulbasaur"] = {fotopoke = 8423}, ["ivysaur"] = {fotopoke = 8424}, ["venusaur"] = {fotopoke = 8425}, ["charmander"] = {fotopoke = 8426}, ["charmeleon"] = {fotopoke = 8427}, ["charizard"] = {fotopoke = 8428}, ["squirtle"] = {fotopoke = 8429}, ["wartortle"] = {fotopoke = 8430}, ["blastoise"] = {fotopoke = 8431}, ["caterpie"] = {fotopoke = 8432}, ["metapod"] = {fotopoke = 8433}, ["butterfree"] = {fotopoke = 8434}, ["weedle"] = {fotopoke = 8435}, ["kakuna"] = {fotopoke = 8436}, ["beedrill"] = {fotopoke = 8437}, ["pidgey"] = {fotopoke = 8438}, ["pidgeotto"] = {fotopoke = 8439}, ["pidgeot"] = {fotopoke = 8440}, ["rattata"] = {fotopoke = 8441}, ["raticate"] = {fotopoke = 8442}, ["dpearow"] = {fotopoke = 8443}, ["fearow"] = {fotopoke = 8444}, ["ekans"] = {fotopoke = 8445}, ["arbok"] = {fotopoke = 8446}, ["pikachu"] = {fotopoke = 8447}, ["raichu"] = {fotopoke = 8448}, ["sandshrew"] = {fotopoke = 8449}, ["sandslash"] = {fotopoke = 8450}, ["nidoranf"] = {fotopoke = 8451}, ["nidorina"] = {fotopoke = 8452}, ["nidoqueen"] = {fotopoke = 8453}, ["nidoranm"] = {fotopoke = 8454}, ["nidorino"] = {fotopoke = 8455}, ["nidoking"] = {fotopoke = 8456}, ["clefairy"] = {fotopoke = 8457}, ["clefable"] = {fotopoke = 8458}, ["vulpix"] = {fotopoke = 8459}, ["ninetales"] = {fotopoke = 8460}, ["jigglypuff"] = {fotopoke = 8461}, ["wigglytuff"] = {fotopoke = 8462}, ["zubat"] = {fotopoke = 8463}, ["golbat"] = {fotopoke = 8464}, ["oddish"] = {fotopoke = 8465}, ["gloom"] = {fotopoke = 8466}, ["vileplume"] = {fotopoke = 8467}, ["paras"] = {fotopoke = 8468}, ["parasect"] = {fotopoke = 8469}, ["venonat"] = {fotopoke = 84702}, ["venomoth"] = {fotopoke = 8471}, ["diglett"] = {fotopoke = 8472}, ["dugtrio"] = {fotopoke = 8473}, ["meowth"] = {fotopoke = 8474}, ["persian"] = {fotopoke = 8475}, ["psyduck"] = {fotopoke = 8476}, ["golduck"] = {fotopoke = 8477}, ["mankey"] = {fotopoke = 8478}, ["primeape"] = {fotopoke = 8479}, ["growlithe"] = {fotopoke = 8480}, ["arcanine"] = {fotopoke = 8481}, ["poliwag"] = {fotopoke = 8482}, ["poliwhirl"] = {fotopoke = 8483}, ["poliwrath"] = {fotopoke = 8484}, ["abra"] = {fotopoke = 8485}, ["kadabra"] = {fotopoke = 8486}, ["alakazam"] = {fotopoke = 8487}, ["machop"] = {fotopoke = 8488}, ["machoke"] = {fotopoke = 8489}, ["machamp"] = {fotopoke = 8490}, ["bellsprout"] = {fotopoke = 8491}, ["weepinbell"] = {fotopoke = 8492}, ["victreebel"] = {fotopoke = 8493}, ["tentacool"] = {fotopoke = 8494}, ["tentacruel"] = {fotopoke = 8495}, ["geodude"] = {fotopoke = 8496}, ["graveler"] = {fotopoke = 8497}, ["golem"] = {fotopoke = 8498}, ["ponyta"] = {fotopoke = 8499}, ["rapidash"] = {fotopoke = 8500}, ["slowpoke"] = {fotopoke = 8501}, ["slowbro"] = {fotopoke = 8502}, ["magnemite"] = {fotopoke = 8503}, ["magneton"] = {fotopoke = 8504}, ["farfetch'd"] = {fotopoke = 8505}, ["doduo"] = {fotopoke = 8506}, ["dodrio"] = {fotopoke = 8507}, ["seel"] = {fotopoke = 8508}, ["dewgong"] = {fotopoke = 8509}, ["grimer"] = {fotopoke = 8510}, ["muk"] = {fotopoke = 8511}, ["shellder"] = {fotopoke = 8512}, ["cloyster"] = {fotopoke = 8513}, ["gastly"] = {fotopoke = 8514}, ["haunter"] = {fotopoke = 8515}, ["gengar"] = {fotopoke = 8516}, ["onix"] = {fotopoke = 8517}, ["drowzee"] = {fotopoke = 8518}, ["hypno"] = {fotopoke = 8519}, ["krabby"] = {fotopoke = 8520}, ["kingler"] = {fotopoke = 8521}, ["voltorb"] = {fotopoke = 8522}, ["electrode"] = {fotopoke = 8523}, ["exeggcute"] = {fotopoke = 8524}, ["exeggutor"] = {fotopoke = 8525}, ["cubone"] = {fotopoke = 8526}, ["marowak"] = {fotopoke = 8527}, ["hitmonlee"] = {fotopoke = 8528}, ["hitmonchan"] = {fotopoke = 8529}, ["lickitung"] = {fotopoke = 8530}, ["koffing"] = {fotopoke = 8531}, ["weezing"] = {fotopoke = 8532}, ["rhyhorn"] = {fotopoke = 8533}, ["rhydon"] = {fotopoke = 8534}, ["chansey"] = {fotopoke = 8535}, ["tangela"] = {fotopoke = 8536}, ["kangaskhan"] = {fotopoke = 8537}, ["horsea"] = {fotopoke = 8538}, ["seadra"] = {fotopoke = 8539}, ["goldeen"] = {fotopoke = 8540}, ["seaking"] = {fotopoke = 8541}, ["staryu"] = {fotopoke = 8542}, ["starmie"] = {fotopoke = 8543}, ["mr. mime"] = {fotopoke = 8544}, ["scyther"] = {fotopoke = 8545}, ["jynx"] = {fotopoke = 8546}, ["electabuzz"] = {fotopoke = 8547}, ["magmar"] = {fotopoke = 8548}, ["pinsir"] = {fotopoke = 8549}, ["tauros"] = {fotopoke = 8550}, ["magikarp"] = {fotopoke = 8551}, ["gyarados"] = {fotopoke = 8552}, ["lapras"] = {fotopoke = 8553}, ["ditto"] = {fotopoke = 8554}, ["eevee"] = {fotopoke = 8555}, ["vaporeon"] = {fotopoke = 8556}, ["jolteon"] = {fotopoke = 8557}, ["flareon"] = {fotopoke = 8558}, ["porygon"] = {fotopoke = 8559}, ["omanyte"] = {fotopoke = 8560}, ["omastar"] = {fotopoke = 8561}, ["kabuto"] = {fotopoke = 8562}, ["kabutops"] = {fotopoke = 8563}, ["aerodactyl"] = {fotopoke = 8564}, ["snorlax"] = {fotopoke = 8565}, ["articuno"] = {fotopoke = 8566}, ["zapdos"] = {fotopoke = 8567}, ["moltres"] = {fotopoke = 8568}, ["dratini"] = {fotopoke = 8569}, ["dragonair"] = {fotopoke = 8570}, ["dragonite"] = {fotopoke = 8571}, ["mewtwo"] = {fotopoke = 8572}, ["mew"] = {fotopoke = 8573}, ['shiny venusaur'] = {fotopoke = 8425}, ['shiny rattata'] = {fotopoke = 8441}, ['shiny tentacool'] = {fotopoke = 8721}, ['shiny tentacruel'] = {fotopoke = 8495}, ['shiny blastoise'] = {fotopoke = 8431}, ['spearow'] = {fotopoke = 8443} } local idballs = { [2532] = "Pokeball", [2653] = "Superball", [2652] = "Greatball", [2654] = "Ultraball", [2195] = "Masterball", [2531] = "Pokeball", [2557] = "Superball", [2524] = "Greatball", [2525] = "Ultraball", [2523] = "Masterball", } function setItemName(uid,name) return doItemSetAttribute(uid,'name',name) end --------------------------------------------------------- function onEquip (cid, item, slot) local nome = getItemName(item.uid) local balls = idballs[item.itemid] local poke_name = nome:match('(.-) '..balls) local image = getPlayerSlotItem(cid, 7) local semimage = 2649 for i,x in pairs(fotos) do if i == poke_name then doTransformItem(image.uid,x.fotopoke) setItemName(image.uid, "portfoli's") return true end end end ---------------------------------------------------------- function onDeEquip(cid, item, slot) local nome = getItemName(item.uid) local balls = idballs[item.itemid] local poke_name = nome:match('(.-) '..balls) local image = getPlayerSlotItem(cid, 7) local semimage = 2649 for i,x in pairs(fotos) do if i == poke_name then doTransformItem(image.uid,semimage) setItemName(image.uid, "portfoli's") return true end end end Logo depois vá em movements.xml e adicione a tag: <!--Portrait --> <movevent type="Equip" itemid="2532;2653;2652;2654;2195;2531;2557;2524;2525;2523" slot="feet" event="script" value="portrait.lua"/> <movevent type="DeEquip" itemid="2532;2653;2652;2654;2195;2531;2557;2524;2525;2523" slot="feet" event="script" value="portrait.lua"/> Adicionando mais Portifoli's de pokemons: Para adicionar mais pokemons, basta fazer o seguinte: Quero Adicionar um Paras... Copio o Spearow ou qualquer outro pokemon: ['spearow'] = {fotopoke = 8443}, Então, eu mudo o nome do pokemon e também a foto dele, ficando assim: ["paras"] = {fotopoke = 8468}, Repare que após todos eles há uma "," menos no ultimo... Caso for por o pokemon por ultimo ponha uma "," no de cima e não ponha "," no ultimo. Adicionando mais Pokeball's ao script: Basta encontrar os 2 ids da pokebola que você deseja colocar: A ativa e a desativada. Exemplo: [2532] = "Pokeball", - Ativa [2531] = "Pokeball", - Desativada Então faça o mesmo com a que você irá colocar Exemplo: [2653] = "Superball" - Ativa [2557] = "Superball", - Desativada E depois de encontrar os 2 ids vá até a tag e coloque os 2 ids lá ficando assim: <movevent type="Equip" itemid="2532;2653;2652;2654;2195;2531;2557;2524;2525;2523" slot="feet" event="script" value="portrait.lua"/> <movevent type="DeEquip" itemid="2532;2653;2652;2654;2195;2531;2557;2524;2525;2523" slot="feet" event="script" value="portrait.lua"/> se o pokemon maluco for que nem o PokemonFlash, antes de instalar vá no movements.xml e apague: <movevent type="DeEquip" itemid="2531;2532" slot="feet" event="script" value="skill1.lua"/> <movevent type="DeEquip" itemid="2653;2557" slot="feet" event="script" value="skill1.lua"/> <movevent type="DeEquip" itemid="2652;2524" slot="feet" event="script" value="skill1.lua"/> <movevent type="DeEquip" itemid="2195;2523" slot="feet" event="script" value="skill1.lua"/> Creditos ao systema de not attack Xotservx Se ajudei Rep++ -
[Ajudaaa] No Sistema De M1 A M12
tópico respondeu ao williansacho de Mulizeu em Actions e Talkactions
Amigo Explique melhor Sobre os attacks Vc quer por eles no m1, m2, m3, m4......ou no attack automatico dos monstros?? -
Amigo Que versao e Seu Sv...Assim eu pego e verifico melhor..!!!
-
Testa essa Vai data spells crie um arquivo.lua Renomei-o para Meteoro.lua --Spell By XxXxMulizeuXxXx local water = {490, 491, 492, 493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} local combat = createCombatObject() local combat2 = createCombatObject() local combat3 = createCombatObject() local combat4 = createCombatObject() local meteor = createCombatObject() setCombatParam(meteor, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(meteor, COMBAT_PARAM_EFFECT, 52) setCombatFormula(meteor, COMBAT_FORMULA_LEVELMAGIC, -4.6, -200, -4.2, -200) local meteore = createCombatObject() setCombatParam(meteore, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(meteore, COMBAT_PARAM_EFFECT, 41) setCombatFormula(meteore, COMBAT_FORMULA_LEVELMAGIC, -4.6, -200, -4.2, -200) local stun = createConditionObject(CONDITION_PARALYZE) setConditionParam(stun, CONDITION_PARAM_TICKS, 5000) setConditionFormula(stun, -0.8, 0, -0.9, 0) setCombatCondition(meteor, stun) local meteor_water = createCombatObject() setCombatParam(meteor_water, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(meteor_water, COMBAT_PARAM_EFFECT, CONST_ME_LOSEENERGY) setCombatFormula(meteor_water, COMBAT_FORMULA_LEVELMAGIC, -4.6, -200, -4.2, -200) combat_arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0}, {0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 1, 3, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0} } combat_arr2 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0}, {0, 0, 1, 0, 0, 3, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } combat_arr3 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 1, 3, 0, 1, 1, 0, 0}, {0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0}, {0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } combat_arr4 = { {0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } local combat_area1 = createCombatArea(combat_arr1) setCombatArea(combat, combat_area1) local combat_area2 = createCombatArea(combat_arr2) setCombatArea(combat2, combat_area2) local combat_area3 = createCombatArea(combat_arr3) setCombatArea(combat3, combat_area3) local combat_area4 = createCombatArea(combat_arr4) setCombatArea(combat4, combat_area4) local function meteorCast(p) doCombat(p.cid, p.combat, positionToVariant(p.pos)) end local function stunEffect(cid) doSendMagicEffect(getThingPos(cid), CONST_ME_STUN) end function onTargetTile(cid, pos) if (math.random(0, 1) == 1) then local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}) if (isInArray(water, ground.itemid) == TRUE) then local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 200, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 450, {cid = cid,pos = pos, combat = meteor}) addEvent(meteorCast, 190, {cid = cid,pos = pos, combat = meteore}) end end end function onTargetTile2(cid, pos) if (math.random(0, 1) == 1) then local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}) if (isInArray(water, ground.itemid) == TRUE) then local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 200, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 450, {cid = cid,pos = pos, combat = meteor}) addEvent(meteorCast, 690, {cid = cid,pos = pos, combat = meteore}) end end end function onTargetTile3(cid, pos) if (math.random(0, 1) == 1) then local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}) if (isInArray(water, ground.itemid) == TRUE) then local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 200, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 450, {cid = cid,pos = pos, combat = meteor}) addEvent(meteorCast, 690, {cid = cid,pos = pos, combat = meteore}) end end end function onTargetTile4(cid, pos) if (math.random(0, 1) == 1) then local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}) if (isInArray(water, ground.itemid) == TRUE) then local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 200, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 200, {cid = cid,pos = pos, combat = meteor}) addEvent(meteorCast, 690, {cid = cid,pos = pos, combat = meteore}) end end end setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") setCombatCallback(combat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2") setCombatCallback(combat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3") setCombatCallback(combat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4") function onCastSpell(cid, var) doCreatureSay(cid, "METEORO", TALKTYPE_MONSTER) local msg = getCreatureMaster(cid) if isPlayer(msg) == true then local mon = getCreatureName(cid) doCreatureSay(msg, ""..mon..", use Meteoro!", TALKTYPE_SAY) end addEvent(doCombat, 300, cid, combat, var) addEvent(doCombat, 600, cid, combat2, var) addEvent(doCombat, 900, cid, combat3, var) addEvent(doCombat, 1200, cid, combat4, var) return doCombat(cid, combat, var) end Vai em spells.xml Coloque essa Tag <instant name="Meteoro" words="Meteoro" lvl="300" mana="255" direction="1" exhaustion="1000" needlearn="0" event="script" value="Meteoro.lua"> </instant>
-
Que serve vc usa??
-
[Talkaction] Usar Só Se Tiver Certa Storage
tópico respondeu ao CoLoRaDo de Mulizeu em Lixeira Pública
Affew Eu esqueci de por storage!...Vo rever e posto se eu conseguir! -
Que bom que eu pude ajudar vc =]! Qdo precisa de novo so postar em 1 topico!
-
Vamo a 1 exemplo seu Script ta salvo como blabla.lua <event type="blabla" name="Morto" event="script" value="blabla.lua"/> Test mudando no exemplo que acabei de dar se nao der avise!!!
-
Quando vc colocou no cresturescript vc pois a Tag?? Exemplo: <event type="Nome" name="Tele" event="script" value="Nome.lua"/>
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.