*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..
blocare iteme
Deschideti game.py si adaugati la inceput:
Sub player.SetGameWindow(self) din __init__ adaugati:
Cautati __PressNumKey si inlocuiti tot def-ul cu:
Procedati la fel si pentru __PressQuickSlot:
Bun, am rezolvat cu tastele. Acum trebuie sa ne ocupam de inventar.
Deschideti interfacemodule.py din root si adaugati la inceput:
Sub self.bigBoard = None din __init__ adaugati:
Inlocutiti tot def-ul ToggleInventoryWindow(self): cu:

Cod: Selectaţi tot
# BUG_ROUA_EUGEN
import time
# FINAL_BUG_ROUA_EUGENCod: Selectaţi tot
# BUG_ROUA_EUGEN
self.utilizareTaste = time.clock() + 4
# FINAL_BUG_ROUA_EUGENCod: 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
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
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_EUGENCod: Selectaţi tot
# BUG_ROUA_EUGEN
self.utilizareInventar = time.clock() + 4
# FINAL_BUG_ROUA_EUGENCod: 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
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.dragos001 scrie:Deschideti game.py si adaugati la inceput:
Sub player.SetGameWindow(self) din __init__ adaugati:Cod: Selectaţi tot
# BUG_ROUA_EUGEN import time # FINAL_BUG_ROUA_EUGEN
Cautati __PressNumKey si inlocuiti tot def-ul cu:Cod: Selectaţi tot
# BUG_ROUA_EUGEN self.utilizareTaste = time.clock() + 4 # FINAL_BUG_ROUA_EUGEN
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![]()
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_EUGENBun, am rezolvat cu tastele. Acum trebuie sa ne ocupam de inventar.
Deschideti interfacemodule.py din root si adaugati la inceput:
Sub self.bigBoard = None din __init__ adaugati:Cod: Selectaţi tot
# BUG_ROUA_EUGEN import time # FINAL_BUG_ROUA_EUGEN
Inlocutiti tot def-ul ToggleInventoryWindow(self): cu:Cod: Selectaţi tot
# BUG_ROUA_EUGEN self.utilizareInventar = time.clock() + 4 # FINAL_BUG_ROUA_EUGEN
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
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 7 vizitatori

