Hébergeur de fichiers indépendant

Emer Pomeg Glitch.lua

À propos

Type de fichier
Fichier LUA de 21 Ko (text/plain)
Confidentialité
Fichier public, envoyé le 2 mai 2015 à 23:13, depuis l'adresse IP 46.193.x.x (France)
Sécurité
Ne contient aucun Virus ou Malware connus - Dernière vérification: hier
Statistiques
La présente page de téléchargement a été vue 793 fois depuis l'envoi du fichier
Page de téléchargement

Aperçu du fichier


 local attaquename={
  "------","Ecras'Face","Poing Karate","Torgnoles","Poing Comete","Ultimapoing","Jackpot","Poing de feu","Poinglace","Poing-eclair","Griffe","Force Poigne","Guillotine","Coupe-Vent","Danse-Lames","Coupe","Tornade","Cru-Aile","Cyclone","Vol","Etreinte","Souplesse","Fouet Lianes","Ecrasement","Double Pied","Ultimawashi","Pied Saute","Mawashi Geri","Jet de Sable","Coup de Boule","Coup d Korne","Furie","Empal Korne","Charge","Plaquage","Ligotage","Belier","Mania","Damocles","Mimi-Queue","Dard Venin","Double Dard","Dard Nuee","Groz Yeux","Morsure","Rugissement","Hurlement","Berceuse","Ultrason","Sonicboom","Entrave","Acide","Flammeche","Lance-Flammes","Brume","Pistolet a O","Hydrocanon","Surf","Laser Glace","Blizzard","Psyko","Bulles d'O","Onde Boreale","Ultralaser","Picpic","Bec vrille","Sacrifice","Balayage","Riposte","Frappe-Atlas","Force","Vol-vie","Mega-sangsue","Vampigraine","Croissance","Tranch herbe","Lance soleil","Poudre toxik","Para-spore","Poudre dodo","Danse fleur","Secretion","Draco-rage","Danseflamme","Eclair","Tonnerre","Cage-Eclair","Fatal-Foudre","Jet-Pierres","Seisme","Abime","Tunnel","Toxik","Choc mental","Psyko","Hypnose","Yoga","Hate","Vive Attaque","Frenesie","Teleport","Tenebres","Copie","Grincement","Reflet","Soin","Armure","Lilliput","Brouillard","Onde folie","Repli","Boul Armure","Bouclier","Mur lumiere","Buee noire","Protection","Puissance","Patience","Metronome","Mimique","Destruction","Bomb Oeuf","Lechouille","Puredpois","Detritus","Massd Os","Deflagration","Cascade","Claquoir","Meteores","Coup d krane","Picanon","Constriction","Amnesie","Telekinesie","E-coque","Pied voltige","Intimidation","Devoreve","Gaz toxik","Pilonnage","Vampirisme","Grobisou","Pique","Morphing","Ecume","Uppercut","Spore","Flash","Vague psy","Trempette","Acidarmure","Pince-masse","Explosion","Combo Griffe","Osmerang","Repos","Eboulement","Croc de mort","Affutage","Adaptation","Triplattaque","Croc Fatal","Tranche","Clonage","Lutte","Gribouille","Triple Pied","Larcin","Toile","Lire-Esprit","Cauchemar","Roue de feu","Ronflement","Malediction","Fleau","Conversion 2","Aeroblast","Spore coton","Contre","Depit","Poudreuse","Abri","Mach Punch","Grimace","Feinte","Doux baiser","Cognobidon","Bomb Beurk","Coud'boue","Octazooka","Picots","Elecanon","Clairvoyance","Prvt Destin","Requiem","Vent Glace","Detection","Charge-os","Verrouillage","Colère","Tempetesable","Giga-sangsue","Tenacite","Charme","Roulade","Faux-chage","Vantardise","Lait a boire","Etincelle","Taillade","Aile d'acier","Regard Noir","Attraction","Blabla dodo","Glas de soin","Retour","Cadeau","Frustration","Rune protect","Balance","Feu sacre","Ampleur","Dynamopoing","Megacorne","Dracosouffle","Relais","Encore","Poursuite","Tour Rapide","Doux Parfum","Queue de Fer","Griffe Acier","Corps Perdu","Aurore","Synthese","Rayon Lune","Puis. Cachee","Coup-croix","Ouragan","Danse pluie","Zénith","Machouille","Voile Miroir","Boost","Vit. Extreme","Pouv. Antique","Ball Ombre","Prescience","Eclate-roc","Siphon","Baston","Bluff","Brouhaha","Stockage","Relache","Avale","Canicule","Grele","Tourment","Flatterie","Feu Follet","Souvenir","Facade","Mitra-poing","Stimulant","Par Ici","Force nature","Chargeur","Provoc","Coup d'main","Tourmagik","Imitation","Voeu","Assistance","Racines","Surpuissance","Reflet magik","Recyclage","Vendetta","Casse-brique","Baillement","Sabotage","Effort","Eruption","Echange","Possessif","Regeneration","Rancune","Saisie","Force cachee","Plongée","Cogne","Camouflage","Lumiqueue","Lumi-eclat","Ball'brume","Danse plume","Danse folle","Pied bruleur","Lance-boue","Balle Glace","Poing dard","Paresse","Megaphone","Crochetvenin","Eclategriffe","Rafale feu","Hydroblast","Poing Meteor","Etonnement","Ball metéo","Aromatherapie","Croco Larme","Coupe-vent","Surchauffe","Flair","Tomberoche","Vent Argente","Srido-son","Siffl herbe","Chatouille","Force Cosmik","Gicledo","Rayon Signal","Poing Ombre","Extrasenseur","Stratopercut","Tourbi-sable","Glaciation","Ocroupi","Balle Graine","Aeropique","Stalactite","Mur de fer","Barrage","Grondement","Dracogriffe","Vege-attak","Gonflette","Rebond","Tir de Boue","Queue Poison","Implore","Electacle","Feuillmagik","Tourniquet","Plenitude","Lame-Feuille","Danse Draco","Boule Roc","Onde de Choc","Vibraqua","Carnareket","Psycho Boost"}
 local naturename={
 "Hardi","Solo","Brave","Rigide","Mauvais",
 "Assure","Docile","Relax","Malin","Lache",
 "Timide","Presse","Serieux","Jovial","Naif",
 "Modeste","Doux","Discret","Pudique","Foufou",
 "Calme","Gentil","Malpoli","Prudent","Bizarre"}
