|
Post by friendlyfire on May 5, 2007 13:28:36 GMT
Could you add a command for the player to delete their character from the server vault? Preferably with a confirmation option. I believe this is doable with NWNX and leto, but I have no idea how to use them. Oh, and as someone else here suggested... I would like !anon on by default. TY Funky.
|
|
|
Post by Acaos on May 5, 2007 16:25:31 GMT
This already exists in the newest SIMTools, the !delete command.
Acaos
|
|
|
Post by friendlyfire on May 5, 2007 16:34:26 GMT
Hmmm, I have version 2.1 from the Vault, which still appears to be the current version, but !delete is not mentioned and does not do anything.... I completely accept the possibility that I have made a foolish mistake, but could someone confirm where the code for it is so that I can check I actually have it? Thanks.
|
|
|
Post by Acaos on May 5, 2007 16:39:56 GMT
I'll have to leave any further answers up to Funky - It might be a HG extension, but I'm pretty sure he put it in the newest release. If that's the case, then my mistake, sorry.
Acaos
|
|
|
Post by FunkySwerve on May 5, 2007 17:21:50 GMT
It IS in version 3.0, but that is still in beta on our servers. It'll be released shortly. Here's the new content, roughly:
Changelog V3.0 -Added dozens of new commands, emotes, and languages: -added emotes: 'nope'; 'sy' and 'sway'; 'hl' and 'hello'; 'tp' and 'trip'; 'co' and 'collapse'; 'lie'; 'rt' and 'rest'; 'lk' and 'look'; 'cn' and 'chant'; 'wl' and 'wail'; 'mn' and 'moan'; 'gn' and 'groan'; smoke shortcut changed from 'sm' to 'sk'; 'sm' and 'scream'; 'sz' and 'sneeze'; 'spit' (male only); 'snarl'; 'bk' and 'bark'; 'hw' and 'howl'; 'ht' and 'hoot'; mock shortcut chaged from 'mo' to 'mk'; 'mw' and 'meow'; 'mo' and 'moo'; 'screech'; 'rr' and 'roar'; 'tt' and 'toast' (male only); 'bh' and 'belch' (male only); 'bp' and 'burp' (male only); 'hp' and 'hiccup' (male only); 'kn' and 'kneel'; 'gw' and 'guffaw'; 'cr' and 'chortle'; 'bye'; 'gt' and 'goodnight'; 'gb' and 'goodbye'; 'cry'; 'sb' and 'sob'; 'wp' and 'weep'; 'ow' and 'ouch'; 'cg' and 'cough'; 'choke'; -added languages: Troll, Thri-Kreen, Grimlock, Half-Orc, Kuo-Toan, Kenderspeak, Minotaur, Rakshasa, Stinger, Lizardman, Illithid, Hobgoblin, Duergar, Bugbear, Githzerai, Korred, Sahaguin, Yuan-Ti, Pixie, Magic, Sirensong, Hengeyokai, Svirfneblin, High Shou, Psionic, Averial, Kobold, Necromantic, Ogre -added commands: help, settail, setwings, delete, wpnone -added dm_ commands: dm_align_chaos, dm_align_evil, dm_align_good, dm_align_law, dm_fac_a_allally, dm_fac_a_allfoe, dm_fac_a_peace, dm_fac_a_reset, dm_fac_c_allally, dm_fac_c_allfoe, dm_fac_c_peace, dm_fac_c_reset, dm_fac_m_allally, dm_fac_m_allfoe, dm_fac_m_peace, dm_fac_m_reset, dm_fac_p_allally, dm_fac_p_allfoe, dm_fac_p_peace, dm_fac_p_reset, dm_givepartyxp, dm_givepartylevel, dm_takepartyxp, dm_takepartylevel, dm_item_id, dm_item_destroy_all, dm_item_destroy_equip, dm_item_destroy_inv, dm_help, dm_boot, dm_sql, dm_rest, dm_reveal, dm_hide, dm_jump, dm_portpartyhere, dm_portpartyhell, dm_portpartyjail, dm_portpartyleader, dm_portpartythere, dm_portpartytown, dm_setcha, dm_setcon, dm_setdex, dm_setint, dm_setstr, dm_setwis, dm_setfort, dm_setreflex, dm_setwill, dm_settime, dm_setvarint, dm_setvarfloat, dm_setvarstring, dm_setvarmodint, dm_setvarmodfloat, dm_setvarmodstring, dm_getvarint, dm_getvarfloat, dm_getvarstring, dm_getvarmodint, dm_getvarmodfloat, dm_getvarmodstring, dm_setweather_a_clear, dm_setweather_a_rain, dm_setweather_a_reset, dm_setweather_a_snow, dm_setweather_m_clear, dm_setweather_m_rain, dm_setweather_m_reset, dm_setweather_m_snow, dm_spawn, dm_vent -Added command completion, which pops up menus to assist the user when a command or emote is entered incorrectly (Linux only). -Added a Command Targeter, to allow much greater freedom in targeting commands. They may still be targeted via tell, but if they are not, the user will be prompted to target by either using the Command Targeter or by sending a tell with the !target command. -Added a channel muting option for silenced characters. -SIMTools now utilzes a new nwx plugin, nwnx_events by Virusman, which allows users to hook events like onattacked, onpickpocket, and more. It also allows detection of conversation node #s via script, greatly reducing the number of scripts required for conversations (Linux only).
Oh, the delete command, has a dm-only option in config, and requires them to confirm it by entering the command again followed by their cd key (which they can get from playerinfo). There's another option called SAFE_DELETE that you can toggle in config, which just renames the character to .utc instead of full deletion, so they do not appear in the character selection screen but can be retrieved at any time.
Best, Funky
|
|
|
Post by friendlyfire on May 5, 2007 17:57:23 GMT
Wow, impressive stuff, I'll look forward to the public release!
Thank you.
|
|
|
Post by friendlyfire on Jun 7, 2007 21:49:57 GMT
I've just upgraded to 3.0 - specifically for the !delete command, but I'm having trouble getting it to work... Here is the sequence I'm trying:
!delete > Please use your command targetter....
I select myself with the targetter and get the message > Please confirm deletion by sending command again followed by the cd key shown in playerinfo.
!delete QVMNNJRY > Invalid Command!
I have DMS_CAN_DELETE = TRUE PLAYERS_CAN_DELETE = TRUE
set in the config file, my CD key is in as a DM key. !playerinfo works fine and correctly identifies the key. Just out of interest, your example windows, server vault path, uses unix slashes (forward) rather than the normal backwards windows ones, but I'm pretty sure my attempt is not getting that far... Is it sensitive to that?
Thanks!
|
|
|
Post by Acaos on Jun 7, 2007 22:08:37 GMT
Try this:
/tp "Your Playername" !delete CDKEY
Acaos
|
|
|
Post by FunkySwerve on Jun 8, 2007 2:23:34 GMT
The vault path is correct as is, not sure if the other way will work as I've never tried it. As far as the delete command, I checked it again to see if there was a case sensitivity issue, but it doesn't appear to be. It should even be working whether or not there is a space between the command and the key. Just to be sure, though, try them without the space and with, and in caps and small case, and with and without the command targeter (using tells as the alternative). That should isolate the issue quickly. Thanks, Funky
|
|
|
Post by friendlyfire on Jun 8, 2007 23:04:19 GMT
OK here is what is happening to me (looking in the chat _inc):
/tp "friendlyfire" !playerinfo > please use command targetter.... which I then use
This prints out the correct playerinfo. I was surprised that I needed the targetter having sent the command as a tell to myself.
!delete > please use command targetter.... which I then use By adding some debug, I see that FKY_CHAT_DELETE_CONFIRM is FALSE (as expected), so the first block is skipped, else if (sCText == "delete") is TRUE so this block executes: eventually leading to SetLocalInt(oCTarget, "FKY_CHAT_DELETE_CONFIRM", 1); FloatingTextStringOnCreature(COLOR_RED+CONFIRM_DELETE+COMMAND_SYMBOL+CONFIRM_DELETE2+COLOR_END, oCPC, FALSE); which I see and having tested the local int, I know to be set correctly So having completed part one correctly, I then type
!delete QVMNYNFD
And this is where I have a problem... oCTarget is not defined when it gets to nCount = GetLocalInt(oCTarget, "FKY_CHAT_DELETE_CONFIRM");
So the first block is skipped again. As I've added a public key to the command, else if (sCText == "delete") is now FALSE. So I fall through to the Invalid Command trap - I never get to reselect myself as the target. I'm assuming that somewhere along the line the current target object should be saved on the PC object as a local, but I don't see this happen, maybe I'm not looking hard enough.
I tried /tp "friendlyfire" !delete QVMNYNFD and all case/space variations, none work - which is logical given the above analysis - excepting that I expected the tell target to define oCTarget at some point.
I'm suspicious that the problem is in how you sort out the command target, but I thought I would seek your opinion at this point. I have been very careful not to alter your code in any way and deduced the above with simple SendMessageToPC one liners at key points.
The strangest thing is that I assume this is working for others, so must be installtion related, but I have only changed the most basic settings in the config file. I am also running your HGLL system, but I have had this problem with ALREADY_USING_LETO set to both TRUE or FALSE (which would you recommend, if not using any othere NWNX/Leto scripts?). Thanks for your time.
Edit: Additional info - when I get the 'use command targetter or send !target tell' message, if I send a tell to myself with !target I get the message: The target is no longer valid! Command cancelled.
|
|
|
Post by FunkySwerve on Jun 8, 2007 23:11:06 GMT
Running a few tests, will get back to you shortly. Funky
|
|
|
Post by FunkySwerve on Jun 8, 2007 23:29:10 GMT
It does appear to be a problem with the command targeter. I was able to confirm only using a tell. Should have a hotfix soon. Funky
|
|
|
Post by friendlyfire on Jun 8, 2007 23:35:59 GMT
Hmmm, my tells don't appear to target (see edit above).... I'll let you look for a bit then (sleep time here) thanks for the quick response.
|
|
|
Post by FunkySwerve on Jun 9, 2007 0:05:13 GMT
I'd recommend sending yourself an actual tell, not using the /tp mechanism. You can target this way, but it's just another thing to misenter. Also, make sure there is no space between the / and the tp, though it sort of looks like there is one when you look at it here. Funky
|
|
|
Post by FunkySwerve on Jun 9, 2007 2:04:42 GMT
The issue is that it checks the target for the confirmation int before it verifies the target - meaning that unless you sent via tell you can't access the confiration sequence. Will be fixed in an update shortly, along with a bug that makes area-targetable commands reprompt targeter use every time they execute with the targeter. Funky
|
|