fred
Apprentice
Posts: 6
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jun 2019
Reputation: 0
|
problem with mounts
Hello everyone, My sphere is 56b client 6 0 0 10
I have a problem with the mounts, when i mount on the custom unicorn it's appears like a normal horse, it's change totally the grapich, instead when it's not mounted the grapich is ok do you have any idea ?
///UNICORN CODE
[CHARDEF 0153]
ID=0153
DEFNAME=c_unicorno
NAME=Unicorno
ANIM=0153
SOUND=snd_ANIMALS_HORSE1
DAM=22,40
ARMOR=60
RESOURCES=20 i_hide, 30 i_ribs_raw
CAN=MT_WALK|MT_RUN|MT_FLY|MT_USEHANDS|MT_FIRE_IMMUNE
FOODTYPE=55 t_crops, 55 t_fruit, 55 t_grain, 60 t_grass
TEVENTS=e_resist_spell
TEVENTS=e_nuovo_danno
CATEGORY=Animali
SUBSECTION=Cavalcabili
DESCRIPTION=Unicorno
ON=@Create
NPC=brain_animal
COLOR=080c
STR = {350 450}
DEX={350 450}
INT={350 450}
WRESTLING={150.0 250.0}
TACTICS={150.0 250.0}
MAGICRESISTANCE={150.0 250.0}
MAGERY={150.0 250.0}
TAMING=106.0
TAG0.FIRSTUID=<SERIAL>
TAG0.NPC_LOOT_TEMPLATE=tm_new_loot_unicorno
ON=@Dclick
f_gygrazok_ride i_mt_unicorno
f_bonus_cavalcatura 0,0,0,15,0,15,0
RETURN 0
////////////
[FUNCTION f_gygrazok_ride]
IF (<SRC.FLAGS>&statf_freeze) || (<DISTANCE>>3) && !(<SRC.ISGM>)
SRC.SYSMESSAGE You can't reach the creature.
ELSEIF !(<SRC.BODY>==c_man) && !(<SRC.BODY>==c_woman) && !(<SRC.BODY>==c_man_gm)
SRC.SYSMESSAGE You are not physically capable of riding a horse.
ELSEIF !(<ISMYPET>)
SRC.SYSMESSAGE You dont own that horse.
ELSE
IF ( <FINDID.i_rune_poison.UID> ) // Aggiunta anti-poison-bug
FINDID.i_rune_poison.REMOVE
ENDIF
SRC.OBJ=<SRC.FINDLAYER.25.MORE2>
SRC.FINDLAYER.25.REMOVE
SRC.OBJ.P=<SRC.P>
SRC.OBJ.DIR=<SRC.DIR>
SRC.OBJ.FLAGS=<SRC.OBJ.FLAGS>&~statf_ridden
SRC.OBJ.UPDATE
SERV.NEWITEM=<ARGS>
NEW.NAME=<NAME>
NEW.COLOR=<COLOR>
NEW.LINK=<SRC.UID>
NEW.MORE2=<UID>
NEW.MORE=<BASEID>
NEW.TIMER=1
NEW.CONT=<SRC.UID>
ACTARG1=<NEW.UID>|030000000
ACTION=111
DISCONNECT
FLAGS |= 068000000
ENDIF
RETURN 1
/////////
SPHERE_DEF_SCP
mount_0x153 03e9e // unicorno
////////
SPHERE_ITEM_SHIP_PARTS.SCP
[ITEMDEF 03e9e]
//ship (really used as horse equipped)
DEFNAME=i_mt_unicorno
TYPE=T_EQ_HORSE
LAYER=layer_horse
TDATA3=c_unicorno
(This post was last modified: 08-20-2019 12:24 AM by fred.)
|
|
08-19-2019 11:29 PM |
|
|