| Mirage Source http://web.miragesource.net/forums/ |
|
| resync button http://web.miragesource.net/forums/viewtopic.php?f=210&t=3924 |
Page 1 of 1 |
| Author: | Ligaman [ Tue Jul 01, 2008 1:24 pm ] |
| Post subject: | resync button |
You know sometimes when you load a new map your char lags so i would like to make a resync button. Could someone post the code for it to understand it so i can use it? -Ligaman |
|
| Author: | Leighland [ Tue Jul 08, 2008 4:57 am ] |
| Post subject: | Re: resync button |
Explain to me what you mean by resynching? If you mean simply reloading the surfaces you can do it like so: in modCommands: Code: If Mid(MyText, 1, 8) = "/refresh" Then
If MsgBox("You are about to refresh all the graphics surfaces. This could take some time, and may also 'mess the graphics up'. If anything looks distroted after reshing, you may try to do it again, but it is better to restart the game client." & vbNewLine & "Do you wish to refresh?", vbYesNo, "Warning") = vbYes Then Call DestroyDirectX Call InitDirectX Call AddText("Surfaces recallibrated.", white) End If MyText = "" Exit Sub End If |
|
| Author: | Coke [ Tue Jul 08, 2008 6:41 am ] |
| Post subject: | Re: resync button |
Wow, I never actually thought of that command - rly useful for editing sprites etc and staying in-game o.0 He means an x/y refresh. I'll paste the code here later. |
|
| Author: | James [ Tue Jul 08, 2008 9:14 am ] |
| Post subject: | Re: resync button |
Code: ' Sync If LCase$(Mid$(MyText, 1, 5)) = "/sync" Or LCase$(Mid$(MyText, 1, 7)) = "/resync" Then Call SendData("RESYNC" & END_CHAR) MyText = vbNullString Exit Sub End If Code: ' ::::::::::::::::::::: ' :: Resync packet :: ' ::::::::::::::::::::: Case "resync" Call PlayerWarp(Index, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index)) Call PlayerMsg(Index, "Resynced!", White) Exit Sub Figure out where it goes. Next. |
|
| Author: | Coke [ Tue Jul 08, 2008 10:15 am ] |
| Post subject: | Re: resync button |
blz i can has code for 3d ISO 1289731739x9283402984902 maps k? |
|
| Author: | Leighland [ Tue Jul 08, 2008 5:05 pm ] |
| Post subject: | Re: resync button |
Fox wrote: Wow, I never actually thought of that command - rly useful for editing sprites etc and staying in-game o.0 He means an x/y refresh. I'll paste the code here later. Thatsexactly why i made that code lol. I did all my quest editng in game and was starting to realize how easy it wouldbe to just draw the quest items, recallibrate the surfaces and then test it right away without having to log in and out a thousand times. |
|
| Author: | Coke [ Tue Jul 08, 2008 9:31 pm ] |
| Post subject: | Re: resync button |
Leighland wrote: Fox wrote: Wow, I never actually thought of that command - rly useful for editing sprites etc and staying in-game o.0 He means an x/y refresh. I'll paste the code here later. Thatsexactly why i made that code lol. I did all my quest editng in game and was starting to realize how easy it wouldbe to just draw the quest items, recallibrate the surfaces and then test it right away without having to log in and out a thousand times. <3, It usually annoys the hell out of me but I've never actually thought of doing anything about it ^.^ |
|
| Author: | Lea [ Wed Jul 09, 2008 12:22 am ] |
| Post subject: | Re: resync button |
Yeah, that is a good idea <3 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|