antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
AlphaMaster

Teleport System

Question

Ola pessoal um Bom dia xD então eu estou com pequeno problema não sei aonde estou errando eu segui um tuto de como instalar o system eu configurei o botão K para aparecer o mapa mais não abre !

 

 

def __PressKKey(self):

if app.Ispressed(app.DISK_LCONTROL) or app.IsPressed(app.DISK_RCONTROL):
if player.IsMountingHorse():
net.SendChatPacket("/unmount")
else:
self.teleport.Open()

 

 esse é como deixei !

 

se alguém puder me ajudar ficarei grato !

:+1:

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0
def __PressKKey(self):
	if app.IsPressed(app.DISK_LCONTROL) or app.IsPressed(app.DISK_RCONTROL):
		if player.IsMountingHorse():
			net.SendChatPacket("/unmount")
		else:
			self.teleport.Open() 

Este só abre o teleport se estiveres a clicar em alguma das teclas Control e se não estiveres no cavalo.

def __PressKKey(self):
	if app.IsPressed(app.DISK_LCONTROL) or app.IsPressed(app.DISK_RCONTROL):
		if player.IsMountingHorse():
			net.SendChatPacket("/unmount")
	else:
		self.teleport.Open()

Este só abre o teleport se só clicares na tecla K.

 

 

Posso estar errado... mas se for juntar o código todo é isso que me faz sentido.

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega
  • 0

essa parte do botão eu resolvi 

 

eu implementei isso >>

 

 

onPressKeyDict[app.DIK_K] = lambda : self.teleport.Open()

 

mais quando aparece o map in game ele não se tele porta ai verifiquei na Quest e quando vou instalar ela diz que não tem FUNCTION warp_kords() eu adiciono em quest_functions e mesmo assim me da o mesmo erro ao instalar a Quest !

Share this post


Link to post
Share on other sites
  • 0

AlphaMaster, on 18 Aug 2016 - 16:42, said:

essa parte do botão eu resolvi

eu implementei isso >>

mais quando aparece o map in game ele não se tele porta ai verifiquei na Quest e quando vou instalar ela diz que não tem FUNCTION warp_kords() eu adiciono em quest_functions e mesmo assim me da o mesmo erro ao instalar a Quest !

posta o site onde foste buscar o systema, ou Então posta o sistema todo, para ver se a gente consegue te ajudar

Share this post


Link to post
Share on other sites
  • 0

eu não vi essa linha no systema dele

 

onPressKeyDict[app.DIK_K] = lambda : self.teleport.Open()

só tem isso

 

def __PressJKey(self):
if app.Ispressed(app.DISK_LCONTROL) or app.IsPressed(app.DISK_RCONTROL):
if player.IsMountingHorse():
net.SendChatPacket("/unmount")
else:
self.teleport.Open()
 
eu mudei PressJKey > para PressKKey isso opcional de cada um !
 
e tive que implementa o comando que você citou acima!

Share this post


Link to post
Share on other sites
  • 0

 

só tem isso

 

def __PressJKey(self):
if app.Ispressed(app.DISK_LCONTROL) or app.IsPressed(app.DISK_RCONTROL):
if player.IsMountingHorse():
net.SendChatPacket("/unmount")
else:
self.teleport.Open()
 
eu mudei PressJKey > para PressKKey isso opcional de cada um !
 
e tive que implementa o comando que você citou acima!

 

onPressKeyDict[app.DIK_K] = lambda : self.teleport.Open()

 

faz

 

onPressKeyDict[app.DIK_K] = lambda : self.teleport.show()

Share this post


Link to post
Share on other sites
  • 0

onPressKeyDict[app.DIK_K] = lambda : self.teleport.Open()

 

faz

 

onPressKeyDict[app.DIK_K] = lambda : self.teleport.show()

mais essa mudança que você citou ele vai alterar ta teleporte do player ?

 

porque minha duvida é que eu abro mapa tudo certinho mais quando clico no mapa que eu quero ele não teleporta 

Share this post


Link to post
Share on other sites
  • 0

Por favor, ao tentar te teleportares, mete aqui o syserr do cliente e do canal que estas a tentar fazer o teleporte.

 

 

Cumprimentos.

Share this post


Link to post
Share on other sites
  • 0

SSpIXcZ.jpg

 

 

sysser do client

 

 

0819 11:57:25434 :: Unknown Server Command SetTeamOffline  | SetTeamOffline

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this