Welcome to Darkmmo

Şimdi bize katılın ve tüm özelliklerimize erişim sağlayın. Kayıt olup giriş yaptıktan sonra, yeni konular oluşturabilir, mevcut konulara yanıtlar yazabilir, kendi özel mesajlaşma sisteminize sahip olabilir ve çok daha fazlasını yapabilirsiniz. Ayrıca hızlı ve tamamen ücretsizdir, öyleyse ne bekliyorsunuz?

Çark Sistemi - WHEEL OF FORTUNE

Reklam vermek içinTıklayın!

FarquesFarques doğrulanmış üye.

~ Everything has an end
Admin
Developer
VİP Üye
Katılım
Tem 11, 2024
Mesajlar
256
Tepkime puanı
308
Konum
ANKARA
Dark Puan
3,151
Konuyu Vurgula
Profil Müziği
Kullanıcı Başlığı Stili
Discord
farques6
1215_194844.png

Çalıştırmak için;
Kod:
/event whell_event 1
Oyun içi güncelleme
Kod:
/reload whelllastdcupdate

Çarkı açtığınızda itemler görünmüyorsa aşağıdaki işlemleri yapın;

gamesrc/utils.cpp:

C++:
//include ların altına ekle
#include <boost/algorithm/string/classification.hpp> // Include boost::for is_any_of
#include <boost/algorithm/string/split.hpp>

//bul ve değiştir
void split_argument(const char *argument, std::vector<std::string> & vecArgs)
{
    std::string arg = argument;
    boost::split(vecArgs, arg, boost::is_any_of(" "), boost::token_compress_on);
}

gamesrc/utils.h:

C++:
//bul ve değiştir

extern void split_argument(const char *argument, std::vector<std::string> & vecArgs);

ve bu dosyayı sizdeki ile değiştirin
server src Extern\include\boost\algorithm\string


ui.py eksik olduğu için hata alırsan ekle:
Python:
class MultiTextLine(Window):
    def __del__(self):
        Window.__del__(self)
    def Destroy(self):
        self.textRules = {}
    def __init__(self):
        Window.__init__(self)
        self.Destroy()
        self.AddFlag("not_pick")
        self.textRules["textRange"] = 15
        self.textRules["text"] = ""
        self.textRules["textType"] = ""
        self.textRules["fontName"] = ""
        self.textRules["hexColor"] = 0
        self.textRules["fontColor"] = 0
        self.textRules["outline"] = 0
    def SetTextType(self, textType):
        self.textRules["textType"] = textType
        self.Refresh()
    def SetTextRange(self, textRange):
        self.textRules["textRange"] = textRange
        self.Refresh()
    def SetOutline(self, outline):
        self.textRules["outline"] = outline
        self.Refresh()
    def SetPackedFontColor(self, hexColor):
        self.textRules["hexColor"] = hexColor
        self.Refresh()
    def SetFontColor(self, r, g, b):
        self.textRules["fontColor"] =[r, g, b]
        self.Refresh()
    def SetFontName(self, fontName):
        self.textRules["fontName"] = fontName
        self.Refresh()
    def SetText(self, newText):
        self.textRules["text"] = newText
        self.Refresh()
    def Refresh(self):
        textRules = self.textRules
        if textRules["text"] == "":
            return
        self.children=[]
        outline = textRules["outline"]
        fontColor = textRules["fontColor"]
        hexColor = textRules["hexColor"]
        yRange = textRules["textRange"]
        fontName = textRules["fontName"]
        textTypeList = textRules["textType"].split("?")
        #textType = textRules["textType"].split("#")
        totalTextList = textRules["text"].split("#")

        (xPosition, yPosition) = (0, 0)
        width = 0
        for text in totalTextList:
            childText = TextLine()
            childText.SetParent(self)
            childText.AddFlag("not_pick")
            childText.SetPosition(xPosition, yPosition)
            if fontName != "":
                childText.SetFontName(fontName)
            if hexColor != 0:
                childText.SetPackedFontColor(hexColor)
            if fontColor != 0:
                childText.SetFontColor(*fontColor)
            if outline:
                childText.SetOutline()
            for textType in textTypeList:
                self.AddTextType(childText, textType.split("#"))
            childText.SetText(str(text))
            if childText.GetTextSize()[0] > width:
                width = childText.GetTextSize()[0]
            childText.Show()
            self.children.append(childText)
            yPosition+=yRange

    def AddTextType(self, text,  typeArg):
        if len(typeArg) != 2:
            return
        _typeDict = {
            "vertical": {
                "top":text.SetVerticalAlignTop,
                "bottom":text.SetVerticalAlignBottom,
                "center":text.SetVerticalAlignCenter,
            },
            "horizontal": {
                "left":text.SetHorizontalAlignLeft,
                "right":text.SetHorizontalAlignRight,
                "center":text.SetHorizontalAlignCenter,
            },
            "all_align": {
                "1" : [text.SetHorizontalAlignCenter,text.SetVerticalAlignCenter,text.SetWindowHorizontalAlignCenter,text.SetWindowVerticalAlignCenter],
            },
        }
        (firstToken, secondToken) = tuple(typeArg)
        if _typeDict.has_key(firstToken):
            textType = _typeDict[firstToken][secondToken] if _typeDict[firstToken].has_key(secondToken) else None
            if textType != None:
                if isinstance(textType, list):
                    for rule in textType:
                        rule()
                else:
                    textType()

TOOLTİP HATASI ALIRSAN

constinfo.py:
Python:
# eğer yoksa müsait bir yere ekle

_interface_instance = None
def GetInterfaceInstance():
    global _interface_instance
    return _interface_instance
def SetInterfaceInstance(instance):
    global _interface_instance
    if _interface_instance:
        del _interface_instance
    _interface_instance = instance

game.py:

Python:
#arat
        self.interface = interfaceModule.Interface()
#altına ekle
        #ENABLE_WHEEL_OF_FORTUNE
        constInfo.SetInterfaceInstance(self.interface)
#arat
        self.KillFocus()
#altına ekle
        #ENABLE_WHEEL_OF_FORTUNE
        constInfo.SetInterfaceInstance(None)

marty 5.8 kullanan arkdaşlar için 'm_dwMobVnum' warning çözümü

item_manager.h:
Python:
//arat
class CWhellItemGroup
//tekrar arat
DWORD m_dwMobVnum;

//değiştir
[[maybe_unused]] DWORD m_dwMobVnum;

 
Son düzenleme:
191Konular
523Mesajlar
201Kullanıcılar
hakoSon üye
Üst