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
Resources
Author Message
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #1
Resources
hey, man why I cant gather resources outside guard zone? from rocks, crags, hillocks? There is some message: Try mining elsewhere. I can gather only in caves.
02-25-2014 11:31 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Resources
Check that you are targeting a tile with type t_rock

[Image: 2nis46r.jpg]
02-26-2014 01:10 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #3
RE: Resources
ye, type t_arock isn't correct?
02-26-2014 01:19 AM
Find all posts by this user Like Post Quote this message in a reply
Awaken
Apprentice
*

Posts: 30
Likes Given: 10
Likes Received: 4 in 4 posts
Joined: Sep 2013
Reputation: 0



Post: #4
RE: Resources
(02-26-2014 01:19 AM)mrkarlo Wrote:  ye, type t_arock isn't correct?

you need try in t_rock, t_arock isnĀ“t work
02-26-2014 01:24 AM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #5
RE: Resources
ye, thanks! I have one more question. There is something... Gathering resources in caves and in forests from the rocks. How can I make it?
Code:
ON=@RESOURCEFOUND
IF (<SERV.MAP(<ARGO.P.X>,<ARGO.P.Y>).TERRAIN> > 0244)
SYSMESSAGE Test
endif
02-26-2014 02:01 AM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #6
RE: Resources
If somebody knows, how to separate resource gathering in caves and in forests (not in caves) please give response.
02-27-2014 05:46 PM
Find all posts by this user Like Post Quote this message in a reply
Awaken
Apprentice
*

Posts: 30
Likes Given: 10
Likes Received: 4 in 4 posts
Joined: Sep 2013
Reputation: 0



Post: #7
RE: Resources
One way is create you own Regionsource to Forests areas. This will be different
02-27-2014 09:16 PM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #8
RE: Resources
ok, thanks! But what about tile check?
02-28-2014 02:04 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #9
RE: Resources
Code:
IF (<SERV.MAP(<ARGO.P.X>,<ARGO.P.Y>).TYPE> == t_rock) &
      IF (<SERV.MAP(<ARGO.P.X>,<ARGO.P.Y>).FLAGS>) &region_flag_underground)
           //cave
      ELSE
          // not cave
      ENDIF
ENDIF

[Image: 2nis46r.jpg]
(This post was last modified: 02-28-2014 02:42 AM by Mordaunt.)
02-28-2014 02:42 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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