| Mirage Source http://miragesource.net/forums/ |
|
| New Gold System http://miragesource.net/forums/viewtopic.php?f=201&t=5140 |
Page 1 of 1 |
| Author: | Lochie [ Sun Mar 01, 2009 2:42 am ] |
| Post subject: | New Gold System |
Okay, I was trying to create a new item and PlayerRec so I could record how much gold they have instead of using an item that appears in the Inventory. I've come to a halt because I've received this silly error: "You have lost your connection with Mirage Source 4" I'm guessing that something isn't synced properly, but for the life of me I've confused myself so I am looking to the genius of this forum to suss it out. So far this is what I have added: SPOILER: (click to show)
I hope someone can work it it out. I really want to get on with added the rest of it in. lol |
|
| Author: | Nean [ Sun Mar 01, 2009 2:45 am ] |
| Post subject: | Re: New Gold System |
You're not adding Code: SGold and Code: CGold in the client enum. Do that and the problem should be fixed.
|
|
| Author: | Robin [ Sun Mar 01, 2009 2:48 am ] |
| Post subject: | Re: New Gold System |
You're not calling; HandlePlayerGold Look at the top of modHandleData. You should see all the CallByAddresses. These call different subs depending on the packet's header. Add an extra call so HandlePlayerGold is called if the packet's header is SGold |
|
| Author: | Lochie [ Sun Mar 01, 2009 3:09 am ] |
| Post subject: | Re: New Gold System |
Nean wrote: You're not adding Code: SGold and Code: CGold in the client enum. Do that and the problem should be fixed.Yup I noticed that after I posted it. lol. That still did not resolve it though. Robin wrote: You're not calling; HandlePlayerGold Look at the top of modHandleData. You should see all the CallByAddresses. These call different subs depending on the packet's header. Add an extra call so HandlePlayerGold is called if the packet's header is SGold Within the Select Case statement? I have now, I believe and still get the same error. Server: Code: Case CGold HandlePlayerGold Index, Parse I added that. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|