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
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #11
RE: typedefs and ghosts @dclick
(04-17-2012 01:20 PM)Reflex Wrote:  
(04-17-2012 02:48 AM)Shaklaban Wrote:  then just give a tag or check the item baseid id on=@dclick for example:
Code:
[typedef t_shrine]
on=@dclick
if (<tag0.shrine_override>)
    dialog d_blabla
    return 1
endif

Can you please explain if (<tag0.shrine_override>) i think i understand what it does but not sure how it works ?

its just a tag, for example if you want to some of your items with t_shrine sends dialog and some of them works default, then you can give them a tag like:

PHP Code:
[itemdef i_blabla_1]
name=bla 1
id
=i_gold
type
=t_shrine
tag
.shrine_override=1

[itemdef i_blabla_2]
name=bla 2
id
=i_gold
type
=t_shrine 

when you dclick blabla_1 you get dialog, when you click i_blabla_2 you get default behaviour.
04-17-2012 10:25 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: 1 Guest(s)