SVN | Number of Spirits not recognized on Login

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

midnytblu
Developers
Developers
Posts: 90
Joined: 14 Apr 2008, 09:37
Noob?: No
Location: prt_fild08 134 362

SVN | Number of Spirits not recognized on Login

#1 Post by midnytblu »

hi,

even for a simple code as this:

Code: Select all

useSelf_skill Dangerous Soul Collect {
	spirit < 3
}
kore wouldn't cast it even if it met the requirement during login. after doing it once manually, kore can re-cast the skill now when spirit < 3.

things tried but still failed:
  • 1. Replaced Dangerous Soul Collect with Vigor Condensation
    2. Used doCommand ss 401 (skill number for Dangerous Soul Collect) with "spirit < 3" line
thanks.
Mushroom
Perl Monk
Perl Monk
Posts: 427
Joined: 04 Apr 2008, 14:04
Noob?: No
Location: Brazil

Re: SVN | Number of Spirits not recognized on Login

#2 Post by Mushroom »

I was having the same problem, then I made some hack and it worked :D

Code: Select all

Index: Misc.pm
===================================================================
--- Misc.pm	(revision 6903)
+++ Misc.pm	(working copy)
@@ -3693,7 +3693,7 @@
 
 	if ($config{$prefix . "_onAction"}) { return 0 unless (existsInList($config{$prefix . "_onAction"}, AI::action())); }
 	if ($config{$prefix . "_notOnAction"}) { return 0 if (existsInList($config{$prefix . "_notOnAction"}, AI::action())); }
-	if ($config{$prefix . "_spirit"}) {return 0 unless (inRange($char->{spirits}, $config{$prefix . "_spirit"})); }
+	if ($config{$prefix . "_spirit"}) {return 0 unless (inRange(defined $char->{spirits} ? $char->{spirits} : 0, $config{$prefix . "_spirit"})); }
 
 	if ($config{$prefix . "_timeout"}) { return 0 unless timeOut($ai_v{$prefix . "_time"}, $config{$prefix . "_timeout"}) }
 	if ($config{$prefix . "_inLockOnly"} > 0) { return 0 unless ($field{name} eq $config{lockMap}); }

Better wait for devs take a look.
Quit.
midnytblu
Developers
Developers
Posts: 90
Joined: 14 Apr 2008, 09:37
Noob?: No
Location: prt_fild08 134 362

Re: SVN | Number of Spirits not recognized on Login

#3 Post by midnytblu »

thanks Mushroom... this did the trick!


/no1
User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: SVN | Number of Spirits not recognized on Login

#4 Post by kLabMouse »

Committed to SVN.