SM
action

Shiny Stone - By SmiX

Por SmiX, 30 de dez. de 2012 em Actions e Talkactions

script
20
2.5k
SlicerS
01 de janeiro de 2013 às 01:09

faltou usar o adjustStatus...

josegremistaJ
01 de janeiro de 2013 às 02:59

@slicer que Adjusstarus é esse teria como vc colocar na scripter?

num sei onde eu coloco isso que vc falou agora

SmiXS
01 de janeiro de 2013 às 03:14

Foi mal eu esqueci de algumas partes:

local evo = {
["Snorlax"] = "Shiny Snorlax",
["Gengar"] = "Shiny Gengar",
["Pikachu"] = "Raichu",
["Paras"] = "Shiny Paras",
}
local balls = {
[11826] = {newBall = 11737},
[11832] = {newBall = 11740},
[11835] = {newBall = 11743},
[11829] = {newBall = 11746},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then
local monster = getCreatureName(itemEx.uid)
if evo[monster] then
doPlayerSendTextMessage(cid, 27, "Congratulations! Your "..getPokeName(itemEx.uid).." evolved into a "..evo[monster].."!")
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doSendMagicEffect(getThingPos(itemEx.uid), 18)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid, 1)
doSummonMonster(cid,evo[monster])
local pokeball = getPlayerSlotItem(cid, 8)
doItemSetAttribute(pokeball.uid, "poke", evo[monster])
doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster]].level)
doItemSetAttribute(ball, "hp", 1)
doItemSetAttribute(ball, "happy", 110)
local pk = getCreatureSummons(cid)[1]
local getShinyPokeballs = balls[getPlayerSlotItem(cid, 8).itemid]
doTransformItem(getPlayerSlotItem(cid, 8).uid, getShinyPokeballs.newBall)
adjustStatus(pk, pokeball.uid, true, false, true)
return TRUE
end
end
return FALSE
end

Editado Janeiro 1 por SmiX

josegremistaJ
01 de janeiro de 2013 às 03:53

@Smix Agora sim está pegando normal Veja.

 

02:51 You see your raichu.

Hit points: 10248/10248.

 

Agora quando eu transformei ele em shiny

02:51 You see your shiny raichu.

Hit points: 11272/11272.

He is mad.

 

Hehe quando eu tiver rep+ vou dar mais rep+ em vc ..rsrs

4 semanas depois...
jvdazicaJ
27 de janeiro de 2013 às 15:24

Legal Smix REP+