Script Help Thread (DO NOT REQUEST SCRIPTS) Page 70

Started by HackMew December 20th, 2008 5:10 AM
  • 625740 views
  • 9682 replies

Chileno4Live

«Step into the light with me.»

Age 29
Male
Almere - The Netherlands
Seen December 20th, 2012
Posted July 21st, 2012
13 posts
14 Years
Hey dude i appreciate it that you fixed the script. The problem is, it doesn't activate now. I made the script using checkflag 0x828 because it checks if you got a pokemon, and if that's not the case (if b_false) then it doesn't activate. The script looks ok, but he has to give you the pokedex menu, along with the national dex upgrade. So he has to setflag 0x829. I don't know how else i can do it, i'm still fairly new to scripting. And another question, how do you make sprites invisible until your script activates?
This signature has been disabled.
Spoiler tags are not permitted in signatures, sorry!
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.

0m3GA ARS3NAL

Im comin' home...

Age 30
Male
Superjail Penitentiary
Seen February 25th, 2023
Posted September 12th, 2013
1,816 posts
15.3 Years
Hey dude i appreciate it that you fixed the script. The problem is, it doesn't activate now. I made the script using checkflag 0x828 because it checks if you got a pokemon, and if that's not the case (if b_false) then it doesn't activate. The script looks ok, but he has to give you the pokedex menu, along with the national dex upgrade. So he has to setflag 0x829. I don't know how else i can do it, i'm still fairly new to scripting. And another question, how do you make sprites invisible until your script activates?
Set there 'Person ID' to a clear flag, then you have that flag set, then to make them visible, just clear that flag...
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
Age 28
Canada
Seen November 23rd, 2016
Posted May 1st, 2014
44 posts
14.9 Years
LOL, hold on a minute, I sense a disturbance...
I forgot to post the script! lol

here you go.

#dynamic 0x800000
 
#org @start
lock
checkflag 0x1000
if b_true goto @done
showsprite 0x3
goto @snippet1
release
end
 
#org @snippet1
setvar 0x8004 0x0
setvar 0x8005 0x2
special 0x174
textcolor 0x0
pause 0x1E
playsong 0x12E 0x0
preparemsg @PROF1
waitmsg
pause 0x55
closeonkeypress
applymovement 0xFF @move1
waitmovement 0x0
sound 0x15
pause 0x1E
preparemsg @PROF2
waitmsg
pause 0x1E
closeonkeypress
applymovement 0x3 @move0
applymovement 0xFF @move3
waitmovement 0x0
pause 0x1E
setdooropened 0x7 0x9
doorchange
applymovement 0x3 @move4
applymovement 0xFF @move5
waitmovement 0x0
setdoorclosed 0x7 0x9
doorchange
setvar 0x4055 0x1
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
setflag 0x1000
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
 
#org @done
release
end
 
#org @PROF1
= PROF: There you are, [player]!
 
#org @PROF2
= PROF: I have been looking for you \nall morning. \pBut at last, you are here! \pAs you may know, I am the \nPROFESSOR, and I live near here. \pFollow me!
 
#org @move1
#raw 0x62
#raw 0xFE
 
#org @move0
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x03
#raw 0xFE
 
#org @move3
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
 
#org @move4
#raw 0x11
#raw 0x60
#raw 0xFE
 
#org @move5
#raw 0x13
#raw 0x11
#raw 0x60
#raw 0xFE
Ooh, LOL thanks. But there's a problem, it freezes when I exit the lab. We're a step closer
to the goal! :D
Seen September 6th, 2009
Posted September 6th, 2009
140 posts
13.9 Years
This question is related to scripting so im going to ask it here.Are the movement commands in emerald the same as R/S?
Movement commands are the same for ALL Pokemon ROMS.


Aipom, Pikachu, and Eevee shall take over the world very soon... Very soon...

Map Requests Accepted JUST NOT FOR THE MAP RATING THREAD

PlatniumPiano

You are now breathing manually

