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
Error in my insure script
Author Message
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #4
RE: Error in my insure script
Try this. TargetF doesn't need obj.
src = <person who called trigger>
argo = targeted whatevers UID. The UID though is called like uid.<argo>.key
local.id = targeted items ID. (Can't remember if it is baseid or dispid (so I checked argo instead local.id))

Code:
[FUNCTION TARGET_INSURE]
IF (<uid.<argo>.ATTR>&ATTR_NEWBIE)
SYSMESSAGELOC 04ec,3,1060870
ELIF (<uid.<argo>.TOPOBJ>!=<SRC>)
SYSMESSAGELOC 04ec,3,1060871
ELIF (<SRC.TOTALGOLD> < <DEF.INSURANCE_PRICE>) || (<uid.<argo>.ISEVENT.T_ITEM_INSURED>)
SYSMESSAGELOC 04ec,3,1060869
ELSE
uid.<argo>.EVENTS +T_ITEM_INSURED
src.CONSUMEGOLD <DEF.INSURANCE_PRICE>
SYSMESSAGELOC 04ec,3,1060873
uid.<argo>.UPDATE 1
ENDIF

Otherwise, you were doing the right things. I checked your clilocs and they are right. Obj and local.tmp were far from needed.
(This post was last modified: 02-18-2016 07:49 AM by Khaos.)
02-18-2016 07:46 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Khaos's post
Post Reply 


Messages In This Thread
Error in my insure script - jexnico - 02-18-2016, 02:44 AM
RE: Error in my insure script - karma - 02-18-2016, 03:01 AM
RE: Error in my insure script - pointhz - 02-18-2016, 05:21 AM
RE: Error in my insure script - Khaos - 02-18-2016 07:46 AM

Forum Jump:


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