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
typedefs and ghosts @dclick
Author Message
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #10
RE: typedefs and ghosts @dclick
Ok I cant figure this out at all here is what I'm trying to do... Create a Dialog that is compatible for NPC's and Ankh's that allows someone to res as long as they are within line of sight and dead via the dialog.. also have there be a timer so people cant instantly ress.. say 10 seconds or whatever.. If anyone replies please if you can take time to explain the script and how it works..

Item

Code:
[ITEMDEF 02]
DEFNAME=i_ankh
RESOURCES=100 i_rock_plain
CATEGORY=Decoration - Miscellaneous
SUBSECTION=Statues
DESCRIPTION=Ankh (w) 1/2
DUPELIST=03,04,05

Modifying sphere_override_shrine.scp

[TYPEDEF T_SHRINE]
on=@dclick
statements and or handle it all through the dialog
use this dialog

[DIALOG d_RESURRECT_CONFIRM]
280,190
SRC.CLOSEALLDIALOGS
PAGE 0
gumppictiled 65 33 320 44 201
gumppic 22 33 206
gumppic 380 33 207
gumppictiled 22 77 44 280 202
gumppictiled 380 77 44 280 203
gumppictiled 65 355 320 44 233
gumppic 380 355 205
gumppic 22 355 204
gumppictiled 66 77 320 300 200

xmfhtmlgump 180 60 70 25 1015222 0 0


IF (<UID.<CTAG0.RESSER>.NPC> == brain_healer)
xmfhtmlgump 75 100 290 150 1011025 1 1
ELSE
xmfhtmlgump 75 100 290 150 1011026 1 1
ENDIF

button 90 285 4005 4006 1 0 1
xmfhtmlgump 125 288 70 25 1011011 0 0

button 230 285 4005 4006 1 0 0
xmfhtmlgump 265 288 70 25 1011012 0 0

[DIALOG d_RESURRECT_CONFIRM BUTTON]
ON=1
IF (!(<CANSEELOS <CTAG0.RESSER>>))
MESSAGE @,,2 502390
ELIF (<UID.<CTAG0.RESSER>.FLAGS>&statf_dead)
MESSAGE @,,2 501040
ELSE
REF1=<REGION.UID>
    IF (<REF1.BASEID> == i_champion_spawn)
    LOCAL.OLDP=<P>
    P=1,1
    SPELLEFFECT s_resurrection,1000,<CTAG0.RESSER>
    P=<LOCAL.OLDP>
    UPDATEX
    ELSE
    SPELLEFFECT s_resurrection,1000,<CTAG0.RESSER>
    ENDIF
ENDIF
CTAG.RESSER

ON=0
TRYSRC <CTAG0.RESSER> SRC.MESSAGE @,,2 503256
CTAG.RESSER
(This post was last modified: 04-17-2012 03:25 PM by Reflex.)
04-17-2012 03:23 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
typedefs and ghosts @dclick - Reflex - 04-16-2012, 05:33 PM
RE: typedefs and ghosts @dclick - Reflex - 04-17-2012, 01:25 AM
RE: typedefs and ghosts @dclick - Reflex - 04-17-2012, 01:20 PM
RE: typedefs and ghosts @dclick - Reflex - 04-17-2012 03:23 PM

Forum Jump:


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