I just wanted to share these script fixes I made to prevent the two known exploits with xp_craft tailorshop (spamming color modify too fast and logging off while modifying an item).
To prevent color spam exploit, edit gui_color_tls and this to the bottom.
SetGUIObjectDisabled(oPC,"SCREEN_COLOR_TLS","okbutton",TRUE); DelayCommand(2.5,SetGUIObjectDisabled(oPC,"SCREEN_COLOR_TLS","okbutton",FALSE));
To prevent logging off duplicating edit d_nwnx_craft_escape_dialog (or whichever you use might be nwnx_craft_escape_dialog) change the script to this.
void CheckExploit(object oPC)
{
string exitpc = GetName(GetExitingObject());
string exitcdkey = GetPCPublicCDKey(GetExitingObject());
string pcname = GetName(oPC);
string pccdkey = GetPCPublicCDKey(oPC);
if (exitpc == pcname && exitcdkey == pccdkey)
{
return;
}
XPCraft_ActionCancelChanges(oPC);
}
void main()
{
object oPC = GetPCSpeaker();
XPCraft_Debug(oPC,"Dialog Aborted !");
DelayCommand(1.0,CheckExploit(oPC));
}





Retour en haut






