SphereCommunity
problem with mounts - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: problem with mounts (/Thread-problem-with-mounts)



problem with mounts - fred - 08-19-2019 11:29 PM

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


RE: problem with mounts - Coruja - 08-21-2019 09:09 AM

The mounted graphic ID is controlled by the memory ID. On the default script pack you can see all these IDs
https://github.com/Sphereserver/Scripts/blob/master/items/sphere_item_memories.scp

03e90 ~ 03ed0 memories are already used by UO official mounts (03ed1 is also used by the new "coconut crab" mount which will be released by OSI on next weeks), so to use an custom mount you must find a way to assign an new unused memory (or reassign an used memory) to this custom char

but honestly I never had dealt with custom mounts so I have no idea how you can do this


RE: problem with mounts - fred - 08-21-2019 09:56 AM

Thanks for you reply, but is normal that with with 56b i have not that scp file?
uhmm, anyway I wait someone that know more about it.


RE: problem with mounts - Gon - 08-24-2019 04:36 AM

Did u check the ids on Tiledata.Mul?