Jump to content
  • 0

Housing System using instance


sikiro

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

would it be possible to create housing  using instance system i know there is a very old housing system arround but it required adding duplicate maps to the game and it was very time consuming.  i am terrible at scripting but i do understand how it works if you can point me in the right direction i can most likely finish it or add to it.

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

Bump?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

This is something I though about doing a long time ago but I wanted to add much more to it. In any case this is a request that I won't be undertaking.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

awww alright well can you at least point me in the right direction as to getting it started. i am not the best at scripting but if iget an idea on how to sort out the houses etc i can do the rest.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

I made a House System like that and a can tell you that is not a simple thing for a beginner. A lot of situations that can bug and exploits depending of your server confs (no warp and etc).
 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

i understand the risks but i will never learn if i dont try i asked for some guidance plus yours is very complex with construction i dont need any of that to begin at least.

Edited by sikiro
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

8 hours ago, Zell said:

I made a House System like that and a can tell you that is not a simple thing for a beginner. A lot of situations that can bug and exploits depending of your server confs (no warp and etc).

Pretty cool results. : )

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

20 hours ago, sikiro said:

i understand the risks but i will never learn if i dont try i asked for some guidance plus yours is very complex with construction i dont need any of that to begin at least.

Actually create a instance attached to a player and manipulate it is easy. What is your difficult?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

how can i permanently attach it to a player.

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

4 hours ago, sikiro said:

how can i permanently attach it to a player.

 

You don't you either use variables or an sql table with all the players specifics like, locations, house, and all that other junk. Then use that information to dynamically build the house when the instance is created.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

sounds very confusing T_T ill look into it i have never done any sql work before. thank you!

Edited by sikiro
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

My table structure for house system is something like this:

Table: house

char_id       = Id of a char (Primary Key)
id                = House ID
status         = 1 if placed and 0 if not
map            = Map name
x                 = X (/where)
y                 = Y (/where)
intance_id =  instance id

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

aah makes it easier so far ive been able to create the instance now to learn how to save data to sql and extract it ! ive also noticed there is a housing script you have been hiding Skorm! and i like the idea of renting and selling wouild be it be posible to fix up a bit and making it instance based? 

 

http://upaste.me/acb21058336c53f2b

Edited by sikiro
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

On 3/16/2017 at 8:44 PM, sikiro said:

aah makes it easier so far ive been able to create the instance now to learn how to save data to sql and extract it ! ive also noticed there is a housing script you have been hiding Skorm! and i like the idea of renting and selling wouild be it be posible to fix up a bit and making it instance based? 

 

http://upaste.me/acb21058336c53f2b

Oh yeah I was trying to do some cheeky stuff to save the houses information and all that junk. It's buggy but I'll probably see if I can't fix it up tomorrow. I don't know about the instance bit. Sure it wouldn't be very hard but I don't really see the point.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

omg would be awsome i think the reasoning behind the instances is to prevent duplicating maps.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

14 hours ago, sikiro said:

omg would be awsome i think the reasoning behind the instances is to prevent duplicating maps.

Here is a "working version" there are still some bugs that I'm aware of but I really don't feel like spending anymore time on this script. If I was to make an instance house system I would start from the ground up.
http://upaste.me/71e44369959bcfea1

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

@zell so i have been working on concepts and getting things to work the way i want them to so progress is good is there any posibility for you to show me an example of  the sql bit of pulling info for a player house and as well as when they buy one inputing the information. so far i can teleport to the house and add remove npcs but it is temporary sadly.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...