thetripplenine
tripple.
- 98
- Posts
- 12
- Years
- California
- Seen Dec 27, 2019
The game i'm hacking is emerald.
The game i'm hacking is emerald.
So close... Many of the specials are different on Emerald. Special 0xA1 will nickname a pokemon for you. Try looking at scripts which you know contain the given special to find their new numbers.
And now it's not even letting me receive the Pokemon, fun..
Spoiler:'-----------------------
#org 0x9C0B77
checkflag 0x800
if 0x1 goto 0x88000B2
msgbox 0x8845E7E '"A Riolu is in a Pokéball.\pDo you w..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8845D18
msgbox 0x88000E9 '"Well it doesn't seem right, is this..."
callstd 0x6
release
end
'-----------------------
#org 0x8000B2
msgbox 0x8800154 '"Really you want another one!"
callstd 0x6
release
end
'-----------------------
#org 0x845D18
givepokemon 0x27 0x5 0x8B 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8845D4D '"\c\h01ÊFound a RIOLU!"
callstd 0x4
waitfanfare
closeonkeypress
setflag 0x800
msgbox 0x8845D62 '"\c\h01ÊNickname this RIOLU?"
special 0xA1
compare LASTRESULT 0x1
if 0x1 goto 0x88000AB
bufferitem 0x8 0x1FC
if 0xC0 call 0xD8E2E9E3
nop
cmdD5 0xCC00
cmdC3 0xC9
bufferboxname 0xCF 0xFFAB
checkcoins 0xC64B
'-----------------------
#org 0x8000AB
call 0x81A0678
'-----------------------
#org 0x1A0678
fadescreen 0x1
'---------
' Strings
'---------
#org 0x845E7E
= A Riolu is in a Pokéball.\pDo you want a Riolu?
#org 0x8000E9
= Well it doesn't seem right, is this\nan initiation?
#org 0x800154
= Really you want another one!
#org 0x845D4D
= \c\h01ÊFound a RIOLU!
#org 0x845D62
= \c\h01ÊNickname this RIOLU?
Spoiler:"image removed"
Proof that this doesn't let me get the actual pokemon, it's actually really small, click it to make it bigger...
Lol MB
#dynamic 0x9C0000
#org @start
checkflag 0x800
if 0x1 goto @AnotherPokemon
msgbox @WantRiolu? 0x5
compare 0x800D 0x1
if 0x1 goto @TakeRiolu
msgbox @Initiation 0x2
release
end
#org @AnotherPokemon
msgbox @WantAnother? 0x2
release
end
#org @TakeRiolu
givepokemon 0x27 0x5 0x8B 0x0 0x0 0x0
fanfare 0x13E
msgbox @FoundRiolu 0x4
waitfanfare
closeonkeypress
setflag 0x800
msgbox @NicknameRiolu? 0x5
compare 0x800D 0x1
if 0x1 call @Nickname
release
end
#org @Nickname
fadescreen 0x1
special 0xA1
waitstate
return
#org @WantRiolu?
= A Riolu is in a Pokéball.\pDo you want a Riolu?
#org @Initiation
= Well it doesn't seem right, is this\nan initiation?
#org @WantAnother?
= Really you want another one!
#org @FoundRilolu
= \c\h01ÊFound a RIOLU!
#org @NicknameRiolu?
= \c\h01ÊNickname this RIOLU?
It looks like you've overwritten your initial script without re-pointing the parts of it which you have expanded in this revised version. This is because your offsets haven't changed (your scripts both start at the offset 0x9C0B77) and has led to your script becoming garbled later on. Unless you're doing minor edits (that don't increase the overall length) to an already inserted script then you should be using dynamic offsets like how you originally inserted the script rather than using the decompiled version.
With that, try inserting this with the new version of XSE:
Code:#dynamic 0x9C0000 #org @start checkflag 0x800 if 0x1 goto @AnotherPokemon msgbox @WantRiolu? 0x5 compare 0x800D 0x1 if 0x1 goto @TakeRiolu msgbox @Initiation 0x2 release end #org @AnotherPokemon msgbox @WantAnother? 0x2 release end #org @TakeRiolu givepokemon 0x27 0x5 0x8B 0x0 0x0 0x0 fanfare 0x13E msgbox @FoundRiolu 0x4 waitfanfare closeonkeypress setflag 0x800 msgbox @NicknameRiolu? 0x5 compare 0x800D 0x1 if 0x1 call @Nickname release end #org @Nickname fadescreen 0x1 special 0xA1 waitstate return #org @WantRiolu? = A Riolu is in a Pokéball.\pDo you want a Riolu? #org @Initiation = Well it doesn't seem right, is this\nan initiation? #org @WantAnother? = Really you want another one! #org @FoundRilolu = \c\h01ÊFound a RIOLU! #org @NicknameRiolu? = \c\h01ÊNickname this RIOLU?
Hi, I just started the scripting and I need help.
I use the Ruby game. I make a givepokemon script and I follow the diegoisawesome's tutorial. It works, but to a point. When I click "Yes", box with Yes / No disappears, but the game freezes. (Here's the screenshot img841.imageshack.us/img841/4355/eeekp.png). Does anyone have an idea what is the reason?
Here's my script:
Spoiler:#dynamic 0x90000000
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x178 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.
#org @2
= Humph. You have no heart.
#org @3
= [black_rs]You received a Absol!
#org @4
= [black_rs]Would you like to give a\nnickname to Absol?
#org @5
= Better not hurt him!
#org @6
= I hope Absol is fine.
It says type mismatch on line 21 and that's with the new xse...
the problem may have just been that there's three of them...
It doesn't work because I accidentally misspelled Riolu on that dynamic pointer so it didn't know where to connect. After correcting that it compiled perfectly in my XSE :P
When you say "nothing happened", what exactly do you mean by "nothing"? Did the script just not activate? Did the game freeze?So i opened emerald and tried it, and I tried out the script but nothing happened
When you say "nothing happened", what exactly do you mean by "nothing"? Did the script just not activate? Did the game freeze?
Tell me if this Helps
Spoiler:#dynamic 0xD00523
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.
#org @2
= Humph. You have no heart.
#org @3
= [black_rs]You received a Absol!
#org @4
= [black_rs]Would you like to give a\nnickname to Absol?
#org @5
= Better not hurt him!
#org @6
= I hope Absol is fine.
Haha, this may be an easy fix, let me know if this helps. Try changing "compare lastresult 0x1" to "compare 0x300D" or "compare lastresult 0x300D"No, it did not help. To be honest, I don't see also difference between your script and mine. Anyway, I tried to use other tutorials, I added also "lock" and "faceplayer", but still the game freezes when I select "Yes". Here's the script with a few changes:
Spoiler:#dynamic 0xD0052F
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @done
msgbox @6 0x6
release
end
#org @take
givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
setflag 0x828
msgbox @5 0x6
release
end
#org @1
= You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.
#org @2
= Humph. You have no heart.
#org @3
= [black_rs]You received an Absol!
#org @5
= Better not hurt him!
#org @6
= I hope Absol is fine.
Can anybody help me?
Yes, thank you, it finally works.
But I have another problem and I hope that my another request doesn't tire anybody. The same script is going to have one, a strange anomaly. If there is a choice of Yes / No, when I click Yes, the game takes it as click No, and I don't get Pokemon. Does anyone know and could cause me the reason? I totally am beginner in scripting...
Again, this is the script:
Spoiler:#dynamic 0xD0052F
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x300D
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @done
msgbox @6 0x6
release
end
#org @take
givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
setflag 0x828
msgbox @5 0x6
release
end
#org @1
= You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.
#org @2
= Humph. You have no heart.
#org @3
= [black_rs]You received an Absol!
#org @5
= Better not hurt him!
#org @6
= I hope Absol is fine.
like i was saying, I get 300 and 800 mixed up sometimes haha. x3It's var 0x800D, that is LASTRESULT. It's on line 10, you're checking the wrong var.