SphereCommunity
Taming error - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Taming error (/Thread-Taming-error)

Pages: 1 2 3


RE: Taming error - Kapa - 11-27-2014 12:59 AM

thx this one works Smile finaly Smile


RE: Taming error - darksun84 - 11-27-2014 01:01 AM

Remember to add a check for controlling if the player is actually in the attacker list !


RE: Taming error - Kapa - 11-27-2014 01:01 AM

Seems like it works but i am getting this error
14:58:ERROR:(sphere_skills.scp,782)Undefined keyword 'ref1.attacker.0.delete'

15:04:ERROR:(sphere_skills.scp,781)Undefined symbol 'id'
15:04:ERROR:(sphere_skills.scp,782)Undefined keyword 'ref1.attacker.0.delete'

how to check that?


RE: Taming error - darksun84 - 11-27-2014 01:09 AM

(11-27-2014 01:01 AM)Kapa Wrote:  Seems like it works but i am getting this error
14:58:ERROR:(sphere_skills.scp,782)Undefined keyword 'ref1.attacker.0.delete'

15:04:ERROR:(sphere_skills.scp,781)Undefined symbol 'id'
15:04:ERROR:(sphere_skills.scp,782)Undefined keyword 'ref1.attacker.0.delete'

Try this

Code:
ON=@Success
ref1 = <act>
local.index = <ref1.attacker.id <src>>
if ( <local.index> != -1 )
  ref1.attacker.<dlocal.index>.delete
endif



RE: Taming error - Kapa - 11-27-2014 01:17 AM

no it doesnt work animal still attacks

the only cure is using peacemaking :/

animal still attacks after taming. well it doesnt attack after taming but after you mount and unmount he is attacking
here is the error

15:31:ERROR:(sphere_skills.scp,783)Undefined keyword 'ref1.attacker.0.delete'


RE: Taming error - darksun84 - 11-27-2014 02:59 AM

Are you using the prerelease of sphere or a recent nightly version ?
Because some of the attacker properties are not implemented in the prerelease


RE: Taming error - Kapa - 11-27-2014 03:31 AM

i am using V0.56b pre_release


RE: Taming error - darksun84 - 11-27-2014 03:35 AM

Ahh that's why delete didn't work Big Grin

So try just this

Code:
ON=@Success
ref1 = <act>
ref1.attacker.clear



RE: Taming error - Kapa - 11-27-2014 02:13 PM

doesnt work :/
04:12:ERROR:(sphere_skills.scp,781)Undefined keyword 'ref1.attacker.clear'


RE: Taming error - XuN - 11-28-2014 10:52 PM

I remember that 'clear' was a added as read and was fixed after the pre-release, try this: local.a=<ref1.attacker.clear>