local poss = {{ x=p.x+1,y=p.y,z=p.z },
{ x=p.x+1,y=p.y+1,z=p.z },
{ x=p.x,y=p.y+1,z=p.z },
{ x=p.x-1,y=p.y+1,z=p.z },
{ x=p.x-1,y=p.y,z=p.z },
{ x=p.x-1,y=p.y-1,z=p.z },
{ x=p.x,y=p.y-1,z=p.z },
{ x=p.x+1,y=p.y-1,z=p.z }}
Did u fix the druid's one?
I've tried them both, and console doesnt shows any error and when I make the spell it says that I'm still having enought charges, but it doesnt reflect any dmg and I think Knight defense only worked first time :S
its an error of the script or Should I recopy it again?
Ye, the mage one doesn't work, and the knight one works ^^
be deleted from the if statements? you can only get charges on your shield if u cast the spells. and u already need to be a knight or druid to do that. so just checking the storagevalues would be enough. it seems like a wasted to check the vocation.if isDruid(cid) and if isKnight(cid)
change toWhat do I have to change in the script in order to make the spell usable to sorc only?
I have tried changing the spell.xml and set it to the sorc id but the spell does not work, it only reflects when it is set to druid's id.
if isSorcerer(cid) and isCreature(attacker) and e[combat] and getCreatureStorage(cid, d) > 0 then
How come when i tried it, nothing happen even after the monster attack the character
if u reuse it keep saying You already have 1 charge