SphereCommunity
Teleports independently - Printable Version

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



Teleports independently - Russian - 07-30-2012 06:44 PM

Hello.
This NPC teleports/walk independently through walls if to give the order GO for a wall

Code:
[CHARDEF C_MERCENARY_M]
NAME=Наемник маг
ID=C_MAN
DAM=5
ARMOR=10
MOVERATE=10
FOODTYPE=20 T_CROPS, 20 T_FRUIT, 20 T_MEAT_RAW

ON=@CREATE
F_NPC_EFFECT
COLOR=COLORS_SKIN
NPC=BRAIN_HUMAN
STR={200 225}
DEX=25
INT=375
KARMA=5000
FAME=1000
MAGERY=100.0
WRESTLING=10.0
PARRYING=50.0
TACTICS=50.0

ITEMNEWBIE=RANDOM_MALE_HAIR
COLOR=COLORS_HAIR
ITEM=I_EVENT_SHIRT
ITEM=I_EVENT_PANTS
ITEM=I_EVENT_BOOTS

What is it necessary to change, NPC stopped in a wall and didn't teleport independently for it.

This NPC works correctly:
Code:
[CHARDEF 0D9]
DEFNAME=c_dog
NAME=Щенок
SOUND=snd_ANIMALS_DOG1
ICON=i_pet_DOG
CAN=MT_WALK|MT_RUN
ANIM=017ff
DAM=5
ARMOR=3
RESOURCES=3 I_RIBS_RAW
FOODTYPE=T_MEAT_RAW

ON=@CREATE
F_NPC_EFFECT
NPC=brain_animal
FAME=10
KARMA=100
STR={27 37}
DEX={28 43}
INT=0
PARRYING={28.0 53.0}
MAGICRESISTANCE={22.0 47.0}
TACTICS={19.0 31.0}
WRESTLING={19.0 31.0}
TAMING=3.0



RE: Teleports independently - Anarch Cassius - 07-31-2012 05:55 PM

I've seen this with GO. NPCs that can't reach the target teleport.

I don't know a solution except to use HOME instead and keep the original home in a tag. Restore once they're done moving.