Teleporter can talk?

Go down

Teleporter can talk?

Post by Blanke on Mon Mar 07, 2011 4:21 am


can my npc talk ?

every 3 min should he say im the teleporter...
Is that possible? If so, what tables do I need


Viestien lukumäärä : 4
Join date : 2011-01-22

Back to top Go down

Re: Teleporter can talk?

Post by Rochet2 on Tue Mar 08, 2011 4:43 am

You should be able to just use creature_ai_scripts and creature_ai_texts tables, unless you have Arcemu.

You should create a new row to creature_ai_texts with an unique and negative entry and remember the entry:

INSERT INTO `creature_ai_texts` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`, `sound`, `type`, `language`, `emote`, `comment`) VALUES
(-10100, "I am the teleporter.", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 'Apprentice Osterkilgr - Say Set Faction');

Then create a new row to creature_ai_scripts with an unique ID:

INSERT INTO `creature_ai_scripts` (`id`, `creature_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_type`, `action1_param1`, `action1_param2`, `action1_param3`, `action2_type`, `action2_param1`, `action2_param2`, `action2_param3`, `action3_type`, `action3_param1`, `action3_param2`, `action3_param3`, `comment`) VALUES
(3600000, NPC_ENTRY, 1, 0, 100, 1, 180000, 180000, 180000, 180000, 1, -10100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Teleporter Say - every 3 min");

**Important numbers above:
-10100 The text ID
NPC_ENTRY The entry of the NPC saying the text

Viestien lukumäärä : 196
Join date : 2010-02-04

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum