[function binekcantaya]
if (<findlayer.25>)
tag.binekid <findlayer.25.more1>
tag.binekkarma <uid.<findlayer.25.more2>.karma>
tag.binekfame <uid.<findlayer.25.more2>.fame>
tag.binekfood <uid.<findlayer.25.more2>.food>
tag.binekcolor <uid.<findlayer.25.more2>.color>
tag.binekname <findlayer.25.name>
serv.newitem i_binek_hafiza
new.tag.name <tag.binekname>
new.tag.fame <tag.binekfame>
new.tag.karma <tag.binekkarma>
new.tag.food <tag.binekfood>
new.tag.binekid <tag.binekid>
new.color <tag.binekcolor>
new.bounce
new.more2 1
findlayer.25.remove
else
return 1
endif
[itemdef i_binek_hafiza]
id i_deed
type t_normal
weight 20.0
name
on=@click
if (<more2>
message @38,1,1 <name>
return 1
else
message @38,1,1 <name>
return 1
endif
on=@dclick
if (<more2>)
try src.newnpc <tag.binekid>
link <src.act.uid>
link.name <tag.name>
link.karma <tag.karma>
link.fame <tag.fame>
link.food <tag.food>
link.color <color>
link.memorydel <src.uid>
link.newitem i_memory
link.act.attr 04
link.act.more1 04
link.act.more2 <serv.time>
link.act.morep <link.p>
link.act.color memory_ipet
link.act.timer -1
link.act.link <src.uid>
link.act.cont <link.uid>
link.flags <link.flags>&statf_pet
link.update
link.anim 5
link.bark 3
remove
return 1
else
return1
endif
[function binekcantaya]
if (<findlayer.25>)
tag.binekid <findlayer.25.more1>
tag.binekkarma <uid.<findlayer.25.more2>.karma>
tag.binekfame <uid.<findlayer.25.more2>.fame>
tag.binekfood <uid.<findlayer.25.more2>.food>
tag.binekcolor <uid.<findlayer.25.more2>.color>
tag.binekname <findlayer.25.name>
serv.newitem i_binek_hafiza
new.tag.name <tag.binekname>
new.tag.fame <tag.binekfame>
new.tag.karma <tag.binekkarma>
new.tag.food <tag.binekfood>
new.tag.binekid <tag.binekid>
new.color <tag.binekcolor>
new.bounce
new.more2 1
findlayer.25.remove
else
return 1
endif
[itemdef i_binek_hafiza]
id i_deed
type t_normal
weight 20.0
name
on=@click
if (<more2>
message @38,1,1 <name>
return 1
else
message @38,1,1 <name>
return 1
endif
on=@dclick
if (<more2>)
src.newnpc { c_m_unicorn 3 c_m_nightmare 3 c_m_silver 3 c_m_kirin 3 c_ostard_mid 2
c_ostard_zostrich 2 c_ostard_desert 1 c_ostard_forest 1 c_llama 1 }
link <src.act.uid>
link.memorydel <src.uid>
link.oskin <link.color>
link.newitem i_memory
link.act.attr 04
link.act.more1 04
link.act.more2 <serv.time>
link.act.morep <link.p>
link.act.color memory_ipet
link.act.timer -1
link.act.link <src.uid>
link.act.cont <link.uid>
link.flags <link.flags>&statf_pet
link.update
link.anim 5
link.bark 3
remove
return 1
endif
on=@step
src.newitem i_pet_mustang
remove
return 0
on=@step
src.go xxx,xxx,xx
remove
return 0