Casting A Skill need help!

International

Moderator: Moderators

cyberchriz007
Noob
Noob
Posts: 7
Joined: 02 Apr 2010, 18:23
Noob?: Yes

Casting A Skill need help!

#1 Post by cyberchriz007 »

Does anyone know what is the command for casting a skill, because sometime my wiz doesn't cast SG and I always die on my priest..

Thanks in Advance!!
Mushroom
Perl Monk
Perl Monk
Posts: 427
Joined: 04 Apr 2008, 14:04
Noob?: No
Location: Brazil

Re: Casting A Skill need help!

#2 Post by Mushroom »

Quit.
vang0745
Noob
Noob
Posts: 5
Joined: 25 May 2010, 13:33
Noob?: Yes

Re: Casting A Skill need help!

#3 Post by vang0745 »

I had that same problem as well when i tried to get my priest to cast Lex A but i kind of figured out a solution without the need for macro addons. I'll tell you how i fixed it with my priest and hopefully you can change it for your mage. So, first


in the config.txt set

attackUseWeapon 0

then I scripted this in...

Code: Select all


attackSkillSlot Lex Aeterna {
	lvl 1
	dist 2  ##Increase this for more range##
	maxCastTime 0
	minCastTime 0
	hp
	sp > 10
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	previousDamage
	stopWhenHit 0
	inLockOnly 0
	notInTown 0
	timeout 0
	disabled 0
	monsters Elder Willow, Bigfoot  ##This was my test monsters ##
	notMonsters
	maxAttempts 0  
	maxUses 0  ##If you cant one hit kill and like to use lower SP spell change this to 1##
	target_whenStatusActive
	target_whenStatusInactive
	target_deltaHp
	inInventory
	isSelfSkill 0
	equip_topHead
	equip_midHead
	equip_lowHead
	equip_leftHand
	equip_rightHand
	equip_leftAccessory
	equip_rightAccessory
	equip_robe
	equip_armor
	equip_shoes
	equip_arrow
	manualAI 0
}

Then of course you need to add this to mon_control.txt

Elder Willow 1 0 1 1
Bigfoot 1 0 1

or whatever the monster you typed in the attack spell script.