blocare iteme

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
BRTSERGIU2
Utilizator interzis !

Utilizator interzis !
Mesaje: 600
Membru din: 25 Aug 2014, 21:28
Server: Metin2Ro
Regat: Chunjo
Aprecieri: 28  
Mulţumiri: 77  
Medalii

*Problemă: Ce trebuie sa modific in item_proto ca sa nu mai poti pune roua/critici/ape etc in bara de jos ?
Tipologie server: pvp
*Resursă folosită: ---
*ServerFiles utilizat: ---
*Syserr: ---
Poză: ---
*Detalii suplimentare: pentru a evita bugul la ele,am "blocheaza taste" ca sa nu poti folosi butoanele cand intrii dar tot merge..
Avatar utilizator
dragos001
Nivel 4

Nivel 4
Mesaje: 566
Membru din: 01 Mar 2014, 14:08
Aprecieri: 2  
Mulţumiri: 483  
Medalii

Deschideti game.py si adaugati la inceput:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
import time
# FINAL_BUG_ROUA_EUGEN
Sub player.SetGameWindow(self) din __init__ adaugati:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
self.utilizareTaste = time.clock() + 4
# FINAL_BUG_ROUA_EUGEN
Cautati __PressNumKey si inlocuiti tot def-ul cu:

Cod: Selectaţi tot

	# BUG_ROUA_EUGEN_PRO_AREA
	def __PressNumKey(self,num):
		if time.clock() >= self.utilizareTaste:
			if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
				
				if num >= 1 and num <= 9:
					if(chrmgr.IsPossibleEmoticon(-1)):				
						chrmgr.SetEmoticon(-1,int(num)-1)
						net.SendEmoticon(int(num)-1)
			else:
				if num >= 1 and num <= 4:
					self.pressNumber(num-1)
		else:
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi comanda.")
	# FINAL_BUG_ROUA_EUGEN_PRO_AREA
Imagine
Procedati la fel si pentru __PressQuickSlot:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
def __PressQuickSlot(self, localSlotIndex):
if time.clock() >= self.utilizareTaste:
player.RequestUseLocalQuickSlot(localSlotIndex)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi comanda.")
# FINAL_BUG_ROUA_EUGEN
Imagine Bun, am rezolvat cu tastele. Acum trebuie sa ne ocupam de inventar.

Deschideti interfacemodule.py din root si adaugati la inceput:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
import time
# FINAL_BUG_ROUA_EUGEN
Sub self.bigBoard = None din __init__ adaugati:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
self.utilizareInventar = time.clock() + 4
# FINAL_BUG_ROUA_EUGEN
Inlocutiti tot def-ul ToggleInventoryWindow(self): cu:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
def ToggleInventoryWindow(self):
if time.clock() >= self.utilizareInventar:
if FALSE == player.IsObserverMode():
if FALSE == self.wndInventory.IsShow():
self.wndInventory.Show()
self.wndInventory.SetTop()
else:
self.wndInventory.OverOutItem()
self.wndInventory.Close()
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi inventarul.")
# FINAL_BUG_ROUA_EUGEN
Imagine
Ai nevoie de support? Contacteaza-ma!

Contact!
Discord: Dragos001#6927
Afișează semnătura
Avatar utilizator
BRTSERGIU2
Utilizator interzis !

Utilizator interzis !
Mesaje: 600
Membru din: 25 Aug 2014, 21:28
Server: Metin2Ro
Regat: Chunjo
Aprecieri: 28  
Mulţumiri: 77  
Medalii

dragos001 scrie:Deschideti game.py si adaugati la inceput:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
import time
# FINAL_BUG_ROUA_EUGEN
Sub player.SetGameWindow(self) din __init__ adaugati:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
self.utilizareTaste = time.clock() + 4
# FINAL_BUG_ROUA_EUGEN
Cautati __PressNumKey si inlocuiti tot def-ul cu:

Cod: Selectaţi tot

	# BUG_ROUA_EUGEN_PRO_AREA
	def __PressNumKey(self,num):
		if time.clock() >= self.utilizareTaste:
			if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
				
				if num >= 1 and num <= 9:
					if(chrmgr.IsPossibleEmoticon(-1)):				
						chrmgr.SetEmoticon(-1,int(num)-1)
						net.SendEmoticon(int(num)-1)
			else:
				if num >= 1 and num <= 4:
					self.pressNumber(num-1)
		else:
			chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi comanda.")
	# FINAL_BUG_ROUA_EUGEN_PRO_AREA
Imagine
Procedati la fel si pentru __PressQuickSlot:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
def __PressQuickSlot(self, localSlotIndex):
if time.clock() >= self.utilizareTaste:
player.RequestUseLocalQuickSlot(localSlotIndex)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi comanda.")
# FINAL_BUG_ROUA_EUGEN
Imagine Bun, am rezolvat cu tastele. Acum trebuie sa ne ocupam de inventar.

Deschideti interfacemodule.py din root si adaugati la inceput:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
import time
# FINAL_BUG_ROUA_EUGEN
Sub self.bigBoard = None din __init__ adaugati:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
self.utilizareInventar = time.clock() + 4
# FINAL_BUG_ROUA_EUGEN
Inlocutiti tot def-ul ToggleInventoryWindow(self): cu:

Cod: Selectaţi tot

# BUG_ROUA_EUGEN
def ToggleInventoryWindow(self):
if time.clock() >= self.utilizareInventar:
if FALSE == player.IsObserverMode():
if FALSE == self.wndInventory.IsShow():
self.wndInventory.Show()
self.wndInventory.SetTop()
else:
self.wndInventory.OverOutItem()
self.wndInventory.Close()
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi inventarul.")
# FINAL_BUG_ROUA_EUGEN
Imagine
eu cautam, ce trebuie sa modific sa nu mai poti pune roua si alea in bara de jos, pe f2,f3,f4 ca ce mi-ai dat tu am deja.
Avatar utilizator
Athero
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 3936
Membru din: 17 Aug 2017, 00:08
Aprecieri: 559  
Mulţumiri: 7142  
Discord: Copiază ID
Medalii

Subiectul a fost marcat ca rezolvat , T/C.
//retras
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
151
Răspunsuri
2
Vizualizări
371
Răspunsuri
0
Vizualizări
42
Răspunsuri
3
Vizualizări
726

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 66 vizitatori