View Full Version : Help:Skill setting>cause auto shut down
zamzam
25th April 2004, 19:51
I use Modkore and it will auto shut down when my knight use skill. Is there any wrong with my config? Please check for me
attackSkillSlot_0 BOWLING BASH
attackSkillSlot_0_dist 2
attackSkillSlot_0_hp_lower 80
attackSkillSlot_0_hp_upper 100
attackSkillSlot_0_lvl 10
attackSkillSlot_0_maxAggressives 0
attackSkillSlot_0_minAggressives 5
attackSkillSlot_0_maxCastTime 8
attackSkillSlot_0_minCastTime 0
attackSkillSlot_0_maxUses 12
attackSkillSlot_0_monsters HIGH ORC
attackSkillSlot_0_sp_lower 0
attackSkillSlot_0_sp_upper 100
attackSkillSlot_0_stopWhenHit 0
tzeai
26th April 2004, 07:37
Try:
attackSkillSlot_0 BOWLING BASH
attackSkillSlot_0_dist 3
attackSkillSlot_0_hp_lower 0
attackSkillSlot_0_hp_upper 100
attackSkillSlot_0_lvl 10
attackSkillSlot_0_maxAggressives 0
attackSkillSlot_0_minAggressives 0
attackSkillSlot_0_maxCastTime 10
attackSkillSlot_0_minCastTime 0
attackSkillSlot_0_maxUses 0
attackSkillSlot_0_monsters high orc
attackSkillSlot_0_sp_lower 0
attackSkillSlot_0_sp_upper 100
attackSkillSlot_0_stopWhenHit 0
attackSkillSlot_0_loopSlot
JabroniMaster
26th April 2004, 08:39
Add this line to your config:
minDistance -1
Shinosuke
26th April 2004, 08:55
JabroniMaster...
can you explain that line of code? It seems awefully suspicious to me.
JabroniMaster
26th April 2004, 15:41
I think it has something to do with the fact that the option was "ambigious," since in the source, it says something that "If minDistance cannot be found, just DC." Although I recommend just going to the modkore forums.
http://modkore.sourceforge,net/forums
Just search for the topic "auto shutdown" or "auto close" and Star Kung will have the explanation, I think...
Originally posted by Star-Kung in the modkore forums
after analyze , then i found buggy in code
in rev 1.10
CODE
last if ($config{'minDistance'} >= distance(\%{$chars[$config{'char'}]{'pos_to'}}, \%{$monsters{$ai_v{'ai_attack_ID'}}{'pos_to'}}));
because of minDistance doesn't exists in any of user config then it's dangling referrence and the 'last' command will affect with main 'while' loop.
solution for users : try to add this to you config.txt manually
CODE
minDistance -1
because method distance must return 0 or above.
solution for developer : remove it!
probably work fine.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.