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
➜ class spells/skills
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
| Posted by
| Gorock
(149 posts) Bio
|
| Date
| Tue 04 Sep 2007 04:56 PM (UTC) |
| Message
| | ok i was wondering if there is any way in smaug fuss 1.8 to give certain people skills/spells i want to be able to give a vampire sanctuary or a cleric stun but whenever i sset them with or add it to the player file they are still unable to use it the purpose is so that i can sell skills/spells or give them as rewards for certain quests | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #1 on Tue 04 Sep 2007 05:14 PM (UTC) |
| Message
| | What message do you get when they try to use them? Does it show up in their practice list? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Gorock
(149 posts) Bio
|
| Date
| Reply #2 on Tue 04 Sep 2007 05:50 PM (UTC) |
| Message
| | no it just says huh and nothing is in the practice list either | | Top |
|
| Posted by
| Gorock
(149 posts) Bio
|
| Date
| Reply #3 on Tue 04 Sep 2007 05:52 PM (UTC) |
| Message
| | rather it says you cant do that | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #4 on Tue 04 Sep 2007 06:04 PM (UTC) |
| Message
| If it's not "Huh?" then grep for the message in the code.
Also, I believe any skills the player shouldn't have will not be saved when a player quits. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Gorock
(149 posts) Bio
|
| Date
| Reply #5 on Tue 04 Sep 2007 06:39 PM (UTC) |
| Message
| | ok i can't seem to properly use the grep command i type "grep Huh!" and then my prompt freezes and i cant do anything else in the shell also would there be any way to bypass this so that i could give different classes different spells | | Top |
|
| Posted by
| Gorock
(149 posts) Bio
|
| Date
| Reply #6 on Tue 04 Sep 2007 07:15 PM (UTC) |
| Message
| | ok got grep to work but still am not sure how to change it so that i can give spells to certain people and save it | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #7 on Tue 04 Sep 2007 08:25 PM (UTC) |
| Message
| | Why would you grep for "Huh", you said it didn't say "Huh". |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Gorock
(149 posts) Bio
|
| Date
| Reply #8 on Tue 04 Sep 2007 09:18 PM (UTC) |
| Message
| | im saying i got grep to work now i just need to know how to give characters skills or spells that there class would normally not have and i dont know how... | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #9 on Tue 04 Sep 2007 09:20 PM (UTC) |
| Message
| | Well I told you to grep for the message to find the block of code that prevents it. Did you find the block of code? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Valcados
(15 posts) Bio
|
| Date
| Reply #10 on Tue 04 Sep 2007 10:48 PM (UTC) Amended on Tue 04 Sep 2007 10:54 PM (UTC) by Valcados
|
| Message
| I was going to carefully walk through the steps of diagnosing this, but then it looks like the first problem is in a non-stock-SMAUG function, so such a walkthrough would only be followable by people using SMAUGFUSS.
(I'm assuming you're using SMAUGFUSS 1.8)
Anyway, it looks like the problem is in the ch_slookup function in magic.c. As you see by looking at this function, it considers a skill to be unusable by the player if it's above the player's level, regardless whether the player actually has learned it or not.
Incidentally, even once you fix it so the sset'd command is usable, you'll still have the problem, that when they quit and log back in, it becomes unusable.
And let me explain why fixing this problem may be nontrivial. One advantage of SMAUG is that you can revise skill levels, raising or lowering them as you like. Say for example, you raise fireball from level 5 to level 10. If a player was level 7 and had fireball, they should lose it when they log back in next. Now here's the crux: *the game doesn't know whether they had fireball because they practiced it before your revision, or whether they had fireball because you gave it to them as a quest prize*. So if you agree players should lose skills if you sset them above the players level... then you're going to have to somehow add extra info to identify skills which have been granted as quest prizes.
Alternatively, you could turn off that skill-removing check, and just remember that players will keep their skills even when you sset their levels up. | | Top |
|
| Posted by
| Conner
USA (381 posts) Bio
|
| Date
| Reply #11 on Tue 04 Sep 2007 10:50 PM (UTC) |
| Message
| | In other words, Gorock, you can't without some code changes. |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | | Top |
|
| Posted by
| Gorock
(149 posts) Bio
|
| Date
| Reply #12 on Tue 04 Sep 2007 11:14 PM (UTC) |
| Message
| thanks for the help i was reading some things and i think it would be best to leave it the way it is and not give spells or skills as prizes but yet potions staffs etc. etc. but now i have another question i recently added my info to a few sites for promotion and i am getting this at random times
Comm: EOF encountered on read.
i believe it has something to do with players attempting to log onto my game but i logged on and i do believe others should be able to as well thanks again | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #13 on Tue 04 Sep 2007 11:17 PM (UTC) |
| Message
| | That's just the MUD telling you that somebody's connection did not terminate entirely gracefully. Chances are that you are seeing the MUD site's connection-bot pinging your server making sure it's up. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Conner
USA (381 posts) Bio
|
| Date
| Reply #14 on Wed 05 Sep 2007 03:03 AM (UTC) |
| Message
| | Yeah, don't panic over that one, the longer you run the mud, the more you'll see it. All it means is that someone "quit" by closing the connection rather than by using the quit command. |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | | 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.
57,750 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top