|
Post by Extreme on Sept 18, 2008 2:53:47 GMT
This just started out of the blue and i done know what i could have done to cause this. But now, anytime a player logs in, they are booted instantly and bic deleted. This happens to anyone that logs in as a player but not as a DM.
What would cause this?
<also asked on nwnx forums>
|
|
|
Post by FunkySwerve on Sept 18, 2008 11:48:41 GMT
This isn't caused by SIMTools. Some change you made to your scripts has to be responsible. Without a lot more information, like what changes you've made recently, whether the bics are truly gone or just renamed to .utc files, whether you have safe delete turned on, and what other systems and plugins you are running, there's no way I can even begin to tell you what the problem might be. What makes you think SIMTools is involved?
Funky
|
|
|
Post by Extreme on Sept 18, 2008 19:08:59 GMT
the reason i thought that it was the simtools, is that it is the only thing that has the capability to boot and delete a PC when they login. it does it to every pc that enters
here is the OnEnter script. You will see why i thought it was the simtools. nothing else has the commands to go thru leto to do the boot
//:: This script is the OnClientEnter script of the module events. This ::// //:: fires as soon as the PC loads into the module ::// //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
#include "aps_include" #include "fky_chat_misc" #include "pw_journal_inc"
void main() { object oPC = GetEnteringObject(); int iXP = GetXP(oPC); int iHour = GetTimeHour()+GetCalendarDay()*24+GetCalendarMonth()*720+GetCalendarYear()*8640; string sCDKey = GetPCPublicCDKey(oPC);
if( !GetIsObjectValid( oPC)) return;
ExecuteScript("fky_chat_clenter", GetModule());
ExecuteScript("sha_on_cl_enter", GetModule());
//////////////////////////////////////////////////////////////////////////////// //:: Set Subrace Int for new characters ::// ////////////////////////////////////////////////////////////////////////////////
if (GetIsDM(oPC)) return; if (iXP <= 3) if (GetSubRace(oPC) == "") SetLocalInt(oPC, "SubraceType", 1);//no subrace else SetLocalInt(oPC, "SubraceType", 2);//Has subrace ExecuteScript("gold_item_wipe", oPC); SetLocalInt(oPC, "SubraceTypeSet", 1);
//////////////////////////////////////////////////////////////////////////////// //:: Dynamic Town Portals ::// ////////////////////////////////////////////////////////////////////////////////
SetLocalString(oPC,"PC_CD_KEY",sCDKey);
//////////////////////////////////////////////////////////////////////////////// //:: Reload journal entries ::// ////////////////////////////////////////////////////////////////////////////////
RestorePersistentJournal( oPC);
//////////////////////////////////////////////////////////////////////////////// //:: Boot and delete attempted cheaters ::// ////////////////////////////////////////////////////////////////////////////////
if(GetStringLength(GetName(oPC))>64) FloatingTextStringOnCreature("Goodbye, Attempted Buguser!",oPC); DelayCommand(5.0,DeleteBic(oPC));
//////////////////////////////////////////////////////////////////////////////// //:: No cheating the death delay ::// ////////////////////////////////////////////////////////////////////////////////
if (GetPersistentInt(oPC, "DeathDelay") > iHour) SetLocalInt(oPC, "DeathDelay", GetPersistentInt(oPC, "DeathDelay"));
//////////////////////////////////////////////////////////////////////////////// //:: Reload their persistant location ::// ////////////////////////////////////////////////////////////////////////////////
DelayCommand(0.5, ActionJumpToLocation(GetPersistentLocation(oPC, "StaticDatabaseLocation")));
//////////////////////////////////////////////////////////////////////////////// //:: Fail-safe if Persistent Location is invaild ::// ////////////////////////////////////////////////////////////////////////////////
DelayCommand(0.5, JumpToLocation(GetLocation(GetObjectByTag("smt_ToTheSummit"))));
//////////////////////////////////////////////////////////////////////////////// //:: Reload HalfDragon Head Variable ::// ////////////////////////////////////////////////////////////////////////////////
if(GetPersistentInt(oPC, "HalfDragonChoice_Head") == TRUE) SetLocalInt(oPC, "HalfDragonChoice_Head", GetPersistentInt(oPC, "HalfDragonChoice_Head"));
}
|
|
|
Post by Acaos on Sept 18, 2008 19:29:04 GMT
This sounds more like you're not deleting the letoscript strings on PCs after processing it when they log out.
Acaos
|
|
|
Post by Extreme on Sept 18, 2008 19:32:25 GMT
i edited the above post after you posted sorry
|
|
|
Post by Acaos on Sept 18, 2008 19:33:57 GMT
if(GetStringLength(GetName(oPC))>64) FloatingTextStringOnCreature("Goodbye, Attempted Buguser!",oPC); DelayCommand(5.0,DeleteBic(oPC)); You're missing braces here. Acaos
|
|
|
Post by Extreme on Sept 18, 2008 19:36:16 GMT
i did go thru and clean up script a while back and removed alot of braces... that has to be it
|
|
|
Post by Extreme on Sept 18, 2008 19:54:38 GMT
thanks for that acaos and funky
|
|