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-nmm6 (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-nmm6 (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-nmm6 (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
Select horse
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #11
RE: Select horse
try using this

Code:
[FUNCTION horse]
SYSMESSAGE @88 Select the horse you want to see ...
TARGETF horse_callback

[FUNCTION horse_callback]
IF (<ARGO.ISCHAR>)
  IF (<ARGO.FLAGS> & statf_onhorse)
    // if char is mounted, ARGO will be this char and not the mount, so switch it to the mount
    ARGO=<ARGO.FINDLAYER.layer_horse.MORE2>
  ENDIF
  IF (<ARGO.BODY> == c_horse_gray) || (<ARGO.BODY> == c_horse_brown_dk) || (<ARGO.BODY> == c_horse_brown_lt)
    SRC.SYSMESSAGE horse
    return 1
  ELIF (<ARGO.BODY> == c_llama)
    SRC.SYSMESSAGE llama
    return 1
  ELIF (<ARGO.BODY> == c_ostard_desert) || (<ARGO.BODY> == c_ostard_frenzied) || (<ARGO.BODY> == c_ostard_forest)
    SRC.SYSMESSAGE ostard
    return 1
  ENDIF
ENDIF
SRC.SYSMESSAGE @38 Not a horse.
04-10-2019 05:12 AM
Find all posts by this user Like Post Quote this message in a reply
redblack
Apprentice
*

Posts: 26
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2017
Reputation: 0



Post: #12
RE: Select horse
No it doesn't work.
maybe try to give me an example applied to the code I wrote in the previous post.

Thanks for the reply
04-11-2019 02:49 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #13
RE: Select horse
this is already a example based on your code, but of course this code above is only for testing purposes, it only have some few mount IDs and after target the mount it will just say the mount name, so you must include your mount IDs on "IF ()" lines and replace "SYSMESSAGE llama" lines with your custom code to make it open these dialogs d_gump_llama, d_gump_horse, etc
04-11-2019 04:33 AM
Find all posts by this user Like Post Quote this message in a reply
redblack
Apprentice
*

Posts: 26
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2017
Reputation: 0



Post: #14
RE: Select horse
I have tried but it does not work, moreover in console from error on this:
ARGO = <ARGO.FINDLAYER.layer_horse.MORE2>
so when I ride the horse the message "Not a horse" comes out

thank you
04-11-2019 02:15 PM
Find all posts by this user Like Post Quote this message in a reply
redblack
Apprentice
*

Posts: 26
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2017
Reputation: 0



Post: #15
RE: Select horse
no one can help me?
04-24-2019 06:56 PM
Find all posts by this user Like Post Quote this message in a reply
saklitinov
Apprentice
*

Posts: 1
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2019
Reputation: 0



Post: #16
Agen Poker Online Idn
07-29-2019 05:58 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: 1 Guest(s)