| Login to reply | Page: « < 1 of 1 > » |
| 02 Mar 2010 - 21:55 | 2399 |
| sedition New Member Joined: 27 Jul 2009 Posts: 22 | Control Weather I'm working on some code for 3.61 to add storm/precipitation by sector type in the weather system and room description messages (puddles after rain, snow after storm, etc). In testing, I decided I wanted to change the severity of the "Control Weather" spell's effect. I'm not able to find anything magic.c or spell_parser.c. Where does it actually do anything? |
![]() |
| 03 Mar 2010 - 02:34 | 2400 |
| zman Newbie Joined: 18 Jul 2008 Posts: 9 | The spell isn't actually implemented, it's listed as "MAG_MANUAL" (that is, it has its own spell definition, like identify or locate object), but in spell_parser, it's not listed with the other manual spells (IS_SET(SINFO.routines, MAG_MANUAL))) as calling any function. |
![]() |
| 03 Mar 2010 - 12:02 | 2403 |
| sedition New Member Joined: 27 Jul 2009 Posts: 22 | Thanks. That's pretty much what I found, but thought I might have been missing something. Just seemed odd that a cleric receives a non-functional spell. |
![]() |
| 03 Mar 2010 - 13:45 | 2404 |
| stoneheart Newbie ![]() Joined: 08 Jan 2008 Posts: 5 | Hey Man I Found this code in the old circlemud ftp site..
I adapted to my mud, the wheather system can be more realistic!!! You can download at: http://www.circlemud.org/pub/CircleMUD/contrib/code/zones/weather.tar.gz ======================== This patch makes the weather a bit more realistic by giving each zone a different weather pattern. The sunlight patterns were unchanged as this patch concentrates on weather. This patch does not do different climates (eg: arctic, temperate, desert, etc.). I'll leave it up to your imagination and coding abilities to add in extra climates to your mud. If you have any problems with the patch, please let me, John Evans know. Currently my email address is . This will change around May 1998 to something else. After May 1998, you can find me on the CircleMUD mailing list. John Evans 10-21-97 ====================== Good Luck Stoneheart |
![]() |
| 06 Mar 2010 - 18:27 | 2411 |
| sedition New Member Joined: 27 Jul 2009 Posts: 22 | I've gotten the control weather spell working and here's the source, in case anyone would like to use it. You have to remove strict from both entries of weather_change() in weather.c and add the following to the end of spells.c:
ASPELL(spell_control_weather)
{
char argument[10];
sprintf(argument, "%s", cast_arg2);
if(strcmp(argument,"better") == 0) {
weather_info.change += dice(GET_LEVEL(ch) / 10, 6);
weather_change();
}
else if(strcmp(argument,"worse") == 0) {
weather_info.change -= dice(GET_LEVEL(ch) / 10, 6);
weather_change();
}
else {
send_to_char(ch, "Please indicate if you would like the weather to become 'better' or 'worse'.");
}
}
And add the appropriate entries in spell_parser.c as well as spells.h for spell_control_weather. Enjoy. |
![]() |
| Login to reply | Page: « < 1 of 1 > » |