local typeorder={
 "Combat","Vol","Poison","Sol",
 "Roche","Insect","Spectr","Acier",
 "Feu","Eau","Plante","Elec",
 "Psy","Glace","Dragon","Tenebr"}
local zoneorder={"CAED","CADE","CEAD","CEDA","CDAE","CDEA","ACED","ACDE","AECD","AEDC","ADCE","ADEC","ECAD","ECDA","EACD","EADC","EDCA","EDAC","DCAE","DCEA","DACE","DAEC","DECA","DEAC"}
local zoneorder2={"CAED","CADE","CEAD","CEDA","CDAE","CDEA","ACED","ACDE","AECD","AEDC","ADCE","ADEC","ECAD","ECDA","EACD","EADC","EDCA","EDAC","DCAE","DCEA","DACE","DAEC","DECA","DEAC"}

local start
local pid
local trainerid
local magicword
local growthoffset
local miscoffset
local i

local rngframe
local seed
local tid
local sid
local lpid
local hpid
local shiny

local pidanterieur=0
local compteursafa=memory.readwordunsigned(0x02026766)
local combatactif=0
local touchanterieur=0
local equipeactif=0
local modeinfoattaque=0


local touchanterieur2=0
local modeequipe=0
local moderesume=0
local modesauvage=0


vba.print("Mode Equipe : R+Gauche")
vba.print("-Details du Pokemon dont on regarde le Resume : L")
vba.print("-Attaques du Pokemon de l'Equipe en combat : L+R")
vba.print("Mode Deplacer : R+Haut")
vba.print("-Details Objet du Pokemon Deplace : L")
vba.print("Mode Sauvage : R+Droite")
vba.print("-Attaques du Pokemon Sauvage en combat : L+R")


