Jump to content

Recommended Posts

Posted

Hola, muestro esta funcion q escribi, Blackyuko iso la misma funcion pero solo para la game, qiere desir q no se puede usar en otros rev* 'game version'.

 

game.py

 

para poner la funcion tienen q editar la game.py de root en el cliente

 

buscan esto def __ServerCommand_Build(self): y editan esto

			"getinputbegin"			: self.__Inputget1,			"getinputend"			: self.__Inputget2,			"getinput"			: self.__Inputget3,

tienen q mirar a los [tab].

Despues escriben abajo abajo de la game estas funciones

	def __Inputget1(self):		constInfo.INPUT_IGNORE = 1 			def __Inputget2(self):		constInfo.INPUT_IGNORE = 0			def __Inputget3(self): 		net.SendQuestInputStringPacket(str(player.GetTargetVID()))

tambien aqi miren a los [tab]

 

constinfo.py

 

aora abren la constinfo.py  y escriben esto en una parte

INPUT_IGNORE = 0

_______________

 

questlib.lua

 

	function npc.get_vid()            cmdchat("getinputbegin")            local ret = input(cmdchat("getinput"))            cmdchat("getinputend")            return ret        end

asi se usa en una quest

when kill begin	say(npc.get_vid())end

Mucho gusto, Noa

  • 8 months later...
Posted

Oye Pacificador o croqueta. Cuando lo pongo me sale un input. Como si quisiera que le escribiera algo. Creo que tiene que ver con la función: 

net.SendQuestInputStringPacket(str(player.GetTargetVID()))

Hay alguna forma de que no salga ese input?

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.