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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
experience points for finding a site of ore
Author Message
golfin
Banned

Posts: 213
Likes Given: 2
Likes Received: 32 in 28 posts
Joined: Nov 2017

Eranova

Post: #1
experience points for finding a site of ore
Hello,

what's going on? For example, when a character finds copper - he kicks the earth and the system randomly allocates some ore - to receive a certain amount of experience for this first mining event.
I'm going to use the i_worldgem_bit subject by BaseId in ON=@Success, where it is specified in More1 what is being exploited. But it does not work for me. I attach an example script. For any advice, thank you.

PHP Code:
VERSION=0.56d

[SKILL 45]
DEFNAME=Skill_Mining
KEY
=Mining
TITLE
=Miner
PROMPT_MSG
=Where would you like to mine?
FLAGS=skf_gather
DELAY
=1.6
STAT_STR
=85
STAT_DEX
=45
STAT_INT
=30
BONUS_STR
=70
BONUS_DEX
=30
BONUS_INT
=0
BONUS_STATS
=20
ADV_RATE
=2.5,50.0,200.0
VALUES
=1,10,80
RANGE
=2

ON
=@PreStart
    
IF (<SRC.FINDLAYER.layer_horse>)
        
SRC.SYSMESSAGE Na zvířeti nemůžeš těžit!
        return 
1
    
ENDIF
    IF (<
SRC.WEAPON.USESCUR>< 1)
        
SRC.SYSMESSAGE Nářadí je je vybité!
        return 
1
    
ENDIF

ON=@Success
    SRC
.WEAPON.USESCUR --
    IF (<
SRC.WEAPON.USESCUR>==0)
        
SRC.WEAPON.DESTROY 1
    
ENDIF
    
// I'm editing here
    
If (<BaseId> == i_worldgem_bit)
        If (<
Src.More1> == mr_iron)
            
Src.Tag.Exp=<eval <Tag.Exp>> +1
            Src
.Sysmessage=@55,3 Get you are 1 point of experience!
        ElseIf (<
Src.More1> == mr_copper)
            
Src.Tag.Exp=<eval <Tag.Exp>> +2
            Src
.Sysmessage=@55,3 Get you are 2 points of experience!
        EndIf
    EndIf
.
.

02-19-2018 04:42 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
experience points for finding a site of ore - golfin - 02-19-2018 04:42 AM

Forum Jump:


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