View Single Post
  #215    
Old January 9th, 2009, 04:40 AM
Larsie13
Gone
 
Join Date: Oct 2006
Location: The Netherlands
Age: 23
Nature: Modest
Quote:
Originally Posted by Hyunbin View Post
i'm trying to write a script that will make the player talk to a npc
first he'll walk over to the person and then i need a command that will be like an "a button" so it will start the next script that will have that npc talking to the player

the first problem i'm having is that the "trap" doesn't work
when i walk the player over to the spot nothing happens
this is my script:

Spoiler:
Code:
#Dynamic 0x800BF8

#org @start
checkflag 0x828
if 0x0 goto @todesk
if 0x1 goto @end
end

#org @todesk
lock
applymovement 0xFF @move
waitmovement 0x0
release
end

#org @move
#raw 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0xFE (3 left, 5 down, 3 left)

#org @end
release
end
Try this:
Spoiler:
Code:
#Dynamic 0x800BF8

#org @start
lockall
checkflag 0x828
if 0x0 goto @todesk
goto @end
end

#org @todesk
applymovement 0xFF @move
waitmovement 0x0
releaseall
end

#org @move
#raw 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0xFE (3 left, 5 down, 3 left)

#org @end
releaseall
end

And if that doesn't work, you might want to change the Var Number / Var Value from A-Map to 4050 / 0003 respectively.