Jump to content

"#" command (char_id)


Yum

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   3
  • Joined:  02/17/12
  • Last Seen:  

I come to suggest something that I think is quite useful.

Instead of using the name of the player in command "#", it was possible to use char_id.

Some players have nicknames with space and stuff, it makes can not perform such an operation.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

just use quotes for spaced names o.O

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   101
  • Joined:  11/13/11
  • Last Seen:  

It can be done, but not by char id but by account id. Some players use some weird symbols and it account ids can be easily acquired when using a gm account.

What you guys prefer:

#command account_id or charname

Or

#command @account_id

#command charname

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Not really necessary though.

For example the character's name is: Renji Abarai

the proper command would be:

#item "Renji Abarai" 501

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

the reason for topic starter to bring this up, its because certain server, player are able to put "symbols" in their char name and some country keyboard are unable to key in these symbols which result the command cant work for them.

i would prefer this

#command account_id or charname

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   20
  • Joined:  12/31/11
  • Last Seen:  

#command account_id or charname

Or

#command @account_id

#command charname

What should the command do, when there is for example a char named "22356" or "@22356" and also an account with the id "22356"?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   101
  • Joined:  11/13/11
  • Last Seen:  

#command account_id or charname

Or

#command @account_id

#command charname

What should the command do, when there is for example a char named "22356" or "@22356" and also an account with the id "22356"?

That's a nice question, the only solution that I see for that is to create another symbol for "account id commands", like $item 2000000 501.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   20
  • Joined:  12/31/11
  • Last Seen:  

Another possibility would be to force #commands to use " around the charname, even when there is no space in the name.

So "..." would mean charname, no " around it would mean account_id.

But it could confuse peaple who are used to the old behaviour :S

And another question that came to my mind:

Do the the current #commands work for chars with a " and a space in their name? (for example: some "random\"name)

How would you write it? Escape it? If it also has a \ in the name, escape also the escape char?

Or does it break for such a name?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Hi, I made a diff for this..

It inherits the group permission for charcommands

It uses '!' as char command symbot if you want to use account_id/char_id.

id_charcommand.diff

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

I don't see what's the problem with this, if you're having problems because of your keyboard or whatever, then don't allow those symbols to be used in char names. Easy as that, this is not really necessary at all.

And if you're not the server owner to make that call, then, figure it out, that's why you were "chosen" to be part of the Staff. So you can "work" it out.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  117
  • Reputation:   167
  • Joined:  11/10/11
  • Last Seen:  

Agreed, I can potentially see the use of allowing a character ID property in the # command, but implementing a new command altogether seems a bit of overkill. It'd be more efficient to allow integers (such as #item 123456 501 1) in-place of character IDs, and when the character has a name of explicitly numeric values, detect whether the entered integer has quotation marks around it.

IE: character named 1234, #item 1234 501 1 would fail, however #item "1234" 501 1 would work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  47
  • Reputation:   8
  • Joined:  12/06/11
  • Last Seen:  

@edit: removed because it could possibly be exploited in production servers, see bugreport:6509

Edited by Vianna
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...