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-nmm6 (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-nmm6 (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-nmm6 (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
Animal Respawn / Guardian
Author Message
bolaosoft
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2012
Reputation: 1



Post: #1
Animal Respawn / Guardian
Hello guys, I've been reading the wikki, but I can not finish my first script, I do not know exactly where this error, I will say that I wish he would do and put it below.

The idea is a simple spawn Mustang Guardian on him, then when you kill the guardian is so tamar Mustang, however I can not make the Mustang does not disappear when the guardian dies ... What is missing?

Code:
[CHARDEF 90001]
DEFNAME=C_H_PETGUARDIAO
NAME=#NAMES_HUMANMALE o Guardiao de Mustang
ID=C_MAN
TSPEECH=jobguardiao
TEVENTS=e_h_petguardiao

ON=@CREATE
    STR={86 100}
    NPC=brain_human
    ITEMNEWBIE=i_death_shroud
    COLOR=0819     

ON=@NPCRestock          
    ITEM=i_mt_horse_tan
    COLOR=0819
        CATEGORY=Adicionados
    SUBSECTION=Hass
    DESCRIPTION=Montaria (male)

Obrigado pela ajuda.
11-07-2013 01:03 PM
Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #2
RE: Animal Respawn / Guardian
This?

Code:
ON=@Death
findlayer(layer_horse).remove
11-07-2013 05:52 PM
Find all posts by this user Like Post Quote this message in a reply
bolaosoft
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2012
Reputation: 1



Post: #3
RE: Animal Respawn / Guardian
(11-07-2013 05:52 PM)pinku Wrote:  This?

Code:
ON=@Death
findlayer(layer_horse).remove

I think not, the Mustang is still fading along with the guardian.
11-07-2013 11:16 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Animal Respawn / Guardian
If the NPC is riding the horse, and I assume it is, you will have to recreate the animal upon death

[Image: 2nis46r.jpg]
11-07-2013 11:27 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
bolaosoft
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2012
Reputation: 1



Post: #5
RE: Animal Respawn / Guardian
(11-07-2013 11:27 PM)Mordaunt Wrote:  If the NPC is riding the horse, and I assume it is, you will have to recreate the animal upon death

I thought of this solution, but how about it? something like ...

ON = @ DEATH
NEW_NPC=i_mt_horse_tan
COLOR = 0819

Does not work, sorry but I am beginner even :/
11-07-2013 11:30 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Animal Respawn / Guardian
i_mt_horse_tan is the mount item, you want

on=@death
serv.newnpc c_horse_tan
new.p <p>

in order to create the npc itself

[Image: 2nis46r.jpg]
11-07-2013 11:43 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
bolaosoft
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2012
Reputation: 1



Post: #7
RE: Animal Respawn / Guardian
Uhnnn now came another horse, but not any inherited characteristic that was set as the color for example and was not near the spawn, walked freely.
11-08-2013 12:04 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: Animal Respawn / Guardian
Ok, so set the color again..

What else are you wanting it to do?

[Image: 2nis46r.jpg]
11-08-2013 12:33 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
bolaosoft
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2012
Reputation: 1



Post: #9
RE: Animal Respawn / Guardian
I actually changed the c_horse_tan for defname a mustang and already decided ...

Thank You Very Much.
11-08-2013 12:35 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #10
RE: Animal Respawn / Guardian
as mord said...
serv.newnpc
new.p
and for color add also new.color=xyz
11-08-2013 12:40 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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