The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Standard leather armor consumes custom hides
Author Message
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #1
Standard leather armor consumes custom hides
Hi everyone,
first of all a presentation, since is a couple of months that I started working on sphere again after ~10 years and it's my first post since the old forum Shock
I'm really happy to be part of the community again, hoping that i will be usefull for someone (when i'll get used again xD).

Going to the matter:

I've created new hides carved from some npc to make alternative leather armor

Code:
[ITEMDEF i_hide_rat]
ID=i_hide
TYPE=t_hide
NAME=Rat Hide

CATEGORY=Items by Professions
SUBSECTION=Tailoring
DESCRIPTION=Rat Hide

ON=@CREATE
COLOR=color_rat_hide

Code:
[ITEMDEF i_studded_sleeves_rat]
DEFNAME=i_studded_sleeves_rat
NAME=Rat Studded Sleeves
ID=i_studded_sleeves
TYPE=t_armor_leather
ARMOR=60
REQSTR=10
RESOURCES=12 i_hide_rat
SKILLMAKE=tailoring 50.0, t_sewing_kit

CATEGORY=Provisions - Armor - Leather
SUBSECTION=Rat
DESCRIPTION=Rat Studded Sleeves

ON=@Create
    HITPOINTS={35 80}
    COLOR=color_ratto

It works fine, the matter came out when i tested the skillmenu
I saw that using the sawing kit on the hides, on the menu i can see standard leather armor menu, studded, ecc.. trying to make one of them, it consumes the custom hide and creates the item
I link the tested item with the relative skillmenu

Code:
[ITEMDEF 013c7]
DEFNAME=i_leather_gorget
TYPE=t_armor_leather
FLIP=1
//ARMOR=13
VALUE=32
WEIGHT=1.0
RESOURCES=4 i_hide
SKILLMAKE=Tailoring 53.9,t_sewing_kit,Armslore 10.0
CATEGORY=Provisions - Armor
SUBSECTION=Leather Armor
DESCRIPTION=Leather Gorget
TAG.NotGargoyle=1
TAG.REQSTR=20
TEVENTS=t_equipitem
ON=@Create
   HITPOINTS={36 48}
   TAG.RESCOLD=3
   TAG.RESENERGY=3
   TAG.RESFIRE=4
   TAG.RESPhysical=2
   TAG.RESPOISON=3

Code:
[SKILLMENU sm_leather_armor]
Leather Armour

ON=i_LEATHER_GORGET <name> (<resmake>)
MAKEITEM=i_LEATHER_GORGET
.
.
.

What am i missing?

Thanks in advance
09-12-2014 09:22 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Standard leather armor consumes custom hides - Artyk - 09-12-2014 09:22 AM

Forum Jump:


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