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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to override the more2 attribute for leather?
Author Message
Chimp
Apprentice
*

Posts: 1
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #1
How to override the more2 attribute for leather?
Hey guys,

I have a problem an I can't figure it out.

I want to delete or override the more2 attribute for leather from a monster. E.g. "12 piles of hides (gian toad)". I want to erease that "(giant toad)". Who needs that? Big Grin

I tried ...

a) to set the OF_NoItemNaming to "OptionFlags=08|0100|0200" -> doesn't work

b) to override the more tag within the hides file:

Code:
[ITEMDEF 01078]
DEFNAME=i_hide
TYPE=t_hide
TDATA1=i_hides_cut
WEIGHT=5
VALUE=5
CATEGORY=Resources - Tailoring
SUBSECTION=Hides
DESCRIPTION=Hide

ON=@CREATE
more2=0

or

Code:
[ITEMDEF i_hide_spined]
ID=i_hide
TYPE=t_hide
TDATA1=i_leather_spined
CATEGORY=Resources - Tailoring
SUBSECTION=Hides
DESCRIPTION=Spined Hide

ON=@Create
COLOR=color_o_spined
more2=0

-> doesn't work either.

I'm searching every forum I know and every phrase I can imagine … but I can't find anything.

What's your take?

Greetings from Germany
Chimp
09-27-2014 11:05 PM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #2
RE: How to override the more2 attribute for leather?
There's no real way of doing this, <more2> is set when u target the corpse with a sharp object. You can override it use @itemtargon_item, example:
Code:
on=@itemtargon_item
if (<targ.type>==t_corpse)
  if (<act.type>==t_weapon_sword) || (<act.type>==t_weapon_fence) || (<act.type>==t_weapon_mace_sharp)
    if !(<targ.tag0.cut>)
      targ.tag.cut=
      targ.timerf 1, f_corpse_cut
    endif
  endif
endif

[function f_corpse_cut]
forcont <uid>
  if (<type>==t_leather) //your leather here
    more2=0 //set to 0?
  endif
endfor

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
09-28-2014 02:58 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: How to override the more2 attribute for leather?
I would prefer

Code:
ON=@Create  //reset MORE2 only after 1 second
TIMERF 1,MORE2=

or

Code:
ON=@PickUp_Pack  //reset MORE2 when the player pickup the item from the loot
MORE2=
09-28-2014 06:21 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #4
RE: How to override the more2 attribute for leather?
@pickup_pack is a good choice.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
09-28-2014 10:44 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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