Jump to content
  • 0

Abaixando chance de pokemon virar mega DXP


Oween
 Share

Question

8 answers to this question

Recommended Posts

  • 0

pokemon moves procure por

if megasConf[megaName] and not isMega(cid) then

e substitua a linha embaixo de isso pra

if megasConf[megaName].wildChance >= chance then    

 

logo embaixo do

function checkChenceToMega(cid)

mude pra

    local name, chance = doCorrectString(getCreatureName(cid)), math.random(0.1, xxx.9)

 

enquanto maior for o xxx mais dificil fica pra o pokemon se tornar mega

Link to comment
Share on other sites

  • 0
5 minutos atrás, Josegvb disse:

pokemon moves procure por

if megasConf[megaName] and not isMega(cid) then

e substitua a linha embaixo de isso pra

if megasConf[megaName].wildChance >= chance then    

 

logo embaixo do

function checkChenceToMega(cid)

mude pra

    local name, chance = doCorrectString(getCreatureName(cid)), math.random(0.1, xxx.9)

 

enquanto maior for o xxx mais dificil fica pra o pokemon se tornar mega

vou testar aqui tipo 100.9 ?

 

Link to comment
Share on other sites

  • 0

hmm kkk

então você não quer que vira mesmo kkkk

 

function checkChenceToMega(cid)	local name, chance = doCorrectString(getCreatureName(cid)), math.random(0.1, 500.5)	local megaID = ""		  if name == "Charizard" then			 megaID = math.random(1, 100) < 51 and "Y" or "X"		  end	local megaName = "Mega " .. name .. (megaID ~= "" and " " .. megaID or "")		if megasConf[megaName] and not isMega(cid) then		   if megasConf[megaName].wildChance >= chance then			      setPlayerStorageValue(cid, storages.isMegaID, megaID)		      doTransformMega(cid)			   end		endend

seria nessa parte ? melhorou Obrigado!

[Error - CreatureScript Interface] 
[24/09/2016 00:48:21] In a timer event called from: 
[24/09/2016 00:48:21] data/creaturescripts/scripts/player/statsChange.lua:onStatsChange
[24/09/2016 00:48:21] Description: 
[24/09/2016 00:48:21] data/lib/pokemon moves.lua:144: attempt to index local 'table' (a nil value)
[24/09/2016 00:48:21] stack traceback:
[24/09/2016 00:48:21]     data/lib/pokemon moves.lua:144: in function <data/lib/pokemon moves.lua:56>
 

Edited by Oween
Link to comment
Share on other sites

 Share

×
×
  • Create New...