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
I have living event issue
Author Message
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #1
I have living event issue
Hello Community

I've been living little issue here. with "TEVENTS=T_EQUIPITEM"
I want to use CloudBR's [UNIQUE ITEM] TAG and took that code CloudBR's Script pack and it work properly fine when i de-active "TEVENTS=T_EQUIPITEM" properties.

Code:
[TYPEDEF T_UNIQUEITEM]
ON=@ClientToolTip
IF (<TAG0.UNIQUEITEM>)
SRC.ADDCLILOC 1042971,<DEF.BFONT_LGREEN>[UNIQUE ITEM]<DEF.BR><DEF.BFONT_WHITE>
ENDIF

[ITEMDEF i_sword_of]
ID=I_SWORD_VIKING
NAME=Justice
VALUE=500000
DAM=45 65
TYPE=T_WEAPON_SWORD
CANUSE=CAN_U_ALL
//TEVENTS=T_EQUIPITEM //when i de-active that event its work fine
TEVENTS=T_UNIQUEITEM
TAG.UNIQUEITEM=1
USEBESTWEAPONSKILL=1
INCREASEDAM=40
DAMPHYSICAL=100

ON=@Create
   //COLOR=0480
   ATTR=attr_magic|attr_identified
   HITPOINTS={100}

[EOF]
[Image: 2m5z09e.jpg]
when i use that event its not work..

Code:
[ITEMDEF i_sword_of]
ID=I_SWORD_VIKING
NAME=Justice
VALUE=500000
DAM=45 65
TYPE=T_WEAPON_SWORD
CANUSE=CAN_U_ALL
TEVENTS=T_EQUIPITEM //when i active that event its not work
TEVENTS=T_UNIQUEITEM
TAG.UNIQUEITEM=1
USEBESTWEAPONSKILL=1
INCREASEDAM=40
DAMPHYSICAL=100

ON=@Create
   //COLOR=0480
   ATTR=attr_magic|attr_identified
   HITPOINTS={100}
[Image: 33vkowg.jpg]

waiting for help guys.
sry for my bad english
06-16-2014 07:11 AM
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: #2
RE: I have living event issue
Why not add the code from [typedef t_uniqueitem] into cloud_br's t_equipitem, then you only need to use the 1 event.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
06-16-2014 08:01 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #3
RE: I have living event issue
(06-16-2014 08:01 AM)Skul Wrote:  Why not add the code from [typedef t_uniqueitem] into cloud_br's t_equipitem, then you only need to use the 1 event.

Hey Skul
can you explain?
I dont use CloudBR's script pack just took that code into the his script pack
and I'm using 56c Updated script pack from community.
06-16-2014 08:11 AM
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: #4
RE: I have living event issue
Well as long as you have the script for t_equipitem, you should be able to add the code from t_uniqueitem into the event t_equipitem. This will eliminate the need to use 2 events.

I can't totally explain how the tooltips work, i do know they are sent over server time, you can use 'resendtooltip' to update the tooltip on an object at anytime.

You might have a conflict with the 2 events, maybe the event t_equipitem uses 'return 1' to halt default processing, this will stop any other event from being used too.

It is probably best to put your code from t_uniqueitem in the t_equipitem script.

Sphere has a priority as to how scripts are read.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 06-16-2014 09:20 AM by Skul.)
06-16-2014 09:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #5
RE: I have living event issue
Hey Skul
thx for explain thats enough for me.

t_equipitem script isn't hardcoded ?
(This post was last modified: 06-16-2014 09:39 AM by TigerBlitz.)
06-16-2014 09:38 AM
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: #6
RE: I have living event issue
no it is not, it should be somewhere in your scripts.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
06-16-2014 09:39 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #7
RE: I have living event issue
http://scripts.spherecommunity.net/
check here please didn't found anything about it.
06-16-2014 09:46 AM
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: #8
RE: I have living event issue
Try using editplus, it's great for doing directory searches.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
06-16-2014 09:54 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #9
RE: I have living event issue
(06-16-2014 09:54 AM)Skul Wrote:  Try using editplus, it's great for doing directory searches.

Hey Skul sry for that

i found it with little editplus help. Smile
06-16-2014 10:11 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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