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
Tamming and Peacemaking
Author Message
larmc20
Journeyman
*

Posts: 67
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: May 2013
Reputation: 0



Post: #1
Tamming and Peacemaking
Hello Guys...
PHP Code:
[SKILL 9]
DEFNAME=SKILL_PEACEMAKING
KEY
=Peacemaking
TITLE
=Bard
PROMPT_MSG
=
DELAY=2.0
STAT_STR
=0
STAT_INT
=70
STAT_DEX
=70
BONUS_STR
=0
BONUS_DEX
=50
BONUS_INT
=50
BONUS_STATS
=5
ADV_RATE
=2.5,50.0,200.0

ON
=@Fail
    SRC
.SYSMESSAGE You attempt to calm everyonebut fail.

ON=@Abort
    SRC
.SYSMESSAGE You fail to complete the song

I want to creat a special lute and tame staff to use only in RED WILD MOUNTS.

I thought to add a
On=@skillstart
Check the animal.
If animal is PK check backpack if there is the special lute
If yes - Try peacemaking
If no - sysmessage You need Special lute.

Either to Animal tamming and Special Tame Staff...

Could you help me doind that? I dont know how to make the check to the animal.
12-29-2013 07:45 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: #2
RE: Tamming and Peacemaking
Code:
on=@(pre)start
    if (<targ.karma> < -799) && !(<findid.i_lute_special>)
        sysmessage You need a special lute to calm down the creature.
        return 1
    endif
Depends what you want... can be either trigger @start or @prestart.
The same for taming, only change id of the item and sysmessage.

E: Make sure the statement with karma works... I've heard of some issue. I think it had something to do with npc's brain. It was an NPC with brain_undead and had karma 0 but its name was red.
(This post was last modified: 12-29-2013 12:23 PM by Alaric.)
12-29-2013 12:18 PM
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)