Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/08/15 in all areas

  1. If it isn't too much work, it'd be useful to have a few more character commands that work regardless of online/offline status. It's both annoying and inefficient (script-wise) to keep checking whether to attachrid or do an SQL query, since attachrid doesn't work for offline characters (obviously) and SQL queries don't update immediately for online characters. And when setting character/account variables, there's the additional check whether to do an SQL update or insertion. Altogether it'd just be a lot more convenient to have these commands, or something similar: Like setd, set a character or account variable for a specified character/account ID. This would work without attachrid(), and regardless of online/offline status. The variable prefix should automatically determine whether the supplied ID is character or account. * setc <character ID>,"<variable name>",<value>; * setc <account ID>,"<variable name>",<value>; Like getd, and same as above.* getc(<character ID>,"<variable name>") * getc(<account ID>,"<variable name>") Also, extend rid2name() and getcharid() to work for offline characters. Opinions?
    1 point
×
×
  • Create New...