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
➜ rename command smaug1.4a
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Pasgal
Italy (4 posts) Bio
|
| Date
| Mon 26 Jan 2004 02:23 AM (UTC) Amended on Mon 26 Jan 2004 02:25 AM (UTC) by Pasgal
|
| Message
| rename commands "afk" in "ldc"
I have corrected all the file.cs and the files. h
I have corrected the commands.dat in System
I have corrected tables.c
but in mushclient write ldc
it tells me
Huh?
I am trying to translate some commands in Italian
I desire a help, I don't speak English, I am Italian.
: o(
pasgal | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 26 Jan 2004 03:21 AM (UTC) |
| Message
| Did you compile? Did you reboot the MUD?
All you needed to do was change commands.dat.
eg.
#COMMAND
Name afk~
Code do_afk
Position 104
Level 0
Log 0
End
Change that to:
#COMMAND
Name ldc~
Code do_afk
Position 104
Level 0
Log 0
End
Don't change anything else. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Greven
Canada (835 posts) Bio
|
| Date
| Reply #2 on Mon 26 Jan 2004 03:23 AM (UTC) |
| Message
| Well, the absolutely easiest way to fix this is to delete the afk command, and create the ldc command.
cedit afk delete
cedit ldc create do_afk
cedit ldc level 1
cedit save
That should work for you. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | | Top |
|
| Posted by
| Pasgal
Italy (4 posts) Bio
|
| Date
| Reply #3 on Tue 27 Jan 2004 01:26 AM (UTC) |
| Message
| for Nick Gammon
rename command is ok now! ^_^
Tanks Tanks Tanks!
Grazie :o)
for Greven Tanks :o)
pasgal | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #4 on Tue 27 Jan 2004 01:43 AM (UTC) |
| Message
| Panzer panzer panzer! Abrams Abrams Abrams :P
Sorry... *grin* |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Samson
USA (683 posts) Bio
|
| Date
| Reply #5 on Thu 29 Jan 2004 06:50 AM (UTC) |
| Message
| Well, this was a bit late, but you could also have done:
cedit afk name ldc
cedit save cmdtable
No need to delete things :) | | Top |
|
| Posted by
| De Martino
Italy (54 posts) Bio
|
| Date
| Reply #6 on Fri 30 Jan 2004 05:14 PM (UTC) |
| Message
| i have rename many command
when run smaug i have this problem :
ASSIGN_GSN: Skill evasive style not found.
ASSIGN_GSN: Skill defensive style not found.
ASSIGN_GSN: Skill standard style not found.
ASSIGN_GSN: Skill aggressive style not found.
ASSIGN_GSN: Skill berserk style not found.
ASSIGN_GSN: Skill aid not found.
ASSIGN_GSN: Skill bite not found.
ASSIGN_GSN: Skill fireball not found.
ASSIGN_GSN: Skill lightning bolt not found.
ASSIGN_GSN: Skill aqua breath not found.
what is my problem?
thank
De Martino
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Fri 30 Jan 2004 08:57 PM (UTC) |
| Message
| Sounds like you have renamed the skill, but not where they are referred to.
If you have renamed the skills, then in warrior.class (for example) you also need to rename them:
Name Warrior~
Class 3
Attrprime 1
Weapon 10313
Guild 3022
Skilladept 85
Thac0 18
Thac32 6
Hpmin 11
Hpmax 15
Mana 0
Expbase 1150
Skill 'aggressive style' 1 95
Skill 'aid' 6 80
Skill 'bash' 30 85
Skill 'berserk style' 10 95
Skill 'blitz' 28 80
... and so on ...
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| De Martino
Italy (54 posts) Bio
|
| Date
| Reply #8 on Fri 30 Jan 2004 11:39 PM (UTC) |
| Message
| Nick writes:
If you have renamed the skills, then in warrior.class (for example) you also need to rename them:
Yes :o\
I still check
:(((
De Martino | | Top |
|
| Posted by
| De Martino
Italy (54 posts) Bio
|
| Date
| Reply #9 on Fri 30 Jan 2004 11:57 PM (UTC) Amended on Sat 31 Jan 2004 10:37 AM (UTC) by De Martino
|
| Message
| #SKILL
Name magic missile~
Type Spell
Info 340
Flags 0
Minpos 109
Slot 32
Mana 7
Rounds 6
Range 2
Code spell_smaug
Dammsg magic missile~
Wearoff !Magic Missile!~
Minlevel 1
End
this is correct?:Code spell_smaug
i rename "aid" to "rinvieni" in all class and in skill.dat
but no solutions problem :(
#SKILL
Name rinvieni~
Type Skill
Info 0
Flags 0
Minpos 107
Rounds 12
Code do_aid
Dammsg ~
Wearoff !Aid!~
Minlevel 4
End
#SKILL
Name combatti aggressivo~
Type Skill
Info 0
Flags 0
Minpos 195
Rounds 4
Code spell_null
Dammsg ~
Wearoff !aggressive style!~
Teachers 10340 3004~
Minlevel 1
End
this is correct?: Code spell_null
De Martino
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #10 on Sat 31 Jan 2004 09:34 PM (UTC) |
| Message
| In db.c, around line 598, have you changed these to the new words as well? ...
ASSIGN_GSN( gsn_broach, "broach" );
ASSIGN_GSN( gsn_mistwalk, "mistwalk" );
ASSIGN_GSN( gsn_aid, "aid" );
ASSIGN_GSN( gsn_track, "track" );
ASSIGN_GSN( gsn_search, "search" );
ASSIGN_GSN( gsn_dig, "dig" );
ASSIGN_GSN( gsn_mount, "mount" );
ASSIGN_GSN( gsn_bite, "bite" );
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| De Martino
Italy (54 posts) Bio
|
| Date
| Reply #11 on Sat 31 Jan 2004 11:57 PM (UTC) Amended on Sun 01 Feb 2004 12:28 AM (UTC) by De Martino
|
| Message
| Nick vrite:
In db.c, around line 598, have you changed these to the new words as well? ...
ASSIGN_GSN( gsn_aid, "aid" );
........................................
no Nick, I have not changed ASSIG.............
ASSIGN_GSN( gsn_aid, "aid" );
in
(a) ASSIGN_GSN( gsn_rinvieni, "rinvieni" );
or
(b) ASSIGN_GSN( gsn_aid, "rinvieni" );
???
Thank Nick, very thank.
De Martino
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #12 on Sun 01 Feb 2004 03:53 AM (UTC) |
| Message
| gsn_aid is an internal variable, the players will not see that.
So, change it to:
ASSIGN_GSN( gsn_aid, "rinvieni" );
And the same for any others you change.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| De Martino
Italy (54 posts) Bio
|
| Date
| Reply #13 on Sun 01 Feb 2004 05:44 PM (UTC) |
| Message
| Thank Nick Gammon
you have resolved me the problem.
my problem now is class, they are 3 days that I go to sleep very slow.
Thanks so much Nick!!! Thank :o)
De Martino
| | 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.
38,135 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top