Male
Yesterday
Seen December 27th, 2010
Posted December 27th, 2010
479 posts
14.4 Years
Movement commands are the same for ALL Pokemon ROMS.
I'm sorry. This is not true. R/S step down command is 0x8, whereas the FR/LG one is 0x10. Step up for R/S is 0x9 and FR/LG is 0x11... I could go on. The only thing they share is 0xFE which is the end of movements.

If you choose not to decide, you still have made a choice.
Seen September 6th, 2009
Posted September 6th, 2009
140 posts
13.9 Years
Okay, so im terrible at scripts, and i'm working on trying to make the basic script, so when Oak gives you the pokedex, it's already the national dex.

Any help on what to do would be helpful :p
Find the flag for the basic Pokedex, and then below it, add the National Dex flag.


Aipom, Pikachu, and Eevee shall take over the world very soon... Very soon...

Map Requests Accepted JUST NOT FOR THE MAP RATING THREAD
Male
Above the Gameboard
Seen October 17th, 2011
Posted August 6th, 2011
98 posts
14.5 Years
Find the flag for the basic Pokedex, and then below it, add the National Dex flag.
This sounds really stupid, I bet, but the flag for the national pokedex would be..?
I can only find the one for the normal pokedex, and the text where Oak upgrades them.

justdieplz

Pokemon White Enthusiast

Age 27
Male
Kansas
Seen December 20th, 2013
Posted December 20th, 2013
29 posts
14.7 Years
Another script problem...
Spoiler:
#dynamic 0x800000

#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
giveegg 0xF6
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @5 0x6
release
end

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof this rare egg I found.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= [black_fr]You recieved a rare egg!

#org @5
= Please take care of that egg.

#org @6
= Are you taking good care\nof the egg?


I put this in and the game freezes, why?
Seen September 6th, 2009
Posted September 6th, 2009
140 posts
13.9 Years
Another script problem...
Spoiler:
#dynamic 0x800000

#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
giveegg 0xF6
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @5 0x6
release
end

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof this rare egg I found.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= [black_fr]You recieved a rare egg!

#org @5
= Please take care of that egg.

#org @6
= Are you taking good care\nof the egg?


I put this in and the game freezes, why?
You need a yesnobox.

This sounds really stupid, I bet, but the flag for the national pokedex would be..?
I can only find the one for the normal pokedex, and the text where Oak upgrades them.
That's the help I can give. I barely know squa about scripting.


Aipom, Pikachu, and Eevee shall take over the world very soon... Very soon...

Map Requests Accepted JUST NOT FOR THE MAP RATING THREAD
Male
Whyalla, Australia
Seen March 2nd, 2013
Posted December 16th, 2011
779 posts
13.9 Years
WHY DOESN'T ANYBODY LISTEN?!

I have a problem with 2 scripts.Whenever I modify it so you can get certain Pokemon,but when you try to get get another it says what happens AFTER you get the Pokemon.What's wrong?

Game:Emerald
Type:givepokemon

Scripts:
Spoiler:
#dynamic 0x2EA1F0
#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 0x9B 0x5 0x109 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
= Hello.\nSorry to trouble you.\nI can't take care\nof my Cyndaquil.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [red_em]You received a Cyndaquil!
#org @4
= [red_em]Would you like to give a\nnickname to Cyndaquil?
#org @5
= Please take care of\nCyndaquil.
#org @6
= Are you taking good care\nof Cyndaquil?

Spoiler:
#dynamic 0x2EA1F0
#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 0x9E 0x5 0x178 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
= Hello.\nSorry to trouble you.\nI can't take care\nof my Totodile.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [red_em]You received a Totodile!
#org @4
= [red_em]Would you like to give a\nnickname to Totodile?
#org @5
= Please take care of\nTotodile.
#org @6
= Are you taking good care\nof Totodile?
Everything you say to me pushes one step closer to the edge



And I'm about to break
I need a little room to breathe...

Steam IGN: Hybrid Theory

Pokepal17

More cowbell~

