GmOcean Posted September 12, 2013 Posted September 12, 2013 (edited) 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 November 5, 2013 by GmOcean 1 Quote
Core1 Posted September 12, 2013 Posted September 12, 2013 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. Quote
GmOcean Posted September 12, 2013 Author Posted September 12, 2013 Well, first are you using rAthena or eAthena? Because it's designed for rA only. Until I know more, I'm unable to help you. Quote
GmOcean Posted September 12, 2013 Author Posted September 12, 2013 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. Quote
Lil Troll Posted September 13, 2013 Posted September 13, 2013 This one is great, +1 again for sir liondhart! Quote
xavii93 Posted September 14, 2013 Posted September 14, 2013 can you explain how it works pls? Thx Quote
GmOcean Posted September 14, 2013 Author Posted September 14, 2013 (edited) 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 September 21, 2013 by GmOcean Quote
nanakiwurtz Posted October 3, 2013 Posted October 3, 2013 I'm not sure if the 'setcell' will be persistent, for example when the server restart/shutdown. Quote
GmOcean Posted October 7, 2013 Author Posted October 7, 2013 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. Quote
NexusXVI Posted November 4, 2013 Posted November 4, 2013 [Warning]: Unexpected type for argument 2. Expected number.[Debug]: Data: variable name='.@a$' index=0[Warning]: Unexpected type for argument 3. Expected number.[Debug]: Data: variable name='.@a$' index=1[Warning]: Unexpected type for argument 4. Expected number.[Debug]: Data: variable name='.@a$' index=2[Warning]: Unexpected type for argument 5. Expected number.Got this error when i used the commandsUsing RA Quote
GmOcean Posted November 5, 2013 Author Posted November 5, 2013 Ahh, I see. Fixed in my first post. I forgot to use atoi() command, after I updated the script to make it optimized. Quote
NexusXVI Posted November 6, 2013 Posted November 6, 2013 Ahh, I see. Fixed in my first post. I forgot to use atoi() command, after I updated the script to make it optimized. Same error sir. Quote
GmOcean Posted November 6, 2013 Author Posted November 6, 2013 That's odd, i'm not receiving any errors. I'll have another look at it, when I get home from work. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.