![]() |
Ownership
how do i script something so that you can own it
|
Re: Ownership
Quote:
well they go something like setstring this.owner,#a; but see it wouldn't work right on a free server |
if (created) message You own me!;
|
Quote:
message I know!; } |
Re: Re: Ownership
Quote:
|
Re: Re: Re: Ownership
Quote:
|
Re: Re: Re: Ownership
Quote:
|
I kn0ow, I is making a free server, and the stupid code is like a mile long to get it to work right, it goes like this,:
if (playerchats&&strcontains(#c,Buy House 1)&&playerrupees<150){} if (playerchats&&strcontains(#c,Buy House 1)&&playerrupees>149){ setstring server.hse1n,#a; playerrupees-=150; } //Door Script if (playerenters||timeout){ message This house is owned by #v(#s,server.hse1n); timeout=0.05; } //and then you have to add all the stuff about selling, but // where it is still free. You can't do much with individual strings, // and I use it as a server string, because I have a list on // onlinestartlocal that says who owns what. So you don't // have to go to each house to see who owns them. Regular // strings tend to only work for one player. -Rebel95 |
ahhhhhhh
you dont need #v for strings!!! and you dont use this. for strings!!! |
Lets all hope he is not a nat on his server..
|
and another thing its not a mile long man. people..
its just setstring server.houseowner1,#a; that makes it = but its not the hole script you just need the server. to make it so other players can see who owns it to. kammy is comming though soon and going to correct me brace yourselves. |
How about just having different flags to assign to a certain player for a certain thing to own, and then set the NPC's mode to something else so no one else can get the owner flag?
That'll work on a free server. |
Quote:
|
how would u make a npc lose ownership but retain percent value if no one hits it for so long an amount of time?
|
Quote:
|
so that the item stays there and is still 78% done or whatever but if no one hits it for say 20 seconds there is no owner and the next person to hit it becomes owner and continues on from 78%
|
start a 20 second timeout everything the player has hit and if that timeout finishes then disable the owner
|
House Script for Free Servers
PURCHASING SCRIPT:
NPC Code:// NPC made by Brandon_Bravo DOOR SCRIPT: NPC Code:// NPC made by Brandon_Bravo KEY SCRIPT: NPC Code:// NPC made by Brandon_Bravo UPDATE: SCRIPT TO TAKE KEYS AWAY: NPC Code:// NPC made by Brandon_Bravo |
hey brandon is that not what i said i just dint add the hole thing.. and to get it to retain.. percent.. just do
setstring server.rock1percent,whatever; and then just do a timeout thing for how ever long and just keep incrementing the server.rock1percent.. then change ownership.. |
I know, it just made sense to post the whole thing :-P
|
Make a timeout. After the timeout has been reached, set the owner to no owner. But, if you activate the npc with a triggeraction or something, reset the timeout.
|
Quote:
|
1 Attachment(s)
hey i have the G2K1 house script but i want it for non p2p
|
| All times are GMT +2. The time now is 03:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.