Jump to content

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  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.

@  dr3ad : (24 July 2017 - 12:01 AM)

New Starting Location Contest is up & running, read more here!

@  dr3ad : (22 July 2017 - 06:14 PM)

New command: .phase time day/night/number of hours will let you set time of the day of your phase or move the specific amount of hours forward in time!

@  dr3ad : (21 July 2017 - 08:05 PM)

.char custom is back! .gob undo now also accepts number as parameter i.e .gob undo 5 to specify amount of gameobjects to delete up to 10/100 depending on rank

@  dr3ad : (21 July 2017 - 01:43 AM)

New command: .guild rename "OldName" "NewName"

@  dr3ad : (19 July 2017 - 02:33 PM)

New command: .glist [full] which works the same as .rp list except it is for guilds!

@  dr3ad : (18 July 2017 - 01:24 PM)

New commands: .phase sayrange, .phase yellrange, .phase emoterange => decides the range of respective /say, /yell & /emote messages. Useful in small phases so one group of people doesn't see emotes and chat messages of other people

@  dr3ad : (14 July 2017 - 06:24 PM)

Commands .gob del, .gob select, .npc del now accept GUID as parameter so you can target specific gameobjects

@  dr3ad : (13 July 2017 - 06:43 PM)

New command: .gob tele which transforms any Sign gameobject into a clickable teleport (current position is taken as destination)

@  dr3ad : (12 July 2017 - 11:18 PM)

New command: .lookup skybox => .phase skybox is now also redesigned and accepts 7k more skyboxes that persist and all new-joining players will have it as well

@  dr3ad : (12 July 2017 - 02:59 PM)

New commands: .gobject clone (retains scale + rotation), .gobject angle (allows you to set rotation as seen in .gob select)

@  dr3ad : (09 July 2017 - 07:37 PM)

New commands: .phase whitelist command & .phase whitelist spell => Read more in changelog

@  dr3ad : (28 June 2017 - 07:36 PM)

Adding shirt item now works in NPC Templates. Also 2 new commands were implemented: .gob move & .gob rel

@  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!


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
  • 151 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

  • Donator* (Donator Extended)
  • PipPipPipPip
  • 139 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
  • 433 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
  • 151 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
  • 433 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
  • 139 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
  • 171 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

    slayer of thots

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

autism.gif


#9 just 'Neth'

just 'Neth'

    Veteran or something

  • Donator
  • PipPipPipPipPipPipPipPip
  • 1637 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:

|  -   Graves Penton (Gravoyle)

|  -   Netharion

|  -   Seren Niles


#10 dr3ad

dr3ad

    The Mightiest of All

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6222 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
  • 151 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