Hercules Elf Bot - Jun 28, 2012 13:50
Originally posted by [b]jTynne[/b]
ID# 5225 Marcher_Hat
Script that matches item description:
bonus2 bResEff,Eff_Stun,1000; bonus3 bAutoSpellWhenHit,"HP_ASSUMPTIO",1,100; bonus3 bAutoSpellWhenHit,"AL_ANGELUS",5,100; if(BaseClass == Job_Acolyte) { bonus5 bAutoSpellOnSkill,"AL_HEAL","PR_LEXAETERNA",1,1000,0;}
If you can somehow get it to not cast Lex Aterna when casted on yourself or other friendly units, then that's wonderful. The old script doesn't match the description at all (current version auto-casts backslide and first aid... lol).
Hercules Elf Bot - Jun 28, 2012 14:34
Originally posted by [b]jysn[/b]
where does rathena base its Item script? just a question thanks!
Hercules Elf Bot - Jul 19, 2012 9:54
Originally posted by [b]Kenpachi[/b]
Dunno why the renewal script differs from the pre-renewal one - Marcher Hat wasn't changed.
At any rate the script is wrong.[CODE]
item Marcher_Hat
event OnStartEquip:
SetAutoSpell_MLEATKED User AL_ANGELUS 5 30
SetAutoSpell_MLEATKED User HP_ASSUMPTIO 1 1
if ((get[VAR_JOB] == ACOLYTE) | (get[VAR_JOB] == ACOLYTE_H) | (get[VAR_JOB] == PRIEST) | (get[VAR_JOB] == PRIEST_H))
SetSkillAutoSpell AL_HEAL 1000 PR_LEXAETERNA 1 Target
endif
AddStateTolerace BODYStun 10
return
event OnFinishEquip:
SetAutoSpell_MLEATKED User AL_ANGELUS 0 0
SetAutoSpell_MLEATKED User HP_ASSUMPTIO 0 0
if ((get[VAR_JOB] == ACOLYTE) | (get[VAR_JOB] == ACOLYTE_H) | (get[VAR_JOB] == PRIEST) | (get[VAR_JOB] == PRIEST_H))
ResetSkillAutoSpell AL_HEAL 1000 PR_LEXAETERNA 1 Target
endif
SubStateTolerace BODYStun 10
return
[/CODE]
@jysn: kRO
Hercules Elf Bot - Jul 19, 2012 12:37
Originally posted by [b]Kenpachi[/b]
Fixed in [rev=16449].
[quote]If you can somehow get it to not cast Lex Aterna when casted on yourself or other friendly units, then that's wonderful. The old script doesn't match the description at all (current version auto-casts backslide and first aid... lol).[/quote]That's why I used [i]bonus4 bAutoSpellOnSkill[/i]. This will only cast supportive skills on you, others on the enemy.
This post has been edited by
Kenpachi
on Jul 19, 2012 12:42
Hercules Elf Bot - Jul 19, 2012 17:12
Originally posted by [b]jTynne[/b]
Yeah.. it's still wrong:
REPLACE INTO `item_db` VALUES (5225,'Marcher_Hat','Parade Hat',5,20,NULL,200,NULL,2,NULL,1,0xFFFFFFFF,7,2,256,NULL,10,1,269,'bonus2 bResEff,Eff_Stun,1000; bonus3 bAutoSpellWhenHit,\"NV_FIRSTAID\",1,100; bonus3 bAutoSpellWhenHit,\"TF_BACKSLIDING\",1,100; /*If(BaseClass == Job_Acolyte) { bonus4 bAutoSpellOnSkill,\"PR_LEXAETERNA\",\"AL_HEAL\",1,10; }*/',NULL,NULL);
re: [url="https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/sql-files/item_db.sql"]https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/sql-files/item_db.sql[/url]
Should be:
bonus2 bResEff,Eff_Stun,1000; bonus3 bAutoSpellWhenHit,"HP_ASSUMPTIO",1,100; bonus3 bAutoSpellWhenHit,"AL_ANGELUS",5,100;
if(BaseClass==Job_Acolyte) bonus4 bAutoSpellOnSkill,"AL_HEAL","PR_LEXAETERNA",1,1000;
Hercules Elf Bot - Jul 19, 2012 19:00
Originally posted by [b]duaud[/b]
[left]Added [font=helvetica, arial, sans-serif][size=3]to [/size][/font][url="http://rathena.org/board/user/262-jtynne/"]@[/url][url="http://rathena.org/board/user/262-jtynne/"]jTynne[/url][font=helvetica, arial, sans-serif][size=3]'s comments,[/size][/font][/left]
problem is not Implement, but [color=#282828][font=helvetica, arial, sans-serif][size=3]bAutoSpellOnSkill.[/size][/font][/color]
According to doc/itembonus.txt,
bonus4 bAutoSpellOnSkill,s,x,l,n Adds a n/10% chance to autospell skill x at level l when using skill s. (supports skill names)
Supportive spells are casted on self, others on target of skill s.
bonus5 bAutoSpellOnSkill,s,x,l,n,i Adds a n/10% chance to autospell skill x at level l when using skill s. (supports skill names)
i: Flags (bitfield)
&1: Forces the skill to be casted on self, rather than on the target of skill s.
&2: Random skill level between 1 and l is chosen.
[color=#282828][font=helvetica, arial, sans-serif][size=3]Case 1. Use[/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3] script [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3]" [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3]bonus4 bAutoSpellOnSkill,"AL_HEAL","PR_LEXAETERNA",1,1000; "[/size][/font][/color]
If use heal to target, [color=#282828][font=helvetica, arial, sans-serif][size=3]LEXAETERNA[/size][/font][/color] are used to self.
If use heal to self, [color=#282828][font=helvetica, arial, sans-serif][size=3]LEXAETERNA[/size][/font][/color] are used to self, too.
[color=#282828][font=helvetica, arial, sans-serif][size=3]Case 2. Use[/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3] script [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3]" [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3]bonus5 bAutoSpellOnSkill,"AL_HEAL","PR_LEXAETERNA",1,1000,0; "[/size][/font][/color]
If use heal to target, [color=#282828][font=helvetica, arial, sans-serif][size=3]LEXAETERNA[/size][/font][/color] are used to target.
If use heal to self, [color=#282828][font=helvetica, arial, sans-serif][size=3]LEXAETERNA[/size][/font][/color] are used to self.
In conclusion,[color=#282828][font=helvetica, arial, sans-serif][size=3] if use Skill S to self or friend [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3]when Skill S's inf is friend and Skill X's inf is enemy, It need to prevent auto using Skill X.[/size][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][size=3]Sorry for my bad english. T.T[/size][/font][/color]
This post has been edited by
duaud
on Jul 19, 2012 20:01
Hercules Elf Bot - Jul 19, 2012 23:51
Originally posted by [b]jTynne[/b]
Hmm? I was just stating that the SQL inserts had not been updated properly.
Hercules Elf Bot - Jul 20, 2012 3:24
Originally posted by [b]duaud[/b]
Oh, I did not know it.
But, bAutoSpellOnSkill has bug about target.
Hercules Elf Bot - Jul 20, 2012 4:15
Originally posted by [b]Euphy[/b]
Fixed in [rev=16455].