Initial commit. Updated release archive.
This commit is contained in:
36
_module/nss/wiztp_end.nss
Normal file
36
_module/nss/wiztp_end.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
void ClearBlind(object oPC)
|
||||
{
|
||||
effect token = GetFirstEffect(oPC);
|
||||
|
||||
while (GetIsEffectValid(token))
|
||||
{
|
||||
if(GetEffectType(token) == EFFECT_TYPE_BLINDNESS)
|
||||
RemoveEffect(oPC,token);
|
||||
|
||||
token = GetNextEffect(oPC);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if(oPC == OBJECT_INVALID)
|
||||
oPC = GetLastSpeaker();
|
||||
|
||||
DeleteLocalInt(oPC,"wizTPCtr");
|
||||
DeleteLocalString(oPC,"wizTPColor");
|
||||
|
||||
int j;
|
||||
for(j = 791; j < 795; j++)
|
||||
{
|
||||
DeleteLocalObject(oPC,"wizTP"+IntToString(j));
|
||||
DeleteLocalInt(oPC,"wizTP"+IntToString(j));
|
||||
}
|
||||
|
||||
ClearBlind(oPC);
|
||||
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user