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
2 Questions?
Author Message
Capes
Journeyman
*

Posts: 57
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Mar 2018
Reputation: 0



Post: #1
2 Questions?
Hi everyone! I have 2 questions.
I'm using version 0.56d

Question #1 -
According to shpere wiki LINK item event's work like this (below).....

[ITEMDEF 0c9b]
//small palm
DEFNAME=i_plant_smallpalm_3
VALUE=1
CATEGORY=Vegetation
SUBSECTION=Trees
DESCRIPTION=Small Palm
ON=@CREATE
EVENTS +e_eventhandler

[TYPEDEF e_eventhandler]
ON=@itemDClick
src.smsg CLICK!
return 1

But the above does not.....
This (below) also does not work..

[EVENTS e_eventhandler]
ON=@DClick
src.smsg CLICK!
return 1

It only works when I change EVENTS to TYPEDEF and us @DClick (as below) then it works!

[TYPEDEF e_eventhandler]
ON=@DClick
src.smsg CLICK!
return 1

Are item events implimented?

///////////////////////////////////////////////

Question #2-
Is it possible to create a ROOM on the fly?
Example:


//When this event happens
//create a room
//assign flags to room

//when this event happens
//remove previously created room



Thanks in advance!
Capes
03-07-2018 01:25 AM
Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #2
RE: 2 Questions?
in sphere item event is =typedef u can use typedef for items.

i dont understand the 2th question.
03-07-2018 01:33 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

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



Post: #3
RE: 2 Questions?
Typedef are events for item, @ItemDclick is a character only event while @Dclick is an item only event

Also you can't create ROOM on the fly, but you can create "a multi area" think
(This post was last modified: 03-07-2018 02:23 AM by darksun84.)
03-07-2018 02:17 AM
Find all posts by this user Like Post Quote this message in a reply
Capes
Journeyman
*

Posts: 57
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Mar 2018
Reputation: 0



Post: #4
RE: 2 Questions?
Thanks for the responses!
03-09-2018 07:31 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)