BBot - The best bot of the world
Abrir porta - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Abrir porta (/thread-5380.html)



Abrir porta - Script Maker - 11-15-2012

Com abro essa porta?
[Image: YLi1B.jpg]

Tentei usar este macro de abrir porta mas nao funfa
http://wiki.bmega.net/doku.php?id=samples#examples

Code:
Macro (32359 32172 7:500 {Open Door Without Key} X:=Self.X() Y:=Self.Y() Z:=Self.Z() Map.Use(1629, !X!, !Y!, !Z!, 2))

O id da porta ta certo... eu só não sie oque seria o numero 2 no final.
Seria a direção da porta?


RE: Abrir porta - Dexter - 11-15-2012

É a distancia entre teu char e a porta em sqm's. Smile


RE: Abrir porta - Script Maker - 11-15-2012

(11-15-2012, 08:45 PM)Dexter Wrote: É a distancia entre teu char e a porta em sqm's. Smile
etão é por isos que nao ta abrindo kk
ele tem um fixedpoint bem nakela sqml ond eo char ta... vlw
vou testar aqui


RE: Abrir porta - Script Maker - 11-16-2012

Continua nao funfando ;x o que sera que ta de errado ;x
alguem pode corrigir pra mim?

to tentando isso
MapTool (32359 32172 7:Target: 1629 Use: 0 Pos: 32359 32172 7)
qual seria a pos da porta? sendo que a pos do meu char é 32359 32172 7


RE: Abrir porta - Kimoszin - 11-16-2012

Primeiro, para usar os macros no Cave Bot, não pode ter delay, ou seja, tem que ser 0:
Code:
0 {Open Door Without Key} X:=Self.X() Y:=Self.Y() Z:=Self.Z() Map.Use(1629, !X!, !Y!, !Z!, 2)

Segundo, da pra usar MapTool:
Code:
MapTool (32359 32172 7:Target: 1629 Use: 0 Pos: 32358 32172 7)