GmOcean Posted September 12, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share 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 Link to comment Share on other sites More sharing options...
Core1 Posted September 12, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 08/24/13 Last Seen: August 11, 2014 Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted September 12, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Core1 Posted September 12, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 08/24/13 Last Seen: August 11, 2014 Share Posted September 12, 2013 eamod :c Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 12, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Lil Troll Posted September 13, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted September 13, 2013 This one is great, +1 again for sir liondhart! Quote Link to comment Share on other sites More sharing options...
xavii93 Posted September 14, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 9 Reputation: 1 Joined: 09/01/13 Last Seen: September 17, 2013 Share Posted September 14, 2013 can you explain how it works pls? Thx Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 14, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
nanakiwurtz Posted October 3, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: May 3 Share Posted October 3, 2013 I'm not sure if the 'setcell' will be persistent, for example when the server restart/shutdown. Quote Link to comment Share on other sites More sharing options...
GmOcean Posted October 7, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
NexusXVI Posted November 4, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted November 5, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
NexusXVI Posted November 6, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted November 6, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Microsoft Posted April 29, 2014 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 244 Reputation: 17 Joined: 11/19/11 Last Seen: March 31, 2015 Share Posted April 29, 2014 script please What do you mean? Quote Link to comment Share on other sites More sharing options...
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.