while true do

 touches=memory.readwordunsigned(0x04000130)
 seed=memory.readwordunsigned(0x03005D80)
 rngframe = memory.readdwordunsigned(0x020249C0)
	

 
 if touchanterieur2 == touches then
 
  elseif touches == 751 then
	if modesauvage == 0 then
	modesauvage=1
	modeequipe=0
	moderesume=0
	modeinfoattaque=0
    else
	modesauvage=0
	end
	
   elseif touches == 735 then
	if modeequipe == 0 then
	modeequipe=1
	modesauvage=0
	moderesume=0
	modeinfoattaque=0
	else
	modeequipe=0
	end
	
   elseif touches == 703 then
	if moderesume == 0 then
	modeequipe=0
	modesauvage=0
	moderesume=1
	modeinfoattaque=0
	else
	moderesume=0
	end
	
   elseif touches == 555 then
	if modeinfoattaque == 0 then
	modeequipe=0
	modesauvage=0
	moderesume=0
	modeinfoattaque=1
	else
	modeinfoattaquee=0
	end	

 end
 touchanterieur2=touches
 
 
 
 if modesauvage == 1 then
 
 start=0x02024744
 
 pid=memory.readdwordunsigned(start)
    trainerid=memory.readdwordunsigned(start + 4)
    magicword=bit.bxor(pid, trainerid)
	sid = math.floor(trainerid / 65536)
	tid = trainerid % 0x10000
	hpid = math.floor(pid / 65536)
	lpid = pid % 0x10000
	shiny = bit.bxor(bit.bxor(sid,tid),bit.bxor(lpid,hpid))
  xorpid=pid % 0x80000000 - pid % 0x40000000
  i=pid%24
 
 if i<=5 then
  growthoffset=0
 elseif i%6<=1 then
  growthoffset=12
 elseif i%2==0 then
  growthoffset=24
 else
  growthoffset=36
 end

 if i>=18 then
  miscoffset=0
 elseif i%6>=4 then
  miscoffset=12
 elseif i%2==1 then
  miscoffset=24
 else
  miscoffset=36
 end
 
 ivs=bit.bxor(memory.readdwordunsigned(start+32+miscoffset+4),magicword) 
 hpiv=bit.band(ivs,0x1F)
 atkiv=bit.band(ivs,0x1F*0x20)/0x20
 defiv=bit.band(ivs,0x1F*0x400)/0x400
 spdiv=bit.band(ivs,0x1F*0x8000)/0x8000
 spatkiv=bit.band(ivs,0x1F*0x100000)/0x100000
 spdefiv=bit.band(ivs,0x1F*0x2000000)/0x2000000
 totaliv=hpiv+atkiv+defiv+spatkiv+spdefiv+spdiv
  
 nature=pid%25
 
 hidpowtype=math.floor(((hpiv%2 + 2*(atkiv%2) + 4*(defiv%2) + 8*(spdiv%2) + 16*(spatkiv%2) + 32*(spdefiv%2))*15)/63)
 hidpowbase=math.floor(((bit.band(hpiv,2)/2 + bit.band(atkiv,2) + 2*bit.band(defiv,2) + 4*bit.band(spdiv,2) + 8*bit.band(spatkiv,2) + 16*bit.band(spdefiv,2))*40)/63 + 30)
 
  if pid < 1 then
 gui.text(1,8,"Pas de Pokemon")
 else
  if shiny < 8 then
  gui.text(1,8,"POKEMON SHINY !!!!!")
  else
  gui.text(1,8,"Non Shiny")
  end 
 end
 
 if xorpid == 0x40000000 then
  if i < 16 then
  i2=i-16+24
  else
  i2=i-16
  end
 gui.text(199,8,""..zoneorder[i+1].."->"..zoneorder2[i2+1]) 
 else
  if i > 7 then
  i2=i+16-24
  else
  i2=i+16
  end 
 gui.text(199,8,""..zoneorder[i+1].."->"..zoneorder2[i2+1]) 
 end
 
 gui.text(1,0,"IVs: "..string.format("%02d",hpiv).."/"..string.format("%02d",atkiv).."/"..string.format("%02d",defiv).."/"..string.format("%02d",spatkiv).."/"..string.format("%02d",spdefiv).."/"..string.format("%02d",spdiv).."//"..string.format("%03d",totaliv).." "..naturename[nature+1])
 gui.text(145,0,"PID: "..string.format("%08X", pid))
 gui.text(113,8,"PC "..typeorder[hidpowtype+1].." "..hidpowbase)
 gui.text(199,0,"Mod 24: "..string.format("%02d", i))
 gui.text(203,145,"ID: "..string.format("%05d",tid))
 gui.text(199,153,"SID: "..string.format("%05d",sid))
 gui.text(1,153,"Pokemon Sauvage Emeraude FR")
 
 
 
 
  if touchanterieur == touches then
 elseif touches == 255 then
	if combatactif == 0 then
	combatactif=1
	else
	combatactif=0
	end
 end
 touchanterieur=touches
 
 
 if combatactif == 1 then

 pp_1 = memory.readbyteunsigned(0x02024100)
 pp_2 = memory.readbyteunsigned(0x02024101)
 pp_3 = memory.readbyteunsigned(0x02024102)
 pp_4 = memory.readbyteunsigned(0x02024103)
 
 id_attaque_1 = memory.readwordunsigned(0x020240E8)
 id_attaque_2 = memory.readwordunsigned(0x020240EA)
 id_attaque_3 = memory.readwordunsigned(0x020240EC)
 id_attaque_4 = memory.readwordunsigned(0x020240EE)

 gui.text(2,45,"Attaque / PPs")
 if id_attaque_1 > 354 then
 gui.text(2,53,"0x"..string.format("%04X",id_attaque_1).." : "..string.format("%03d",pp_1))
 else
 gui.text(1,53,""..attaquename[id_attaque_1+1].." : "..string.format("%03d",pp_1))
 end
 
  if id_attaque_2 > 354 then
 gui.text(2,61,"0x"..string.format("%04X",id_attaque_2).." : "..string.format("%03d",pp_2))
 else
 gui.text(2,61,""..attaquename[id_attaque_2+1].." : "..string.format("%03d",pp_2))
 end
 
  if id_attaque_3 > 354 then
 gui.text(2,69,"0x"..string.format("%04X",id_attaque_3).." : "..string.format("%03d",pp_3))
 else
 gui.text(2,69,""..attaquename[id_attaque_3+1].." : "..string.format("%03d",pp_3))
 end
 
  if id_attaque_4 > 354 then
 gui.text(2,77,"0x"..string.format("%04X",id_attaque_4).." : "..string.format("%03d",pp_4))
 else
 gui.text(2,77,""..attaquename[id_attaque_4+1].." : "..string.format("%03d",pp_4))
 end
 
 
 else
 end
 
 else
 end
  
 
 
 if modeequipe == 1 then
 
  testid = memory.readdwordunsigned(0x0200008C) % 0x10000
  testid2 = memory.readdwordunsigned(0x0200001C)
  testid3 = memory.readdwordunsigned(0x02000030)
  if testid < 1 then
  start=0x020032A8
  elseif testid2 == 0 and testid3 == 0 then
  start=0x0200E808
  else
  start=0x0200001C
  end
 gui.text(1,153,"Pokemon Equipe Emeraude FR")
 
 elseif moderesume == 1 then
 testid4 = memory.readdwordunsigned(0x02005350)
  if testid4 < 1 then
  start = 0x020020B4
  else
  start=0x02005340
  end
 gui.text(1,153,"Pokemon Deplace Emeraude FR")
 end
 
 if modeequipe == 1 or moderesume == 1 then
 
 pid=memory.readdwordunsigned(start)
    trainerid=memory.readdwordunsigned(start + 4)
    magicword=bit.bxor(pid, trainerid)
	sid = math.floor(trainerid / 65536)
	tid = trainerid % 0x10000
	hpid = math.floor(pid / 65536)
	lpid = pid % 0x10000
	shiny = bit.bxor(bit.bxor(sid,tid),bit.bxor(lpid,hpid))
  xorpid=pid % 0x80000000 - pid % 0x40000000
  i=pid%24
 
 if i<=5 then
  growthoffset=0
 elseif i%6<=1 then
  growthoffset=12
 elseif i%2==0 then
  growthoffset=24
 else
  growthoffset=36
 end

 if i>=18 then
  miscoffset=0
 elseif i%6>=4 then
  miscoffset=12
 elseif i%2==1 then
  miscoffset=24
 else
  miscoffset=36
 end
 
 if i>=12 and i<=17 then
 evoffset=0
 elseif i==2 or i==3 or i==8 or i==9 or i==22 or i==23 then
 evoffset=12
 elseif i==0 or i==5 or i==6 or i==11 or i==19 or i==21 then
 evoffset=24
 else
 evoffset=36
 end
 
 ivs=bit.bxor(memory.readdwordunsigned(start+32+miscoffset+4),magicword) 
 hpiv=bit.band(ivs,0x1F)
 atkiv=bit.band(ivs,0x1F*0x20)/0x20
 defiv=bit.band(ivs,0x1F*0x400)/0x400
 spdiv=bit.band(ivs,0x1F*0x8000)/0x8000
 spatkiv=bit.band(ivs,0x1F*0x100000)/0x100000
 spdefiv=bit.band(ivs,0x1F*0x2000000)/0x2000000
 totaliv=hpiv+atkiv+defiv+spatkiv+spdefiv+spdiv
 
 misc=bit.bxor(memory.readdwordunsigned(start+32+miscoffset),magicword)
 
 evs1=bit.bxor(memory.readdwordunsigned(start+32+evoffset),magicword) 
 evs2=bit.bxor(memory.readdwordunsigned(start+32+evoffset+4),magicword)
 evs3=bit.bxor(memory.readdwordunsigned(start+32+evoffset+8),magicword)
 hpev=evs1 % 0x100
 atkev=bit.band(evs1,0xFF*0x100)/0x100
 defev=bit.band(evs1,0xFF*0x10000)/0x10000
 spdev=math.floor(evs1/0x1000000)
 spatkev=evs2 % 0x100
 spdefev=bit.band(evs2,0xFF*0x100)/0x100
 sgfd=bit.band(evs2,0xFF*0x10000)/0x10000
 beaute=math.floor(evs2/0x1000000)
 grace=evs3 % 0x100
 intel=bit.band(evs3,0xFF*0x100)/0x100
 robus=bit.band(evs3,0xFF*0x10000)/0x10000
 onct=math.floor(evs3/0x1000000)
 
 if spdev < 0 then
 spdev = spdev + 256
 end
 
 if beaute < 0 then
 beaute = beaute + 256
 end
 
 if onct < 0 then
 onct = onct + 256
 end
 
 totalev=hpev+atkev+defev+spatkev+spdefev+spdev
  
 nature=pid%25
 
 hidpowtype=math.floor(((hpiv%2 + 2*(atkiv%2) + 4*(defiv%2) + 8*(spdiv%2) + 16*(spatkiv%2) + 32*(spdefiv%2))*15)/63)
 hidpowbase=math.floor(((bit.band(hpiv,2)/2 + bit.band(atkiv,2) + 2*bit.band(defiv,2) + 4*bit.band(spdiv,2) + 8*bit.band(spatkiv,2) + 16*bit.band(spdefiv,2))*40)/63 + 30)

 if xorpid == 0x40000000 then
  if i < 16 then
  i2=i-16+24
  else
  i2=i-16
  end
 gui.text(199,8,""..zoneorder[i+1].."->"..zoneorder2[i2+1]) 
 else
  if i > 7 then
  i2=i+16-24
  else
  i2=i+16
  end 
 gui.text(199,8,""..zoneorder[i+1].."->"..zoneorder2[i2+1]) 
 end
 

 gui.text(1,0,"IVs: "..string.format("%02d",hpiv).."/"..string.format("%02d",atkiv).."/"..string.format("%02d",defiv).."/"..string.format("%02d",spatkiv).."/"..string.format("%02d",spdefiv).."/"..string.format("%02d",spdiv).."//"..string.format("%03d",totaliv).." "..naturename[nature+1])
 gui.text(145,0,"PID: "..string.format("%08X", pid))
 gui.text(199,0,"Mod 24: "..string.format("%02d", i))
 gui.text(203,145,"ID: "..string.format("%05d",tid))
 gui.text(199,153,"SID: "..string.format("%05d",sid))
 gui.text(1,8,"EVs: "..string.format("%02d",hpev).."/"..string.format("%02d",atkev).."/"..string.format("%02d",defev).."/"..string.format("%02d",spatkev).."/"..string.format("%02d",spdefev).."/"..string.format("%02d",spdev).."//"..string.format("%03d",totalev).." PC "..typeorder[hidpowtype+1].." "..hidpowbase)

 
  if touchanterieur == touches then
 elseif touches == 255 then
	if combatactif == 0 then
	combatactif=1
	equipeactif=0
	else
	combatactif=0
	end
 end
 
   if touchanterieur == touches then
 elseif touches == 511 then
	if equipeactif == 0 then
	combatactif=0
	equipeactif=1
	else
	equipeactif=0
	end
 end
 
