Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

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

image.thumb.png.453f1d7c15ff4fa63f976fb198ef8c52.png

 

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 por Kazuya9629 (veja o histórico de edições)

 

 

5a510dabc5375_20228663_336082076822153_8453189641140183581_n-Cpia-Cpia.jpg.ae93894455bf828fc6901b29d7395cd9.jpg

https://www.facebook.com/groups/659018184245665/

5a510e4f9a582_20228663_336082076822153_8453189641140183581_n-Cpia-Cpia.jpg.fa86c37be79982f1cc8ff619015ddd1b.jpg

https://www.facebook.com/profile.php?id=133706320308745

 

Postado
  • 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

 

 

 

5a510dabc5375_20228663_336082076822153_8453189641140183581_n-Cpia-Cpia.jpg.ae93894455bf828fc6901b29d7395cd9.jpg

https://www.facebook.com/groups/659018184245665/

5a510e4f9a582_20228663_336082076822153_8453189641140183581_n-Cpia-Cpia.jpg.fa86c37be79982f1cc8ff619015ddd1b.jpg

https://www.facebook.com/profile.php?id=133706320308745

 

Postado
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 !

Kirito_in_the_snow.gif

 

 

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo