| Code: |
use uo;
use os;
include ":magery:spells";
include ":timedscripts:timedScripts";
program SpellScript_Paralyze(params)
var mobile := params[1];
var info := params[2];
var targ := params[3];
params := 0;
if ( !MS_MobileCheck(mobile, targ) )
return 0;
endif
MS_PlaySpellSFX(info.spell_id, targ);
MS_PlaySpellGFX(info.spell_id, targ, mobile);
// Duration: ((caster Eval Int/10) - ((target Resist Magic/10)) * 3 seconds
var duration := CInt((AP_GetSkill(mobile, EVALUATING_INTELLIGENCE) - (AP_GetSkill(targ, RESISTING_SPELLS) / 10)) * 3);
TS_StartTimer(targ, "Paralysis", duration);
endprogram |