help plz with new smaug and a news snippet

Posted by Chey on Tue 19 Jul 2005 06:15 PM — 7 posts, 20,932 views.

#0
help plz...

I installed smaugfuss 1.5 a little while ago and just installed Noplex Extended News v3.2. Most of the changes seem to work fine except for one major problem. As part of the install it says to remove do_news in act_info.c and to "cedit news delete", and then add the editnews command.

I did all that and looks like editnews does what it's sposed to do - addnews add types, delete, etc. but I can't figure out how to actually read the news.

In the readme it says this code makes news part of the command interpreter but typing news just comes back with Huh? cause there's no more do_news command... Is there another command thats sposed to be used to actually read the news ?

Im trying to learn C and smaug at the same and i'm not sure if i missed something..

thanks
USA #1
Do you have a link to the snippet so we can look it over?
#2
this is sposed to be the same snippet that's used at realms of despair (they prolly modified it more)

but the snippet originally comes from noplex's site www.crimson-blade.org but it looks like the site is down now.. anyways, i put a zip copy of all files and the individual files at http://chey.mistymoon.org/noplexnews/



USA #3
Assuming you did this step:
(2) interp.c
    (A) After:
	  &&   !check_social( ch, command, argument )
	Add:
	  &&   !news_cmd_hook(ch, command, argument)


You just add a new news and type that "command" that you added with editnews.
#4
ty for replying so fast Zeno :)

yes i added interp.c ( adding && !news_cmd_hook(ch, command, argument)) but don't understand what you mean by "add a new news and type that "command"

editnews itself doesnt seem to give an option to "read" the news, it allows adding, changing, etc. If i add a new news command with cedit.. like:

cedit news code "do_something"

what code would "do_something" point to ?


USA #5
Well I'm not familar with this snippet but if you look at news.dat there's this line:
Cmd_Name      news~


So when you add news when editnews, there should be a way to edit the cmd_name. Basically if you type news it should display the news type that's associated with it.
#6
ok, thks! .. i'll go and try that