View Single Post
  #2593    
Old December 5th, 2009, 05:33 PM
Samike360's Avatar
Samike360
Lover of May
 
Join Date: Mar 2009
Location: ATL
Gender:
Nature: Bold
Quote:
Originally Posted by Jesse[TB Pro] View Post
Daznam. I haz script troubles. Also, sorry in advance for the decompiled version.

Problem: The NPC won't disappear(setflag wise)unless I talk to him a second time. Meaning, he is invisible, but still in my path, so I have to talk to him again. After that, it's all good. Now, why did that happen? Thx

Script:
Spoiler:
Code:
'---------------
#org 0x8020D0
lock
faceplayer
applymovement 0x1 0x8802152
waitmovement 0x0
msgbox 0x8802155 0x6 '"Professor Larch: [blue_fr]Oh hello..."
applymovement 0x1 0x8802313
waitmovement 0x0
sound 0x26
pause 0x10
msgbox 0x8802319 0x6 '"[darknavyblue_fr]>>Where in the he..."
sound 0x26
pause 0x10
applymovement 0x1 0x8802361
waitmovement 0x0
msgbox 0x8802368 0x6 '"Larch: [blue_fr]Oh, I almost forgo..."
additem 0x122 0x1
fanfare 0x13D
waitfanfare
signmsg
msgbox 0x88025BD 0x6 '"[player] recieved the Research\nPa..."
additem 0x16C 0x1
additem 0x153 0x1
normalmsg
applymovement 0x1 0x88025E0
waitmovement 0x0
sound 0x26
pause 0x10
setflag 0x209
release
end


'---------
' Strings
'---------
#org 0x802155
= Professor Larch: [blue_fr]Oh hello there.\nYou must be [player].\pIt's great to finally meet you.\nI've some questions for you, ok?\p[black_fr][player]: [green_fr]Oh really, what kind\nof questions might you mean?\p[black_fr]Larch: [blue_fr]Well, I've been hearing\nreports of some Team Snagga Grunts\pin the area.\nDo you know anything about this?\p[black_fr][player]: [green_fr]Yeah, I actually just\nfought one off a while ago.\p[black_fr]Larch: [blue_fr]I see, I see. Well It's\ngreat to meet you, but I must\pleave now.\nTake care!

#org 0x802319
= [darknavyblue_fr]>>Where in the hell did he run off\nto?\pHe's not going to take on--

#org 0x802368
= Larch: [blue_fr]Oh, I almost forgot the\nreason I called you here.\pI have some vitally important\ndocuments that need to be\pin Mero Town for my associate,\nDr. Oddigem, ASAP.\pI've asked all the locals for\nhelp, but they all seem too busy\pfor the task.\nI knew you were getting your first\pPokémon soon, so I figured you\nwould help.\pSince you are helping me, I will\nhelp you.\pTake this TM Case, along with this\nHM 1, which contains Cut.\pYou need the Badge from Faye, the\nMero Town Gym Leader, to use Cut\poutside of battle, though.\nMero Town is to the East past\pNebel Path.\nWell, I must leave now, good luck!

#org 0x8025BD
= [player] recieved the Research\nPapers.


'-----------
' Movements
'-----------
#org 0x802152
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x802313
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

#org 0x802361
#raw 0x1 'Face Up
#raw 0x61 'Show
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

#org 0x8025E0
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements
Hmm...that has never never happened to me. Make sure the person ID is flag 209, but you should try the hidesprite command-I'm pretty sure that'll fix it
__________________





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.