PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Spells Bug

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Distro Bug Reports
Display posts from previous:   

Author Message
ELSoft



Joined: 18 Jun 2006
Posts: 36

PostPosted: Thu Dec 27, 2007 12:40 pm    Post subject: Spells Bug Reply with quote

paralyze.src
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


the spell duration is wrong, this should be

var duration := CInt((AP_GetSkill(mobile, EVALUATING_INTELLIGENCE)/10 - AP_GetSkill(targ, RESISTING_SPELLS) / 10) * 3);

or

var duration := CInt( ( (AP_GetSkill(mobile, EVALUATING_INTELLIGENCE) - AP_GetSkill(targ, RESISTING_SPELLS)) / 10) * 3);

Author Message
ELSoft



Joined: 18 Jun 2006
Posts: 36

PostPosted: Thu Jan 24, 2008 4:52 pm    Post subject: Reply with quote

There is another little bug in the spell Incognito more specifically in the endIncognito.src.

At the end of the script is missing a

EraseObjProperty(mobile, "Incognito");


because if you need to know when a player is "Incognito", allways
appear that this.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Distro Bug Reports All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty