SphereCommunity

Full Version: Tamming and Peacemaking
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
Reference URL's