Problem with .secure command.
Moderator: POL Developer
Problem with .secure command.
Good afternoon.
I have a pol95 shard but i can't use the command .secure in my house.
The player dont can uses too.
Were i found the secure system for players house. Or wath and were i found the code [.create 0x____] of .secure exist?
Were i find or change this name. ... please helpme!
I have a pol95 shard but i can't use the command .secure in my house.
The player dont can uses too.
Were i found the secure system for players house. Or wath and were i found the code [.create 0x____] of .secure exist?
Were i find or change this name. ... please helpme!
[Sorry i dont speak english very good] I'm from Brasil.... RJ
It leaves I to explain, when I type I command .secure nothing I happen, as if the command exist, already had not said me that a code exists .create for this secure chest of the owner of the house. I want to know where I can find this command… and it will be itself the case, to enter in script, to edit for .secure to save and to compile again. If they someone will have this ready system, I am thankful if to send me… Mine yahoo: to comonier Mine msn: comonier@hotmail.com My email: comonier@gmail.com Debtor. I continue trying to decide this problem.
It leaves I to explain, when I type I command .secure nothing I happen, as if the command exist, already had not said me that a code exists .create for this secure chest of the owner of the house. I want to know where I can find this command… and it will be itself the case, to enter in script, to edit for .secure to save and to compile again. If they someone will have this ready system, I am thankful if to send me… Mine yahoo: to comonier Mine msn: comonier@hotmail.com My email: comonier@gmail.com Debtor. I continue trying to decide this problem.
-
- Distro Developer
- Posts: 2825
- Joined: Thu Feb 02, 2006 1:41 pm
- Location: San Antonio, Texas
- Contact:
I have 28,375 source files from over 7 different shards and third party packages and I cannot locat a .secure command for housing systems.
I believe what you are trying to do is create a secure container in a house. If so you need to be the owner of the house, you need to be inside the house and you need to be visible. Once you have met those criteria then you type the following phrase:
I wish to secure this
You should get a target. Click on the container you wish to secure and it should be marked by the housing system as a secure container and its "use" script will be changed to the secure container use script.
I hope that helps.
I believe what you are trying to do is create a secure container in a house. If so you need to be the owner of the house, you need to be inside the house and you need to be visible. Once you have met those criteria then you type the following phrase:
I wish to secure this
You should get a target. Click on the container you wish to secure and it should be marked by the housing system as a secure container and its "use" script will be changed to the secure container use script.
I hope that helps.
Exatly this!I believe what you are trying to do is create a secure container in a house. If so you need to be the owner of the house, you need to be inside the house and you need to be visible.
I Understand you sad about say the command:
I wish to secure this
1) But how can i chage the script for the player dont need type this. And only need type .secure to create a secured container in your house ?
2) Wath is the script file for this operation ?
3) Were i found it ?[/quote]
-
- Distro Developer
- Posts: 2825
- Joined: Thu Feb 02, 2006 1:41 pm
- Location: San Antonio, Texas
- Contact:
If you are using POL 95 Distro you will find the secure script is not just one script. It is part of the signControl script and house.inc in \pol\pkg\items\housing
The problem in converting that to a text command is that this script does several tests to be sure the person securing the item has the access rights to perform the securing function. The command is integrated into the whole speech handling system. It would be easier to shorten the speech to "secure this" for now and later, when you feel like taking on a larger project you could break apart the pieces of the script and create a <dot> command.
If you want to shorten the speech necessary to secure a container simply edit this line in house.inc found in \pol\pkg\items\housing:
elseif (text["i wish to secure this"] or text["i wish to unsecure this"])
It should be at or near line number 529
Simply change the text "i wish to secure this" to whatever you want to shorten it to and save the file and then recompile all your scripts. I would recommend not making it just the word secure. Use atleast two words in the command.
The problem in converting that to a text command is that this script does several tests to be sure the person securing the item has the access rights to perform the securing function. The command is integrated into the whole speech handling system. It would be easier to shorten the speech to "secure this" for now and later, when you feel like taking on a larger project you could break apart the pieces of the script and create a <dot> command.
If you want to shorten the speech necessary to secure a container simply edit this line in house.inc found in \pol\pkg\items\housing:
elseif (text["i wish to secure this"] or text["i wish to unsecure this"])
It should be at or near line number 529
Simply change the text "i wish to secure this" to whatever you want to shorten it to and save the file and then recompile all your scripts. I would recommend not making it just the word secure. Use atleast two words in the command.
I think I'd definitely recommend the dot-command route, if you are looking for something shorter to type. The reason the spoken commands are long is so they are not accidentally spoken in the midst of normal speech. For instance, it could be quite common while in a house to simply say 'secure this', without having any intention of actually securing something. Accidentally saying that while another cursor is up, or without realizing what is happened can easily end up with a container getting secured/unsecured without being intended... so as Kiko mentions, don't try to make a spoken command too short.
-
- Distro Developer
- Posts: 2825
- Joined: Thu Feb 02, 2006 1:41 pm
- Location: San Antonio, Texas
- Contact:
Marilla the primary reason I recommended shortening the spoken command initially was because I assumed the reason he was asking for a <dot> command was for brevity. So the quickest way is to shorten the speech until he is able to script a <dot> command. It was meant as a temporary measure. Personally I like the idea of <dot> commands for all house operations like lockdown and secure but haven't yet tackled the thing.
Comonier, what version of scripts are you using? I assumed you were using POL 95 Distro. If so it has the file I referenced.
Comonier, what version of scripts are you using? I assumed you were using POL 95 Distro. If so it has the file I referenced.