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
#2252 Tooltip crash
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #1
#2252 Tooltip crash
I'm using an old way to make my tooltip with the color i want but now this code can crash the server in some circumstances with scroll:
for example .add i_scroll_bless and target the ground or .set color and target the scroll will crash the server...

This is the code:

PHP Code:
ON=@ITEMCLIENTTOOLTIP
VAR.TOOLTIP=  // <--- 889
OBJ=<ARGO.UID>
OBJ.TRIGGER @Tooltip
IF !<ISEMPTY <VAR.TOOLTIP>>
    
addcliloc 1042971,<VAR.TOOLTIP>
ENDIF
VAR.
TOOLTIP=


[FUNCTION 
ADD_TOOLTIP]
IF !<
ISEMPTY <VAR.TOOLTIP>> //621
VAR.TOOLTIP=<VAR.TOOLTIP><DEF.BR><DEF.BFONT_white><ARGS>
ELSE
VAR.
TOOLTIP=<DEF.BFONT_white><ARGS>
ENDIF

[
ITEMDEF 01f3d]
DEFNAME=i_scroll_bless
RESOURCES
=i_scroll_blanki_reag_garlic,i_reag_mandrake_root
SKILLMAKE
=INSCRIPTION 30.0MAGERY 20.0
TYPE
=T_SCROLL
WEIGHT
=1
//CIRCLE=3
CATEGORY=Provisions Alchemy Magic
SUBSECTION
=Scrolls 3rd Circle
DESCRIPTION
=Bless Scroll
VALUE
=29

ON
=@Tooltip
    tag0
.crafter
    
IF <eval STRLEN(<TAG.crafter_name>)> > 0
        ADD_TOOLTIP Crafter
: <TAG.crafter_name>



    
ADD_TOOLTIP Magic Rank: <LOCAL.mrank

[Image: error2_zpsuh6besxa.png]

[Image: error1_zpsxmpvvitb.png]

For now i found that this happens only with the scrolls...
Items such weapons are ok
(This post was last modified: 04-25-2015 09:48 AM by Rizz.)
04-25-2015 09:47 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #2
RE: #2252 Tooltip crash
I found the problem, is related to LOCAL.something and morey under @tooltip in the item.

PHP Code:
ON=@TOOLTIP
LOCAL
.something=1    <--- this one is ok
LOCAL
.something=A    <--- leads to instant crash
LOCAL
.something="A"    <--- this one is ok

morey
=199    <----- leads to crash 

Fortunally, in my case, this is a redundance so i can delete without any problem (I'm talking about the morey).
(This post was last modified: 04-25-2015 08:11 PM by Rizz.)
04-25-2015 07:52 PM
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)