Age 28
Male
Steeltown
Seen July 7th, 2011
Posted May 22nd, 2011
1,517 posts
14.6 Years
WHY DOESN'T ANYBODY LISTEN?!

I have a problem with 2 scripts.Whenever I modify it so you can get certain Pokemon,but when you try to get get another it says what happens AFTER you get the Pokemon.What's wrong?

Game:Emerald
Type:givepokemon

Scripts:
Spoiler:
#dynamic 0x2EA1F0
#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 0x9B 0x5 0x109 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
= Hello.\nSorry to trouble you.\nI can't take care\nof my Cyndaquil.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [red_em]You received a Cyndaquil!
#org @4
= [red_em]Would you like to give a\nnickname to Cyndaquil?
#org @5
= Please take care of\nCyndaquil.
#org @6
= Are you taking good care\nof Cyndaquil?

Spoiler:
#dynamic 0x2EA1F0
#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 0x9E 0x5 0x178 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
= Hello.\nSorry to trouble you.\nI can't take care\nof my Totodile.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [red_em]You received a Totodile!
#org @4
= [red_em]Would you like to give a\nnickname to Totodile?
#org @5
= Please take care of\nTotodile.
#org @6
= Are you taking good care\nof Totodile?
Change the dynamic offset to 0x800000, your offset is somewhere where there is important data.
Pokémon Stardrop
Age 31
Seen September 22nd, 2016
Posted August 27th, 2016
79 posts
15.8 Years
I'm reposting this because it kinda just died =\
And I really need it fixed.

Ugh... Here we go again... I'm having troubles with a moving/battling script... again... This is what it's supposed to do:

Exclamation mark above your head followed by turning right.
Person walks 7 spaces left from out of screen to in front of you.
Wait for movement to complete.
Talks
Battles
Talks
Leaves
Wait for movement to complete
Done

