Register forum user name Search FAQ

Gammon Forum

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.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Recall

Recall

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by LucasM   (4 posts)  Bio
Date Wed 18 Nov 2009 07:54 PM (UTC)

Amended on Wed 18 Nov 2009 08:00 PM (UTC) by LucasM

Message
Ok, since I've got an issue with exp mod, I'd figure I would ask the experts on this as well.

There is a do_recall function in the code (obviously) and I would like all new players to be able to use recall. Under system/commands.dat I have placed the following code

#COMMAND
Name recall~
Code do_recall
Position 100
Level 1
Log 0
End

I really do not want anyone to have to learn this, but since I could not get it to work so far I added this in system/skills.dat

#SKILL
Name recall~
Type Skill
Info 0
Flags 0
Target 2
Minpos 109
Mana 0
CanCharge 0
Code do_recall
Dammsg ~
Minlevel 0
End

and still does not seem to work, even after they create a new character and I sset recall to them.
Top

Posted by Hanaisse   Canada  (114 posts)  Bio
Date Reply #1 on Wed 18 Nov 2009 08:29 PM (UTC)
Message
You'll need to decide if you want it to be a skill or a command. It can't be both.

The easiest route, IMO, is to first remove 'word of recall' as a spell then create the command recall. There is more to creating a command than putting it in commands.dat. Check the DOC folder and read command.txt, it gives instructions.

aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000
Top

Posted by LucasM   (4 posts)  Bio
Date Reply #2 on Wed 18 Nov 2009 08:39 PM (UTC)

Amended on Wed 18 Nov 2009 11:29 PM (UTC) by LucasM

Message
Hanaisse said:

You'll need to decide if you want it to be a skill or a command. It can't be both.

The easiest route, IMO, is to first remove 'word of recall' as a spell then create the command recall. There is more to creating a command than putting it in commands.dat. Check the DOC folder and read command.txt, it gives instructions.


Ok, thanks for the tips, this will get me on my way... and I'm lacking the doc folder. I'll have to find a different download I guess.

EDIT~
Got the doc folder... wow! this is really helpful thanks again...

EDIT~
Yea it was a simple switch of moving the skill do_recall to the proper .c... Done and done
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.


12,506 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.