• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

-Request- How to add Time To Castle

cuba

New Member
Joined
Feb 24, 2015
Messages
136
Reaction score
2
Hello otland how can i make the castle doll when i click on it i will get castle for 30 days and when 30 days finish the castle which i bought it back to what it was like
 
i have idea when player click on castle doll will add to him storage (xxxx,30) 30 = days ,after 30 days clean house do this script in globalevents
 
How you make it?
You use (most likely) an onStartup function, to remove it - set the ownerId to -1(or even better your God char so others can't buy it).
Then by using an item, iterate through the house ids you want to rent out and once you find a free one, remove the item and set the ownerid to the players guid.
 
Back
Top