Jump to content

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  dr3ad : (28 March 2018 - 08:57 AM)

Getting coins voting at XtremeTop100 fixed. Many additions to NPC Scripting. Check changelog.

@  dr3ad : (18 February 2018 - 06:31 PM)

Some NPC Script updates. Addition of Target Type "NPC with specific GUID" and Action "Pause Waypoint Movement", so now the scripts can finally target specific npc based on guid

@  dr3ad : (06 February 2018 - 04:29 PM)

Reminder that you can now chose in Rank Manager whether player can only manipulate (e.g delete) his own gobs/npcs. Phase owner can now also change color of specific phase ranks a.k.a name color in .ph ann

@  dr3ad : (25 December 2017 - 10:52 PM)

NPC scripts now work in all phases that you own, additionally phase ranks now contain "Can Use NPC Scripting" option, so everyone who has Scripting perk can now promote people and let them help with scripting the phase

@  dr3ad : (04 December 2017 - 06:19 PM)

You can now browse already made NPC Templates and use their items while making a new NPC Template!

@  dr3ad : (02 December 2017 - 06:39 PM)

New command: .phase playlist #SoundID #LengthOfASongInSeconds will let you make phase playlists e.g 10 songs that will keep playing on loop from 1-10 and repeat. Every consecutive command use the song is added to the list. Use .phase pl clear to clear the playlist

@  dr3ad : (28 November 2017 - 10:49 PM)

Server is online!

@  dr3ad : (28 November 2017 - 07:50 PM)

Server is restarting and will be up in a couple of minutes as soon as phase cleanup is done!

@  dr3ad : (28 November 2017 - 07:19 PM)

Gameobject cleanup will take place soon, all accounts inactive more than 6 months will have their character's phases deleted as we're reaching 15 millions gobjects mark!

@  dr3ad : (21 November 2017 - 04:27 PM)

New command: .gob near will list Top 10 Closest gameobjects and their guids/scales

@  dr3ad : (19 November 2017 - 01:56 PM)

New command: .gob state 0 3 will activate gameobjects such as doors permanently.

@  dr3ad : (25 October 2017 - 07:31 PM)

New commands .phase history and .phase capacity have been added! Check Changelog for more info.

@  dr3ad : (06 October 2017 - 07:52 AM)

Issue with server restarter has been fixed. Server is online.

@  dr3ad : (01 September 2017 - 01:11 PM)

Xtremetop100 voting will now properly award silver coins.

@  dr3ad : (13 August 2017 - 10:26 PM)

A couple of new things were added. Read more here.

@  dr3ad : (12 August 2017 - 12:26 PM)

If you had issues connecting with RPHTiny (such as CDN error) please re-download RPHTiny, all issues have been fixed!

@  dr3ad : (04 August 2017 - 12:44 AM)

Server is online! There was a minor issue with server startup that caused it to stay offline, all back on track now though!

@  dr3ad : (29 July 2017 - 05:24 PM)

Fixed despawning of gobjects happening with .gob tele command! Also Gobject List is now available in account panel where you can edit signs & other gobs.

@  dr3ad : (26 July 2017 - 11:01 PM)

New command: .char create #className => allows you to have unlimited characters on the account by bypassing client restrictions! Example usage: .char create druid

@  dr3ad : (24 July 2017 - 12:55 PM)

Fixed "Announce spam" ban bug that happened to few people, everything's good now.


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)
  • PipPipPipPipPip
  • 370 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

#2 Slashannemoo

Slashannemoo

    Best Girl

  • Donator* (Donator Extended)
  • PipPipPipPip
  • 209 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
  • 443 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)
  • PipPipPipPipPip
  • 370 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?

#5 Ceri

Ceri

    Unpopular by popular vote

  • Donator* (Donator Extended)
  • PipPipPipPipPip
  • 443 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

  • Donator* (Donator Extended)
  • PipPipPipPip
  • 209 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
  • 225 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

    actual real voter guys im not kidding

  • Members
  • PipPipPipPip
  • 286 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

yeah so all memey images i put as my signature dont work after 2 weeks so uh yea take tihs big fat L


#9 just 'Neth'

just 'Neth'

    Master Builder / Host :)

  • Donator
  • PipPipPipPipPipPipPipPip
  • 1842 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 active characters:

|  -   Graves Penton (Grav)

|  -   Netharion (Building char)

|  -   Seren Niles (DM)


#10 dr3ad

dr3ad

    The Mightiest of All

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6392 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)
  • PipPipPipPipPip
  • 370 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 ^^