http://eq2emulator.net/wiki/index.php/LUA:Stealth
By using
Code: Select all
Stealth(Caster, 2)Code: Select all
23:24:54 E LUA : LUA Stealth command error: invalid stealth type given
Code: Select all
if (spawn){
if (spawn->IsEntity()){
if (type == 1){
((Entity*)spawn)->AddStealthSpell(spell);
if (!(spell->effect_bitmask & EFFECT_FLAG_STEALTH))
spell->effect_bitmask += EFFECT_FLAG_STEALTH;
}
else if (type == 2){
((Entity*)spawn)->AddInvisSpell(spell);
if (!(spell->effect_bitmask & EFFECT_FLAG_INVIS))
spell->effect_bitmask += EFFECT_FLAG_INVIS;
}
return 0;
}
else{
lua_interface->LogError("LUA Stealth command error: target override is not Entity");
return 0;
}
}