The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Walls on Dungeon Entrances.
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #11
RE: Walls on Dungeon Entrances.
(12-05-2012 09:26 AM)Mordaunt Wrote:  They exist in sphere_map_points0.scp under [teleports]
I'd just override them with my own teleport

Code:
ON=@Step
If <whatever>
  return 1
else
  src.move <coords>
endif

And to finish this [i will try later] the script should be:


FORITEMS 0
IF (<baseid> == i_wall_of_stone_8 )
return 1
ENDIF
ENDFOR

rly?

Shock Just to clarify the post.


-And... I had to delete that teleporters, right?
-How can I make a IF that if IN X pos are there a wall of stone... you can't telep?

Thanks to all!

[Image: 2hy9q0y.png]
(This post was last modified: 12-05-2012 10:18 AM by Lazarus.)
12-05-2012 09:34 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #12
RE: Walls on Dungeon Entrances.
Under what conditions are you making the wall of stone though?
Is this just your method to keep people out under specific conditions?
If so you don't need the wall of stone if you are turning off the teleports.

[Image: 2nis46r.jpg]
12-05-2012 10:41 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #13
RE: Walls on Dungeon Entrances.
(12-05-2012 10:41 AM)Mordaunt Wrote:  Under what conditions are you making the wall of stone though?
Is this just your method to keep people out under specific conditions?
If so you don't need the wall of stone if you are turning off the teleports.

I m trying to do that if the new position [morep], were the telep will transport you, is blocked because in them are a <BASEID> == i_wall_stone_7_b [mine wall of stone casted by s_wall_of_stone in my server], you will get a error [The position is blocked] and not get in Shock


Lazarus.

[Image: 2hy9q0y.png]
12-05-2012 10:58 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #14
RE: Walls on Dungeon Entrances.
Ok, so make sure that you are checking for the wall of stone on the other end of the teleporters then

[Image: 2nis46r.jpg]
12-05-2012 11:24 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
ChaveS
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0



Post: #15
RE: Walls on Dungeon Entrances.
The idea here is:

Imagine a tile of a dungeon at 1,1 which send you to 2,2 using the sphere_map_points scripts

1 Now you put a INIVISIBLE item on 1,1
2 Now you set .xmorep 2,2 on this item
3 This tile, when you step on it, will create a gold item on 2,2 (because it reads the morep)
4 the gold check if there is a wall on it
5 if there is wall on it, the INVISIBLE ITEM will send you back

new.destine_blocktest2  <----- it shouldnt be there
return <new.destine_blocktest2>

try this way

Code:
[typedef t_dungeon_tile]
on=@step
if <destine_blocktest>
src.sysmessage @,,1 The other side is blocked
move <dtag.moveback>
return 1
endif

[function destine_blocktest] //to test where it is
serv.newitem i_virtstone_8 //to avoid server crash if 2 coins stack togheter and timerf,remove runs on a missed item
new.attr 090
new.p <morep>
return <new.destine_blocktest2>

[function destine_blocktest2]
FORITEMS 0
IF (<baseid> == i_wall_stone_7_b )
return 1
ENDIF
ENDFOR
timerf 0,remove
(This post was last modified: 12-05-2012 01:00 PM by ChaveS.)
12-05-2012 12:50 PM
Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #16
RE: Walls on Dungeon Entrances.
(12-05-2012 12:50 PM)ChaveS Wrote:  !!

Im trying this but not working Sad

[Image: 2hy9q0y.png]
12-07-2012 02:11 AM
Visit this user's website 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: #17
RE: Walls on Dungeon Entrances.
Create an [areadef] around all your entrances and exits and add and create [regiontype r_nofields], example:
Code:
[events e_nofields]
on=@spellselect
if ( <serv.spell.<argn1>.flags> & spellflag_field )
  if (<region.isevent.r_nofields>) || (<targp.region.isevent.r_nofields>)
    sysmessage You can not cast a field spell here.
    return 1
  endif
endif

[regiontype r_nofields] //add this regiontype to your areadef events on all entrances and exits
defname=r_nofields

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
12-10-2012 10:38 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #18
RE: Walls on Dungeon Entrances.
That area would have to be pretty big since that trigger will only fire if the caster is standing in the region... casters outside of the region can still cast into it I suspect.
12-11-2012 09:52 AM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 162
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #19
RE: Walls on Dungeon Entrances.
im not sure but i think he coverd that with

Code:
if (<region.isevent.r_nofields>) || (<targp.region.isevent.r_nofields>)

the targp.region part

[Image: htid.jpg]
(This post was last modified: 12-11-2012 01:27 PM by htid4life.)
12-11-2012 01:26 PM
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: #20
RE: Walls on Dungeon Entrances.
Might want to expand the area to prevent the field from blocking 'around' the area, allowing the caster to create a 'box' large enough to take too much time to try and block the entrance.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
12-11-2012 04:40 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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