SphereCommunity
ArrowQuest it does not close - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: ArrowQuest it does not close (/Thread-ArrowQuest-it-does-not-close)



ArrowQuest it does not close - Satvet - 03-21-2020 01:39 AM

Quote:ON=@UserQuestArrowClick
SRC.ARROWQUEST
in this way was working before.
now it doesn't close when I click the arrow



RE: ArrowQuest it does not close - Jhobean - 03-22-2020 04:41 AM

For closing, you must put 0,0,0 coord

SRC.ARROWQUEST 0, 0, 0

You can try my compass

You will need the gump

Code:
[DIALOG d_boussole]
0,0
page 0

gumppic 60 0 5012 //Boussole

dtext 160 245 165 Saisir la
dtext 105 260 165 coordonnées de la destination

dtext 130 280 165 X
dtextentry 150 280 200 20 332 0 <SRC.dtag0.boussolex>
dtext 200 280 165 Y
dtextentry 220 280 200 20 332 1 <SRC.dtag0.boussoley>

button 155 305 1149 1148 1 0 1 //OK


[DIALOG d_boussole button]
ON=0 //fernenture du dialog
SRC.ARROWQUEST 0, 0, 0 //ferme la fleche

ON=1 //actualisation de la flècehs

SRC.tag.boussolex=<ARGTXT[0]>
SRC.tag.boussoley=<ARGTXT[1]>
IF <ISNUM <ARGTXT[0]>>
    IF <ISNUM <ARGTXT[1]>>
        SRC.ARROWQUEST <SRC.dtag0.boussolex>, <SRC.dtag0.boussoley>, 1
    ELSE
    Src.sysmessage @60 Seul les nombres sont acceptes.
    ENDIF
ELSE
Src.sysmessage @60 Seul les nombres sont acceptes.
ENDIF
DIALOG d_boussole



RE: ArrowQuest it does not close - Satvet - 03-22-2020 07:16 AM

I tried "SRC.ARROWQUEST 0,0,0".
sorry my mistake, "(0,0,0 coord)" I should have said I tried. doesn't work that way
How can I use the codes you provided? Can you talk about?



RE: ArrowQuest it does not close - Jhobean - 03-22-2020 10:11 AM

It's a compass, you enter a coord andnthe arrow quest appear. When closing the Compass (closing dialog) the arrow quest dissapear.


RE: ArrowQuest it does not close - Satvet - 03-24-2020 02:44 AM

@Jhobean, thx. I checked again the sample you gave, it works fine now. the last comma must be one
Quote:ON=@UserQuestArrowClick
SRC.ARROWQUEST 0,0,1 //<--
SRC.SYSMESSAGE @,,1 Arrow sign it is closed.



RE: ArrowQuest it does not close - Coruja - 03-24-2020 05:25 AM

clients can show multiple arrows at the same time, and each arrow must have an unique ID (0 ~ 255), so if you open an arrow with ID 1 (ARROWQUEST 1234,1234,1) you must also specify this same ID 1 to close it (ARROWQUEST 0,0,1)