Karan2offical 1
Karan2offical
Fethi Polat 1
Fethi Polat
ShadowFon 1
ShadowFon
bikral 1
bikral
-TuRKuaZ- 1
-TuRKuaZ-
SLyFeLLowTR 1
SLyFeLLowTR
TGamesZeus 1
TGamesZeus
Best Studio 1
Best Studio
berkmenoo 1
berkmenoo
InfernoShade 1
InfernoShade
Hikaye Ekle

[SABİTLİK] Grup PM Sistemi

  • Konuyu başlatan Konuyu başlatan skytech63
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 24
  • Görüntüleme Görüntüleme 5K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

skytech63

Level 6
TM Üye
Katılım
29 Mar 2014
Konular
102
Mesajlar
1,175
Çözüm
1
Online süresi
3d 10h
Reaksiyon Skoru
149
Altın Konu
0
TM Yaşı
12 Yıl 2 Ay 20 Gün
Başarım Puanı
163
MmoLira
258
DevLira
3
Ticaret - 0%
0   0   0

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

Öncelikle Selamun Aleyküm
tüm müslüman kardeşlerimin mübarek ramazan bayramı mübarek olsun :adsfas :d
uzatmadan sistem sahibi
fatihbab34 tür.

(kimsenin emeğini sahiplenmem,kimsenin emeğinede göz dikmem açık açık kiminse söylerim. tüm üyelerin öyle olmasını isterim.)
emeğe saygı için bana ve fatihe bir teşekkürü borç bilirim.

eabWvz.jpg


Açılır uiwhisper.py importların altına eklenir

PHP:
import uiGroup
     import uiGroupadd




bir boşluk bırakıp bunuda ekleyin

PHP:
   chr.PLAYER_NAME_MAX_LEN = 35

aratın: self.gamemasterMark = GetObject("gamemastermark")

altına ekleyin


PHP:
self.group_chat = GetObject("group_chat")
self.group_add = GetObject("group_add")


aratın : self.gamemasterMark.Hide()


altına ekleyin


PHP:
self.group_add.Hide()


aratılır: self.titleNameEdit.SetReturnEvent(ui.__mem_func__( self.AcceptTarget))

altına eklenir

PHP:
self.group.SetToggleDownEvent(ui.__mem_func__(self.Group))
          self.group_add.SetToggleDownEvent(ui.__mem_func__(self.Group_add))


aratılır : self.minimizeButton.Show()

altına eklenir

PHP:
                      if self.targetName.find("Group:") != -1:
            self.ignoreButton.Hide()
             self.ignoreButton2.Hide()
          self.group_chat.Hide()
           self.group_add.Show()


IgnoreTarget Bloğunun Altına Eklenir

PHP:
def Group(self):
        self.micha = uiGroup.GroupDialog()
        self.group.SetUp()
        self.micha.Show()
        
    def Group_add(self):
        self.micha2 = uiGroupadd.GroupADDDialog()
        constInfo.group_add = self.targetName
        self.group_add.SetUp()
        self.micha2.Show()


aratılır : SendWhisper

bununla değiştirilir

PHP:
def SendWhisper(self):

        text = self.chatLine.GetText()
        textLength = len(text)
        stringy = ""
        x1 = 0
        if textLength > 0:
            if net.IsInsultIn(text):
                chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
                return
            if self.targetName.find("Group:") != -1:
                for y in constInfo.groups[self.targetName]:
                    if x1 == 0:
                        stringy = stringy + y
                        x1 = 1
                    else:
                        stringy = stringy + "," + y
                        
                for x in constInfo.groups[self.targetName]:
                    net.SendWhisperPacket(x, "_pn_groupx1888329||" + str(stringy) + "||" + self.targetName + "||" + player.GetName() + " : " + text)
                constInfo.group_chat_enable = 1
                self.chatLine.SetText("")
                
                chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() + " : " + text)
                constInfo.chat_string =  player.GetName() + " : " + text
                
            else:
                constInfo.group_chat_enable = 0
                net.SendWhisperPacket(self.targetName, text)
                self.chatLine.SetText("")

                chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() + " : " + text)
                constInfo.chat_string =  player.GetName() + " : " + text


uiwhisper.py ile işimiz bitti.

