ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Closed Thread
 
Thread Tools
  #6676    
Old March 29th, 2012 (5:09 PM).
Hyperbolic's Avatar
Hyperbolic Hyperbolic is offline
     
    Join Date: Mar 2012
    Gender: Male
    Posts: 6
    Im not asking for a script but how would i make a script so that i have a 3 way choice between the starters like in the beginning of every pokemon game?

    Relevant Advertising!

      #6677    
    Old March 29th, 2012 (7:16 PM). Edited March 29th, 2012 by Amachi.
    Amachi's Avatar
    Amachi Amachi is offline
    (。・ω・)ノ゙ Hello, I am Amachi-chan~♪
       
      Join Date: Jun 2006
      Location: Australia
      Gender: Male
      Nature: Jolly
      Posts: 5,877
      Quote:
      Originally Posted by Hyperbolic View Post
      Im not asking for a script but how would i make a script so that i have a 3 way choice between the starters like in the beginning of every pokemon game?
      well your best answer would lie at looking at the actual scripts themselves for the event, but basically you want 3 givepokemon scripts, each with their own flag, so when you pick own you make the Pokeball disappear, and at the same time use setflag to prevent the player from getting the other Pokemon.

      If you do a search you will most likely find an example of such a script on the forums as well.

      I created a simple level script for my hack, following this tutorial.
      Code:
      #dynamic 0x800000
      
      #org @start
      special 0x161
      setvar 0x4033 0x1
      release
      end
      Works fine the first time I enter the map, but not the second time. I realise that it's setvar 0x4033 0x1 that prevents it from repeating, but I want it to repeat. How do I do this and get the level script to function properly?
      __________________
      CHILL OUT DUDES, I GOT THIS
      Paired with Juicy.
        #6678    
      Old March 29th, 2012 (7:44 PM).
      DrFuji's Avatar
      DrFuji DrFuji is offline
      Heiki Hecchara‌‌
      • Crystal Tier
       
      Join Date: Sep 2009
      Location: Downia-upside
      Age: 24
      Gender: Male
      Nature: Jolly
      Posts: 1,328
      Quote:
      Originally Posted by Amachi View Post
      I created a simple level script for my hack, following this tutorial.
      Code:
      #dynamic 0x800000
      
      #org @start
      special 0x161
      setvar 0x4033 0x1
      release
      end
      Works fine the first time I enter the map, but not the second time. I realise that it's setvar 0x4033 0x1 that prevents it from repeating, but I want it to repeat. How do I do this and get the level script to function properly?
      The best way to get a level script to repeat is to use another one of the level script types open to you. Types 3 and 5 don't have to fulfil any variable conditions in order to activate (ie 4033 can be set to anything) and you can actually use a larger range of commands with them like checkflag. You can insert your level script as it stands now, with or without the setvar and it should be able to run smoothly and repeat when you re-enter the map.
      __________________
        #6679    
      Old March 29th, 2012 (8:42 PM).
      Amachi's Avatar
      Amachi Amachi is offline
      (。・ω・)ノ゙ Hello, I am Amachi-chan~♪
         
        Join Date: Jun 2006
        Location: Australia
        Gender: Male
        Nature: Jolly
        Posts: 5,877
        Quote:
        Originally Posted by DrFuji View Post
        The best way to get a level script to repeat is to use another one of the level script types open to you. Types 3 and 5 don't have to fulfil any variable conditions in order to activate (ie 4033 can be set to anything) and you can actually use a larger range of commands with them like checkflag. You can insert your level script as it stands now, with or without the setvar and it should be able to run smoothly and repeat when you re-enter the map.
        I just tried using those but the game freezes as soon as you enter the map (and the special isn't activated anyway).
        __________________
        CHILL OUT DUDES, I GOT THIS
        Paired with Juicy.
          #6680    
        Old March 29th, 2012 (9:05 PM).
        DrFuji's Avatar
        DrFuji DrFuji is offline
        Heiki Hecchara‌‌
        • Crystal Tier
         
        Join Date: Sep 2009
        Location: Downia-upside
        Age: 24
        Gender: Male
        Nature: Jolly
        Posts: 1,328
        Quote:
        Originally Posted by aablmd82 View Post
        I need some help with the hidesprite and showsprite command.

        I'm trying to set a var, and when that is set, have a sprite be shown and then do some stuff. However, when I put in the showsprite command, it doesn't work. I tried some testing using very basic hide/show sprite scripts, but it didn't work where I wanted to (Viridian City) I tried it in one of the houses in Viridian city and it worked just fine, but when I try to do it to a player in Viridian city, it has no effect.

        I have all the person event #s lined up just fine, but it just won't work in Viridian City. Is there something else that I have to change to make it work?
        Can you show us the scripts you are using for both Viridian City and the house?

        Quote:
        Originally Posted by Amachi View Post
        I just tried using those but the game freezes as soon as you enter the map (and the special isn't activated anyway).
        That's strange, I tried it using a 05 level script and the sprite changed perfectly fine.

        I guess you could try using a second (almost) identical level script on any connecting maps that sets the variable back to 0x0 instead of 0x1. Its a bit more unwieldy and may not be suitable for what you're doing depending on your circumstances, but it should be able to work if you're unable to use 03 and 05 for some reason.
        __________________
          #6681    
        Old March 29th, 2012 (9:26 PM). Edited March 29th, 2012 by Amachi.
        Amachi's Avatar
        Amachi Amachi is offline
        (。・ω・)ノ゙ Hello, I am Amachi-chan~♪
           
          Join Date: Jun 2006
          Location: Australia
          Gender: Male
          Nature: Jolly
          Posts: 5,877
          Quote:
          Originally Posted by DrFuji View Post
          That's strange, I tried it using a 05 level script and the sprite changed perfectly fine.

          I guess you could try using a second (almost) identical level script on any connecting maps that sets the variable back to 0x0 instead of 0x1. Its a bit more unwieldy and may not be suitable for what you're doing depending on your circumstances, but it should be able to work if you're unable to use 03 and 05 for some reason.
          Well now it doesn't freeze, but am I doing something wrong with the script then? I compile it as usual, go to the header tab, add a map script, select 3 or 5, paste my script offset into the box... and that's it, right?

          Is it because I'm using A-Map 1.95?

          I'd rather do it this way then going the unwieldy way, since I plan on using it a lot.

          Edit: I see, 5 does work, but the surf sprite only appears after a battle or if I use something in the menu, which I suppose is a given. It's an odd fit, but I suppose I'll have to deal with it for now. Best not to get bogged down in this sort of thing, it's often quite discouraging.
          __________________
          CHILL OUT DUDES, I GOT THIS
          Paired with Juicy.
            #6682    
          Old March 29th, 2012 (9:58 PM).
          Zilvereyes's Avatar
          Zilvereyes Zilvereyes is offline
             
            Join Date: Mar 2012
            Location: Denmark
            Age: 36
            Gender: Male
            Posts: 29
            Hello guys, I'm new to hacking pokemon, have some programming knowledge but I'm rusty and haven't been playing with ASM (though I have some limited basic knowledge from my programming C++, C#, LUA, ect, ect).

            Was hoping someone could help me get started on how to actually apply some ASM to Pokemon Fire Red, any help would be appriciated.

            Also, if you reply to me, send me a PM with a LINK to your post, so that I don't miss it.

            Thanks in advance 8-)

            Yours truly
            Zilvereyes
              #6683    
            Old March 30th, 2012 (2:24 AM).
            aadritch aadritch is offline
               
              Join Date: Feb 2012
              Gender: Male
              Posts: 3
              I dont know if this question was asked before but...
              How can I make an NPC initially hidden?
              Just like professor Oak in Pallet Town, he's initially hidden until you step before the grass.
                #6684    
              Old March 30th, 2012 (1:41 PM).
              Roffleman's Avatar
              Roffleman Roffleman is offline
                 
                Join Date: Feb 2006
                Location: New Zealand
                Age: 24
                Nature: Bold
                Posts: 18
                Hey guys,

                I'm having a problem with the FR/LG National Dex enabling script. I've followed instructions as set out on a Youtube video by "Ez3OsO", yet when I come to talk to the guy, the game freezes.

                Screenshot:


                Here's the code I am using.
                Spoiler:
                #org 0x800000
                lock
                faceplayer
                checkflag 0x10A
                if 1 jump 0x800050
                special 0x16F
                setflag 0x10A
                fanfare 0x13E
                msgbox 0x800100
                callstd 0x6
                waitfanfare
                release
                end

                #org 0x800050
                msgbox 0x800070
                callstd 0x6
                release
                end

                #org 0x800070
                = Like your new POKéDEX?

                #org 0x800100
                = Your POKéDEX was upgraded!


                This is the link to the video tutorial that I followed;
                http://youtu.be/9_RGwVHVIoY

                If anyone could help me out here that'd be much appreciated!
                __________________
                If anyone could pretty please PM me as to whether I am able to change my username, I'd be very thankful. You come to regret names you gave yourself when you were 13.
                  #6685    
                Old March 30th, 2012 (3:54 PM).
                Amachi's Avatar
                Amachi Amachi is offline
                (。・ω・)ノ゙ Hello, I am Amachi-chan~♪
                   
                  Join Date: Jun 2006
                  Location: Australia
                  Gender: Male
                  Nature: Jolly
                  Posts: 5,877
                  Quote:
                  Originally Posted by Roffleman View Post
                  Hey guys,

                  I'm having a problem with the FR/LG National Dex enabling script. I've followed instructions as set out on a Youtube video by "Ez3OsO", yet when I come to talk to the guy, the game freezes.

                  Screenshot:


                  Here's the code I am using.
                  Spoiler:
                  #org 0x800000
                  lock
                  faceplayer
                  checkflag 0x10A
                  if 1 jump 0x800050
                  special 0x16F
                  setflag 0x10A
                  fanfare 0x13E
                  msgbox 0x800100
                  callstd 0x6
                  waitfanfare
                  release
                  end

                  #org 0x800050
                  msgbox 0x800070
                  callstd 0x6
                  release
                  end

                  #org 0x800070
                  = Like your new POKéDEX?

                  #org 0x800100
                  = Your POKéDEX was upgraded!


                  This is the link to the video tutorial that I followed;
                  http://youtu.be/9_RGwVHVIoY

                  If anyone could help me out here that'd be much appreciated!
                  Wow that video is from 2009. Have you got the most recent version of XSE?

                  anyway, this is how I'd write up the script.
                  Code:
                  #dynamic 0x800000
                  
                  #org @start
                  lock
                  faceplayer
                  checkflag 0x10A
                  if 0x1 goto @end
                  special 0x16F
                  setflag 0x10A
                  fanfare 0x13E
                  msgbox @2 0x6
                  waitfanfare
                  release
                  end
                  
                  #org @end
                  msgbox @1 0x6
                  release
                  end
                  
                  #org @1
                  = Like your new POKéDEX?
                  
                  #org @2
                  = Your POKéDEX was upgraded!
                  With XSE, you don't have to asign hex codes yourself, and rather than using hex codes to refer to different parts of the script, you can just use @whatever.

                  I suggest you read one of the script tutorials in the tutorials section. It's much better than watching a video.
                  __________________
                  CHILL OUT DUDES, I GOT THIS
                  Paired with Juicy.
                    #6686    
                  Old March 30th, 2012 (9:55 PM).
                  Roffleman's Avatar
                  Roffleman Roffleman is offline
                     
                    Join Date: Feb 2006
                    Location: New Zealand
                    Age: 24
                    Nature: Bold
                    Posts: 18
                    Thanks! I'm sorry but I'm a complete noob so would you be able to recommend a certain tutorial that'd help me get this done? Bear in mind I've never scripted ANYTHING prior to this, so I need the very basic nuts and bolts of it.
                    __________________
                    If anyone could pretty please PM me as to whether I am able to change my username, I'd be very thankful. You come to regret names you gave yourself when you were 13.
                      #6687    
                    Old March 30th, 2012 (9:59 PM).
                    Amachi's Avatar
                    Amachi Amachi is offline
                    (。・ω・)ノ゙ Hello, I am Amachi-chan~♪
                       
                      Join Date: Jun 2006
                      Location: Australia
                      Gender: Male
                      Nature: Jolly
                      Posts: 5,877
                      We have a whole section dedicated to tutorials, but here's the one I used: http://www.pokecommunity.com/showthread.php?t=164276

                      You should really give it a read through first before trying anything.
                      __________________
                      CHILL OUT DUDES, I GOT THIS
                      Paired with Juicy.
                        #6688    
                      Old March 31st, 2012 (4:04 PM). Edited March 31st, 2012 by ChikoritaMudkipz.
                      ChikoritaMudkipz's Avatar
                      ChikoritaMudkipz ChikoritaMudkipz is offline
                         
                        Join Date: Jun 2009
                        Gender: Male
                        Posts: 30
                        So it's been a while since I've hacked, about 2-3 years, and the other day I decided to get into it again.

                        So I downloaded the tools I usually use, pokescript, and and advanced map, and went to town.

                        Problem is, the version I downloaded quits if you ask a yes/ no question to the player. Regardless of what they pick, the script ends.

                        So I have a few questions.

                        1. Does anyone have a download link to a working version of pokescript that isn't that stupid 4shared one.
                        2. Is pokescript out dated? Is there something else I should use that's similar?

                        I love to hack, but I'd hate to have to learn a whole new scripting language.

                        Anyway, thanks.
                        Oh, and added a youtube video so you all know I sort of know what I'm doing, and I'm not some noob that took fire red and turned all the houses into caves or something.
                        http://www.youtube.com/watch?v=XyfwplS1E6o
                        __________________
                        youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
                        check out my shiny gold x run!
                          #6689    
                        Old March 31st, 2012 (4:26 PM).
                        Quickster's Avatar
                        Quickster Quickster is offline
                        Dream or Drop?
                           
                          Join Date: Oct 2007
                          Gender: Male
                          Nature: Quiet
                          Posts: 351
                          Quote:
                          Originally Posted by ChikoritaMudkipz View Post
                          So it's been a while since I've hacked, about 2-3 years, and the other day I decided to get into it again.

                          So I downloaded the tools I usually use, pokescript, and and advanced map, and went to town.

                          Problem is, the version I downloaded quits if you ask a yes/ no question to the player. Regardless of what they pick, the script ends.

                          So I have a few questions.

                          1. Does anyone have a download link to a working version of pokescript that isn't that stupid 4shared one.
                          2. Is pokescript out dated? Is there something else I should use that's similar?



                          I love to hack, but I'd hate to have to learn a whole new scripting language.

                          Anyway, thanks.
                          Oh, and added a youtube video so you all know I sort of know what I'm doing, and I'm not some noob that took fire red and turned all the houses into caves or something.
                          http://www.youtube.com/watch?v=XyfwplS1E6o

                          You should deffinately learn XSE. HackMew made the program and it's fairly similar to PokeScript. You should get the latest version (though I dont know where... :I) and look at Diego's tutorial on it. Its a translated version of thethethethe's PokeScript tutorial.
                          __________________
                          I laugh looking at this.

                          But sometimes I want to come back to it...

                            #6690    
                          Old March 31st, 2012 (4:46 PM).
                          ChikoritaMudkipz's Avatar
                          ChikoritaMudkipz ChikoritaMudkipz is offline
                             
                            Join Date: Jun 2009
                            Gender: Male
                            Posts: 30
                            Quote:
                            Originally Posted by Quickster View Post
                            You should deffinately learn XSE. HackMew made the program and it's fairly similar to PokeScript. You should get the latest version (though I dont know where... :I) and look at Diego's tutorial on it. Its a translated version of thethethethe's PokeScript tutorial.
                            I have tried XSE before, but was never truly a fan of it, and ended up going back to pokescript.
                            Ideally I'd like to get the version of pokescript I need, but I will resort to XSE if I have to.

                            Thanks for the reply!
                            __________________
                            youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
                            check out my shiny gold x run!
                              #6691    
                            Old March 31st, 2012 (5:30 PM).
                            droomph's Avatar
                            droomph droomph is offline
                            weeb
                            • Crystal Tier
                             
                            Join Date: Sep 2011
                            Location: nowhere spectacular
                            Age: 20
                            Gender: Male
                            Nature: Impish
                            Posts: 4,291
                            Quote:
                            Originally Posted by ChikoritaMudkipz View Post
                            I have tried XSE before, but was never truly a fan of it, and ended up going back to pokescript.
                            Ideally I'd like to get the version of pokescript I need, but I will resort to XSE if I have to.

                            Thanks for the reply!
                            I dunno why you would like Pokescript, but it's been out of commission since, like, three years.

                            Try PKSV. It's kinda the same with the development thing, but it's a lot easier to use, and it's a tiny bit less out of date.

                            But ultimately try XSE again, I'm sure you'll love it.

                            Also, remember to try Darthatron's Scripter when it does come out. I heard it's gonna be awwwwweesome
                            __________________
                            did u no there r 21 letters in the alphabet
                            o i forgot 5
                            uraqt


                              #6692    
                            Old March 31st, 2012 (5:55 PM). Edited March 31st, 2012 by ChikoritaMudkipz.
                            ChikoritaMudkipz's Avatar
                            ChikoritaMudkipz ChikoritaMudkipz is offline
                               
                              Join Date: Jun 2009
                              Gender: Male
                              Posts: 30
                              Quote:
                              Originally Posted by droomph View Post
                              I dunno why you would like Pokescript, but it's been out of commission since, like, three years.

                              Try PKSV. It's kinda the same with the development thing, but it's a lot easier to use, and it's a tiny bit less out of date.

                              But ultimately try XSE again, I'm sure you'll love it.

                              Also, remember to try Darthatron's Scripter when it does come out. I heard it's gonna be awwwwweesome
                              What's so great about XSE?
                              it seems exactly the same only it has a built in editor, and replaces things like "#raw 0x53" with "HideSprite" or something.

                              I guess I could give it a whirl, once again, thanks for the replies!
                              Anyone have a link to an XSE version guaranteed to work?
                              __________________
                              youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
                              check out my shiny gold x run!
                                #6693    
                              Old March 31st, 2012 (6:24 PM).
                              Quickster's Avatar
                              Quickster Quickster is offline
                              Dream or Drop?
                                 
                                Join Date: Oct 2007
                                Gender: Male
                                Nature: Quiet
                                Posts: 351
                                Quote:
                                Originally Posted by ChikoritaMudkipz View Post
                                What's so great about XSE?
                                it seems exactly the same only it has a built in editor, and replaces things like "#raw 0x53" with "HideSprite" or something.

                                I guess I could give it a whirl, once again, thanks for the replies!
                                Anyone have a link to an XSE version guaranteed to work?
                                Well the only thing is that it is sorta simplified, plus a good amount of the community uses it so it has more support.

                                Ill try to find a link for you too.

                                EDIT:
                                In this post, DrFuji posted a link to the newest one.
                                http://www.pokecommunity.com/showpost.php?p=7103538&postcount=6670
                                __________________
                                I laugh looking at this.

                                But sometimes I want to come back to it...

                                  #6694    
                                Old March 31st, 2012 (6:38 PM).
                                ChikoritaMudkipz's Avatar
                                ChikoritaMudkipz ChikoritaMudkipz is offline
                                   
                                  Join Date: Jun 2009
                                  Gender: Male
                                  Posts: 30
                                  Quote:
                                  Originally Posted by Quickster View Post
                                  Well the only thing is that it is sorta simplified, plus a good amount of the community uses it so it has more support.

                                  Ill try to find a link for you too.

                                  EDIT:
                                  In this post, DrFuji posted a link to the newest one.
                                  Thanks! I often used thethethethe's tutorials, so I think the other guys tutorial would be useful to me, however you never left his full name, so sadly I'm having trouble finding it.

                                  Do you have a link by chance?

                                  Also very impressed by the community so far, thanks for all the help!
                                  __________________
                                  youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
                                  check out my shiny gold x run!
                                    #6695    
                                  Old March 31st, 2012 (6:44 PM).
                                  Diegoisawesome's Avatar
                                  Diegoisawesome Diegoisawesome is offline
                                  Oh god the bees
                                  • Silver Tier
                                   
                                  Join Date: Dec 2007
                                  Location: :noitacoL
                                  Age: 20
                                  Gender: Male
                                  Nature: Naive
                                  Posts: 1,032
                                  Quote:
                                  Originally Posted by ChikoritaMudkipz View Post
                                  Thanks! I often used thethethethe's tutorials, so I think the other guys tutorial would be useful to me, however you never left his full name, so sadly I'm having trouble finding it.

                                  Do you have a link by chance?

                                  Also very impressed by the community so far, thanks for all the help!
                                  diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                                  __________________


                                  My other resources:
                                  My Website
                                  diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                                  diegoisawesome's Miscellaneous Finds
                                  The Ruins of Alph Puzzles
                                  Diego's Miscellaneous Patches
                                  GBA Intro Manager
                                  The Secret Sauce: Triple-Layer Tiles
                                    #6696    
                                  Old March 31st, 2012 (6:53 PM). Edited March 31st, 2012 by ChikoritaMudkipz.
                                  ChikoritaMudkipz's Avatar
                                  ChikoritaMudkipz ChikoritaMudkipz is offline
                                     
                                    Join Date: Jun 2009
                                    Gender: Male
                                    Posts: 30
                                    Quote:
                                    Originally Posted by diegoisawesome View Post
                                    Ah thank you! I hope you all download and enjoy my hack when it's released.

                                    First XSE script and I'm having minor issues.
                                    So I'm using a hide sprite command, however the sprite only disappears once you leave and re-enter the room. Is there a way to force an update without fading the screen or something?

                                    If you want the code, it's here.

                                    Code:
                                    #dynamic 0x2DD100
                                    
                                    #org @start
                                    lock
                                    msgbox @1 0x5
                                    compare LASTRESULT 0x1
                                    if 0x1 goto @take
                                    release
                                    end
                                    
                                    #org @take
                                    hidesprite 0x04
                                    setflag 0x1007
                                    msgbox @2 0x4
                                    waitfanfare
                                    closeonkeypress
                                    setflag 0x829
                                    special 0x16F
                                    release
                                    end
                                    
                                    #org @1
                                    = There's a Pokedex on\nthe ground.\pWould you like to pick it up?
                                    
                                    #org @2
                                    = [black_fr]You received a Pokedex!
                                    facepalm
                                    Figured it out.
                                    Nevermind
                                    __________________
                                    youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
                                    check out my shiny gold x run!
                                      #6697    
                                    Old April 2nd, 2012 (7:25 AM).
                                    MrElephant's Avatar
                                    MrElephant MrElephant is offline
                                    Pokemon Researcher
                                       
                                      Join Date: Oct 2011
                                      Location: United States
                                      Gender: Male
                                      Nature: Serious
                                      Posts: 77
                                      Hey everyone I have a quick question.
                                      #org $script
                                      faceplayer
                                      message $talk
                                      $talk 1 = Hey bro I am going to get \nsome lunch. Seeya later.
                                      boxset 6
                                      applymovement 7 $move
                                      $move 1 ; #binary #raw 0x07 0x07 0x07 0x05 0x05 0x05 0x05 0x54
                                      pausemove 0x0000
                                      #raw 53
                                      #raw 22
                                      #raw 00
                                      setflag 0x200
                                      release
                                      end
                                      This script works, but after I talk to the sprite it freezes my game. He says what he is supposed to and everything, but then when I try to move my character/sprite it wont work. I only want this person that I talk to in the game to happen once. Can someone help me?
                                      __________________
                                      Trying to find time to mod

                                      Lets see I like modding

                                      Dragon Warrior, Lego Racers, Pokemon, Final Fantasy, Mario Racing, Super Smash Bros Brawl, and Banjo.
                                        #6698    
                                      Old April 2nd, 2012 (8:31 AM). Edited April 2nd, 2012 by redx2dth.
                                      redx2dth's Avatar
                                      redx2dth redx2dth is offline
                                      Metapods' got class!
                                         
                                        Join Date: Jul 2011
                                        Location: Im an AI. I live in a chip.
                                        Age: 22
                                        Gender: Male
                                        Nature: Sassy
                                        Posts: 27
                                        I'm having some trouble making a script. I want to basically count the steps a hero takes. I originally was going to use the safari's script but its a special and idk how to edit that. Ant advice?

                                        Nevermind. I basically wanted to make it so a player has to occasionally eat something (items im inserting into the game) or they cant run untill they eat again.

                                        I was going to use a step counter (like the safari zone uses) but it seems way too unnecessary for this type of thing.

                                        I allready know how to check the statysbyte of the RTC so im using that instead. So now if a player doesnt eat every 3 hours the flag for running shoes is reset until they eat again.

                                        Thanks anyways :D
                                          #6699    
                                        Old April 2nd, 2012 (9:40 AM).
                                        Jay the penguin's Avatar
                                        Jay the penguin Jay the penguin is offline
                                           
                                          Join Date: Oct 2011
                                          Gender: Male
                                          Posts: 31
                                          Is there a way to give a pokemon pkrs? If so what command is used?
                                          __________________


                                          My Hack!
                                          Visit the thread!
                                            #6700    
                                          Old April 2nd, 2012 (9:50 AM).
                                          redx2dth's Avatar
                                          redx2dth redx2dth is offline
                                          Metapods' got class!
                                             
                                            Join Date: Jul 2011
                                            Location: Im an AI. I live in a chip.
                                            Age: 22
                                            Gender: Male
                                            Nature: Sassy
                                            Posts: 27
                                            Quote:
                                            Originally Posted by Jay the penguin View Post
                                            Is there a way to give a pokemon pkrs? If so what command is used?
                                            You have to use ASM.

                                            (I didnt make this, JPAN did so credits go to him)

                                            This code here allows you to cure, immunize and catch the pokemon virus. To make it work, put in var 0x8005 a number between 0x1 and 0xf to give it, 0x0 to cure but not immunize and 0x10 or higher to immunize the pokemon, preventing him to ever catch the virus again (even with this code)

                                            ASM Code:
                                            Spoiler:
                                            b507 push {r0-r2, lr}
                                            4806 ldr r0, 0x0203f414 ;Misc block data storage address
                                            6800 ldr r0, [r0]
                                            4906 ldr r1, 0x020370C2 ;var 0x8005, keeps pokerus new status
                                            7802 ldrb r2, [r0]
                                            2a0f cmp r2, 0xf ; if immune, do nothing
                                            dc02 bgt end
                                            8809 ldrh r1, [r1] ;time to remain, bigger than 10 to immunize
                                            2910 cmp r1, 0x10
                                            db00 blt infect
                                            2110 mov r1, 0x10
                                            7001 infect:strb r1, [r0]
                                            bd07 end:pop {r0-r2, lr}


                                            Compiled and ready:
                                            Spoiler:
                                            07 B5 06 48 00 68 06 49 02 78 0F 2A 04 DC 09 88
                                            10 29 00 DB 10 21 01 70 07 BD 00 00 14 F4 03 02
                                            C2 70 03 02
                                            Closed Thread
                                            Quick Reply

                                            Sponsored Links
                                            Thread Tools

                                            Posting Rules
                                            You may not post new threads
                                            You may not post replies
                                            You may not post attachments
                                            You may not edit your posts

                                            BB code is On
                                            Smilies are On
                                            [IMG] code is On
                                            HTML code is Off

                                            Forum Jump


                                            All times are GMT -8. The time now is 7:33 PM.