Welcome to the Builder Academy

Question Skill tan wont load objects

More
20 Nov 2017 20:45 #7126 by JTP
Replied by JTP on topic Skill tan wont load objects
Oh and any ideas for imprevements such as better gear as high level, right now its mostly a low lvl skill

Please Log in or Create an account to join the conversation.

More
20 Nov 2017 20:51 #7127 by WhiskyTest
That error message will only appear if the in-game object VNUM doesn't exist.
Eg: if you deleted object 3095 and then tried to tan a shield, it would alert you that object 3095 isn't there.

The !corpse checks for a visible object in the room that matches 'itemname', it doesn't check if that object is a corpse. Like you can drop your sword and tan that at the moment :D

Please Log in or Create an account to join the conversation.

More
20 Nov 2017 21:03 - 20 Nov 2017 21:03 #7128 by JTP
Replied by JTP on topic Skill tan wont load objects
Oh crap, that is bad, how can i prevent that
Last edit: 20 Nov 2017 21:03 by JTP.

Please Log in or Create an account to join the conversation.

More
20 Nov 2017 21:17 #7130 by WhiskyTest
I think the best way is to create a new item flag.
Eg: ITEM_IS_CORPSE or ITEM_IS_TANNABLE

Before you do though, have a think about whether all corpses should be tannable, or only some, and whether there will be any other uses for corpses (reanimation, skinning, cooking, ? ). Perhaps you only want certain corpses to be used for crafting.

Find the make_corpse() function and set your new flag in there. Add a check for the flag in do_tan and you're done.

Please Log in or Create an account to join the conversation.

More
20 Nov 2017 21:31 #7131 by JTP
Replied by JTP on topic Skill tan wont load objects
Hmmm damn, thought it worked as it should...

corpses is also needed for animate dead. But makes sense that not all is tannable

Please Log in or Create an account to join the conversation.

More
20 Nov 2017 21:35 #7132 by JTP
Replied by JTP on topic Skill tan wont load objects
Could it be possible to check if anything else then corpse is typed as itemname, then return ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.767 seconds