Initial commit. Updated release archive.
This commit is contained in:
26
_module/nss/wiztp_dispell.nss
Normal file
26
_module/nss/wiztp_dispell.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "wiztp_clear"
|
||||
|
||||
void main()
|
||||
{
|
||||
int spell = GetLastSpell();
|
||||
object oCaster = GetLastSpellCaster();
|
||||
|
||||
/*
|
||||
if((GetPVP(GetArea(OBJECT_SELF)) && GetIsPC(oCaster))
|
||||
{}
|
||||
*/
|
||||
|
||||
if((spell == SPELL_MORDENKAINENS_DISJUNCTION) ||
|
||||
(spell == SPELL_DISPEL_MAGIC) ||
|
||||
(spell == SPELL_GREATER_DISPELLING))
|
||||
{
|
||||
|
||||
ClearWizTP();
|
||||
|
||||
DeleteLocalObject(OBJECT_SELF,"wizTP");
|
||||
DeleteLocalObject(OBJECT_SELF,"wizTPOwner");
|
||||
DestroyObject(OBJECT_SELF);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
Reference in New Issue
Block a user