Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with mounts
Author Message
fred
Apprentice
*

Posts: 6
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jun 2019
Reputation: 0



Post: #1
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
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 886
Likes Given: 5
Likes Received: 205 in 169 posts
Joined: Jul 2012
Reputation: 6

Dimension Shard

Post: #2
RE: problem with mounts
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/...mories.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
08-21-2019 09:09 AM
Find all posts by this user Like Post Quote this message in a reply
fred
Apprentice
*

Posts: 6
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jun 2019
Reputation: 0



Post: #3
RE: problem with mounts
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.
08-21-2019 09:56 AM
Find all posts by this user Like Post Quote this message in a reply
Gon
Apprentice
*

Posts: 6
Likes Given: 4
Likes Received: 0 in 0 posts
Joined: Sep 2012
Reputation: 0



Post: #4
RE: problem with mounts
Did u check the ids on Tiledata.Mul?
08-24-2019 04:36 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.