| Mirage Source http://web.miragesource.net/forums/ |
|
| About signs.... http://web.miragesource.net/forums/viewtopic.php?f=201&t=4711 |
Page 1 of 1 |
| Author: | Avarit [ Sat Nov 08, 2008 8:10 am ] |
| Post subject: | About signs.... |
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 |
|
| Author: | William [ Sat Nov 08, 2008 3:17 pm ] |
| Post subject: | Re: About signs.... |
What source are you using? Url to the tutorial? |
|
| Author: | Avarit [ Sat Nov 08, 2008 11:59 pm ] |
| Post subject: | Re: About signs.... |
Umm the tutorial was ....http://web.miragesource.com/old-tutorials/approved_tutorials/Signs.html And Im using a source that I got from Robin (winds whisper source)... |
|
| Author: | genusis [ Sun Nov 09, 2008 2:50 am ] |
| Post subject: | Re: About signs.... |
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
|
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|