Jump to content

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  dr3ad : (25 June 2017 - 06:07 PM)

Phase ranks are now editable.

@  dr3ad : (23 June 2017 - 08:57 AM)

Command .phase delete & ability to view phase logs (in account panel) has been added!

@  dr3ad : (21 June 2017 - 05:37 PM)

RPHTiny has been updated to fix E_NOT_AVAILABLE error! http://rpheaven.org/RPHTinyLegion.7z

@  dr3ad : (09 June 2017 - 04:28 PM)

Fixed vendor creation in NPC forge, make sure to ctrl + f5 to refresh page

@  dr3ad : (05 June 2017 - 08:09 AM)

Server is online.

@  dr3ad : (04 June 2017 - 04:42 PM)

Make sure to read topic on recent updates http://rpheaven.org/...002-big-update/

@  dr3ad : (12 May 2017 - 09:28 AM)

Server is online again!

@  dr3ad : (07 May 2017 - 11:57 PM)

Website + forum speed increased by 10x, feel the speed!

@  dr3ad : (07 May 2017 - 10:55 AM)

Working on solution to permanently fix login server down issue, even though it rarely happens. Server is online BTW!

@  dr3ad : (07 May 2017 - 09:13 AM)

Login server was down, server is online again!

@  dr3ad : (24 April 2017 - 06:48 PM)

Anti spam feature has been added to announce channel and will automatically get rid of the spammers.

@  dr3ad : (23 April 2017 - 03:04 PM)

The recent lag that was happening is now fixed!

@  dr3ad : (20 April 2017 - 05:50 PM)

Voting on XTremeTop100 has been fixed.

@  dr3ad : (18 April 2017 - 01:31 PM)

Login server went down unexpectedly but server is online again!

@  dr3ad : (13 April 2017 - 08:03 PM)

Commands .gannounce (to advertise guilds) and .phase info have been added

@  dr3ad : (20 March 2017 - 08:38 PM)

XtremeTop100 voting now works again.

@  dr3ad : (13 March 2017 - 09:46 PM)

All character issues have been fixed and stopped. It was related to a .command thats now safely disabled.

@  dr3ad : (13 March 2017 - 09:29 PM)

Fixed the issue with .gob del that allowed unpermitted deletion

@  dr3ad : (01 February 2017 - 01:16 PM)

You can now automatically get first available Entry ID during the creation process in both Weapon & Armor forges!

@  dr3ad : (27 January 2017 - 07:01 PM)

Website + forum has been moved to separate host, as a result you should feel much faster page loading everywhere across the domain


Photo

Making NPCs talk when within a certain range?!


  • Please log in to reply
10 replies to this topic

#1 Axel

Axel

    Human Degenerate

  • Donator* (Donator Extended)
  • PipPipPipPip
  • 118 posts

Posted 19 June 2017 - 09:03 AM

hi

i bought scripting yesterday

i want to make my npcs say their text whenever my character is within a certain range

so far ive only been able to make it say it every this and then seconds

pls help

 03xzbaI.png
 
Current Character  

Spoiler

#2 Slashannemoo

Slashannemoo

    Best Girl

  • Members
  • PipPipPip
  • 75 posts

Posted 19 June 2017 - 09:25 AM

When should script execute? = when Movement Point is reached.

Fill up a point ID.

Should work. Somewhat.



#3 Ceri

Ceri

    Unpopular by popular vote

  • Donator* (Donator Extended)
  • PipPipPipPipPip
  • 397 posts

Posted 19 June 2017 - 09:27 AM

Doesn't that execute when the npc reach a certain point?


Posted ImagePosted Image


#4 Axel

Axel

    Human Degenerate

  • Donator* (Donator Extended)
  • PipPipPipPip
  • 118 posts

Posted 19 June 2017 - 10:26 AM

When should script execute? = when Movement Point is reached.
Fill up a point ID.
Should work. Somewhat.

 
 

Doesn't that execute when the npc reach a certain point?



