Solutions
-
Featzen's post in (Resolvido)Pokeball com boost was marked as the answerArquivo errado. É no "data/lib/catch system.lua".
Em baixo de:
doItemSetAttribute(item, "poke", poke) Adiciona:
if typeee == "dark" then doItemSetAttribute(item, 'boost', 20) end
-
Featzen's post in (Resolvido)[RESOLVIDO] Present com % de chances was marked as the answerlocal items = { --[numeração] = {id = ID DO ITEM, count = QUANTIDADE DO ITEM, c = CHANCE} [1]={id=5892, count=1, c=10}, -- item 1 [2]={id=2139, count=1, c=20}, -- item 2 [3]={id=10503, count=1, c=30}, -- item 3 [4]={id=2141, count=1, c=40}, -- item 4 [5]={id=12596, count=1, c=50}, -- item 5 [6]={id=12469, count=1, c=60}, -- item 6 } function getRandomItem(t) local i = math.random(1, #t) i = t[i] if math.random(1, 100) <= i.c then return i end return getRandomItem(t) end function onUse(cid, item, fromPosition, itemEx, toPosition) local i = getRandomItem(items) doPlayerAddItem(cid, i.id, i.count) doSendAnimatedText(getPlayerPosition(cid), "Box!", TEXTCOLOR_GREEN) doPlayerSendTextMessage(cid, 27, "Você abriu uma Box e Ganhou "..i.count.."x "..getItemNameById(i.id)..(i.count > 1 and "s" or "")..".") doRemoveItem(item.uid, 1) return true end
-
Featzen's post in (Resolvido)Minimo de Players Online em Area was marked as the answerEntão o Cheking.lua tem que ser esse:
-- == Blood Castle Event por Killua == -- torneio2 = { waitArea = {fromx = 987, fromy = 993, fromz = 7, tox = 997, toy = 1003, toz= 7}, } bloodconfig = { Templo = {x = 1096, y = 1009, z = 7}, minPlayers = 3, -- Número mínimo de players que devem entrar para que o evento aconteça } function getPlayersInBlood() local count = 0 local inArea = getPlayersInArea(torneio2.waitArea) for x=1, #inArea do local cid = inArea[x] if getPlayerStorageValue(cid, 132132) == 1 then ---- Checagem Jogador com storage count = count + 1 end end return count end function checkBlood() if getPlayersInBlood() >= bloodconfig.minPlayers then ------ Torneio Aceito se Tiver 3 jogadores ou + doBroadcastMessage("[Torneio] Torneio Aceito") else local pina = getPlayersInArea(torneio2.waitArea) for _, pid in ipairs(pina) do ------ Torneio Cancelado Caso tenha Menos que [3] Jogadores setPlayerStorageValue(pid, 132132, 0) doBroadcastMessage("[Torneio-Cancelado] O Torneio Foi Cancelado Pois Nao Obteve o Numero Minino de Jogadores Para o Torneio!.") doTeleportThing(pid, bloodconfig.Templo ) end end end -
Featzen's post in (Resolvido)Ajuda em fazer um script was marked as the answerUse o
getCreatureSummons(cid)[1] EX:
if getCreatureName(getCreatureSummons(cid)[1]) == "Scorpion" then --doit end Onde cid é o player e 1 o número do summon em ordem de invocação.
-
Featzen's post in (Resolvido)Dúvida e m função was marked as the answerUse o addEvent, que cria um delay. Nesse caso ficaria:
addEvent(doRemoveCreature, 10000, cid) Onde 10000(milisegundos) é 10 segundos.
-
Featzen's post in (Resolvido)Duvida em quest was marked as the answerUse esse:
local btype = "normal" local pokemon = "Yveltal" local storage = 17768 function onUse(cid, item, frompos, item2, topos) if pokemon == "" then return true end if getPlayerStorageValue(cid, storage) <= 0 then addPokeToPlayer(cid, pokemon, 0, nil, btype) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce pegou seu "..pokemon.."!!") doSendMagicEffect(getThingPos(cid), 29) doSendMagicEffect(getThingPos(cid), 27) doSendMagicEffect(getThingPos(cid), 29) doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, storage, 1) else doPlayerSendCancel(cid, "Você já pegou seu Pokémon") end return TRUE end -
Featzen's post in (Resolvido)Level Dos Pokemons Selvagens was marked as the answerJa mandei la.
ps: usa o
[spoiler][/spoiler] -
Featzen's post in (Resolvido)Preciso De Algum Scripter was marked as the answerAh, você tem que adicionar as tabelas de exp no level table, ta só até 151, bota até onde quer.
e usa esse level system:
PS: Dentro dele, procura por levelmax, em um lugar pra editar.
ex: levelmax = 150
onde tá 150, bota o limite, sendo que tu tem que ter adicionado no leveltable.
-
Featzen's post in (Resolvido)[Ajuda]Escada teleport was marked as the answerNo actions.xml adiciona isso: <action actionid="17179" event="script" value="telestair.lua"/> E cria um arquivo.lua com nome de telestair.lua e bota isso: local posto = {x=1, y=2, z=3} -- Para onde o player vai function onUse(cid, item, frompos, item2, topos) doTeleportThing(cid, posto) end Depois, no RME bota o actionid 17179 na escada.