Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Buyable House System (https://forums.graalonline.com/forums/showthread.php?t=134264134)

Gunderak 08-08-2011 06:23 AM

Buyable House System
 
Basically what i would like to accomplish is about 50 houses on the gmap which players can write /buy housenumber and buy it. they can only own one at a time and what happens is once they buy it itl add a weapon named house editor with free furniature which il script later but for now how would i go by making a tenent system? and only you can enter the house but you can invite people to it too? i am clueless of where to start .

Mark Sir Link 08-08-2011 06:28 AM

if you're clueless where to start, a good starting point would be deciding what features you want to add and making a list of them

Gunderak 08-08-2011 06:39 AM

good idea, starting now. im also thinking of making it serverr.housenumberwhatevrr.owner=then when u buy it you become owner, but how would i mka eit if its already owned you cant buy it maybe if server.housewhatever == null make it avaliable else not avaliable?

Mark Sir Link 08-08-2011 07:56 AM

no

Hezzy002 08-08-2011 07:57 AM

no

(Your more respectable options are a DBNPC that uses SQL DB's or file i/o.)

cbk1994 08-08-2011 09:09 AM

Use a database NPC to store the owner of each house. Communicate with it using public functions. You'll find more information on both of those concepts by searching the forums, the wiki, and Jer's scripting guide. I'd link you but I know you've been given the links many times in the past.


All times are GMT +2. The time now is 05:09 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.