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
Need help in general Scripting
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #41
RE: Need help in general Scripting
src.newitem sets as ACT the item created, the same goes for src.makeitem ... the crafted item becomes act, you can use REFx to store UIDs and work with them to avoid this and some other conflicts, eg:

Code:
SERV.NEWITEM <TAG.ID>
REF1=<NEW>
if ( (<REF1.TYPE> == t_potion) && (<SRC.RESTEST i_bottle_empty> == 0) )
SRC.SYSMESSAGE You have no bottles for your potion.
elseif (<SRC.RESTEST <REF1.RESOURCES>> == 0 )
SRC.SYSMESSAGE You need <REF1.RESMAKE> to produce <REF1.NAME>.
elseif ( !<SRC.CANMAKE <REF1.BASEID>> )
SRC.SYSMESSAGE You haven't got the faintest idea on how to produce <REF1..NAME>.
else
SRC.SYSMESSAGE You start producing <REF1.NAME>.
SRC.MAKEITEM = <TAG.ID>
SRC.TAG.MAKEITEM.LEVEL = <TAG.SKILL>
endif
REF1.REMOVE
return 1
05-03-2016 01:09 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Post Reply 


Messages In This Thread
Need help in general Scripting - Fronz - 04-21-2016, 10:24 AM
RE: Need help in general Scripting - Fronz - 04-23-2016, 12:03 AM
RE: Need help in general Scripting - Fronz - 04-23-2016, 11:41 PM
RE: Need help in general Scripting - Fronz - 04-24-2016, 03:21 AM
RE: Need help in general Scripting - Fronz - 04-24-2016, 09:25 AM
RE: Need help in general Scripting - Fronz - 04-25-2016, 02:10 AM
Need help in general Scripting - roberpot - 04-25-2016, 03:26 PM
Need help in general Scripting - roberpot - 04-26-2016, 12:00 AM
Need help in general Scripting - roberpot - 04-26-2016, 02:57 AM
Need help in general Scripting - roberpot - 04-26-2016, 02:57 PM
Need help in general Scripting - roberpot - 04-26-2016, 10:31 PM
Need help in general Scripting - roberpot - 04-26-2016, 11:23 PM
Need help in general Scripting - roberpot - 04-26-2016, 11:29 PM
Need help in general Scripting - roberpot - 04-27-2016, 02:50 AM
RE: Need help in general Scripting - Fronz - 04-27-2016, 04:32 AM
Need help in general Scripting - roberpot - 04-27-2016, 04:59 AM
Need help in general Scripting - roberpot - 04-27-2016, 08:37 AM
RE: Need help in general Scripting - Fronz - 04-27-2016, 12:58 PM
RE: Need help in general Scripting - XuN - 04-27-2016, 04:07 PM
RE: Need help in general Scripting - Fronz - 04-28-2016, 06:32 AM
RE: Need help in general Scripting - Fronz - 05-01-2016, 11:46 AM
RE: Need help in general Scripting - Fronz - 05-02-2016, 12:53 AM
RE: Need help in general Scripting - XuN - 05-02-2016, 06:48 PM
RE: Need help in general Scripting - Fronz - 05-03-2016, 12:10 AM
RE: Need help in general Scripting - XuN - 05-03-2016 01:09 AM
RE: Need help in general Scripting - Fronz - 05-03-2016, 01:40 AM
RE: Need help in general Scripting - Fronz - 05-04-2016, 10:04 AM
RE: Need help in general Scripting - XuN - 05-04-2016, 04:29 PM
RE: Need help in general Scripting - Fronz - 05-10-2016, 01:05 PM
RE: Need help in general Scripting - Fronz - 05-16-2016, 10:25 AM
RE: Need help in general Scripting - Fronz - 05-17-2016, 02:34 AM
RE: Need help in general Scripting - Fronz - 05-28-2016, 09:27 PM

Forum Jump:


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