[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Recall
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Recall

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by LucasM   (4 posts)  [Biography] bio
Date Wed 18 Nov 2009 07:54 PM (UTC)  quote  ]

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.
[Go to top] top

Posted by Hanaisse   Canada  (114 posts)  [Biography] bio
Date Reply #1 on Wed 18 Nov 2009 08:29 PM (UTC)  quote  ]
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
[Go to top] top

Posted by LucasM   (4 posts)  [Biography] bio
Date Reply #2 on Wed 18 Nov 2009 08:39 PM (UTC)  quote  ]

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
[Go to top] 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.


1,700 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]