touchanterieur=touches
 
 if equipeactif == 0 then
  if pid == 0 or pid == 286331153 or pid == 572662306 or pid == 2863311529 or pid == 289677858 then
   gui.text(1,16,"Pas de Pokemon")
  else
    if shiny < 8 then
    gui.text(1,16,"POKEMON SHINY !!!!")
    else
    gui.text(1,16,"Non Shiny")
    end 
  end
 else
 end
 
 if equipeactif == 1 then
  if i >=6 and i <= 11 then
  atkoffset=0
  elseif i <=1 or i == 14 or i == 15 or i == 20 or i == 21 then
  atkoffset=12
  elseif i == 2 or i == 4 or i == 12 or i == 17 or i == 18 or i == 23 then
  atkoffset=24
  else
  atkoffset=36
  end

 attaques1=bit.bxor(memory.readdwordunsigned(start+32+atkoffset),magicword)
 attaques2=bit.bxor(memory.readdwordunsigned(start+32+atkoffset+4),magicword)
 attaques3=bit.bxor(memory.readdwordunsigned(start+32+atkoffset+8),magicword)
 
 atk1=bit.band(attaques1,0xFFFF)
 atk2_1=attaques1 - attaques1 % 0x10000
 atk2 = math.floor(atk2_1/65536)
 atk3=bit.band(attaques2,0xFFFF)
 atk4_1=attaques2 - attaques2 % 0x10000
 atk4 = math.floor(atk4_1/65536)
 pp1=bit.band(attaques3,0xFF)
 pp2=bit.band(attaques3,0xFF*0x100)/0x100
 pp3=bit.band(attaques3,0xFF*0x10000)/0x10000
 pp4 = math.floor(attaques3/16777216)
 if pp4 < 0 then
 pp4 = pp4 + 256
 end
 if atk2 < 0 then
 atk2 = atk2 + 65536
 end
 if atk4 < 0 then
 atk4 = atk4 + 65536
 end

 
 
 rubans=bit.bxor(memory.readdwordunsigned(start+32+miscoffset+8),magicword)
 growth=bit.bxor(memory.readdwordunsigned(start+32+growthoffset),magicword)
 objet=math.floor( growth / 0x10000 )
 espece=growth % 0x10000
 obeissance= math.floor( rubans / 0x80000000 )
 
 if objet < 0 then
 objet = objet + 65536
 else
 end

