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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
skill trainer questions
Author Message
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #1
skill trainer questions
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
02-09-2014 05:39 PM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #2
RE: skill trainer questions
[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
(This post was last modified: 02-09-2014 05:48 PM by Pidrila.)
02-09-2014 05:47 PM
Find all posts by this user Like Post Quote this message in a reply
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #3
RE: skill trainer questions
(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...
02-10-2014 08:49 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: skill trainer questions
Did you remove the 'AND' between can=xxx and ON=@Create ? It's working fine for me.
02-10-2014 09:19 AM
Find all posts by this user Like Post Quote this message in a reply
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #5
RE: skill trainer questions
had 2 ON=@CREATE lol
02-12-2014 08:20 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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