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-nmm6 (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-nmm6 (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-nmm6 (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
Wall of Stone
Author Message
Skul
Master
**

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



Post: #16
RE: Wall of Stone
here's a little modification, something I missed (if player is trapped by shoreline or some sort of static building) as well as crossed in by wall of stone. I'm guessing you're using i_wall_stone_7 as your default for s_wall_of_stone? Also, be sure the event is added to all the players, this is a must.
Code:
[events e_wall_of_stone] //the event
on=@spelleffect
if ( <serv.spell.<argn1>.flags> & spellflag_harm )
if !(<uid>==<src.uid>)
   local.p.x=<p.x>
   local.p.y=<p.y>
   if !(<canmove e>)
    local.x += 1
   endif
   if !(<canmove w>)
    local.x += 1
   endif
   if !(<canmove n>)
    local.x += 1
   endif
   if !(<canmove s>)
    local.x += 1
   endif
   foritems 1
    if (<type>==t_spell) && (<baseid>==i_wall_stone_7) //is wall of stone
     if (<p.x>==<eval <local.p.x> +1>) || (<p.x>==<eval <local.p.x> +-1>)//left or right 1 tile of character
      local.x += 1
     elseif (<p.y>==<eval <local.p.y> +1>) || (<p.y>==<eval <local.p.y> +-1>) //up or down 1 tile of character
      local.x += 1
     endif
    endif
   endfor
   if (<dlocal.x> >= 4) //is trapped?
    effect=3,i_fx_glow,15,15,1 //invul effect
    return 1 //halt the spell - the player is trapped!
  endif
endif
endif

I just noticed I was missing an 'endif', give it a try.

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

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


Messages In This Thread
Wall of Stone - LASTA - 05-17-2012, 06:43 AM
RE: Wall of Stone - Barnabus - 05-17-2012, 08:47 AM
RE: Wall of Stone - LASTA - 05-17-2012, 01:26 PM
RE: Wall of Stone - LASTA - 05-18-2012, 04:00 AM
RE: Wall of Stone - WRWR - 05-18-2012, 07:11 AM
RE: Wall of Stone - LASTA - 05-18-2012, 02:02 PM
RE: Wall of Stone - LASTA - 05-23-2012, 06:52 AM
RE: Wall of Stone - jeem - 05-24-2012, 07:04 AM
RE: Wall of Stone - Crusader - 05-24-2012, 06:21 PM
RE: Wall of Stone - Shaklaban - 05-24-2012, 06:30 PM
RE: Wall of Stone - Hellz1nho - 07-11-2012, 11:05 PM
RE: Wall of Stone - Skul - 07-12-2012, 12:46 AM
RE: Wall of Stone - Hellz1nho - 07-12-2012, 01:11 AM
RE: Wall of Stone - Skul - 07-14-2012, 12:47 AM
RE: Wall of Stone - Hellz1nho - 07-14-2012, 03:40 AM
RE: Wall of Stone - Skul - 07-14-2012 01:53 PM

Forum Jump:


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