What does "Reach a Certain Point" mean though? If it works, great, I just would like to understand what it does as well :D What point ID do I set? And what is "that" point ID?

 03xzbaI.png
 
Current Character  

Spoiler

#5 Ceri

Ceri

    Unpopular by popular vote

  • Donator* (Donator Extended)
  • PipPipPipPipPip
  • 397 posts

Posted 19 June 2017 - 10:36 AM

I only used it once myself.

A point id is a number given to a specific location.

So the following location might have the id : 1

x: something

y: something

z: something

Map id: something

Orientation: something

 

And once a NPC stands at that location it fires, I do not know if it works for players.


Posted ImagePosted Image


#6 Slashannemoo

Slashannemoo

    Best Girl

  • Members
  • PipPipPip
  • 75 posts

Posted 19 June 2017 - 10:38 AM

Should activate the script when the NPC reaches a certain point in the map.

It's been a while since I've used scripts. But, there should be a way, other than being struck by a dummy spell or getting attacked.



#7 NilithAth

NilithAth

    Just a Nilith.

  • Donator* (Donator Extended)
  • PipPipPipPip
  • 128 posts

Posted 19 June 2017 - 11:04 AM

Oh. I have an idea for your problem. Using the option that Kenway suggested, just create a said point (as she explained), with a certain orientation. Now, if you'll spawn the different NPC, but with a different orientation then the one specified in the point. You can just turn him towards the said orientation (or pass through it) which will trigger the SCript. (X,Y,Z can stay the same only O differing)



#8 Jacklyn

Jacklyn

    Regular Member

  • Members
  • PipPipPip
  • 52 posts

Posted 19 June 2017 - 11:28 AM

>sees npc

>has nothing to do with that npc

>walk past it, doesn't want to talk to the npc

>npc yells at the top of his lungs "kill yourself kid!"


  • Waroth, just 'Neth' and NilithAth like this

Tauren_Dancing.gif  <= dancing cow
20141226165249!IconSmall_Godfrey.gif?ver  Jacklyn (Jacklyn Bradwick) - Undead Graverobber                                                          since every cool kid makes character lists, y not?
20090609194340!IconSmall_DeathKnight.gif  JacklynJr (Jacklyn Bradwick Jr.) - Human 2nd Gen Death Knight (Private Character)
20170311142016!IconSmall_Orgrim.gif?vers  Sarkot (Sarkot the Salty) - Orc Sea-Dog (Private Character)
IconSmall_Zuluhed.gif?version=eae0c2c324  Nokkol (Nokkol Emberwalker) - Orc Pyremaster


#9 just 'Neth'

just 'Neth'

    Veteran or something

  • Donator
  • PipPipPipPipPipPipPipPip
  • 1575 posts

Posted 19 June 2017 - 12:14 PM

or use the periodic option

 

set it to fire like every idk 30 seconds? could be random intervals too

can set it to repeat or nah


then set the target as "closest player" and their range like 20 yards


My most used characters:

|  -   Commander Unit Alpha 01a / Ranger Unit Alpha 02a
|  -   Xeren

|  -   Netharion S. Bloodfang


#10 dr3ad

dr3ad

    The Mightiest of All

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6097 posts

Posted 19 June 2017 - 12:26 PM

hi

i bought scripting yesterday

i want to make my npcs say their text whenever my character is within a certain range

so far ive only been able to make it say it every this and then seconds

pls help

Currently not supported but i'm looking into adding this Event that fires when target comes in nearby range

 


#11 Axel

Axel

    Human Degenerate

  • Donator* (Donator Extended)
  • PipPipPipPip
  • 118 posts

Posted 19 June 2017 - 03:35 PM

hi

i bought scripting yesterday

i want to make my npcs say their text whenever my character is within a certain range

so far ive only been able to make it say it every this and then seconds

pls help

Currently not supported but i'm looking into adding this Event that fires when target comes in nearby range



awesome, thanks. found a second best thing to do thanks to nilith ^^

 03xzbaI.png
 
Current Character  

Spoiler