if obeissance == -1 then
obeissance=1
else
end
 
 if espece == 151 or espece == 410 then
  if obeissance == 1 then
  gui.text(183,24,"Pkmn Obeissant")
  else
  gui.text(167,24,"Pkmn non Obeissant")
  end
 else
 end
 
 if objet == 0 then
 gui.text(195,16,"Pas d'Objet")
 else
 gui.text(187,16,"Objet: 0x"..string.format("%04X",objet))
 end
 pokerus= misc % 0x100
 gui.text(207,24,"Pkrs: "..string.format("%02X", pokerus))

 if pid == 0 or pid == 286331153 or pid == 572662306 or pid == 2863311529 or pid == 289677858 then
   gui.text(1,24,"Pas de Pokemon")
  else
    if shiny < 8 then
    gui.text(1,24,"POKEMON SHINY !!!!")
    else
    gui.text(1,24,"Non Shiny")
    end 
  end

 gui.text(1,16,"Cond: "..string.format("%02d",sgfd).."/"..string.format("%02d",beaute).."/"..string.format("%02d",grace).."/"..string.format("%02d",intel).."/"..string.format("%02d",robus).."/"..string.format("%02d",onct))
 gui.text(2,113,"Attaque / PPs")
if pid == 0 or pid == 286331153 or pid == 572662306 or pid == 2863311529 or pid == 289677858 then
pp_0=0
 gui.text(1,121,""..attaquename[1].." : "..string.format("%03d",pp_0))
 gui.text(2,129,""..attaquename[1].." : "..string.format("%03d",pp_0))
 gui.text(2,137,""..attaquename[1].." : "..string.format("%03d",pp_0))
 gui.text(2,145,""..attaquename[1].." : "..string.format("%03d",pp_0))
