Page 1 of 3

New.

Posted: Wed Mar 30, 2016 10:06 pm
by [MOD]Lorena
Propun, să se implementeze "Sistemul afk", după părerea mea este o idee bună , mai ales pentru membrii staff atunci când nu sunt la pc .

Re: New.

Posted: Wed Mar 30, 2016 10:23 pm
by ΣISTIC
PRO.


> Incepe cu constinfo.py din root
la inceput de tot scriem:

Code: Select all

AFK = 0
> Trecem in game.py
facem un import sub import ime:

Code: Select all

import time
> Acum cautam:

Code: Select all

onPressKeyDict[app.DIK_F4]   = lambda : self.__PressQuickSlot(7)
> Si sub el adaugam:

Code: Select all

onPressKeyDict[app.DIK_F6]    = lambda : self.__afk()
> Mergem jos de tot si adaugam:

Code: Select all

# AFk Systen
   def   __afk(self):
      if constInfo.AFK == 0:
         constInfo.AFK = 1
         self.PopupMessage("Ai pornit sistemul afk")
      elif constInfo.AFK == 1:
         constInfo.AFK = 0
         self.PopupMessage("Ai oprit sistemul afk")
# Afk, sfarsit
> Acum cautam:

Code: Select all

def OnRecvWhisper(
> Si sub el adaugam:

Code: Select all

 afk = time.strftime("%H:%M")
      if mode == chat.WHISPER_TYPE_GM:
         self.interface.RegisterGameMasterName(name)
      if line[-25:] == "Im cer scuze sunt AFK":
            net.SendWhisperPacket(name, afk)
            chat.AppendWhisper(mode, name, line)
            self.interface.RecvWhisper(name)
            return
      afk = time.strftime("%H:%M")
      if constInfo.AFK == 1 and line[-5:] != afk and line[-28] != "Im cer scuze sunt AFK": 
      net.SendWhisperPacket(name, "Im cer scuze sunt AFK")
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
      else:   
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
> In intrologin.py cautam:

Code: Select all

def __OpenLoginBoard(self):
> Si sub el adaugam:

Code: Select all

constInfo.AFK = 0
Image

Re: New.

Posted: Thu Mar 31, 2016 12:03 am
by [GM]Lexx
Idee foarte bună!


PRO!

Re: New.

Posted: Thu Mar 31, 2016 12:18 am
by [MOD]Lorena
E prea simplu, mulţumim.. dar mna cine să bage?..
ΣISTIC wrote:PRO.


> Incepe cu constinfo.py din root
la inceput de tot scriem:

Code: Select all

AFK = 0
> Trecem in game.py
facem un import sub import ime:

Code: Select all

import time
> Acum cautam:

Code: Select all

onPressKeyDict[app.DIK_F4]   = lambda : self.__PressQuickSlot(7)
> Si sub el adaugam:

Code: Select all

onPressKeyDict[app.DIK_F6]    = lambda : self.__afk()
> Mergem jos de tot si adaugam:

Code: Select all

# AFk Systen
   def   __afk(self):
      if constInfo.AFK == 0:
         constInfo.AFK = 1
         self.PopupMessage("Ai pornit sistemul afk")
      elif constInfo.AFK == 1:
         constInfo.AFK = 0
         self.PopupMessage("Ai oprit sistemul afk")
# Afk, sfarsit
> Acum cautam:

Code: Select all

def OnRecvWhisper(
> Si sub el adaugam:

Code: Select all

 afk = time.strftime("%H:%M")
      if mode == chat.WHISPER_TYPE_GM:
         self.interface.RegisterGameMasterName(name)
      if line[-25:] == "Im cer scuze sunt AFK":
            net.SendWhisperPacket(name, afk)
            chat.AppendWhisper(mode, name, line)
            self.interface.RecvWhisper(name)
            return
      afk = time.strftime("%H:%M")
      if constInfo.AFK == 1 and line[-5:] != afk and line[-28] != "Im cer scuze sunt AFK": 
      net.SendWhisperPacket(name, "Im cer scuze sunt AFK")
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
      else:   
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
> In intrologin.py cautam:

Code: Select all

def __OpenLoginBoard(self):
> Si sub el adaugam:

Code: Select all

constInfo.AFK = 0
Image

Re: New.

Posted: Thu Mar 31, 2016 12:39 am
by ΣISTIC
[VIP]Lorenna♕ wrote:E prea simplu, mulţumim.. dar mna cine să bage?..
ΣISTIC wrote:PRO.


> Incepe cu constinfo.py din root
la inceput de tot scriem:

Code: Select all

AFK = 0
> Trecem in game.py
facem un import sub import ime:

Code: Select all

import time
> Acum cautam:

Code: Select all

onPressKeyDict[app.DIK_F4]   = lambda : self.__PressQuickSlot(7)
> Si sub el adaugam:

Code: Select all

onPressKeyDict[app.DIK_F6]    = lambda : self.__afk()
> Mergem jos de tot si adaugam:

Code: Select all

# AFk Systen
   def   __afk(self):
      if constInfo.AFK == 0:
         constInfo.AFK = 1
         self.PopupMessage("Ai pornit sistemul afk")
      elif constInfo.AFK == 1:
         constInfo.AFK = 0
         self.PopupMessage("Ai oprit sistemul afk")
# Afk, sfarsit
> Acum cautam:

Code: Select all

def OnRecvWhisper(
> Si sub el adaugam:

Code: Select all

 afk = time.strftime("%H:%M")
      if mode == chat.WHISPER_TYPE_GM:
         self.interface.RegisterGameMasterName(name)
      if line[-25:] == "Im cer scuze sunt AFK":
            net.SendWhisperPacket(name, afk)
            chat.AppendWhisper(mode, name, line)
            self.interface.RecvWhisper(name)
            return
      afk = time.strftime("%H:%M")
      if constInfo.AFK == 1 and line[-5:] != afk and line[-28] != "Im cer scuze sunt AFK": 
      net.SendWhisperPacket(name, "Im cer scuze sunt AFK")
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
      else:   
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
> In intrologin.py cautam:

Code: Select all

def __OpenLoginBoard(self):
> Si sub el adaugam:

Code: Select all

constInfo.AFK = 0
Image
Eu daca imi da cineva clientul decriptat .

Re: New.

Posted: Thu Mar 31, 2016 12:43 am
by [Diva]Diabla
a mai fost popus , dar PRO here too :)

Re: New.

Posted: Fri Apr 01, 2016 4:00 pm
by Bandituu
Pro! !

Re: New.

Posted: Tue Apr 05, 2016 9:12 am
by IDWLTYH
ΣISTIC wrote:
Eu daca imi da cineva clientul decriptat .

Ţi-ai dat mo3 singur, te-ai şi făcut de râs.

Re: New.

Posted: Tue Apr 05, 2016 6:52 pm
by Mădă şmk
> Incepe cu constinfo.py din root
la inceput de tot scriem:

Code: Select all

AFK = 0
> Trecem in game.py
facem un import sub import ime:

Code: Select all

import time
> Acum cautam:

Code: Select all

onPressKeyDict[app.DIK_F4]   = lambda : self.__PressQuickSlot(7)
> Si sub el adaugam:

Code: Select all

onPressKeyDict[app.DIK_F6]    = lambda : self.__afk()
> Mergem jos de tot si adaugam:

Code: Select all

# AFk Systen
   def   __afk(self):
      if constInfo.AFK == 0:
         constInfo.AFK = 1
         self.PopupMessage("Ai pornit sistemul afk")
      elif constInfo.AFK == 1:
         constInfo.AFK = 0
         self.PopupMessage("Ai oprit sistemul afk")
# Afk, sfarsit
> Acum cautam:

Code: Select all

def OnRecvWhisper(
> Si sub el adaugam:

Code: Select all

 afk = time.strftime("%H:%M")
      if mode == chat.WHISPER_TYPE_GM:
         self.interface.RegisterGameMasterName(name)
      if line[-25:] == "Im cer scuze sunt AFK":
            net.SendWhisperPacket(name, afk)
            chat.AppendWhisper(mode, name, line)
            self.interface.RecvWhisper(name)
            return
      afk = time.strftime("%H:%M")
      if constInfo.AFK == 1 and line[-5:] != afk and line[-28] != "Im cer scuze sunt AFK": 
      net.SendWhisperPacket(name, "Im cer scuze sunt AFK")
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
      else:   
      chat.AppendWhisper(mode, name, line)
         self.interface.RecvWhisper(name)
> In intrologin.py cautam:

Code: Select all

def __OpenLoginBoard(self):
> Si sub el adaugam:

Code: Select all

constInfo.AFK = 0
Image
prooooooooooooooooo

Re: New.

Posted: Tue Apr 05, 2016 8:14 pm
by [VIP]Black
PROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO. !