Author Topic: SetBaseCost  (Read 3266 times)

Offline Ashon

  • Acquaintance
  • *
  • Posts: 24
    • View Profile
    • http://talosmud.wordpress.com/
SetBaseCost
« on: January 12, 2010, 11:41:19 am »
I've grepped and poked and prodded and can't find where SetBaseCost is actually defined.  In create.c it points me to eventModCost in Money.c which still doesn't define SetBaseCost  (It looks like there is no REAL SetBaseCost and there is a lot of backwards compatibility functionality (or so I assume) before I go off and hack out an Actual SetBaseCost function I figured I'd ask the Guru's.

Why am I looking you ask?
I am hacking the weapons to have weapon defaults:
All short swords will share base stats and then depending on the actual object (A Flaming Short Sword) I want to enforce specific Defaults so that I don't have two Flaming Short Swords made by different builders that have different stats.  I have been able to find and hack most of my Defaults but can't locate this magical SetBaseCost() function.  Any pointers are much appreciated.

-Ashon

Offline detah

  • BFF
  • ***
  • Posts: 190
  • Ruler of 2D
    • View Profile
Re: SetBaseCost
« Reply #1 on: January 12, 2010, 12:50:20 pm »
/lib/props/value.c

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1022
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Re: SetBaseCost
« Reply #2 on: January 12, 2010, 07:57:14 pm »
I've grepped and poked and prodded and can't find where SetBaseCost is actually defined. 


help findfun
                          Dead Souls Dev System Help                         
Index: creator commands
Topic: findfun

Syntax: findfun <FUNCTION_NAME>
        findfun -s <SUBSTRING>

Tells you where a function is defined. With the substring flag (-s) it lists
possible matching lfuns, efuns, and sefuns known to the command.

Examples:
findfun AddHP
findfun -s class

Note: When not doing a substring search, this command is case-sensitive.
See also: showfuns, efun, efuns, sefun, sefuns, lfun, lfuns
findfun SetBaseCost
/lib/props/value

Offline Ashon

  • Acquaintance
  • *
  • Posts: 24
    • View Profile
    • http://talosmud.wordpress.com/
Re: SetBaseCost
« Reply #3 on: January 13, 2010, 08:47:31 am »
D'Oh.  At least I didn't get FAQ'd By Crat.   ;)


Offline detah

  • BFF
  • ***
  • Posts: 190
  • Ruler of 2D
    • View Profile
Re: SetBaseCost
« Reply #4 on: January 13, 2010, 09:51:08 am »
No, worse. You got sent to the help file.