SphereCommunity
skill trainer questions - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: skill trainer questions (/Thread-skill-trainer-questions)



skill trainer questions - dabritmusic - 02-09-2014 05:39 PM

i have this auto trainer script ive been working on. i ran into a few problems tho. first the trainer doesnt stay in one spot. is there a way to have him idle in 1 tile? and also the tag to make him invul. i had a problem when training, if you had high stats you could kill him.

[CHARDEF C_trainer_fencing]
DEFNAME=C_trainer_fencing
NAME=Trainer of Fencing
ID=C_MAN
DESIRES=i_gold
AVERSIONS=t_TRAP,t_eerie_stuff
TSPEECH=jobtrainer

on=@hittry
if 0<src.tag.fighting>==1
VAR.TEMP = <STR>
HITPOINTS = <VAR.TEMP>
return 1

ON=@Create
COLOR=colors_skin
STR={120 155}
DEX={165 175}
INT={161 175}

FENCING={50.0 70.0}
PARRYING={50.0 70.0}
SWORDSMANSHIP={50.0 70.0}
WRESTLING={50.0 70.0}
MACEFIGHTING={50.0 70.0}
TACTICS={50.0 70.0}

NPC=brain_human

ITEMNEWBIE=random_male_hair
COLOR=colors_hair
ITEMNEWBIE=random_facial_hair
COLOR=match_hair

ON=@NPCRestock
ITEM=RANDOM_LIGHT
ITEM=i_ringmail_tunic
ITEM=i_ringmail_leggings
ITEM=i_ringmail_sleeves
ITEM=i_ringmail_gloves
ITEM=i_chainmail_coif
ITEM=i_leather_gorget
ITEM=i_shield_wood
ITEM=i_TrainDagger
ITEM=i_boots_calf
ITEM=random_coin_purse

CATEGORY=Civilized
SUBSECTION=Trainers
DESCRIPTION=Trainer Fencing


RE: skill trainer questions - Pidrila - 02-09-2014 05:47 PM

[CHARDEF C_trainer_fencing]
DEFNAME=C_trainer_fencing
NAME=Trainer of Fencing
ID=C_MAN
CAN=mt_nonmover|MT_USEHANDS|MT_EQUIP|MT_FIRE_IMMUNE

and

on=@create
COLOR=colors_skin
STR=1
INT=0
DEX=0
FAME=100
KARMA=100
ALLSKILLS=0.0
INVUL 1
MODMAXWEIGHT=5000000


RE: skill trainer questions - dabritmusic - 02-10-2014 08:49 AM

(02-09-2014 05:47 PM)Pidrila Wrote:  [CHARDEF C_trainer_fencing]
DEFNAME=C_trainer_fencing
NAME=Trainer of Fencing
ID=C_MAN
CAN=mt_nonmover|MT_USEHANDS|MT_EQUIP|MT_FIRE_IMMUNE

and

on=@create
COLOR=colors_skin
STR=1
INT=0
DEX=0
FAME=100
KARMA=100
ALLSKILLS=0.0
INVUL 1
MODMAXWEIGHT=5000000

the trainer dies instantly when adding him ingame...


RE: skill trainer questions - XuN - 02-10-2014 09:19 AM

Did you remove the 'AND' between can=xxx and ON=@Create ? It's working fine for me.


RE: skill trainer questions - dabritmusic - 02-12-2014 08:20 AM

had 2 ON=@CREATE lol