Amended on Mon 27 Sep 2010 08:06 PM (UTC) by Aiseant
Message
Dammit ! Captain obvious is obvious ... when I think that i was able to figure out this parsing thing with do_tell and never made the link with my problem ...
ok, many thanks for you lighting reading on this.
Now I suppose that I've to do something more, since if I type 'combine', I get an 'invalid input' and 'sset self combine' returns 'No such skill or spell'
EDIT : cedit command discovered, now it's fine :)
Commands take a character and a string as only parameters; you need to parse the string into objects. Take a look at how nearly any other object-related command works, like do_give, do_take, etc.
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
Amended on Mon 27 Sep 2010 01:02 PM (UTC) by Aiseant
Message
Hi all,
As I said in my previous post, i'm helping a friend with his mud, SWR based.
I've created a little command which allow players to combine items (if they're compatible) to create new stuffs or improve existant ones.
I add the two lines in tables.c, the one in mud.h, my command do_combine is written in combine.c, which is taken by the Makefile to make the combine.o, though I think everything is right.
But the make is whinning about do_combine redefined : once in the beginning of combine.c and the other in mud.h. It says that there's a conflicting types ... (i also try to add gns_combine everywhere i found a gsn_punch, but still the same problem)
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.