A few questions for you, from a non coder

Posted by Psg on Wed 31 Jan 2007 04:45 PM — 6 posts, 22,148 views.

United Kingdom #0
Ok this is my first post; been writting a Mud mainly for fun using Smaug codebase. Tried to work this all out for myself, but wasn't able to, so I am gonna ask you guys :)

1. Is there anyway (without coding in new code and recompiling, as I don't really want to do that if possible at this stage - same goes for all questions) that I can award expirience points via a mud program?

2. Is there anyway I can award quest/glory points via a mud program?

3. Can I make it so you don't need notes/quills to post on boards. If so, how (I have one board which can do this, but cannot find what's so different about it! - I left this project for a while... and have forgotten).

4. How do you allow player stealing? ie. stealing from other player characters?

That's it.

Hope you can help :)

psg.
psg@cdc-nsf.com
Bow To The CoW! Oom.
USA #1
1. No
-------
2. No
-------
3. If you have a board that can already do it, copy it...
ocreate <new vnum> <old vnum> keywords

That should copy the board exactly and allow you to do what you're looking for.
-------
4. Not 100% sure on this one... it's been a while since I've looked at Smaug1.4a and SmaugFUSS.... I'm pretty sure it's hard-coded so players can't steal from other players. check skills.c... search for "disabled stealing among players because"...
If you see that line, you need to uncomment out the following ifcheck. It should be something like:

   if( check_illegal_psteal( ch, victim ) )
      {
         send_to_char "You can't ....
         ch_printf( victim, "%s ....
         return;
      }


comment that out by putting a /* before the 'if' and a */ after the }
make, compile... (I know... you didn't wanna compile... :\)

USA #2
hmm... I should also add that 1. and 2. aren't too difficult to make happen. If you'd like help with it, lemme know :)
United Kingdom #3
Thanks very much for your amazingly prompt help!

I will copy the board info, that did occur to me. If that's the easiest way so be it :)


With regard to the xp awarding etc, any idea how I would code that in... I basically want programs to be able to award xp on tiggers, ie:

YOU FOUND THE DRAGON
Prog awards 2000 xp.

Likewise for Glory/Quest points.

Are there any snippets, precompiled Smaug binary's to do this, if not, where would you start to code this in? Is it a big job (I assume not as it's basically just editing a player file, numbers within on a trigger?).


Look like I am going to have to recompile anyway ;)

Amended on Wed 31 Jan 2007 05:16 PM by Psg
United Kingdom #4
Any help you are willing to give greatly appriciated... email me you can have an irc channel/msn address to talk about it :)

Or just post here.

Thanks again.
USA #5
email sent... though after we come up with a good solution, we should still post it here so future people that run into the same problem can find the solution easier :).

(email sent to psg@cdc-nsf.com)