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

[EO]Building System?


Guest
 Share

Recommended Posts

I was thinking that is there anyway on making a building system?
Like you build things and can tear it down?
If someone greatful enough to share your version of the building system then PM me .
I'll give credit :)

    -Kindly,
    Night~
Link to comment
Share on other sites

It does work with eo2.0 but there is one problem players can buy houses already owned by other players i'm not sure how to add a check to prevent that. The manager npc allows the owenr to sell his map but the npc just sells  the map to whoever comes and talks to it if they got gold =) and the map can be edited by anyone. If you can find another way of giving your houses to people or doing it manually it works fine. :P
Link to comment
Share on other sites

>.> Im assuming you are using regular map files and the map rec.

In Private Type MapRec

add to the bottom "owner as Long"

an upon buying the map SET the owner to the MapRec

then check for an owner when another person tries to buy it.

If they sell the home, either remove the owner from the rec OR change the owner if your allowing player to player Home sales.
Link to comment
Share on other sites

When a  player creates a new character it places the the players name in an ini file like so
```
{Server Options}
Justn=0
Ryoku=0
ect..
```The '0' means the player currently doesn't own a map/house.
When the player interacts with the 'manager npc'  it will check to see if the player ownership is 0 if so it will allow a player to purchase a map/house.
Then it writes the map number by the players name
```
Justn=3
Ryoku=0
```Now if i go back to the npc and talk it will see that i already own map number 3 so it will ask me if i want to sell it back to the npc and it changes my number back to 0\. The problem is when Ryoku comes to the 'manger npc' for map/house #3 it will check to see if you own a house since you dont it will allow you to buy the same house as me
```
Justn=3
Ryoku=3
```
Allowing both players to edit and destroy the house =p

Edit: This is the only check it does
```
If MapOwner = 0 Then
        HType = "Buy"
        HGold = HBuy
    Else
        If MapOwner = HMapNum Then
            HType = "Sell"
            HGold = HSell
```
Link to comment
Share on other sites

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...