Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Sphere 55i Animal Taming.
|
Author |
Message |
amonvangrell
Banned
Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012
britannia shard
|
Sphere 55i Animal Taming.
Hello, long time since I`ve been here... lol
I really need a help.
I need a Custom "Animal Taming" script for 56b with some features:
-no "the animal remebers you..." With the cmd release there will be no link to the past owner.
-to use the skill you need an item like an "tame harp" in your inventory. And you start the skill by using the item.
-customizable skill gain rate.
If you have this script or can make one for me I would be so happy!
Thanks!
(This post was last modified: 03-27-2013 02:18 PM by amonvangrell.)
|
|
03-27-2013 02:16 PM |
|
|
amonvangrell
Banned
Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012
britannia shard
|
RE: Sphere 55i Animal Taming.
I`ve found one kind of bugged, but is now working.
Thks
Code:
[FUNCTION FIXACTION]
RETURN <ACTION> | 0D200000
[DEFNAME def_Taming]
Taming_Delay = 1
[EVENTS e_taming]
ON=@LogOut
IF (<FINDID.i_taming>)
FINDID.i_taming.REMOVE
ENDIF
ON=@SkillStart
IF !(<SRC.RESTEST 1 tame_harp> )
SRC.SYSMESSAGE @0790 Voce precisa de uma Tame Harp para domesticar animais.
RETURN 1
ENDIF
IF (<FIXACTION> == Skill_Taming)
IF (<FINDID.i_taming>)
SYSMESSAGE You must wait to perform another action
ELSE
ACTION -1
MESSAGE
MESSAGE
MESSAGE
Taming_TAME
RETURN 1
ENDIF
ELIF !(<fixaction_is_combat>)
IF (<FINDID.i_taming.TIMER> == -1)
FINDID.i_taming.REMOVE
ENDIF
IF (<FINDID.i_taming>)
ACTION -1
SYSMESSAGE You must wait to perform another action
RETURN 1
ENDIF
ENDIF
[FUNCTION Taming_TAME]
IF !(<ACT.CanSeeLOS>)
MESSAGE I can not attempt to tame what I can not see.
ELIF (<ACT.NPC> != brain_animal) && (<ACT.NPC> != brain_dragon) && (<ACT.NPC> != brain_monster) && (<ACT.NPC> != brain_undead)
MESSAGE I can not tame this.
ELIF !(<ACT.TAMING>)
MESSAGE I can not tame this.
ELIF (<EVAL <TAMING> + 30.0> < <ACT.TAMING>)
MESSAGE I could not begin to tame this!
ELIF (<FLAGS> & (statf_dead|statf_freeze|statf_invisible|statf_sleeping|statf_polymorph|statf_stone|statf_hidden))
MESSAGE I can not tame this in my current state.
ELIF (<ACT.MEMORYFINDTYPE.memory_ipet>)
MESSAGE That is already tame.
ELIF (<ACT.MEMORYFINDTYPE.memory_fight>)
MESSAGE The creature is too enraged.
ELIF (<ACT.DISTANCE> > 5)
MESSAGE I am too far away to tame that.
ELSE
NEWITEM i_taming
ACT.LINK <TARG.UID>
ACT.CONT <UID>
ACT.TIMER <EVAL Taming_Delay>
ENDIF
[ITEMDEF i_taming]
ID=i_memory
TYPE=t_eq_script
NAME=Taming
ON=@Create
ATTR attr_decay
MORE1 {3 7}
ON=@Timer
IF (<CONT.ISGM>) && !(<LINK.MEMORYFINDTYPE.memory_ipet>)
Taming_SUCCESS
RETURN 0
ENDIF
CONT.CHECKS <LINK.UID>
IF !(<VAR.SEE>)
CONT.SYSMESSAGE I can no longer see my target.
ELIF (<LINK.NPC> != brain_animal) && (<LINK.NPC> != brain_dragon) && (<LINK.NPC> != brain_monster) && (<LINK.NPC> != brain_undead)
CONT.SYSMESSAGE I can not tame this.
ELIF !(<LINK.TAMING>)
CONT.SYSMESSAGE I can not tame this.
ELIF (<EVAL <CONT.TAMING> + 30.0> < <LINK.TAMING>)
CONT.SYSMESSAGE I could not begin to tame this!
ELIF (<CONT.FLAGS> &(statf_dead|statf_freeze|statf_invisible|statf_sleeping|statf_polymorph|statf_stone|statf_hidden))
CONT.SYSMESSAGE I can not continue taming in my current state.
ELIF (<LINK.MEMORYFINDTYPE.memory_ipet>)
CONT.SYSMESSAGE !! Someone tamed it before I could!
ELIF (<LINK.MEMORYFINDTYPE.memory_fight>)
CONT.SYSMESSAGE The creature is too enraged.
ELIF (<VAR.DIST> > 5)
CONT.SYSMESSAGE The <LINK.NAME> is too far away.
ELSE
IF (<MORE1>)
DORAND 4
//CONT.SAY Good <LINK.NAME>
//CONT.SAY I won't hurt you.
//CONT.SAY Here <LINK.NAME>
//CONT.SAY I always wanted a <LINK.NAME> like you
CONT.SAY Bom <LINK.NAME>
CONT.SAY Nao vou te machucar.
CONT.SAY Aqui <LINK.NAME>
CONT.SAY Eu sempre quis um <LINK.NAME> como voce.
ENDDO
MORE1 <EVAL <MORE1> - 1>
TIMER {<EVAL Taming_Delay> <EVAL <EVAL Taming_Delay> + 2>}
RETURN 1
ELSE
IF (<EVAL <LINK.TAMING> - <CONT.TAMING>> <= 0)
IF (RAND(<EVAL ((<CONT.TAMING> - <LINK.TAMING>) / 20) + 3>))
Taming_SUCCESS
ELSE
Taming_FAILURE
ENDIF
ELIF !(RAND(<EVAL ((<LINK.TAMING> - <CONT.TAMING>) / 20) + 3>))
Taming_SUCCESS
ELSE
Taming_FAILURE
ENDIF
ENDIF
ENDIF
[FUNCTION checks]
NEWITEM i_checks
ACT.LINK <ARGN>
EQUIP <ACT.UID>
[ITEMDEF i_checks]
ID=i_memory
TYPE=t_eq_script
NAME=Checks
ON=@Equip
VAR.DIST <LINK.DISTANCE>
VAR.SEE <LINK.CanSeeLOS>
REMOVE
[FUNCTION Taming_SUCCESS]
CONT.NEWITEM i_memory
CONT.ACT.ATTR attr_newbie
CONT.ACT.COLOR memory_ipet
CONT.ACT.MORE1 04
CONT.ACT.LINK <CONT.UID>
CONT.ACT.MORE2 <SERV.TIME>
CONT.ACT.MOREP <LINK.P>
CONT.ACT.CONT <LINK.UID>
LINK.FOOD 50
LINK.KARMA 2000
CONT.SYSMESSAGE It seems to accept you as its master.
CONT.Taming_SKILLGAIN 10
if (<cont.taming> >= 1000)
return 0
else
cont.Taming= <cont.Taming> +1>
[FUNCTION Taming_FAILURE]
CONT.SYSMESSAGE You fail to tame the creature.
CONT.Taming_SKILLGAIN 5
if (<cont.taming> >= 1000)
return 0
else
cont.Taming= <cont.Taming> +1>
[FUNCTION Taming_SKILLGAIN]
IF (<Taming> < 1000)
TAG.Taming_Fudge <EVAL 0<TAG.Taming_Fudge> + <ARGN>>
IF (<TAG.Taming_Fudge> > <TAMING>)
TAG.Taming_Fudge
src.Taming= <src.taming> +1
ENDIF
ENDIF
[FUNCTION fixaction_is_combat]
IF (<FIXACTION> == Skill_Archery)
RETURN 1
ELIF (<FIXACTION> == Skill_Fencing)
RETURN 1
ELIF (<FIXACTION> == Skill_Macefighting)
RETURN 1
ELIF (<FIXACTION> == Skill_Parrying)
RETURN 1
ELIF (<FIXACTION> == Skill_Swordsmanship)
RETURN 1
ELIF (<FIXACTION> == Skill_Wrestling)
RETURN 1
ELSE
RETURN 0
ENDIF
[itemdef tame_harp]
id=i_lyre
DEFNAME=tame_harp
name=Tame Harp
TYPE=T_normal
WEIGHT=10
CATEGORY=Items by Professions
SUBSECTION=Bard
DESCRIPTION=Lap Harp
RESOURCES=7 i_log, 2 i_wire_iron
SKILLMAKE=TINKERING 54.0, MUSICIANSHIP 65.0,t_tinker_tools
on=@create
color=0480
on=@dclick
return 1
[eof]
(This post was last modified: 03-27-2013 11:05 PM by Mordaunt.)
|
|
03-27-2013 06:01 PM |
|
|
amonvangrell
Banned
Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012
britannia shard
|
RE: Sphere 55i Animal Taming.
ops Thx RanXerox!!... any other thing that I might change to make it right? any help its much apreciate!
So far I`ve change this... its working but full of bugs... like it appears that the act of taming dont stop, so everytime i start taming again (yes its possible) it flare the fail msg of the skill. So I had to cancel that...
Also the skill gain its not working correctly so I`ve had to appeal... lol And am trying to make dclick the harp shows target and once clicked start the skill... no sucess so far... <:...[
this is my current script state (the script its not mine, I`ve found on google...)...
Code:
[DEFNAME def_Taming]
Taming_Delay = 1
///////////////////////////////////////////////////////
[EVENTS e_taming]
ON=@LogOut
IF (<FINDID.i_taming>)
FINDID.i_taming.REMOVE
ENDIF
ON=@SkillStart
IF (<src.ACTION>==SKILL_Taming)
if !(<SRC.RESTEST 1 tame_harp> )
SRC.SYSMESSAGE @0790 Voce precisa de uma Tame Harp para domesticar animais.
RETURN 1
ELSE
RETURN 0
ENDIF
ENDIF
IF (<FINDID.i_taming>)
SYSMESSAGE You must wait to perform another action
ELSE
Taming_TAME
RETURN 1
ENDIF
IF !(<fixaction_is_combat>)
IF (<FINDID.i_taming.TIMER> == -1)
FINDID.i_taming.REMOVE
ENDIF
ENDIF
IF (<FINDID.i_taming>)
ACTION -1
SYSMESSAGE You must wait to perform another action
RETURN 1
ENDIF
[FUNCTION Taming_TAME]
IF !(<ACT.CanSeeLOS>)
MESSAGE I can not attempt to tame what I can not see.
ELIF (<ACT.NPC> != brain_animal) && (<ACT.NPC> != brain_dragon) && (<ACT.NPC> != brain_monster) && (<ACT.NPC> != brain_undead)
MESSAGE I can not tame this.
ELIF !(<ACT.TAMING>)
MESSAGE I can not tame this.
ELIF (<EVAL <TAMING> + 30.0> < <ACT.TAMING>)
MESSAGE I could not begin to tame this!
ELIF (<FLAGS> & (statf_dead|statf_freeze|statf_invisible|statf_sleeping|statf_polymorph|statf_stone|statf_hidden))
MESSAGE I can not tame this in my current state.
ELIF (<ACT.MEMORYFINDTYPE.memory_ipet>)
MESSAGE That is already tame.
ELIF (<ACT.MEMORYFINDTYPE.memory_fight>)
MESSAGE The creature is too enraged.
ELIF (<ACT.DISTANCE> > 5)
MESSAGE I am too far away to tame that.
ELSE
NEWITEM i_taming
ACT.LINK <TARG.UID>
ACT.CONT <UID>
ACT.TIMER <EVAL Taming_Delay>
ENDIF
[ITEMDEF i_taming]
ID=i_memory
TYPE=t_eq_script
NAME=Taming
ON=@Create
ATTR attr_decay
MORE1 {3 7}
ON=@Timer
IF (<CONT.ISGM>) && !(<LINK.MEMORYFINDTYPE.memory_ipet>)
Taming_SUCCESS
RETURN 0
ENDIF
CONT.CHECKS <LINK.UID>
IF !(<VAR.SEE>)
CONT.SYSMESSAGE I can no longer see my target.
ELIF (<LINK.NPC> != brain_animal) && (<LINK.NPC> != brain_dragon) && (<LINK.NPC> != brain_monster) && (<LINK.NPC> != brain_undead)
CONT.SYSMESSAGE I can not tame this.
ELIF !(<LINK.TAMING>)
CONT.SYSMESSAGE I can not tame this.
ELIF (<EVAL <CONT.TAMING> + 30.0> < <LINK.TAMING>)
CONT.SYSMESSAGE I could not begin to tame this!
ELIF (<CONT.FLAGS> &(statf_dead|statf_freeze|statf_invisible|statf_sleeping|statf_polymorph|statf_stone|statf_hidden))
CONT.SYSMESSAGE I can not continue taming in my current state.
ELIF (<LINK.MEMORYFINDTYPE.memory_ipet>)
CONT.SYSMESSAGE !! Someone tamed it before I could!
ELIF (<LINK.MEMORYFINDTYPE.memory_fight>)
CONT.SYSMESSAGE The creature is too enraged.
ELIF (<VAR.DIST> > 5)
CONT.SYSMESSAGE The <LINK.NAME> is too far away.
ELSE
IF (<MORE1>)
DORAND 4
//CONT.SAY Good <LINK.NAME>
//CONT.SAY I won't hurt you.
//CONT.SAY Here <LINK.NAME>
//CONT.SAY I always wanted a <LINK.NAME> like you
CONT.SAY Bom <LINK.NAME>
CONT.SAY Nao vou te machucar.
CONT.SAY Aqui <LINK.NAME>
CONT.SAY Eu sempre quis um <LINK.NAME> como voce.
ENDDO
MORE1 <EVAL <MORE1> - 1>
TIMER {<EVAL Taming_Delay> <EVAL <EVAL Taming_Delay> + 2>}
RETURN 1
ELSE
IF (<EVAL <LINK.TAMING> - <CONT.TAMING>> <= 0)
IF (RAND(<EVAL ((<CONT.TAMING> - <LINK.TAMING>) / 20) + 3>))
Taming_SUCCESS
ELSE
Taming_FAILURE
ENDIF
ELIF !(RAND(<EVAL ((<LINK.TAMING> - <CONT.TAMING>) / 20) + 3>))
Taming_SUCCESS
ELSE
Taming_FAILURE
ENDIF
ENDIF
ENDIF
[FUNCTION checks]
NEWITEM i_checks
ACT.LINK <ARGN>
EQUIP <ACT.UID>
[ITEMDEF i_checks]
ID=i_memory
TYPE=t_eq_script
NAME=Checks
ON=@Equip
VAR.DIST <LINK.DISTANCE>
VAR.SEE <LINK.CanSeeLOS>
REMOVE
[FUNCTION Taming_SUCCESS]
CONT.NEWITEM i_memory
CONT.ACT.ATTR attr_newbie
CONT.ACT.COLOR memory_ipet
CONT.ACT.MORE1 04
CONT.ACT.LINK <CONT.UID>
CONT.ACT.MORE2 <SERV.TIME>
CONT.ACT.MOREP <LINK.P>
CONT.ACT.CONT <LINK.UID>
LINK.FOOD 50
LINK.KARMA 2000
CONT.SYSMESSAGE It seems to accept you as its master.
CONT.Taming_SKILLGAIN 10
if (<cont.taming> >= 1000)
return 0
else
cont.Taming= <cont.Taming> +1>
cont.animallore= <cont.animallore> +1>
[FUNCTION Taming_FAILURE]
CONT.SYSMESSAGE You fail to tame the creature.
CONT.Taming_SKILLGAIN 5
if (<cont.taming> >= 1000)
return 0
else
cont.Taming= <cont.Taming> +1>
[FUNCTION Taming_SKILLGAIN]
IF (<Taming> < 1000)
TAG.Taming_Fudge <EVAL 0<TAG.Taming_Fudge> + <ARGN>>
IF (<TAG.Taming_Fudge> > <TAMING>)
TAG.Taming_Fudge
src.Taming= <src.taming> +1
ENDIF
ENDIF
[FUNCTION fixaction_is_combat]
IF (<FIXACTION> == Skill_Archery)
RETURN 1
ELIF (<FIXACTION> == Skill_Fencing)
RETURN 1
ELIF (<FIXACTION> == Skill_Macefighting)
RETURN 1
ELIF (<FIXACTION> == Skill_Parrying)
RETURN 1
ELIF (<FIXACTION> == Skill_Swordsmanship)
RETURN 1
ELIF (<FIXACTION> == Skill_Wrestling)
RETURN 1
ENDIF
RETURN 0
[itemdef tame_harp]
id=i_lyre
DEFNAME=tame_harp
name=Tame Harp
TYPE=T_normal
value=299
WEIGHT=10
CATEGORY=Items by Professions
SUBSECTION=Bard
DESCRIPTION=Lap Harp
RESOURCES=7 i_log, 2 i_wire_iron
SKILLMAKE=TINKERING 54.0, MUSICIANSHIP 65.0,t_tinker_tools
on=@create
color=0480
on=@dclick
return 1
[eof]
(This post was last modified: 03-28-2013 01:18 PM by amonvangrell.)
|
|
03-28-2013 01:09 PM |
|
|
User(s) browsing this thread: 3 Guest(s)