Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ a little help with leveling and pk
a little help with leveling and pk
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Yetro
(40 posts) Bio
|
Date
| Sat 08 Jun 2002 11:02 AM (UTC) |
Message
| I want to make the players of my mud autocatimaly become deadly when they reach level 10+. But i don't know how and where to do it. Can anyone help. I can do it.. but not auto, with mprog.. and mset command.. but that is not the idea.
greetings. | Top |
|
Posted by
| Chris L
USA (57 posts) Bio
|
Date
| Reply #1 on Sun 09 Jun 2002 01:06 AM (UTC) |
Message
| just an idea, not sure if work or not im not that great coding but in update.c at line 2961 add:
if ( ch->level == 10 )
SET_BIT( victim-pcdata->flags, PCFLAG_DEADLY);
will that work? | Top |
|
Posted by
| Chris L
USA (57 posts) Bio
|
Date
| Reply #2 on Sun 09 Jun 2002 01:08 AM (UTC) |
Message
| just remembered i might have edited that file, just add the two lines after the xREMOVE_BIT( ch->act, PLR_BOUGHT_PET ); | Top |
|
Posted by
| Yetro
(40 posts) Bio
|
Date
| Reply #3 on Sun 09 Jun 2002 03:03 AM (UTC) |
Message
| |
Posted by
| Yetro
(40 posts) Bio
|
Date
| Reply #4 on Sun 09 Jun 2002 03:24 AM (UTC) |
Message
| Don't work... i guess the if line its okay, but the set_bit it isnot.
victim undeclared first use of this...
pcdata undeclared..
that where the errors | Top |
|
Posted by
| Yetro
(40 posts) Bio
|
Date
| Reply #5 on Sun 09 Jun 2002 03:28 AM (UTC) |
Message
| Seems that i correct it...
if ( ch->level == 10 )
SET_BIT( ch->pcdata->flags, PCFLAG_DEADLY);
I will check in game.. | Top |
|
Posted by
| Yetro
(40 posts) Bio
|
Date
| Reply #6 on Sun 09 Jun 2002 03:45 AM (UTC) |
Message
| Seems to be working.. but what are the deadly status??
because i get the level 10 as pre-deadly. | Top |
|
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.
17,970 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top