Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
region name
|
Author |
Message |
darksun84 
Sir Spamalot
   
Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35
![]()
|
RE: region name
<serv.region> it's not a valid command from the server object.
Anyway, the main problem is that in the @create trigger the NPC it's still not placed in the world.
So you have to use a timerf along with a function.
Example:
Code:
[FUNCTION broadcastNpcRegion]
serv.b @0123 Attention : a <name> has just appeared in <region.name>
[CHARDEF c_test_npc]
Name = Test
id = c_man
CAN=MT_WALK|MT_USEHANDS|MT_EQUIP
ON=@Create
npc = brain_human
str = 100
maxhits = 9999
dex = 0
int = 0
mana = 0
timerf 1,broadcastNpcRegion
It works for me also take note that if you write directly the serv.b in the timerf command you will still get a wrong result from <region.name>
|
|
06-13-2017 12:04 PM |
|
|
Messages In This Thread |
RE: region name - darksun84 - 06-13-2017 12:04 PM
|
User(s) browsing this thread: 1 Guest(s)