Skills problem O_o

Posted by DjNiVeK on Tue 09 Dec 2003 07:44 PM — 15 posts, 39,526 views.

#0
Ok, when I make a skill, everything goes well and all. I can use the skill and stuff, but if I reboot the mud to add some changes, and log back in, I get this message when trying to use the skill: (note: Perform = cast)
----

perform Byakugan
We didn't create that yet...

----
but my praclist shows:

Byakugan 100% Mold Chakra 100% Sand Armor 100%

These 3 can't be casted/performed.
I tried making them with sset, and it didn't work, got the same error. I tried making them in the skills.dat code -> same message. I also tried to make them with the areaeditor proggie from this site, but also didn't work. And renaming didn't work aswell...so...I don't know what the problem is :(
help plz :)
kevin
USA #1
Did you try saving the skill table in game?

It's something like "sset save skill table".

Check: help sset
#2
yup, did that, still didn't work :(
USA #3
Well, the stock ifcheck is this:

	    if ( (sn=skill_lookup(arg1)) < 0 )
	    {
		send_to_char( "We didn't create that yet...\n\r", ch );
		return;
	    }


So the sn must be -1, or something. sn is skill number I think. Slookup that skill. It should say something like this:

Sn:   36


What is the number?
Amended on Tue 09 Dec 2003 09:52 PM by Zeno
USA #4
I actually had a similar problem with a skill I added recently. I would check and make sure the level is set so the character your testing it with can use it. If you didn't set the level but made the skill then the level is most likely to high for anyone to use it, except maybe an immortal.
#5
Sn: 4 Slot: 1 Spell: 'Sand Armor '
Sn: 2 Slot: 235 Spell: 'Byakugan '
Sn: 3 Slot: 84 Spell: 'Mold Chakra '

The levels of the skill are currently lvl 51, but my 65 imm char can't use them aswell O_o...so I guess it's something else
USA #6
Now, I'm not very good with skills and the like, but I do have a comment even though it might not be correct.

In my codebase (SWR, derivitive of SMAUG), spells are set up as skills, or close to it. However, there are still a couple things to notice.

1) Make sure its type is set to spell. If not, it will not work obviously.
2) In SWR, the code slot is set as spell_smaug if its a spell. Perhaps your code slot is not configured right?

Slookup your 3 spells and paste what it says on here so we might have a better look at what we are dealing with.
#7
Sn: 2 Slot: 235 Spell: 'Byakugan '
Flags: secretskill
Saves: none SaveEffect: none
Type: Spell Target: self Minpos: 12 Mana: 70 Beats: 12 Range: 0
Flags: 65536 Guild: -1 Value: 0 Info: 0 Code: spell_smaug
Sectors Allowed: All
Dammsg:
Wearoff: The Byakugan wears off as you can't maintain in longer...

Affect 1 modifies affected by 'truesight' and applies invisible for 'l-10' round
s

Hitvict : Performing a couple of seals, nerves expose near your eyes and your
eyes seem to be cracked. Your vision increases as you use the Byakugan
Hitroom : Performing a couple of seals, nerves expose near $N eyes and $S eyes
seem to be cracked.
--------------------------[CLASS USE]--------------------------
Anb) lvl: 51 max: 95% Nin) lvl: 51 max: 95% Mis) lvl: 51 max: 95%
Hun) lvl: 51 max: 95%


Sn: 3 Slot: 84 Spell: 'Mold Chakra '
Flags: secretskill
Saves: none SaveEffect: none
Type: Spell Target: defensive Minpos: 10 Mana: 20 Beats: 12 Range: 0
Flags: 65536 Guild: -1 Value: 0 Info: 0 Code: spell_smaug
Sectors Allowed: All
Dammsg:
Wearoff: !Restore Mana!

Affect 1 modifies mana by 'l+2d10' and applies blind

