#QQ00
Paladin of Tyr~
{70}a Paladin of Tyr~
{70}A Paladin of Tyr stands here.~
This tall and strong halfelf wears Full Plate armour decorated
with the symbol of Tyr.
~
U 45 CLASS_PALADIN RACE_HALFELF SEX_MALE POS_STANDING DEITY_TYR
ACT_SENTINEL|ACT_CITIZEN|ACT_NOSHOVE|ACT_NOASSIST
0
ARMOR_TYPE_FULL_PLATE MATERIAL_TITANIUM
d8+2 650
13 13 13 13 13 13 13
0 0 0 0 0
LANG_COMMON
LANG_COMMON
0 0 0
>death_prog 100~
mpjunk all
~
Being new to building I've hit two snags, how do I modify this code so that he holds a weapon and teaches Mounted Polearms. Other mobs I am building will teach other things, but in this instance it is to be just that one.
Some questions
Some questions
Arandor Gwaviel, Ranger of Tangled Trees, Ranger of Corellon
Bhelen Anvilcracker, fighter o' the Halls
Orgrim Orebreaker, Arcane o' the Halls
Theleus, Hopeful Priest of Selune
Bhelen Anvilcracker, fighter o' the Halls
Orgrim Orebreaker, Arcane o' the Halls
Theleus, Hopeful Priest of Selune
Re: Some questions
In order to have him holding a weapon, you'll need to put that in the #RESETS section which is towards the very end of the area file. For example
From the lessons:
See --> this <-- for more guidance on trainer mobiles.
B
Code: Select all
E 0 QQ01 5 WEAR_LEFT_HAND ; equip a weapon
As for training, that's going to be just a single line up in the #MOBILES section towards the end of your paladin's code.Equiping a mobile
You place this line directly under the M line in resets. You must set the mobile in place before equiping it. The syntax is as follows:
E 0 obj-vnum 0 wear_loc ; comment
And expmple Equipment reset would be. Note that the M placement reset is here too. It is needed for the code to know which mob it is equipping. It makes the order that you place things in resets very important.
M 0 QQ01 1 QQ27 ; dwarf in room 27
E 0 QQ04 10 WEAR_HEAD ; helmet on dwarf
E - This tells the game you are equipping the mobile before this line.
0 - This field is not used so should be just set to 0.
QQ04 - This is the vnum of the object that the mobile is to wear.
10 - This is the total number it allows in the game before it does not equip the mobile with that item. Due to the fact equipment can be worth quite a bit we like to keep this reset number low so as to not fill an area with a lot of equipment that is not used and just leads to players making too much money on the sale of it.
WEAR_HEAD - This tells the game where on the mobile the object is to be worn. In this case on the head. Refer to the reset wear locations listing for more information on wear mobiles can wear objects. Note that they are different from the CAN_WEAR_ locations on objects
; helmet on dwarf - After the ; a comment should be placed.
Code: Select all
#QQ00
smelly dwarf short~
{30}a short smelly dwarf~
{30}A short smelly dwarf is drinking an ale here.~
{30}He is very short for a dwarf with dark hair and a dark beard. He has a
stubby nose and beady eyes. His hands are large and calloused from
many hours of work at the forge. He is of a very sturdy build with arms
and legs like small tree trunks. He is wearing mithril chainmail armour.
~
U 25 CLASS_WARRIOR RACE_DWARF SEX_MALE POS_STANDING DEITY_NONE
ACT_SENTINEL|ACT_CITIZEN
AFF_BERSERK
ARMOR_TYPE_PLATE_MAIL MATERIAL_MITHRIL
d10+2 500
13 13 13 13 13 13 13
0 0 0 0 0
LANG_COMMON|LANG_DWARVEN
LANG_COMMON|LANG_DWARVEN
RIS_MAGIC RIS_NONE RIS_NONE
%10 1 dig~
%10 2 short axes~
>fight_prog 15~
say By Moradin's Hammer I will defeat you!
~
|
B
Re: Some questions
ok thanks for the help. So if I equip an item to multiple mobs do I have to code it more then once? Or does something else go in objects? Like shop stock
Arandor Gwaviel, Ranger of Tangled Trees, Ranger of Corellon
Bhelen Anvilcracker, fighter o' the Halls
Orgrim Orebreaker, Arcane o' the Halls
Theleus, Hopeful Priest of Selune
Bhelen Anvilcracker, fighter o' the Halls
Orgrim Orebreaker, Arcane o' the Halls
Theleus, Hopeful Priest of Selune
Re: Some questions
You only need to code the equipment you want sold/equipped once. If you're going to be equipping the same item on several mobs, you'd essentially rinse, lather, repeat with two lines for each. You'd have a line in #RESETS which loads your mobile in whatever room and then for each mobile you load you'd have the following line which would equip that mobile with whatever equipment you wanted. For example:
Make sure that you have the appropriate number allowed in game as well. That's this number in bold:
E 0 100110 5 WEAR_LEFT_HAND ; equip a long curved blade shams
~B
Code: Select all
M 0 100114 1 100110 ; a large bronze-skinned gu in A large open courtyard
E 0 100110 5 WEAR_LEFT_HAND ; equip a long curved blade shams
M 0 100114 1 100120 ; a large bronze-skinned gu in A dim glassy hallway
E 0 100110 5 WEAR_LEFT_HAND ; equip a long curved blade shams
M 0 100114 1 100130 ; a large bronze-skinned gu in A brightly lit hallway
E 0 100110 5 WEAR_LEFT_HAND ; equip a long curved blade shams
M 0 100114 1 100103 ; a large bronze-skinned gu in A catty cornered shop
E 0 100110 5 WEAR_LEFT_HAND ; equip a long curved blade shams
M 0 100114 1 100118 ; a large bronze-skinned gu in A large brightly lit kitc
E 0 100110 5 WEAR_LEFT_HAND ; equip a long curved blade shams
E 0 100110 5 WEAR_LEFT_HAND ; equip a long curved blade shams
~B
Re: Some questions
Another question. If you create a training area with dummies, then does each dummy count separately towards your character count, or can you assign the same dummy multiple times to the same room?
Arandor Gwaviel, Ranger of Tangled Trees, Ranger of Corellon
Bhelen Anvilcracker, fighter o' the Halls
Orgrim Orebreaker, Arcane o' the Halls
Theleus, Hopeful Priest of Selune
Bhelen Anvilcracker, fighter o' the Halls
Orgrim Orebreaker, Arcane o' the Halls
Theleus, Hopeful Priest of Selune
Re: Some questions
I've already answered your PM to this effect, but I'll reply here because I think it's an important message.
'Training areas' and dummy-fighting pits aren't considered a good use of space. We don't want to encourage characters to level all the way up to 50 without encountering a single live opponent (though dummies on which to practice theft and specialist skills are acceptable in moderation), and the concern is that this is exactly what'll happen.
To answer the actual question though, you can reuse any mobile as often as you like. NPCs that would be essentially identical, such as bandits or guardsmen will generally all be the same vnum used several times, which only counts as one mobile.
'Training areas' and dummy-fighting pits aren't considered a good use of space. We don't want to encourage characters to level all the way up to 50 without encountering a single live opponent (though dummies on which to practice theft and specialist skills are acceptable in moderation), and the concern is that this is exactly what'll happen.
To answer the actual question though, you can reuse any mobile as often as you like. NPCs that would be essentially identical, such as bandits or guardsmen will generally all be the same vnum used several times, which only counts as one mobile.
"This is General Lath'lain Dy'nesir, of the Ebon Spur. Walking Murder surrounded by a thin veneer of civility."
-Miriel
-Miriel