Jump to content
GmOcean

Utility: @novend / @nochat

Recommended Posts

This script is very simple. It will allow for Admins to specify which ' Cells ' are open to Vending/Chatting. This is done via 2 @commands, @novend & @nochat will set the cells for each other respectively.

 

atnovendchat.txt

 

Edit: Fixed & Update to v0.4

Edited by GmOcean
  • Upvote 1
Link to comment
Share on other sites

I put it in the folder of my npc and does not work, I do something else? also throws error, use @ novend @ nochat invalid command off.
Link to comment
Share on other sites

Yea, I'm sorry, this script makes use of the ' bindatcmd ' script command which allows us to make custom @commands, using script code. Doing so lets us make more diverse commands, and also make them editable without the need to recompile the server.

Link to comment
Share on other sites

Alright. For this command, to work, you simply stand on 1 location, then use the command. It will instruct you to stand on another location and use the command again. After doing so, every cell inside of that square, is now un-vendable / un-chatable. I know this kinda seems redundant, and wondering why I didn't just make it so you input all the coordinates, well, that's because, some people can't remember to do that.

 

Though, I do have it in the works for that version to be released, I'm just a tad-bit busy atm.

 

Edit: Updated file, to use a 'simpler' way of settings cells. (ex. @novend/@nochat <x1> <y1> <x2> <y2> <on/off>)

Edit 2: Updated to v0.3 Fixed a bug with commands setting different cells.

Edited by GmOcean
Link to comment
Share on other sites

Yes, that is correct. It isn't persistent through a server restart or shutdown. In fact in every case where an NPC sets the cells, it is not persistent, is only through the use of OnInit does it make it reset them every start-up. The point of this small utility is just merely, to allow for on the fly setting. It was not intended to be a permanent setting until unset. If that is needed then they should create a script which will set those cells that way.

Link to comment
Share on other sites

[Warning]: Unexpected type for argument 2. Expected number.
[Debug]: Data: variable name='[email protected]$' index=0
[Warning]: Unexpected type for argument 3. Expected number.
[Debug]: Data: variable name='[email protected]$' index=1
[Warning]: Unexpected type for argument 4. Expected number.
[Debug]: Data: variable name='[email protected]$' index=2
[Warning]: Unexpected type for argument 5. Expected number.

Got this error when i used the commands

Using RA

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
Reply to this topic...

×   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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.