Hitvict : Having your hands in a seal, a warm feeling overcomes you as you mol
d some chakra!
--------------------------[CLASS USE]--------------------------
Anb) lvl: 51 max: 95% Nin) lvl: 51 max: 95% Mis) lvl: 51 max: 95%
Hun) lvl: 51 max: 95%


Sn: 4 Slot: 1 Spell: 'Sand Armor '
Flags: secretskill
Saves: none SaveEffect: none
Type: Spell Target: defensive Minpos: 11 Mana: 100 Beats: 12 Range: 0
Flags: 65536 Guild: -1 Value: 0 Info: 0 Code: spell_smaug
Sectors Allowed: All
Dammsg:
Wearoff: The sand falls off your body...

Affect 1 modifies armor by '-20' and applies blind for 'l*10' rounds

Hitchar : Sand crawls on $N's body, covering it fully.
Hitvict : Sand crawls on your body, covering you fully, giving you more protec
tion.
Hitroom : Sand crawls on $N's body, covering it fully.
--------------------------[CLASS USE]--------------------------
Anb) lvl: 51 max: 95% Nin) lvl: 51 max: 95% Mis) lvl: 51 max: 95%
Hun) lvl: 51 max: 95%


They are spells with spell_smaug, so don't think it's that
USA #8
Like I said, I'm not good with skills and the like, so if they are different functions then perhaps they shouldn't be spell_smaugs? Are different functions (eg. do_Byakugan)?
USA #9
Something else occured to me the second time I looked. Perhaps its because your guilds are set to -1?
#10
The spell_smaug should be right, since some/most spells in basic smaug are based on that. And I just tried the guild thingie, but that also didn't seem to work :( (I think the -1 in guild is for 'no guild' so everyone can get it)

This problem really starts to be annoying -_-
USA #11
Does this happen to every skill? What version of Smaug? Have you changed the skill structure at all?
In stock Smaug, there is a skill that also does this.


cast 'wrath of Dominus'
We didn't create that yet...


Here is the slookup.

Sn:    1 Slot:  246 Spell: 'Wrath of Dominus    '
Flags: recastable character
Saves: none  SaveEffect: none
Type: Spell  Target: defensive  Minpos: 9  Mana: 10  Beats: 0  Range: 0
Flags: 33792  Guild: -1  Value: 0  Info: 0  Code: spell_smaug
Dammsg: (null)
Wearoff: (none set)

Affect 1 modifies hit by '-75' for '10' rounds
Affect 2 modifies luck by '-3' for '10' rounds

--------------------------[CLASS USE]--------------------------
Mag) lvl:  51 max: 95%  Cle) lvl:  51 max: 95%  Thi) lvl:  51 max: 95%
War) lvl:  51 max: 95%  Vam) lvl:  51 max: 95%  Dru) lvl:  51 max: 95%
Ran) lvl:  51 max: 95%  Aug) lvl:  51 max: 95%  Pal) lvl:  51 max: 95%


Look that over and compare it to your skill. Also, answering my questions would help too. (Also, interesting theme.)
Amended on Wed 10 Dec 2003 07:11 PM by Zeno
#12
Quote:
Does this happen to every skill?

No, only the ones I change. Even a rename can cause it.

Quote:
What version of Smaug?

Smaug 1.4a

Quote:
Have you changed the skill structure at all?

Not that I know off. The only thing I did was add a skill (study) from a snippet. This one does save and still works after rebooting.

I found a way to get the skills in the game, but it isn't really supposed to be like this, lol (use different smaug that still saves, make the skills, replace skills.dat in the mud I want to use with the modified skills.dat from different smaug)
USA #13
So you can get the skills to work if you get another skill.dat? Perhaps your normal skill.dat was corrupted, or your skill.dat code structure was accidently changed.

One thing you could try... May be risky, but try commenting out that ifcheck. No idea what it would do then, though.
#14
It looks like the skills.dat was broken. I can save a spell now. Thanks for your help :)