This is what it does:
Exclamation mark above your head followed by turning right.
Wait for movement to complete (but doesn't move)
Talks
Battles
Talks
Wait for movement to complete (but doesn't move)
Done

The guy's Person ID is 1001 so you can't see him until the script kicks in. Which works. The only thing that doesn't is that he doesn't move (to my understanding). You can't see him because he is out of screen but that's what I think happens. The scripts var number is set to 5240 and this is a hack for Pokemon Sapphire.

Here is my script:

Spoiler:
#dynamic 0x8034F4

#org @start
checkflag 0x1002
if b_true goto @nevermind
clearflag 0x1001
release
playsong 0x1BF 0x1
applymovement 0xFF @1move
applymovement 9 @2move
waitmovement 0x0
msgbox @1msg 0x6
trainerbattle 0x1 0x89 0x0 @before @after @whatever
waitstate
end

#org @nevermind
release
end

#org @1msg
= Are you the one everbody knows as\n[player]?\p... ... ... ... ... ... ... ... ... ...\n... ... ... ... ... ... ... ... ... ...\pGood.\nI was hoping I could find you.\pMy name is NEIL. I've been researching\nthe skills of some of the trainers\laround here.\pNot many of them have what it takes\nto become the greatest.\pBut that is enough of my calling.\nIt's time to see just how good you\lare.\pUnfair?\nExcellent.

#org @before
= I'm not here to make friends.

#org @after
= Most superb!\nYou fared very well against me!\pBut don't think this is over.\nI've got special plans for you.

#org @whatever
lock
msgbox @2msg 0x6
applymovement 9 @3move
waitmovement 0x0
setflag 0x1001
setflag 0x1002
release
end

#org @2msg
= You, [player], are not the average\ntrainer.\pYou possess something these rookies\ndo not.\pWe'll certainly meet again.

#org @1move
#raw 0x03 0x56 0xFE

#org @2move
#raw 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0xFE

#org @3move
#raw 0x9 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x54 0xFE

+====================Supports====================+


+====================Supports====================+
Male
Whyalla, Australia
Seen March 2nd, 2013
Posted December 16th, 2011
779 posts
13.9 Years
Change the dynamic offset to 0x800000, your offset is somewhere where there is important data.
So,maybe,it's where 'call' is?
Everything you say to me pushes one step closer to the edge



And I'm about to break
I need a little room to breathe...

Steam IGN: Hybrid Theory
Age 30
Male
Munich
Seen June 20th, 2016
Posted February 10th, 2010
9 posts
14.6 Years
Hello,
jeez, your Script is really some fail.^^(exitwound)

1. "lock" at the beginning
2. the command "release", put it then, when the Script end´s.
3. No watestate after "trainerbattle" - cause after the battle, the last pointer(in this case) "whatever" gets called, and watestate doesnt even get called.
4. remove the "lock" at "whatever"
5. applymovements can just be 5 in a row, like this:
#org @2move
#raw 0x0B 0x0B 0x0B 0x0B 0x0B
#raw 0x0B 0x0B 0xFE

If im wrong in the 5th point, im sorry.(I used to script with Poketscript)^^

@justdieplz: Why ain´t you put a "lock" in the beginning?
@RayquazaLv.X: Why ain´t you try what Pokepal17 said? And add "lock" to.(just in case ;))

I hope i could help and you understand everything.(I´m from Germany^^)

s0n1c
Seen September 6th, 2009
Posted September 6th, 2009
140 posts
13.9 Years
The yes no box is supposed to be 0x5, and that is in hex right? Because if it is then that isn't it. If I'm just confused though, then could you revise it? ty
It's 0x5 in callstd. I don't know if you use static or refracturing mode, so this is how it's used.

'-------------------
#org 0x673344
lockall
faceplayer
msgbox 0x8576883
callstd 0x5
compare LASTRESULT 0x0
if 0x1 goto 0x8657733
msgbox 0x8576866
releaseall
end


Aipom, Pikachu, and Eevee shall take over the world very soon... Very soon...

Map Requests Accepted JUST NOT FOR THE MAP RATING THREAD
Male
Whyalla, Australia
Seen March 2nd, 2013
Posted December 16th, 2011
779 posts
13.9 Years
removed post due to me solving the problem.
Um,who's problem?Mine?Because I was kicked off the computer after that...

Hello,
jeez, your Script is really some fail.^^(exitwound)

1. "lock" at the beginning
2. the command "release", put it then, when the Script end´s.
3. No watestate after "trainerbattle" - cause after the battle, the last pointer(in this case) "whatever" gets called, and watestate doesnt even get called.
4. remove the "lock" at "whatever"
5. applymovements can just be 5 in a row, like this:
#org @2move
#raw 0x0B 0x0B 0x0B 0x0B 0x0B
#raw 0x0B 0x0B 0xFE

If im wrong in the 5th point, im sorry.(I used to script with Poketscript)^^

@justdieplz: Why ain´t you put a "lock" in the beginning?
@RayquazaLv.X: Why ain´t you try what Pokepal17 said? And add "lock" to.(just in case ;))

I hope i could help and you understand everything.(I´m from Germany^^)

s0n1c
Yeah,but then how are you meant to compile without the free space?
Everything you say to me pushes one step closer to the edge



And I'm about to break
I need a little room to breathe...

Steam IGN: Hybrid Theory
Male
The Netherlands
Seen October 2nd, 2010
Posted August 19th, 2010
11 posts
13.9 Years
Hi!
I've made a script, gave it to a dude in A-Map and saved. Then, when I started Sapphire, I did saw the guy. But when I walk up to him, and press A, nothing happens... This isn't my first script, far from it. But why doesn't it work. And it's a really simple script. But I can't seem to figure out what I've done wrong, maybe one of you guys know?
Here it is.

#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= My Text.....
Seen August 27th, 2009
Posted August 27th, 2009
38 posts
15 Years
My hack starts with the player on a remote island, I'd like to have a pokeball next to him, containing his pokemon. So I have this:

#Dynamic 0xoffset

#org @start
lock
faceplayer
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
setflag 0x828
release
end
but when i check the start menu it showes the amount of coins I have, and not the pokemon menu.