Whitepinkbun Posted January 20, 2012 Share Posted January 20, 2012 Hmmm nah its only when i teleport ill try re deleting the maps npcs and accounts xDDidn't fix it im afraid :( Link to comment Share on other sites More sharing options...
Growlith1223 Posted January 20, 2012 Share Posted January 20, 2012 Is this housing system made on Eclipse Stable? o.o Link to comment Share on other sites More sharing options...
Growlith1223 Posted January 20, 2012 Share Posted January 20, 2012 Ok now i got it to work but…It don't show the new map moral and npc behavior :s Any help?EDIT:I got it to work XD but now i get an error when trying to loginIt highlights the```CopyMemory ByVal VarPtr(Npc(n)), ByVal VarPtr(NpcData(0)), NpcSize```In the HandleNpcUpdate Link to comment Share on other sites More sharing options...
Justn Posted January 20, 2012 Share Posted January 20, 2012 @Whitepinkbun:> Hmmm nah its only when i teleport ill try re deleting the maps npcs and accounts xD> > Didn't fix it im afraid :(This works for me:server:```Sub HandleWarpToHouse(ByVal index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long) Dim House As Long House = GetVar(App.Path & "\data\accounts\houses.ini", "OPTIONS", "" & Player(index).Name) If House = 0 Then Call PlayerMsg(index, "You do not own a house.", BrightRed) If GetPlayerAccess(index) < ADMIN_MAPPER Then Exit Sub End If ElseIf House < 0 Or House > MAX_MAPS Then Exit Sub End If If House > 0 Then Call PlayerWarp(index, House, GetPlayerX(index), GetPlayerY(index)) Call PlayerMsg(index, "You have been warped to your house.", BrightBlue) Call AddLog(GetPlayerName(index) & " warped to map #" & House & ", his/her house.", ADMIN_LOG) End IfEnd Sub```client:```Private Sub lblHouseGoTo_Click() picHouse.Visible = False WarpToHouseEnd Sub``````Public Sub WarpToHouse() Dim Buffer As clsBuffer Set Buffer = New clsBuffer Buffer.WriteLong CWarpToHouse SendData Buffer.ToArray() Set Buffer = NothingEnd Sub```is that what you have? Link to comment Share on other sites More sharing options...
Growlith1223 Posted January 24, 2012 Share Posted January 24, 2012 @Justn:> It is easy to get it working for Eo2.0…. The problem is with the whole ini file saving... read my post above and you will see the issue. I just don't know how to convert it to an udt :( it still works though I will help u add it in if u want but making a tutorial would be pointless with the ini file still in place> Only thing is just don't let npcs sell houses to players do it manually or find some other way to keep more than one person from being able to click "buy" from the managerI do need help >. Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 16, 2012 Share Posted February 16, 2012 sry for double post but is there a way to make it so there is no npc Manager? :/ also i wanna make it so like when a account is registered, it creates that house and make a new Attribute that warps the player to his own house.Is there a way to do that? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now