Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
First my name is James and i am trying to build a med in smaugfuss19
It's running outta cygwin...
My first question is where can i find a build-walk snippet, I did a search here and got nothing but will try again shortly...
My second question is about an overhead map... I would like the map to return one room in all directions like this.
X X X
X PC X
X X X
Any help would be awesome, but to be honest i'd need snips as i can only read code, not that good at coding.
It's running outta cygwin...
My first question is where can i find a build-walk snippet, I did a search here and got nothing but will try again shortly...
My second question is about an overhead map... I would like the map to return one room in all directions like this.
X X X
X PC X
X X X
Any help would be awesome, but to be honest i'd need snips as i can only read code, not that good at coding.
Magician

GroupMembers
Posts175
JoinedMay 21, 2006
http://smaugmuds.afkmods.com/index.php?a=files&s=viewfile&fid=314
There is the buildwalk command.
The game already comes with a map feature like you're wanting.
There is the buildwalk command.
The game already comes with a map feature like you're wanting.
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
can you edit an area once it's installed?
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
having some trouble changing my color scheme as far as the color of who goes... it just doesn't take, 1 or all the same color it stays dgrey
Sorcerer

GroupMembers
Posts723
JoinedMar 5, 2005
Yes you can edit an installed area, just have to foldarea.
What are you trying when changing the color?
What are you trying when changing the color?
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
color who yellow
Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
Weird. Color command works for me. Changes the color and everything...?
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
Ok so i've made some progress with small changes to the appearance of the game.. I'm currently trying to create a skill command that only shows skills, also a spell cmd that works the same way.. And a language command that returns languages
I also would like to remove the prac style to make room for an exp banking system but that can wait
I was thinking if the slist command broke up what you can learn that'd work just fine
I also would like to remove the prac style to make room for an exp banking system but that can wait
I was thinking if the slist command broke up what you can learn that'd work just fine
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
wizhelp code help needed.... This is what i have so far... Compiler errors state: expected init before bool & unqualified-id before {
this is the actual code:
void do_wizhelp( CHAR_DATA* ch, const char* argument)
bool found;
{
char arg[MAX_INPUT_LENGTH];
CMDTYPE * cmd;
int col, hash, level, low=LEVEL_AVATAR, high=get_trust(ch);
argument=one_argument(argument,arg);
if(!str_cmp(arg,"mortal")){
low=0;
high=LEVEL_AVATAR;
}else if(!str_cmp(arg,"all"))
low=0;
else if(is_number(arg)){
low=URANGE(0,atoi(arg),get_trust(ch));
one_argument(argument,arg);
if(is_number(arg))
high=URANGE(low,atoi(arg),get_trust(ch));
else
high=low;
}
for(level = low; level <= high; ++level){
col = 0;
found = FALSE;
sprintf(arg,"&P*** &WLevel %d &P***\r\n", level);
for(hash = 0; hash < 126; ++hash){
for(cmd = command_hash[hash]; cmd; cmd = cmd->next){
if(cmd->level == level){
if(cmd->code == skill_notfound) strcat(arg, "&z");
else if(cmd->log == LOG_ALWAYS) strcat(arg, "&p");
else if(cmd->log == LOG_BUILD) strcat(arg, "&B");
else if(cmd->log == LOG_HIGH) strcat(arg, "&R");
else if(cmd->log == LOG_COMM) strcat(arg, "&C");
else if(cmd->log == LOG_WARN) strcat(arg, "&r");
else if(cmd->log == LOG_NEVER) strcat(arg, "&O");
else if(cmd->log == LOG_ALL) strcat(arg, "&Y");
else strcat(arg, "&w");
sprintf(arg+strlen(arg), "%-12s", cmd->name);
found = TRUE;
if(++col % 6 == 0)
strcat(arg, "\r\n");
}
}
}
if(col % 6 != 0)
strcat(arg, "\r\n");
if(found)
send_to_pager_color(arg, ch);
}
this is the actual code:
void do_wizhelp( CHAR_DATA* ch, const char* argument)
bool found;
{
char arg[MAX_INPUT_LENGTH];
CMDTYPE * cmd;
int col, hash, level, low=LEVEL_AVATAR, high=get_trust(ch);
argument=one_argument(argument,arg);
if(!str_cmp(arg,"mortal")){
low=0;
high=LEVEL_AVATAR;
}else if(!str_cmp(arg,"all"))
low=0;
else if(is_number(arg)){
low=URANGE(0,atoi(arg),get_trust(ch));
one_argument(argument,arg);
if(is_number(arg))
high=URANGE(low,atoi(arg),get_trust(ch));
else
high=low;
}
for(level = low; level <= high; ++level){
col = 0;
found = FALSE;
sprintf(arg,"&P*** &WLevel %d &P***\r\n", level);
for(hash = 0; hash < 126; ++hash){
for(cmd = command_hash[hash]; cmd; cmd = cmd->next){
if(cmd->level == level){
if(cmd->code == skill_notfound) strcat(arg, "&z");
else if(cmd->log == LOG_ALWAYS) strcat(arg, "&p");
else if(cmd->log == LOG_BUILD) strcat(arg, "&B");
else if(cmd->log == LOG_HIGH) strcat(arg, "&R");
else if(cmd->log == LOG_COMM) strcat(arg, "&C");
else if(cmd->log == LOG_WARN) strcat(arg, "&r");
else if(cmd->log == LOG_NEVER) strcat(arg, "&O");
else if(cmd->log == LOG_ALL) strcat(arg, "&Y");
else strcat(arg, "&w");
sprintf(arg+strlen(arg), "%-12s", cmd->name);
found = TRUE;
if(++col % 6 == 0)
strcat(arg, "\r\n");
}
}
}
if(col % 6 != 0)
strcat(arg, "\r\n");
if(found)
send_to_pager_color(arg, ch);
}
Magician

GroupMembers
Posts189
JoinedSep 5, 2010
Change the first part to the following:
Just moving the bool inside the block and that should solve the issue for you.
void do_wizhelp( CHAR_DATA* ch, const char* argument)
{
bool found;
char arg[MAX_INPUT_LENGTH];
etc...
Just moving the bool inside the block and that should solve the issue for you.
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
ty aurin....
how can i create a board within a room?
do i set an obj as that type or what, it needs to be a perm board...
how can i create a board within a room?
do i set an obj as that type or what, it needs to be a perm board...
Magician

GroupMembers
Posts189
JoinedSep 5, 2010
I don't remember how to create a board in a room, but you can install the Global Board Snippet offered here on the site, then anyone can get to it--or, rather, you can define it further to who has access to what boards within the code. If you're just looking for a board in a single room, there's gotta be a helpfile on how to set one up. I'm afraid I don't know, though.
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
This is just an idea but is there a way to link a shoutcast server to the mud to serve players with music while they play?
If so anyone wanna help me do that?
If so anyone wanna help me do that?
Magician

GroupMembers
Posts189
JoinedSep 5, 2010
You could probably just add a link players can click on to use for their music. Not sure where you'd link it so that they could listen to an ongoing montage of whatever you want them to listen to, though. heh
Magician

GroupMembers
Posts189
JoinedSep 5, 2010
and if you choose to add music to your mud, you need to have the artists' permission, as well as a rather robust helpfile system for each type of client that you may come across accessing the game. I have sound and music implemented on 6Dragons, but while I can get it to work with my client, I don't know every client to help others to get it to work for them.
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
ok i'm gonna throw out my todo list, mabye i can get someone to log in their spare time and help me out with this...
Note the things with *'s i can prolly handle
1:fix the wizhelp color *
2:fix boards to global items (don't know how to patch the mud)
3:fix mount cmd (newly created npc/mountable/pets cannot be mounted)
4:class revamps
5:skill corrections/new and improved
6:command bugs, like emote leaves a > between char name and the emote.
7: Separate the slist into skills/tongues/spells/ (i want it to look like score but using the cmd skills)
8:removal of the practice feature
9: Creation of xp banking system, (player deposits xp into levels and skills to learn new things)
If anyone can lend me a hand with this that would rock... If not that's fine too.
Mud Addy: 72.174.4.157@4020
Note the things with *'s i can prolly handle
1:fix the wizhelp color *
2:fix boards to global items (don't know how to patch the mud)
3:fix mount cmd (newly created npc/mountable/pets cannot be mounted)
4:class revamps
5:skill corrections/new and improved
6:command bugs, like emote leaves a > between char name and the emote.
7: Separate the slist into skills/tongues/spells/ (i want it to look like score but using the cmd skills)
8:removal of the practice feature
9: Creation of xp banking system, (player deposits xp into levels and skills to learn new things)
If anyone can lend me a hand with this that would rock... If not that's fine too.
Mud Addy: 72.174.4.157@4020
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
yo try again aurin, i'm back
Apprentice

GroupMembers
Posts65
JoinedJun 27, 2011
ok so now i'm having an issue with a vendor... He currently is buying itmes for 120% value and selling at 110%
Any ideas?
Any ideas?
Magician

GroupMembers
Posts189
JoinedSep 5, 2010
You'll need to use the command shopset