Jump to content

npc.get_vid() sin diff


Croqueta

Recommended Posts

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

Link to comment
Share on other sites

  • 8 months later...
  • 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...