|
Post by FunkySwerve on Oct 10, 2007 7:29:33 GMT
Unless you changed some part of the scripts, the only thing I can think of is that you entered your cd key under both the admin and hte dungeon master sections, as the instructions say not to. The targeter script is correct.
Funky
|
|
|
Post by ophidian on Jan 7, 2008 1:29:25 GMT
Installed 3.1 today, all works perfect player side wise, save for after entering my cd key and anothers for dm, we both get booted upon log in. They are not listed under both admin and dm. Prior to enetering the keys we were able to log in as dm's just that the tools and functions were not useable. (as should be I suppose)
|
|
|
Post by FunkySwerve on Jan 7, 2008 1:41:52 GMT
Did you compile after adding the keys? Please post your oncliententer script, as well as the Verify Admin and DM functions in the config script.
Funky
|
|
|
Post by ophidian on Jan 7, 2008 2:58:28 GMT
I got it Simple mistake on my part...I am no coder or scripter and am learning as I go along. My thanks as well for an addition no world should be with out.
|
|
|
Post by dsabrae on Feb 27, 2008 4:58:32 GMT
looking for a way to disable parts of !playerinfo or disable the whole command for players and dms.
!anon works except as dms see thru it making subraces and deitys instantly known to DMs as players whom might not want the surprise of finding out their buddy is really a vampire baneite ruined would be dandy. I know some worlds use dm commands when logged in as players but a switch to ONLY let it fire when inclient would be a huge plus.
im easy though any way to just // it out somewhere in fky chat const maybe? I only pretend to script when no ones looking.
|
|
|
Post by FunkySwerve on Feb 27, 2008 6:07:48 GMT
Wouldn't the simplest solution be for those dms not to use dm info? If you like you could restrict the info to admins only, I spose. The function you need to edit is around line 1500 in fky_chat_inc, called ShowInfo. You can simply edit out lines using //, or you can couch sections with if (VerifyAdminKey(oPlayer)). The function is seperate from the command framework, and it is everything that is triggered by a successful playerinfo command. Let me know if you need more assistance.
Funky
|
|
|
Post by sensai on Jul 14, 2008 0:33:39 GMT
Well Im still using the speach binder you got there funky,,great stuff, and now after i have updated to 1.69 it seems your event sets, are an issue with biowares new onplayerchat event, i had to modify nwnx.ini and comment out the chat system as it was crashing, will you be doing a fix for this any time soon? As always thanks in advance.
|
|
|
Post by FunkySwerve on Jul 14, 2008 0:43:03 GMT
The problem isn't with my scriptset, it's with the chat plugin, which has already been updated for 1.69. You can find it on the nwnx forums: www.nwnx.org/phpBB2/viewtopic.php?t=1068But yes, I'll be doing an update to SIMTools at some point to add some new features. Funky
|
|
|
Post by sensai on Jul 14, 2008 1:35:58 GMT
Great thanks I appreciate that,, ooh cant wait for your update, it always gets better n better
|
|
|
Post by sensai on Jul 16, 2008 22:57:52 GMT
well you were absolutely right about that, now for my next problem, im not sure if its your end or, there end, but nwn horse system requires #include "x3_inc_horse" when i put that in my on_enter event i get some strange errors ive never seen before, IDENTIFIER LIST FULL. I just had an idea ill try it in your test mod to see if i get the same error. feel like giving that a try? thanks in advance.
|
|
|
Post by FunkySwerve on Jul 17, 2008 0:50:41 GMT
You're getting that error because the nwn compiler sucks, and the number of consts etc in the combined scripts are too much for it. You'll need to use the PRC compiler, which is MUCH better: nwvault.ign.com/View.php?view=Other.Detail&id=708Alternatively, instead of doing a full merge of the scripts, simple ExecuteScript both of them from your enter event, and you won't need the PRC Compiler (though I'd still recommend getting it if you don't find it confusing). Funky
|
|
|
Post by sensai on Jul 19, 2008 0:51:35 GMT
Ahh Thank you very much .. I tip my hat to you.
|
|
|
Post by graywolff on Aug 29, 2010 23:13:39 GMT
Wouldn't the simplest solution be for those dms not to use dm info? If you like you could restrict the info to admins only, I spose. The function you need to edit is around line 1500 in fky_chat_inc, called ShowInfo. You can simply edit out lines using //, or you can couch sections with if (VerifyAdminKey(oPlayer)). The function is seperate from the command framework, and it is everything that is triggered by a successful playerinfo command. Let me know if you need more assistance. Funky I am trying to edit out some of what the player info shows. I have most of it commented out but it is still showing. The red below is whats commented out but it all still shows. Any ideas? void ShowInfo(object oPlayer, object oGetInfoFrom) { //collect info string sName = GetName(oGetInfoFrom); string sPlayername = GetPCPlayerName(oGetInfoFrom); string sKey = GetPCPublicCDKey(oGetInfoFrom); /*string sIP = GetPCIPAddress(oGetInfoFrom); int nClass1 = GetClassByPosition(1, oGetInfoFrom); int nClass2 = GetClassByPosition(2, oGetInfoFrom); int nClass3 = GetClassByPosition(3, oGetInfoFrom); int nClassLevel1 = GetLevelByClass(nClass1, oGetInfoFrom); int nClassLevel2 = GetLevelByClass(nClass2, oGetInfoFrom); int nClassLevel3 = GetLevelByClass(nClass3, oGetInfoFrom); int nControlClass = nClass1; if ((nClassLevel1 > nClassLevel2) && (nClassLevel1 > nClassLevel3)) nControlClass = nClass1; else if ((nClassLevel2 > nClassLevel1) && (nClassLevel2 > nClassLevel3)) nControlClass = nClass2; else if ((nClassLevel3 > nClassLevel1) && (nClassLevel3 > nClassLevel2)) nControlClass = nClass3; else if (nClassLevel1 == nClassLevel2) nControlClass = nClass1; else if (nClassLevel1 == nClassLevel3) nControlClass = nClass1; else if (nClassLevel2 == nClassLevel3) nControlClass = nClass2; int nLevel = GetHitDice(oGetInfoFrom); int nLL = GetNumberOfLegendaryLevels(oGetInfoFrom); int nTotal = nLevel + nLL; string sClasses = COLOR_LT_BLUE2+GetClassName(nClass1)+COLOR_END+COLOR_WHITE+": "+IntToString(nClassLevel1)+COLOR_END; if (nClass2 != CLASS_TYPE_INVALID) sClasses += COLOR_WHITE+", "+COLOR_END+COLOR_LT_BLUE2+GetClassName(nClass2)+COLOR_END+COLOR_WHITE+": "+IntToString(nClassLevel2)+COLOR_END; if (nClass3 != CLASS_TYPE_INVALID) sClasses += COLOR_WHITE+", "+COLOR_END+COLOR_LT_BLUE2+GetClassName(nClass3)+COLOR_END+COLOR_WHITE+": "+IntToString(nClassLevel3)+COLOR_END; if (nLL) sClasses += COLOR_WHITE+", "+COLOR_END+COLOR_LT_BLUE2+LEGLEVEL+COLOR_END+COLOR_LT_BLUE+"["+GetClassName(nControlClass)+"]"+COLOR_END+COLOR_WHITE+": "+IntToString(nLL)+COLOR_END; if ((nClass2 != CLASS_TYPE_INVALID) || (nLL)) sClasses += COLOR_WHITE+", "+COLOR_END+COLOR_BLUE+NFOHD+COLOR_END+COLOR_WHITE+": "+IntToString(nTotal)+COLOR_END; string sDeity = GetDeity(oGetInfoFrom); if (sDeity == "") sDeity = NONE; int nGold = GetGold(oGetInfoFrom); int nGoldTotal, nValue, nX; object oItem = GetFirstItemInInventory(oGetInfoFrom); while (GetIsObjectValid(oItem)) { nValue = GetGoldPieceValue(oItem); nGoldTotal += nValue; oItem = GetNextItemInInventory(oGetInfoFrom); } for (nX = 0; nX < 14; nX++) { oItem = GetItemInSlot(nX, oGetInfoFrom); nValue = GetGoldPieceValue(oItem); nGoldTotal += nValue; } nGoldTotal += nGold;*/ string sSubrace = GetSubRace(oGetInfoFrom); if (sSubrace == "") sSubrace = NONE; /*int nXP = GetXP(oGetInfoFrom); int nNextXP = (( nLevel * ( nLevel + 1 )) / 2 * 1000 ); int nXPForNextLevel = nNextXP - nXP; if (nLevel == 40) nXPForNextLevel = 0; string sArea = GetName(GetArea(oGetInfoFrom)); string sFactionMembers = ""; object oLeader = GetFactionLeader(oGetInfoFrom); object oMember = GetFirstFactionMember(oGetInfoFrom); while (GetIsObjectValid(oMember)) { if (oMember == oLeader) sFactionMembers = COLOR_WHITE+GetName(oMember)+COLOR_END+COLOR_BLUE+" ["+LFG1+IntToString(GetNumberOfLegendaryLevels(oMember) + GetHitDice(oMember))+"] "+COLOR_END+COLOR_ORANGE+LEADER+COLOR_END+NEWLINE+sFactionMembers; else sFactionMembers = sFactionMembers+COLOR_WHITE+GetName(oMember)+COLOR_END+COLOR_BLUE+" ["+LFG1+IntToString(GetNumberOfLegendaryLevels(oMember) + GetHitDice(oMember))+"] "+COLOR_END+NEWLINE; oMember = GetNextFactionMember(oGetInfoFrom); }*/
|
|
|
Post by graywolff on Aug 29, 2010 23:27:32 GMT
Or a way where some of the info will only show to DMs/Admins. On my server players just don't need to know things like how much gold or xp. Thanks for any help I might get. Graywolff
|
|
|
Post by graywolff on Aug 30, 2010 21:28:53 GMT
Nevermind. I figured out what the "anon" int to set for players was and have them being set anon when they log in.
|
|