Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Canuse
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
Help with Canuse
i couldnt figure how to use the smith's hammer on gargoyles so i tried with the CanUse function but dont work for it and any other items neither, would anyone please explain to me a bit how it works?

Thanks !
05-04-2014 09:06 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #2
RE: Help with Canuse
Not sure what isn't working. You can't use smith's hammer with gargoyle?
It should work with default scriptpack.
05-04-2014 09:38 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #3
RE: Help with Canuse
exactly, when i try to use a smith's hammer with gargoyle i get the: Gargoyles can't wear this.

using: Sphere Version 0.56c-Nightly [WIN32] by http://www.spherecommunity.net, compiled at May 2 2014 (00:20:44), internal build #1906
WARNING: --- WARNING ---

and same release day scripts.

PD: pickaxe didnt work for mining either, so i had to use the shovel and it worked fine.
(This post was last modified: 05-04-2014 10:04 AM by kn4tseb.)
05-04-2014 10:02 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #4
RE: Help with Canuse
Uh, we'll have to wait for some devs doing this. The scriptpack is changed a lot, I don't know this one Big Grin
Unfortunately I can't try it, because I have some old version of UO.

But few months ago there was a tag saying if the gargoyle can wear it or not. tag.notgargoyle and tag.gargoyleonly



If I take this item from the newest scriptpack it is missing the info, who can wear it. Give them some time Smile Gonna sleep, gn.

Code:
[ITEMDEF 0902]
DEFNAME=i_gargish_dagger
NAME=Gargish Dagger
TYPE=t_weapon_fence
DAM=10,11
SKILL=Fencing
REQSTR=10
TWOHANDS=N
SKILLMAKE=0.0 Blacksmithing
RESOURCES=3 i_ingot_iron
SPEED=75
WEIGHT=1.0
DUPELIST=0406A

CATEGORY=Provisions - Weapons
SUBSECTION=Stygian Abyss
DESCRIPTION=Gargish Dagger

ON=@Create
HITPOINTS={30 50}
05-04-2014 10:15 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: Help with Canuse
Ok, ^^, thanks Alaric, i'll wait, have a good night.
05-04-2014 10:18 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #6
RE: Help with Canuse
Anyone??
Most gargoyle items work on them, but still dont know how to use a BS hammer or add another item to be used by this race.

here is, inside sphere_defs.scp some lines about it.


// CanUse flags
// Uses new internal variable CANUSE. Script for this is in the addon's folder in the script pack.
// Used on items for checks or npcs (mounts, golems, etc)
[defname canuse_flags]
can_u_all 0
can_u_male 01
can_u_female 02
can_u_human 04
can_u_elf 08
can_u_gargoyle 010
can_u_none 020

Thanks a lot!

update: just created a new gargoyle char as a Blacksmith Profession, it's wielding a pickaxe but as soon as i unequip the item it wont be weild again :/
Gargoyles can't wear this msg.


Attached File(s) Thumbnail(s)
   
(This post was last modified: 05-05-2014 02:22 AM by kn4tseb.)
05-05-2014 01:45 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)