SphereCommunity
I have living event issue - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: I have living event issue (/Thread-I-have-living-event-issue)



I have living event issue - TigerBlitz - 06-16-2014 07:11 AM

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


RE: I have living event issue - Skul - 06-16-2014 08:01 AM

Why not add the code from [typedef t_uniqueitem] into cloud_br's t_equipitem, then you only need to use the 1 event.


RE: I have living event issue - TigerBlitz - 06-16-2014 08:11 AM

(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.


RE: I have living event issue - Skul - 06-16-2014 09:17 AM

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.


RE: I have living event issue - TigerBlitz - 06-16-2014 09:38 AM

Hey Skul
thx for explain thats enough for me.

t_equipitem script isn't hardcoded ?


RE: I have living event issue - Skul - 06-16-2014 09:39 AM

no it is not, it should be somewhere in your scripts.


RE: I have living event issue - TigerBlitz - 06-16-2014 09:46 AM

http://scripts.spherecommunity.net/
check here please didn't found anything about it.


RE: I have living event issue - Skul - 06-16-2014 09:54 AM

Try using editplus, it's great for doing directory searches.


RE: I have living event issue - TigerBlitz - 06-16-2014 10:11 AM

(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