Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] House Editor


Alatar
 Share

Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

@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 If

End Sub
```
client:
```
Private Sub lblHouseGoTo_Click()
    picHouse.Visible = False
    WarpToHouse
End Sub
```
```
Public Sub WarpToHouse()
    Dim Buffer As clsBuffer
    Set Buffer = New clsBuffer
    Buffer.WriteLong CWarpToHouse
    SendData Buffer.ToArray()
    Set Buffer = Nothing
End Sub
```
is that what you have?
Link to comment
Share on other sites

@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 manager

I do need help >.
Link to comment
Share on other sites

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...