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
Rizz
Master
**

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



Post: #4
RE: Smelt ore (2 ores smelt to one ingot)
I used this script for make 1 ingot from 10 ores.

PHP Code:
[ITEMDEF i_ore_coal]
ID=i_ore_iron
NAME
=Coal Ore
SKILLMAKE
=MINING 99.0
TDATA1
=i_ingot_steel
VALUE
=15

ON
=@Create
    COLOR
=0989
    
ON
=@DCLICK
LOCAL
.amount=<amount>
FORITEMS 3
    
IF (<TYPE>==t_forge)
        
LOCAL.lega=<DLOCAL.amount>*10
        
IF (<src.restest <DLOCAL.legai_ore_iron>)
            
src.consume <DLOCAL.legai_ore_iron
            
return 0
        
ELSE 
            
src.message @,3,1 You need 10 iron ore and 1 coal ore to make a steel ingot
            
return 1
        
ENDIF
    ENDIF
ENDFOR 
(This post was last modified: 05-07-2013 11:50 PM by Rizz.)
05-07-2013 11:50 PM
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) - Rizz - 05-07-2013 11:50 PM

Forum Jump:


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