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
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: #10
RE: experience points for finding a site of ore
I have a little bit of fun with it and adjusted the experience gaining points for finding a certain amount of ore in the skill range. For example, for finding clay, the player receives a 1 point experience from a skill level of 0.0 to 10.0. When the clay finds out with a higher skill above 10.0%, the point for experience does not get. And so I create it for all kinds of ores.

PHP Code:
[EVENTS e_all_player]

// Gaining points for mining experience
ON=@RegionResourceGather
if (<argo.type> == t_rock) && (<tag0.uidOre> != <argo>)
    
tag.uidOre = <argo>
    if (<
Mining> > 0) && (<Mining> < 100)
    if <
argo.more1> == mr_clay
        sysmessage 
@55,3 Gained jsi 1 point experience!
        
tag0.exp += 1
    
endif
    elseif (<
Mining> > 99) && (<Mining> < 200)
    if <
argo.more1> == mr_coal
        sysmessage 
@55,3 Gained 1 point experience!
        
tag0.exp += 1
    
elseif <argo.more1> == mr_iron
        sysmessage 
@55,3 Gained 1 point experience!
        
tag0.exp += 1
    
endif
    elseif (<
Mining> > 99) && (<Mining> < 300)
    if <
argo.more1> == mr_iron
        sysmessage 
@55,3 Gained 1 point experience!
        
tag0.exp += 1
    
endif
    elseif (<
Mining> > 299) && (<Mining> < 550)
    if <
argo.more1> == mr_copper
        sysmessage 
@55,3 Gained 2 point experience!
        
tag0.exp += 2
    
endif
    elseif (<
Mining> > 549) && (<Mining> < 650)
    if <
argo.more1> == mr_silver
        sysmessage 
@55,3 Gained 3 point experience!
        
tag0.exp += 3
    
endif
    elseif (<
Mining> > 649) && (<Mining> < 900)
    if <
argo.more1> == mr_gold
        sysmessage 
@55,3 Gained 5 point experience!
        
tag0.exp += 5
    
endif
    elseif (<
Mining> > 899) && (<Mining> < 1201)
    if <
argo.more1> == mr_mytheril
        sysmessage 
@55,3 Gained 10 point experience!
        
tag0.exp += 10
    
endif
    endif
endif 

**********************************************

PHP Code:
// Amount of experience to raise to the next level
//LevelNextAt=450 

Then I have a question. By default, the sphere has an experience system. Can the LevelNextAt entry be adjusted so that for each level there is another value needed for a transfer? And because I do different professions and races, another value for a profession?

Example: A third-level magician will need 2456 points of experience, but a third-level warrior 3250. Both professions will have a higher value when moving to the fifth level.

Code:
Level    Mage    Warior
1        450    500
2        800    950
3        1540    1850
4        3000    3800

If I create my own experience system, it is possible. But I wonder if it can be built into the default system.
(This post was last modified: 02-26-2018 03:38 AM by golfin.)
02-26-2018 03:37 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: experience points for finding a site of ore - golfin - 02-26-2018 03:37 AM

Forum Jump:


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