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
Smelt ore (2 ores smelt to one ingot)
Author Message
Breaker
Apprentice
*

Posts: 20
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 2



Post: #5
RE: Smelt ore (2 ores smelt to one ingot)
i make that:
Code:
[TYPEDEF t_ore]
ON=@DClick
IF (!<SRC.IsNearType,t_forge,2>)
   SRC.SYSMESSAGE You must be near a forge to smelt.
ELIF (!<SRC.RESTEST <SERV.ITEMDEF.<TDATA1>.RESOURCES>>)
   SRC.SYSMESSAGE You do not have enough <NAME> to smelt.
ELSE
   SERV.NEWITEM=i_fire
   NEW.ATTR=attr_decay
   NEW.P=<SRC.IsNearType.P,t_forge,2>
   NEW.NUDGEUP=8
   NEW.UPDATEX
   NEW.TIMER=1
   SRC.FACE=<NEW>
   SRC.EMOTE smelt <NAME>
   SRC.SOUND=84
   LOCAL.AMOUNT=<SRC.RESCOUNT <SERV.ITEMDEF.<TDATA1>.RESOURCES.0.KEY>> / <SERV.ITEMDEF.<TDATA1>.RESOURCES.0.VAL>
   SERV.NEWITEM=<TDATA1>,<dLOCAL.AMOUNT>,<SRC.BACKPACK>
   SRC.CONSUME=<EVAL (<dLOCAL.AMOUNT> * <SERV.ITEMDEF.TDATA1>.RESOURCES.0.VAL>)> <SERV.ITEMDEF.<TDATA1>.RESOURCES.0.KEY>
ENDIF
RETURN 1

[TYPEDEF t_forge]
ON=@DClick
IF (<DISTANCE> > 2)
   SRC.SYSMESSAGE You must be near a forge to melt.
ELSE
   TARGET What do you want melt?
ENDIF
RETURN 1

ON=@TargOn_Item
IF (<ARGO.TYPE>!=t_ore)
   RETURN 0
ELIF (<DISTANCE> > 2)
   SRC.SYSMESSAGE You must be near a forge to smelt.
ELIF (!<SRC.RESTEST <SERV.ITEMDEF.<ARGO.TDATA1>.RESOURCES>>)
   SRC.SYSMESSAGE You do not have enough <ARGO.NAME> to smelt.
ELSE
   SERV.NEWITEM=i_fire
   NEW.ATTR=attr_decay
   NEW.P=<P>
   NEW.NUDGEUP=8
   NEW.UPDATEX
   NEW.TIMER=1
   SRC.FACE=<NEW>
   SRC.EMOTE smelt <ARGO.NAME>
   SRC.SOUND=84
   LOCAL.AMOUNT=<SRC.RESCOUNT <SERV.ITEMDEF.<ARGO.TDATA1>.RESOURCES.0.KEY>> / <SERV.ITEMDEF.<ARGO.TDATA1>.RESOURCES.0.VAL>
   SERV.NEWITEM=<ARGO.TDATA1>,<dLOCAL.AMOUNT>,<3SRC.BACKPACK>
   SRC.CONSUME=<EVAL (<dLOCAL.AMOUNT> * <SERV.ITEMDEF.<ARGO.TDATA1>.RESOURCES.0.VAL>)> <SERV.ITEMDEF.<ARGO.TDATA1>.RESOURCES.0.KEY>
ENDIF
RETURN 1
(This post was last modified: 06-13-2013 12:08 PM by Breaker.)
05-28-2013 07:07 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Smelt ore (2 ores smelt to one ingot) - Breaker - 05-28-2013 07:07 AM

Forum Jump:


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