Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NOT MOUNTING ON DUNGEON REGION?
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
NOT MOUNTING ON DUNGEON REGION?
hi there, i want to know if there's a better way to specify if player is entering a dungeon area/region than the fallowing one.

Code:
ON=@RegionEnter
IF (<SRC.ISPLAYER>) && !(<SRC.ISGM>)
IF STRMATCH(*R_DUNGEON*,<SRC.REGION.RESOURCES>)
   IF (<SRC.FINDLAYER.LAYER_HORSE>)
   SRC.SYSMESSAGE @07a1,,1 You cant ride on this place.
   SRC.DISMOUNT
   ENDIF
ENDIF
ENDIF

Thank you very much.
08-13-2014 04:25 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #2
RE: NOT MOUNTING ON DUNGEON REGION?
mmm don't know, maybe
PHP Code:
(<src.region.flags>&region_flag_underground

?
08-13-2014 04:31 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: NOT MOUNTING ON DUNGEON REGION?
Most of dungeons have the flag region_undeground, so you can check it.

I think that the best way is to create a new regiontype for dungeons and add it in the event property of the dungeons areadef.

In this way you can check if a region is a dungeon or not by using region.isevent.regiontype_defname
(This post was last modified: 08-13-2014 04:35 AM by darksun84.)
08-13-2014 04:34 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #4
RE: NOT MOUNTING ON DUNGEON REGION?
Looks like you're using r_dungeon. Why not add the trigger to r_dungeon (in sphere_region.scp)
Code:
on=@enter
if (<src.findlayer.25>)
  src.dismount
endif

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
08-13-2014 04:37 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Skul's post
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: NOT MOUNTING ON DUNGEON REGION?
gonna try it with @enter to r_dungeon, thx skul ^^

but i got the idea rizz and darksun, i think i know what ill do later on.. Thank you all!
(This post was last modified: 08-13-2014 04:56 AM by kn4tseb.)
08-13-2014 04:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)