Postado Maio 1, 2020 5 anos Boa tarde alguem pode me ajuda com isso clico no Gaomon projetor recebo notificacao que ganhei o digimon mais nao aparece nem o digivice observaçao eu uso commando /cb Gaomon[0/5] ele funciona normalmente Citar local btype = "normal" local pokemon = "Gaomon[0/5]" local storage = 72785 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) setPlayerStorageValue(cid, storage, 1) else doPlayerSendCancel(cid, "Você já pegou seu Pokémon") end return TRUE end Editado Maio 1, 2020 5 anos por Kazuya9629 (veja o histórico de edições) https://www.facebook.com/groups/659018184245665/ https://www.facebook.com/profile.php?id=133706320308745
Postado Maio 1, 2020 5 anos Autor 2 horas atrás, wesquel disse: Envia ao talkactions do '/cb'. function onSay(cid, words, param) local typess = { [1] = "normal", [2] = "great", [3] = "super", [4] = "ultra" } if param == "" then doPlayerSendCancel(cid, 'Command needs parameters, function structure: "/cb [Pokemon Name], [boost], [Gender]".') return 0 end local t = string.explode(param, ",") local name = "" local gender = 0 local btype = typess[math.random(1, 4)] --"normal" local typeee = typess[math.random(1, 4)] if t[1] == "shiny mr" then createBall(cid, "Shiny Mr. Mime", 0) return true end if t[1] then local n = string.explode(t[1], " ") local str = string.sub(n[1], 1, 1) local sta = string.sub(n[1], 2, string.len(n[1])) name = ""..string.upper(str)..""..string.lower(sta).."" if n[2] then str = string.sub(n[2], 1, 1) sta = string.sub(n[2], 2, string.len(n[2])) name = name.." "..string.upper(str)..""..string.lower(sta).."" end if not pokes[name] then doPlayerSendCancel(cid, "Sorry, a pokemon with the name "..name.." doesn't exists.") return true end print(""..name.." ball has been created by "..getPlayerName(cid)..".") end createBall(cid, name, t[2]) return 1 end function createBall(cid, name, boost) local mypoke = pokes[name] local happy = 255 local ball = 11826 if name == "Shiny Ditto" then ball = 11743 end local item = doCreateItemEx(ball) doItemSetAttribute(item, "ball", "poke") doSetAttributesBallsByPokeName(cid, item, name) if boost and tonumber(boost) > 0 and tonumber(boost) <= 50 then doItemSetAttribute(item, "boost", tonumber(boost)) end doItemSetAttribute(item, "happy", happy) if name == "Shiny Hitmonchan" or name == "Hitmonchan" then doItemSetAttribute(item, "hands", 0) end doItemSetAttribute(item, "description", "Contains a "..name..".") doItemSetAttribute(item, "addon", 0) doItemSetAttribute(item, "fakedesc", "Contains a "..name..".") local x = pokeballs[name:lower()] or pokeballs[doCorrectString(name)] doPlayerAddItemEx(cid, item, true) end https://www.facebook.com/groups/659018184245665/ https://www.facebook.com/profile.php?id=133706320308745
Postado Maio 2, 2020 5 anos local btype = "normal" local pokemon = "Gaomon[0/5]" local storage = 72785 function onUse(cid, item, frompos, item2, topos) if pokemon == "" then return true end if getPlayerStorageValue(cid, storage) <= 0 then createBall(cid, pokemon, false) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce pegou seu "..pokemon.."!!") doSendMagicEffect(getThingPos(cid), 29) doSendMagicEffect(getThingPos(cid), 27) doSendMagicEffect(getThingPos(cid), 29) setPlayerStorageValue(cid, storage, 1) else doPlayerSendCancel(cid, "Você já pegou seu Pokémon") end return TRUE end Tenta Esse !
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.