Skill Code Implementation

Posted by Dralnu on Fri 29 Apr 2005 10:23 PM — 5 posts, 22,796 views.

USA #0
Trying to get a new skill added in, and whenever I sset code do_camouflage, it says it doesn't exist. Help

Edit: I copied the code and did the nessesary ajustments to the code to get it to work. Yes, the thing compiled, and yes, I put the spelling in correctly, but thats about it...

Edit #2: I've doubles the number in MAX_SKILLS, and looked through the docs w/ the thing and I see nothing useful. I used a copy of do_hide to make the skill, and all that seems missing is something to allow me to add the code to the skill.

Edit #3: Anything that could cause Cygwin to not allow functions to be added?
Amended on Sat 30 Apr 2005 09:50 PM by Dralnu
USA #1
Quote:

sset code do_camouflage


I'm assuming that's not actually what you entered? Shouldn't it be something like sset camouflage create, sset camouflage code do_camouflage (should already be the default, no?)?

With regards to compiling and all, did you make sure to add this to the appropriate places in tables.c ? If you're actually entering the right syntax and getting the message that it's not found, that may be the problem.

Hope that help somewhat, if not, maybe post a log of the commands you're using in game and the exact response you're getting? That might help also.

Amended on Mon 02 May 2005 04:26 AM by Gatewaysysop2
USA #2
Lol me and dralnu tried getting this to work probably for an hour, had him add tables.c, mud.h, even had him try making it as a command with cedit, and it will doesn't aknowledge the new function. Either it's a horrible typo every time, or somethin really weird is screwed up lol.
USA #3
Could you post the function first line (where the function name is, etc), the line in mud.h, and the two lines in tables.c here?
Amended on Mon 02 May 2005 03:42 PM by Zeno
USA #4
I deleted the entire server after trying to install Dlsyn (something like that), since I didn't feel like messing with it, and until I get some other things done up, I'm just going to leave the skills/spells as is, but once I do if I get the same problem I'll post it here.