Print Page | Close Window

Cant Move Npc

Printed From: Mirage Source
Category: Tutorials
Forum Name: Temporary Archive (Read Only)
Forum Discription: Temporary 3.0.3 archive tutorials, will be deleted when converted.
URL: http://ms.shannaracorp.com/backup-forums/forum_posts.asp?TID=194
Printed Date: 20 December 2006 at 5:53pm
Software Version: Web Wiz Forums 8.01 - http://www.webwizforums.com


Topic: Cant Move Npc
Posted By: Sync
Subject: Cant Move Npc
Date Posted: 11 February 2006 at 3:25pm
Difficulity : Easy 1/5

This Will Make New Npc Behavior, and make Npc Cannot Moving
This maybe useful too make monster like rock, egg, or something like that.

Create New NPC behavior
Public Const NPC_BEHAVIOR_CANTMOVE = 5

both in server and client (modtypes)

Client Side
Go to frmNpcEditor
Add new list at cmbBehavior named Cant Move Npc

Server Side

Search This One :
This is used for NPC walking/targetting

replace
If Npc(NpcNum).Behavior <> NPC_BEHAVIOR_SHOPKEEPER then

with
If Npc(NpcNum).Behavior <> NPC_BEHAVIOR_SHOPKEEPER And Npc(NpcNum).Behavior <> NPC_BEHAVIOR_CANTMOVE Then


done!

just little think i forgot, replace
If Npc(NpcNum).Behavior <> NPC_BEHAVIOR_SHOPKEEPER And Npc(NpcNum).Behavior <> NPC_BEHAVIOR_CANTMOVE Then

with
If Npc(NpcNum).Behavior <> NPC_BEHAVIOR_SHOPKEEPER Or Npc(NpcNum).Behavior <> NPC_BEHAVIOR_CANTMOVE Then
[/code]



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums version 8.01 - http://www.webwizforums.com
Copyright ©2001-2006 Web Wiz Guide - http://www.webwizguide.info