Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About signs....
#1
I followed the tutorial in the archive for adding signs,
Everything compiled with no errors. I can add the sign attribute and even edit the signs...

The only thing not working is when I walk on the sign and press enter nothing happens... :?

Also I would like to know how I would go about making it so I don't have to walk on the signs to read them.

Thanks Smile
Reply
#2
What source are you using?
Url to the tutorial?
Reply
#3
Umm the tutorial was ....http://web.miragesource.com/old-tutorial...Signs.html


And Im using a source that I got from Robin (winds whisper source)...
Reply
#4
ok see this part

Code:
Dim SignPacket As String
        If Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).Type = TILE_TYPE_SIGN Then
              SignNum = Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).Data1
              SignPacket = "requestsign" & SEP_CHAR & SignNum & SEP_CHAR & END_CHAR
              Call SendData(SignPacket)
       End If

that is what calls the sign it is not set right to call the sign so you will get no sign. here is how to make it appear on click enter.
Code:
If KeyCode = vbKeyReturn Then
        If Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).Type = TILE_TYPE_SIGN Then
              SignNum = Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).Data1
              SignPacket = "requestsign" & SEP_CHAR & SignNum & SEP_CHAR & END_CHAR
              Call SendData(SignPacket)
       End If
    End If

just make sure you add
Code:
Dim SignPacket As String
after the sub name ^^ liek for instance sub Form_keyUp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)