SphereCommunity
Select horse - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Select horse (/Thread-Select-horse)

Pages: 1 2


RE: Select horse - Coruja - 04-10-2019 05:12 AM

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.



RE: Select horse - redblack - 04-11-2019 02:49 AM

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


RE: Select horse - Coruja - 04-11-2019 04:33 AM

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


RE: Select horse - redblack - 04-11-2019 02:15 PM

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


RE: Select horse - redblack - 04-24-2019 06:56 PM

no one can help me?


Agen Poker Online Idn - saklitinov - 07-29-2019 05:58 AM

situs poker idn bonus terbesar
super 10 idn poker
situs poker idn online terpercaya
idn poker terlaris
situs judi poker idn terbaik
poker online server idn play terpercaya
download idn poker laptop
registrasi idn poker
agen poker online idn
poker idn bonus new member terbesar
id pro poker idn
peraturan idn poker
situs poker idn terlama
poker idn bonus besar
idn poker apk terbaru
situs poker idn play terpercaya
idn omaha poker
idn poker vip
poker idn bonus jackpot
permainan poker idn
daftar baru idn poker
poker idn online android
idn poker online apk
poker idn android
download poker idn