The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to make an item that...
Author Message
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #3
RE: Trying to make an item that...
100% newbie mistake there, my bad. Thanks a million for the reply! Smile

Ok, what I'm noticing is I guess I'm inheriting some properties of how the spell Polymorph works, which is preventing me from a couple of things:

1. Once I put the mask on, I'd like to still be able to have all my gear on, so that I can fight like normal.

2. I'd like to be able to take the mask off and go back into c_man form, which is impossible with my current script because it takes the mask off when it casts Poly.

I studied how Polymorph worked for like 3 hours last night, and I never saw any code in the scripts that disarm all your stuff, so I'm assuming its in the source.

That being said, is there just a command other than SRC.POLY c_dire_wolf that would change what character model my SRC player would look like?

Current code for reference:
Code:
[itemdef i_mask_dire_wolf_form}
DEFNAME=i_mask_dire_wolf_form
ID=i_mask_tribal_red
NAME=mask of dire wolf form

on=@create
color=044a
hitpoints={10 50}

on=@equip
SRC.POLY c_wolf_dire
src.message=You feel the power of the <name>.

I really appreciate the help, always wanted to make items like this and never reached out to ask about it.
Murmur

Just tried SRC.BODY and I'm getting closer to what I want, but I still can't equip items, going to keep trying stuff.

Code:
[itemdef i_mask_dire_wolf_form}
DEFNAME=i_mask_dire_wolf_form
ID=i_mask_tribal_red
NAME=mask of dire wolf form

on=@create
color=044a
hitpoints={10 50}

on=@equip
SRC.BODY c_wolf_dire
src.message=You feel the power of the <name>.

//on=@unequip
//SRC.POLY c_man

Ok...

so I removed MT-NONHUM, and added MT_USEHANDS|MT_EQUIP to the CAN of c_dire_wolf.

This works great! So I was like "I don't want normal dire wolves to be able to equip stuff, just in case.

So I created a new chardef, that is basically exactly like a direwolf, but with CAN=MT_WALK|MT_RUN|MT_USEHANDS|MT_EQUIP.

Now for whatever reason, this doesn't work... Going to play with it some more and
see if I can figure out why it didn't like the new CHARDEF

Thanks for the help again darksun84, I appreciate it.

Update: So I looked at my CHARDEF that I made, and I forgot to put in ID=c_direwolf... so I added that and it worked!!! Only one time though... So I equip it, it turns BODY into a dire wolf, then I unequip and it turns me back into man, then I equip it again, and the client does something weird and freezes like there was something on the cursor.

Here are the exact scripts:

Code:
[CHARDEF c_wolf_dire_mask]
DEFNAME=c_wolf_dire_mask
ID=c_wolf_dire
NAME=dire wolf
ICON=i_pet_wolf_dire
SOUND=snd_animals_wolf1
CAN=MT_WALK|MT_RUN|MT_USEHANDS|MT_EQUIP
//CAN=MT_WALK|MT_RUN|MT_NONHUM
DAM=20,32
ARMOR=20
DESIRES=r_jungle,r_forests
AVERSIONS=r_civilization
FOODTYPE=t_meat_raw
MAXFOOD=15
RESOURCES=1 i_ribs_raw,7 i_hide_spined
BLOODCOLOR=colors_blood
MOVERATE=100
TAG.Barding.Diff=50.3
FollowerSlots=1
TAG.SlayerGroup=WOLF
TEVENTS=e_carnivores
CATEGORY=Animals
SUBSECTION=Wild
DESCRIPTION=Wolf (dire)
ON=@Create
   NPC=brain_animal
   FAME={1000 1499}
   KARMA={-1000 -1499}
   STR={96 120}
   MAXHITS={58 72}
   DEX={81 105}
   MAXSTAM={81 105}
   INT={36 60}
   MAXMANA={36 60}
   MAGICRESISTANCE={57.0 75.0}
   TACTICS={50.0 70.0}
   TAMING={80.0 85.0}
   WRESTLING={60.0 80.0}
   MODAR={0 5}
   RESCOLD={5 10}
   RESENERGY={10 15}
   RESFIRE={10 20}
   RESPOISON={5 10}
[itemdef i_mask_dire_wolf_form}
DEFNAME=i_mask_dire_wolf_form
ID=i_mask_tribal_red
NAME=mask of dire wolf form

on=@create
color=044a
hitpoints={10 50}

on=@equip
SRC.BODY c_wolf_dire_mask
src.message=You feel the power of the <name>.

on=@unequip
SRC.BODY c_man

I appreciate any insight you could provide, its probably something stupid that Im not aware of. Heading to work, be back on tonight.

Thanks,
Murmur

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
(This post was last modified: 04-29-2017 02:54 AM by Murmur.)
04-29-2017 01:35 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Trying to make an item that... - Murmur - 04-28-2017, 03:46 PM
RE: Trying to make an item that... - Murmur - 04-29-2017 01:35 AM
RE: Trying to make an item that... - Ben - 04-29-2017, 09:50 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)