constinfo.py açıp bunu en başlarda biyere ekleyin

PHP:
group_add = ""
group_new_name = ""
group_chat_enable = 0
group_chat = ""
groups = {}




game.py açılır aratılır : def OnRecvWhisper(self, mode, name, line):


Değiştirilir

PHP:
def OnRecvWhisper(self, mode, name, line):
        if mode == chat.WHISPER_TYPE_GM:
            self.interface.RegisterGameMasterName(name)
        pnblock = open("pn.dll", "r")
        pnauslese = pnblock.read()
        pnblock.close()
        if pnauslese.find(name + "\n") !=-1 and name[0] != "[" and line.find("72nasd31?_Get") == -1 and line.find("72nasd31?_Set") == -1:
            if name.find("[") !=-1:
                chat.AppendWhisper(mode, name, line)
                self.interface.RecvWhisper(name)
            else:    
                chat.AppendChat(chat.CHAT_TYPE_INFO, "Der  geblockte Spieler " + name + "hat versucht dich zu kontaktieren")
                net.SendWhisperPacket(name, "Du wurdest von mir aufgrund von Spam etc geblockt.")    
                return    
        elif line.find("72nasd31?_Get") != -1:
            alignment1, grade1 = player.GetAlignmentData()
            net.SendWhisperPacket(name, "72nasd31?_Set//" + str(player.GetStatus(player.SP)) + "//" + str(player.GetStatus(player.MAX_SP)) + "//" + str(player.GetStatus(player.HP)) + "//" + str(player.GetStatus(player.MAX_HP)) + "//" + str(player.GetStatus(player.EXP)) + "//" + str(player.GetStatus(player.NEXT_EXP)) + "//" + str(player.GetStatus(player.LEVEL)) + "//" + str(net.GetMainActorRace()) + "//" + str(alignment1) + "//" + str(grade1))
        elif line.find("72nasd31?_Set") != -1:
            x = line.split("//")
            constInfo.other_exp = x[5]
            constInfo.other_exp_next = x[6]
            constInfo.other_hp = x[3]
            constInfo.other_hp_max = x[4]
            constInfo.other_mp = x[1]
            constInfo.other_mp_max = x[2]
            constInfo.other_race = x[8]
            constInfo.other_level = x[7]
            constInfo.other_rank = x[9]
            constInfo.other_grade = x[10]
        elif line.find("_pn_groupx1888329") !=-1:
            x = line.split("||")
            constInfo.groups[x[2]] = x[1].split(",")
            chat.AppendWhisper(mode, x[2], x[3])
            self.interface.RecvWhisper(x[2])
            if x[3].find("Group has been created!") != -1:
                net.SendWhisperPacket(x[1].split(",")[len(x[1])-2], player.GetName() + " joined the Group!")
        else:        
            chat.AppendWhisper(mode, name, line)
            self.interface.RecvWhisper(name)



Uiscript packı açılır
whisperdialog.py açılır

Eklenir
PHP:
{
                    "name" : "group_chat",
                    "type" : "toggle_button",

                    "x" : 148,
                    "y" : 10,

                    "text" : "Grup PM",

                    "default_image" : "d:/ymir work/ui/public/small_thin_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/small_thin_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/small_thin_button_03.sub",
                },
                {
                    "name" : "group_add",
                    "type" : "toggle_button",

                    "x" : 148,
                    "y" : 10,

                    "text" : "Grup PM",

                    "default_image" : "d:/ymir work/ui/public/small_thin_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/small_thin_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/small_thin_button_03.sub",
                },


Son Olarak Vereceğim Packta Roota Atılacak Dosyaları Roota Atarsınız.


Şunu Belirtmek İsterim Buradan Yaparsanız Tab Ayarları Gerektirir.
Onun İçin Size Vereceğim Rardan Anlatım.py Den Yapın.

Vereceğim Rar Dosyasında Gereken Herşey Açık Ve Net Vardır.....

PHP:
http://dosya.co/v5h25t3t3zgt/GrupPM.rar.html



 
Son düzenleme:
saol kardeşim
 
TÜRKÇE olarak paylaşım yapsaydın İNGİLİZCE'den anlamayacak kadar üşengeç insanlar var.:o
 
Konuşmanı düzelt, rapor edildi.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst