|
function look up & reverse function lookup - smaug 1.4 & FUSS
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Nargsbrood
(54 posts) bio
|
| Date |
Wed 17 Oct 2007 03:47 AM (UTC) [ quote
] |
| Message |
in smaug1.4 - TABLES.C file contained the function lookups and reverse function lookups for various functions like skill or command functions.
IE: (lookup)
if( !str_cmp( name, "do_mdelete" ) )
return do_mdelete;
if( !str_cmp( name, "do_memory" ) )
return do_memory;
if( !str_cmp( name, "do_mfind" ) )
return do_mfind;
if( !str_cmp( name, "do_minvoke" ) )
return do_minvoke;
if( !str_cmp( name, "do_mistwalk" ) )
return do_mistwalk;
if( !str_cmp( name, "do_mlist" ) )
return do_mlist;
and: (reverse lookup)
if( skill == do_mdelete )
return "do_mdelete";
if( skill == do_memory )
return "do_memory";
if( skill == do_mfind )
return "do_mfind";
if( skill == do_minvoke )
return "do_minvoke";
if( skill == do_mistwalk )
return "do_mistwalk";
if( skill == do_mlist )
return "do_mlist";
This section is not in the TABLES.C for FUSS 1.8
How is the lookup system handled? Is it dynamic? | top |
|
| Posted by |
Zeno
USA (2,868 posts) bio
Moderator |
| Date |
Reply #1 on Wed 17 Oct 2007 03:54 AM (UTC) [ quote
] |
| Message |
| Yep, it's dynamic. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
| Posted by |
Nargsbrood
(54 posts) bio
|
| Date |
Reply #2 on Wed 17 Oct 2007 03:58 AM (UTC) [ quote
] |
| Message |
| so just adding the functions and assigning them in the OLC of commands or spells works? just like that? nice nice :) | top |
|
| Posted by |
Nargsbrood
(54 posts) bio
|
| Date |
Reply #3 on Wed 17 Oct 2007 04:11 AM (UTC) [ quote
] |
| Message |
i've added the function and now i add the command using:
cedit testing create do_map
and get this:
Log: Admin: cedit testing create do_map
Log: [*****] BUG: Error locating do_map in symbol table. Resource temporarily unavailable
Command added.
Code do_map not found. Set to no code. | top |
|
| Posted by |
Zeno
USA (2,868 posts) bio
Moderator |
| Date |
Reply #4 on Wed 17 Oct 2007 04:16 AM (UTC) [ quote
] |
| Message |
Quote: Code do_map not found. Set to no code.
That's your problem there. Did you make sure to add do_map to mud.h? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
| Posted by |
Nargsbrood
(54 posts) bio
|
| Date |
Reply #5 on Wed 17 Oct 2007 04:21 AM (UTC) [ quote
] |
| Message |
| yes I did add it but you reminded me, thankyou, that i did not make clean :) hmm | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
1,626 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )