Jump to content

Utility: @novend / @nochat


GmOcean

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  08/24/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  08/24/13
  • Last Seen:  

eamod :c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

This one is great, +1 again for sir liondhart! :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   1
  • Joined:  09/01/13
  • Last Seen:  

can you explain how it works pls? Thx :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I'm not sure if the 'setcell' will be persistent, for example when the server restart/shutdown.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

[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 commands

Using RA

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Ahh, I see. Fixed in my first post. I forgot to use atoi() command, after I updated the script to make it optimized.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

That's odd, i'm not receiving any errors. I'll have another look at it, when I get home from work.

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  244
  • Reputation:   17
  • Joined:  11/19/11
  • Last Seen:  

script please

 

What do you mean?

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