else

   if atk1 > 354 then
  gui.text(2,121,"0x"..string.format("%04X",atk1).." : "..string.format("%03d",pp1))
  else
  gui.text(1,121,""..attaquename[atk1+1].." : "..string.format("%03d",pp1))
  end
 
   if atk2 > 354 then
  gui.text(2,129,"0x"..string.format("%04X",atk2).." : "..string.format("%03d",pp2))
  else
  gui.text(2,129,""..attaquename[atk2+1].." : "..string.format("%03d",pp2))
  end
 
  if atk3 > 354 then
 gui.text(2,137,"0x"..string.format("%04X",atk3).." : "..string.format("%03d",pp3))
 else
 gui.text(2,137,""..attaquename[atk3+1].." : "..string.format("%03d",pp3))
 end
 
  if atk4 > 354 then
 gui.text(2,145,"0x"..string.format("%04X",atk4).." : "..string.format("%03d",pp4))
 else
 gui.text(2,145,""..attaquename[atk4+1].." : "..string.format("%03d",pp4))
  end
end
 
 else
 end
 
 
 
 
 if combatactif == 1 then
 pp_1 = memory.readbyteunsigned(0x020240A8)
 pp_2 = memory.readbyteunsigned(0x020240A9)
 pp_3 = memory.readbyteunsigned(0x020240AA)
 pp_4 = memory.readbyteunsigned(0x020240AB)
 
 id_attaque_1 = memory.readwordunsigned(0x02024090)
 id_attaque_2 = memory.readwordunsigned(0x02024092)
 id_attaque_3 = memory.readwordunsigned(0x02024094)
 id_attaque_4 = memory.readwordunsigned(0x02024096)
 
 
 gui.text(1,24,"Pokemon au Combat")
  gui.text(2,45,"Attaque / PPs")
 if id_attaque_1 > 354 then
 gui.text(2,53,"0x"..string.format("%04X",id_attaque_1).." : "..string.format("%03d",pp_1))
 else
 gui.text(1,53,""..attaquename[id_attaque_1+1].." : "..string.format("%03d",pp_1))
 end
 
  if id_attaque_2 > 354 then
 gui.text(2,61,"0x"..string.format("%04X",id_attaque_2).." : "..string.format("%03d",pp_2))
 else
 gui.text(2,61,""..attaquename[id_attaque_2+1].." : "..string.format("%03d",pp_2))
 end
 
  if id_attaque_3 > 354 then
 gui.text(2,69,"0x"..string.format("%04X",id_attaque_3).." : "..string.format("%03d",pp_3))
 else
 gui.text(2,69,""..attaquename[id_attaque_3+1].." : "..string.format("%03d",pp_3))
 end
 
  if id_attaque_4 > 354 then
 gui.text(2,77,"0x"..string.format("%04X",id_attaque_4).." : "..string.format("%03d",pp_4))
 else
 gui.text(2,77,""..attaquename[id_attaque_4+1].." : "..string.format("%03d",pp_4))
 end
 

 else
 end
 
 else
 end
 
if modeinfoattaque == 1 then
io.write("Rentrez le numéro de l'attaque voulue :")
answer=io.read()
if answer~= nil then
vba.print("Mode Equipe : R+Gauche")
else
vba.print("Entrez un nombre SVP.")
end

else
end

 emu.frameadvance()

end


Partager le fichier

Télécharger Emer Pomeg Glitch.lua

Télécharger le fichier (21 Ko)