Register for your free account! | Forgot your password?

You last visited: Today at 18:32

  • Please register to post and access all features, it's quick, easy and FREE!

 

Energiesystem Problem

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2014
Posts: 165
Received Thanks: 6
Energiesystem Problem

Hallo User.

ich bin heute schon lange daran am versuchen, das energy system einzufügen. Ohne erfolg! Nun wollte ich in diesem Forum nachfragen, was ich falsch gemacht habe oder was ich vergessen habe. Ich habe mir die mühe gemacht und alles, was ich eingefügt/ geändert habe hier afzulisten:

Als erstes die Client syserr, obwohl nicht alles von dem energie system ist:

PHP Code:
0216 14:09:06510 ::  CItemManager::LoadItemList(locale/de/item_list.txt) - StrangeLine in 6677

0216 14
:09:06530 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=137) - Strange Skill Need Weapon(CLAW)
0216 14:09:06530 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=139) - Strange Skill Need Weapon(CLAW)
0216 14:09:06945 :: CEffectManager::RegisterEffect LoadScript(d:/ymir work/effect/hit/percent_damage1.mseError
0216 14
:09:06945 :: CInstanceBase::RegisterEffect(eEftType=264c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mseisCache=1) - Error
0216 14
:09:06945 :: CEffectManager::RegisterEffect LoadScript(d:/ymir work/effect/hit/percent_damage2.mseError
0216 14
:09:06945 :: CInstanceBase::RegisterEffect(eEftType=265c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage2.mseisCache=1) - Error
0216 14
:09:06945 :: CEffectManager::RegisterEffect LoadScript(d:/ymir work/effect/hit/percent_damage3.mseError
0216 14
:09:06945 :: CInstanceBase::RegisterEffect(eEftType=266c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage3.mseisCache=1) - Error
0216 14
:09:07113 :: GRANNYr:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x80000015which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
0216 14:09:07337 :: invalid idx 0
0216 14:09:12791 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0216 14:09:13622 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn'
t match this version of Granny (0x80000010).  Automatic conversion will be attempted.
0216 14:09:14196 :: CEffectManager::RegisterEffect LoadScript(D:/ymir work/pc/common/effect/armor/armor-4-2-1.mseError
0216 14
:09:14196 :: CInstanceBase::RegisterEffect(eEftType=248c_szEftAttachBone=Bip01c_szEftName=D:/ymir work/pc/common/effect/armor/armor-4-2-1.mseisCache=0) - Error
0216 14
:09:14196 :: CEffectManager::RegisterEffect LoadScript(D:/ymir work/pc/common/effect/armor/armor-4-2-2.mseError
0216 14
:09:14196 :: CInstanceBase::RegisterEffect(eEftType=249c_szEftAttachBone=Bip01c_szEftName=D:/ymir work/pc/common/effect/armor/armor-4-2-2.mseisCache=0) - Error
0216 14
:09:17044 :: CPythonPlayer::SetItemData(dwSlotIndex=15itemIndex=459) - Failed to item data

0216 14
:09:17044 :: CPythonPlayer::SetItemData(dwSlotIndex=13itemIndex=449) - Failed to item data 

Jetzt habe ich als erstes die constinfo.py geöffnet und folgendes hinzugefügt:

PHP Code:
ENERGY 0
ENERGY_END_TIME 
0
ENERGY_TYPE 
0
ENABLE_ENERGY_SYSTEM 

Dan habe ich in der Game.py folgene zeile unter
"def __ServerCommand_Build" beigefügt:

PHP Code:
"energysystem"            self.__energysystem

und am ende der Game.py noch folgendes eingefügt:

PHP Code:
    def __energysystem(selfvalue):
        
import constinfo
        constinfo
.ENERGY_TYPE int(value[:value.find("|")])
        
constinfo.ENERGY int(value[value.find("|") + 1:value.find("#")])
        
constinfo.ENERGY_END_TIME int(value[value.find("#") + 1:]) 
jetzt bin ich in Locale_de gegangen und hab in "locale/de/ui/" energybar.py eingefügt. In dieser steht:

PHP Code:
import uiScriptLocale

ROOT 
"d:/ymir work/ui/game/"

Y_ADD_POSITION 0
window 
= {
    
"name" "EnergyBar",

    
"x" 0,
    
"y" SCREEN_HEIGHT 55,

    
"width" 50,
    
"height" 10,

    
"children" :
    (
        
# ±â·Â
        
{
            
"name" "EnergyGauge_Board",
            
"type" "image",

            
"x" 0,
            
"y" : -10 Y_ADD_POSITION,

            
"image" "D:/Ymir Work/UI/Pattern/EnergyGauge/energygauge_base.tga",

            
"children" :
            (
                {
                    
"name" "EnergyGauge_Empty",
                    
"type" "expanded_image",

                    
"x" 5,
                    
"y" 8,

                    
"image" "D:/Ymir Work/UI/Pattern/EnergyGauge/gauge_empty.tga",
                },
                {
                    
"name" "EnergyGauge_Hungry",
                    
"type" "expanded_image",

                    
"x" 5,
                    
"y" 8,

                    
"image" "D:/Ymir Work/UI/Pattern/EnergyGauge/gauge_hungry.tga",
                },
                {
                    
"name" "EnergyGauge_Full",
                    
"type" "expanded_image",

                    
"x" 5,
                    
"y" 8,

                    
"image" "D:/Ymir Work/UI/Pattern/EnergyGauge/gauge_full.tga",
                },
            ),
        },
        {
            
"name" "EnergyGauge_ToolTip",

            
"x" 0,
            
"y" 0,
            
            
"width"  50,
            
"height" 10,        
            
"type" "window",
        },        
    ),

Die Bilder von dem System habe ich auch in "ETC/ymir work/ui/pattern/" reinkopiert.

Da ich das system über der münze nicht sehe zeige ich noch meine uitaskbar.py

PHP Code:
import ui
import net
import item
import skill
import locale
import wndMgr
import player
import constInfo
import mouseModule
import uiScriptLocale

MOUSE_SETTINGS 
= [00]

def InitMouseButtonSettings(leftright):
    global 
MOUSE_SETTINGS
    MOUSE_SETTINGS 
= [leftright]

def SetMouseButtonSetting(direvent):
    global 
MOUSE_SETTINGS
    MOUSE_SETTINGS
[dir] = event
    
def GetMouseButtonSettings
():
    global 
MOUSE_SETTINGS
    
return MOUSE_SETTINGS

def SaveMouseButtonSettings
():
    global 
MOUSE_SETTINGS
    open
("mouse.cfg""w").write("%s\t%s" tuple(MOUSE_SETTINGS))

def LoadMouseButtonSettings():
    global 
MOUSE_SETTINGS
    tokens 
open("mouse.cfg""r").read().split()

    if 
len(tokens) != 2:
        
raise RuntimeError"MOUSE_SETTINGS_FILE_ERROR"

    
MOUSE_SETTINGS[0] = int(tokens[0])
    
MOUSE_SETTINGS[1] = int(tokens[1])

class 
TaskBar(ui.ScriptWindow):

    
BUTTON_CHARACTER 0
    BUTTON_INVENTORY 
1
    BUTTON_MESSENGER 
2
    BUTTON_SYSTEM 
3
    BUTTON_CHAT 
4

    MOUSE_BUTTON_LEFT 
0
    MOUSE_BUTTON_RIGHT 
1
    NONE 
255

    EVENT_MOVE 
0
    EVENT_ATTACK 
1
    EVENT_MOVE_AND_ATTACK 
2
    EVENT_CAMERA 
3
    EVENT_SKILL 
4
    EVENT_AUTO 
5

    GAUGE_WIDTH 
95
    GAUGE_HEIGHT 
13

    QUICKPAGE_NUMBER_FILENAME 
= [
        
"d:/ymir work/ui/game/taskbar/1.sub",
        
"d:/ymir work/ui/game/taskbar/2.sub",
        
"d:/ymir work/ui/game/taskbar/3.sub",
        
"d:/ymir work/ui/game/taskbar/4.sub",
    ]

    class 
TextToolTip(ui.Window):
        
def __init__(self):
            
ui.Window.__init__(self"TOP_MOST")

            
textLine ui.TextLine()
            
textLine.SetParent(self)
            
textLine.SetHorizontalAlignCenter()
            
textLine.SetOutline()
            
textLine.Show()
            
self.textLine textLine

        def __del__
(self):
            
ui.Window.__del__(self)

        
def SetText(selftext):
            
self.textLine.SetText(text)

        
def OnRender(self):
            (
mouseXmouseY) = wndMgr.GetMousePosition()
            
self.textLine.SetPosition(mouseXmouseY 15)

    class 
SkillButton(ui.SlotWindow):

        
def __init__(self):
            
ui.SlotWindow.__init__(self)

            
self.event 0
            self
.arg 0

            self
.slotIndex 0
            self
.skillIndex 0

            slotIndex 
0
            wndMgr
.SetSlotBaseImage(self.hWnd"d:/ymir work/ui/public/slot_base.sub"1.01.01.01.0)
            
wndMgr.AppendSlot(self.hWndslotIndex003232)
            
self.SetCoverButton(slotIndex,    "d:/ymir work/ui/public/slot_cover_button_01.sub",\
                                            
"d:/ymir work/ui/public/slot_cover_button_02.sub",\
                                            
"d:/ymir work/ui/public/slot_cover_button_03.sub",\
                                            
"d:/ymir work/ui/public/slot_cover_button_04.sub"TRUEFALSE)
            
self.SetSize(3232)

        
def __del__(self):
            
ui.SlotWindow.__del__(self)

        
def Destroy(self):
            if 
!= self.tooltipSkill:
                
self.tooltipSkill.HideToolTip()

        
def RefreshSkill(self):
            if 
!= self.slotIndex:
                
self.SetSkill(self.slotIndex)

        
def SetSkillToolTip(selftooltip):
            
self.tooltipSkill tooltip

        def SetSkill
(selfskillSlotNumber):
            
slotNumber 0
            skillIndex 
player.GetSkillIndex(skillSlotNumber)
            
skillGrade player.GetSkillGrade(skillSlotNumber)
            
skillLevel player.GetSkillLevel(skillSlotNumber)
            
skillType skill.GetSkillType(skillIndex)

            
self.skillIndex skillIndex
            
if == self.skillIndex:
                
self.ClearSlot(slotNumber)
                return

            
self.slotIndex skillSlotNumber

            self
.SetSkillSlotNew(slotNumberskillIndexskillGradeskillLevel)
            
self.SetSlotCountNew(slotNumberskillGradeskillLevel)

            
## NOTE : CoolTime 체크
            
if player.IsSkillCoolTime(skillSlotNumber):
                (
coolTimeelapsedTime) = player.GetSkillCoolTime(skillSlotNumber)
                
self.SetSlotCoolTime(slotNumbercoolTimeelapsedTime)

            
## NOTE : Activate 되어 있다면 아이콘도 업데이트
            
if player.IsSkillActive(skillSlotNumber):
                
self.ActivateSlot(slotNumber)

        
def SetSkillEvent(selfeventarg=0):
            
self.event event
            self
.arg arg

        def GetSkillIndex
(self):
            return 
self.skillIndex

        def GetSlotIndex
(self):
            return 
self.slotIndex

        def Activate
(selfcoolTime):
            
self.SetSlotCoolTime(0coolTime)

            if 
skill.IsToggleSkill(self.skillIndex):
                
self.ActivateSlot(0)

        
def Deactivate(self):
            if 
skill.IsToggleSkill(self.skillIndex):
                
self.DeactivateSlot(0)

        
def OnOverInItem(selfdummy):
            
self.tooltipSkill.SetSkill(self.skillIndex)

        
def OnOverOutItem(self):
            
self.tooltipSkill.HideToolTip()

        
def OnSelectItemSlot(selfdummy):
            if 
!= self.event:
                if 
!= self.arg:
                    
self.event(self.arg)
                else:
                    
self.event()

    
def __init__(self):
        
#print "NEW TASKBAR  ----------------------------------------------------------------------------"

        
ui.ScriptWindow.__init__(self"TOP_MOST")

        
self.quickPageNumImageBox None
        self
.tooltipItem 0
        self
.tooltipSkill 0
        self
.mouseModeButtonList = [ ui.ScriptWindow("TOP_MOST"), ui.ScriptWindow("TOP_MOST") ]

        
self.tooltipHP self.TextToolTip()
        
self.tooltipHP.Show()
        
self.tooltipSP self.TextToolTip()
        
self.tooltipSP.Show()
        
self.tooltipST self.TextToolTip()
        
self.tooltipST.Show()
        
self.tooltipEXP self.TextToolTip()
        
self.tooltipEXP.Show()

        
self.skillCategoryNameList = [ "ACTIVE_1""ACTIVE_2""ACTIVE_3""SUPPORT", ]
        
self.skillPageStartSlotIndexDict = {
            
"ACTIVE_1" 1
            
"ACTIVE_2" 21
            
"ACTIVE_3" 41
            
"SUPPORT" 101
        }

        
self.selectSkillButtonList = []

    
def __del__(self):
        
#print "---------------------------------------------------------------------------- DELETE TASKBAR"
        
ui.ScriptWindow.__del__(self)

    
def LoadWindow(self):
        try:
            
pyScrLoader ui.PythonScriptLoader()

            if 
constInfo.IN_GAME_SHOP_ENABLE:
                
pyScrLoader.LoadScriptFile(selfuiScriptLocale.LOCALE_UISCRIPT_PATH "TaskBar.py")
            else:
                
pyScrLoader.LoadScriptFile(self"UIScript/TaskBar.py")
            
pyScrLoader.LoadScriptFile(self.mouseModeButtonList[self.MOUSE_BUTTON_LEFT], "UIScript/MouseButtonWindow.py")
            
pyScrLoader.LoadScriptFile(self.mouseModeButtonList[self.MOUSE_BUTTON_RIGHT], "UIScript/RightMouseButtonWindow.py")
        
except:
            
import exception
            exception
.Abort("TaskBar.LoadWindow.LoadObject")

        
self.quickslot = []
        
self.quickslot.append(self.GetChild("quick_slot_1"))
        
self.quickslot.append(self.GetChild("quick_slot_2"))
        for 
slot in self.quickslot:
            
slot.SetSlotStyle(wndMgr.SLOT_STYLE_NONE)
            
slot.SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptyQuickSlot))
            
slot.SetSelectItemSlotEvent(ui.__mem_func__(self.SelectItemQuickSlot))
            
slot.SetUnselectItemSlotEvent(ui.__mem_func__(self.UnselectItemQuickSlot))
            
slot.SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
            
slot.SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))

        
toggleButtonDict = {}
        
toggleButtonDict[TaskBar.BUTTON_CHARACTER]=self.GetChild("CharacterButton")
        
toggleButtonDict[TaskBar.BUTTON_INVENTORY]=self.GetChild("InventoryButton")
        
toggleButtonDict[TaskBar.BUTTON_MESSENGER]=self.GetChild("MessengerButton")
        
toggleButtonDict[TaskBar.BUTTON_SYSTEM]=self.GetChild("SystemButton")
        
toggleButtonDict[TaskBar.BUTTON_CHAT]=self.GetChild("ChatButton")

        if 
locale.IsARABIC():
            
systemButton toggleButtonDict[TaskBar.BUTTON_SYSTEM]
            if 
systemButton.ToolTipText:
                
txty systemButton.ToolTipText.GetLocalPosition()
                
tw systemButton.ToolTipText.GetWidth() 
                
systemButton.ToolTipText.SetPosition(-tw/2ty)


        
expGauge = []
        
expGauge.append(self.GetChild("EXPGauge_01"))
        
expGauge.append(self.GetChild("EXPGauge_02"))
        
expGauge.append(self.GetChild("EXPGauge_03"))
        
expGauge.append(self.GetChild("EXPGauge_04"))

        for 
exp in expGauge:
            
exp.SetSize(00)

        
self.quickPageNumImageBox=self.GetChild("QuickPageNumber")

        
self.GetChild("QuickPageUpButton").SetEvent(ui.__mem_func__(self.__OnClickQuickPageUpButton))
        
self.GetChild("QuickPageDownButton").SetEvent(ui.__mem_func__(self.__OnClickQuickPageDownButton))

        
mouseLeftButtonModeButton self.GetChild("LeftMouseButton")
        
mouseRightButtonModeButton self.GetChild("RightMouseButton")
        
mouseLeftButtonModeButton.SetEvent(ui.__mem_func__(self.ToggleLeftMouseButtonModeWindow))        
        
mouseRightButtonModeButton.SetEvent(ui.__mem_func__(self.ToggleRightMouseButtonModeWindow))
        
self.curMouseModeButton = [ mouseLeftButtonModeButtonmouseRightButtonModeButton ]

        (
xLocalRightyLocalRight) = mouseRightButtonModeButton.GetLocalPosition()
        
self.curSkillButton self.SkillButton()
        
self.curSkillButton.SetParent(self)
        
self.curSkillButton.SetPosition(xLocalRight3)
        
self.curSkillButton.SetSkillEvent(ui.__mem_func__(self.ToggleRightMouseButtonModeWindow))
        
self.curSkillButton.Hide()

        (
xLeftyLeft) = mouseLeftButtonModeButton.GetGlobalPosition()
        (
xRightyRight) = mouseRightButtonModeButton.GetGlobalPosition()
        
leftModeButtonList self.mouseModeButtonList[self.MOUSE_BUTTON_LEFT]
        
leftModeButtonList.SetPosition(xLeftyLeft leftModeButtonList.GetHeight()-5)
        
rightModeButtonList self.mouseModeButtonList[self.MOUSE_BUTTON_RIGHT]
        
rightModeButtonList.SetPosition(xRight rightModeButtonList.GetWidth() + 32yRight rightModeButtonList.GetHeight()-5)
        
rightModeButtonList.GetChild("button_skill").SetEvent(lambda adir=self.MOUSE_BUTTON_RIGHTaevent=self.EVENT_SKILLself.SelectMouseButtonEvent(adiraevent))
        
rightModeButtonList.GetChild("button_skill").Hide()

        
mouseImage ui.ImageBox("TOP_MOST")
        
mouseImage.AddFlag("float")
        
mouseImage.LoadImage("d:/ymir work/ui/game/taskbar/mouse_button_camera_01.sub")
        
mouseImage.SetPosition(xRightwndMgr.GetScreenHeight() - 34)
        
mouseImage.Hide()
        
self.mouseImage mouseImage

        dir 
self.MOUSE_BUTTON_LEFT
        wnd 
self.mouseModeButtonList[dir]
        
wnd.GetChild("button_move_and_attack").SetEvent(lambda adir=diraevent=self.EVENT_MOVE_AND_ATTACKself.SelectMouseButtonEvent(adiraevent))
        
wnd.GetChild("button_auto_attack").SetEvent(lambda adir=diraevent=self.EVENT_AUTOself.SelectMouseButtonEvent(adiraevent))
        
wnd.GetChild("button_camera").SetEvent(lambda adir=diraevent=self.EVENT_CAMERAself.SelectMouseButtonEvent(adiraevent))

        
dir self.MOUSE_BUTTON_RIGHT
        wnd 
self.mouseModeButtonList[dir]
        
wnd.GetChild("button_move_and_attack").SetEvent(lambda adir=diraevent=self.EVENT_MOVE_AND_ATTACKself.SelectMouseButtonEvent(adiraevent))
        
wnd.GetChild("button_camera").SetEvent(lambda adir=diraevent=self.EVENT_CAMERAself.SelectMouseButtonEvent(adiraevent))

        
self.toggleButtonDict toggleButtonDict
        self
.expGauge expGauge

        
if constInfo.IN_GAME_SHOP_ENABLE:
            
self.rampageGauge1  self.GetChild("RampageGauge")
            
self.rampageGauge1.OnMouseOverIn ui.__mem_func__(self.__RampageGauge_OverIn)
            
self.rampageGauge2 self.GetChild("RampageGauge2")
            
self.rampageGauge2.OnMouseOverOut ui.__mem_func__(self.__RampageGauge_OverOut)
            
self.rampageGauge2.OnMouseLeftButtonUp ui.__mem_func__(self.__RampageGauge_Click)
            
self.__RampageGauge_OverOut()

        
self.hpGauge self.GetChild("HPGauge")
        
self.mpGauge self.GetChild("SPGauge")
        
self.stGauge self.GetChild("STGauge")
        
self.hpRecoveryGaugeBar self.GetChild("HPRecoveryGaugeBar")
        
self.spRecoveryGaugeBar self.GetChild("SPRecoveryGaugeBar")

        
self.hpGaugeBoard=self.GetChild("HPGauge_Board")
        
self.mpGaugeBoard=self.GetChild("SPGauge_Board")
        
self.stGaugeBoard=self.GetChild("STGauge_Board")
        
self.expGaugeBoard=self.GetChild("EXP_Gauge_Board")

        
self.__LoadMouseSettings()
        
self.RefreshStatus()
        
self.RefreshQuickSlot()

    
def __RampageGauge_OverIn(self):
        print 
"rampage_over_in"
        
self.rampageGauge2.Show()
        
self.rampageGauge1.Hide()

    
def __RampageGauge_OverOut(self):
        print 
"rampage_over_out"
        
self.rampageGauge2.Hide()
        
self.rampageGauge1.Show()

    
def __RampageGauge_Click(self):
        print 
"rampage_up"
        
net.SendChatPacket("/in_game_mall")

    
def __LoadMouseSettings(self):
        try:
            
LoadMouseButtonSettings()
            (
mouseLeftButtonEventmouseRightButtonEvent) = GetMouseButtonSettings()
            if 
not self.__IsInSafeMouseButtonSettingRange(mouseLeftButtonEvent) or not self.__IsInSafeMouseButtonSettingRange(mouseRightButtonEvent):
                    
raise RuntimeError"INVALID_MOUSE_BUTTON_SETTINGS"
        
except:
            
InitMouseButtonSettings(self.EVENT_MOVE_AND_ATTACKself.EVENT_CAMERA)
            (
mouseLeftButtonEventmouseRightButtonEvent) = GetMouseButtonSettings()

        try:
            
self.SelectMouseButtonEvent(self.MOUSE_BUTTON_LEFT,    mouseLeftButtonEvent)
            
self.SelectMouseButtonEvent(self.MOUSE_BUTTON_RIGHT,    mouseRightButtonEvent)
        
except:
            
InitMouseButtonSettings(self.EVENT_MOVE_AND_ATTACKself.EVENT_CAMERA)
            (
mouseLeftButtonEventmouseRightButtonEvent) = GetMouseButtonSettings()

            
self.SelectMouseButtonEvent(self.MOUSE_BUTTON_LEFT,    mouseLeftButtonEvent)
            
self.SelectMouseButtonEvent(self.MOUSE_BUTTON_RIGHT,    mouseRightButtonEvent)



    
def __IsInSafeMouseButtonSettingRange(selfarg):
        return 
arg >= self.EVENT_MOVE and arg <= self.EVENT_AUTO

    def Destroy
(self):        
        
SaveMouseButtonSettings()

        
self.ClearDictionary()
        
self.mouseModeButtonList[0].ClearDictionary()
        
self.mouseModeButtonList[1].ClearDictionary()
        
self.mouseModeButtonList 0
        self
.curMouseModeButton 0
        self
.curSkillButton 0
        self
.selectSkillButtonList 0


        self
.expGauge None
        self
.hpGauge None
        self
.mpGauge None
        self
.stGauge None
        self
.hpRecoveryGaugeBar None
        self
.spRecoveryGaugeBar None

        self
.tooltipItem 0
        self
.tooltipSkill 0
        self
.quickslot 0
        self
.toggleButtonDict 0

        self
.hpGaugeBoard 0
        self
.mpGaugeBoard 0
        self
.stGaugeBoard 0
        self
.expGaugeBoard 0

        self
.tooltipHP 0
        self
.tooltipSP 0
        self
.tooltipST 0
        self
.tooltipEXP 0

        self
.mouseImage None

    def __OnClickQuickPageUpButton
(self):
        
player.SetQuickPage(player.GetQuickPage()-1)

    
def __OnClickQuickPageDownButton(self):
        
player.SetQuickPage(player.GetQuickPage()+1)

    
def SetToggleButtonEvent(selfeButtonkEventFunc):
        
self.toggleButtonDict[eButton].SetEvent(kEventFunc)

    
def SetItemToolTip(selftooltipItem):
        
self.tooltipItem tooltipItem

    def SetSkillToolTip
(selftooltipSkill):
        
self.tooltipSkill tooltipSkill
        self
.curSkillButton.SetSkillToolTip(self.tooltipSkill)

    
## Mouse Image
    
def ShowMouseImage(self):
        
self.mouseImage.SetTop()
        
self.mouseImage.Show()

    
def HideMouseImage(self):
        
player.SetQuickCameraMode(FALSE)
        
self.mouseImage.Hide()

    
## Gauge
    
def RefreshStatus(self):
        
curHP player.GetStatus(player.HP)
        
maxHP player.GetStatus(player.MAX_HP)
        
curSP player.GetStatus(player.SP)
        
maxSP player.GetStatus(player.MAX_SP)
        
curEXP player.GetStatus(player.EXP)
        
nextEXP player.GetStatus(player.NEXT_EXP)
        
recoveryHP player.GetStatus(player.HP_RECOVERY)
        
recoverySP player.GetStatus(player.SP_RECOVERY)

        
self.SetHP(curHPrecoveryHPmaxHP)
        
self.SetSP(curSPrecoverySPmaxSP)
        
self.SetExperience(curEXPnextEXP)
        
self.RefreshStamina()

    
def RefreshStamina(self):
        
curST player.GetStatus(player.STAMINA)
        
maxST player.GetStatus(player.MAX_STAMINA)
        
self.SetST(curSTmaxST)

    
def RefreshSkill(self):
        
self.curSkillButton.RefreshSkill()
        for 
button in self.selectSkillButtonList:
            
button.RefreshSkill()

    
def SetHP(selfcurPointrecoveryPointmaxPoint):
        
curPoint min(curPointmaxPoint)
        if 
maxPoint 0:
            
self.hpGauge.SetPercentage(curPointmaxPoint)
            
self.tooltipHP.SetText("%s : %d / %d" % (locale.TASKBAR_HPcurPointmaxPoint))

            if 
== recoveryPoint:
                
self.hpRecoveryGaugeBar.Hide()
            else:
                
destPoint min(maxPointcurPoint recoveryPoint)
                
newWidth int(self.GAUGE_WIDTH * (float(destPoint) / float(maxPoint)))
                
self.hpRecoveryGaugeBar.SetSize(newWidthself.GAUGE_HEIGHT)
                
self.hpRecoveryGaugeBar.Show()

    
def SetSP(selfcurPointrecoveryPointmaxPoint):
        
curPoint min(curPointmaxPoint)
        if 
maxPoint 0:
            
self.mpGauge.SetPercentage(curPointmaxPoint)
            
self.tooltipSP.SetText("%s : %d / %d" % (locale.TASKBAR_SPcurPointmaxPoint))

            if 
== recoveryPoint:
                
self.spRecoveryGaugeBar.Hide()
            else:
                
destPoint min(maxPointcurPoint recoveryPoint)
                
newWidth int(self.GAUGE_WIDTH * (float(destPoint) / float(maxPoint)))
                
self.spRecoveryGaugeBar.SetSize(newWidthself.GAUGE_HEIGHT)
                
self.spRecoveryGaugeBar.Show()

    
def SetST(selfcurPointmaxPoint):
        
curPoint min(curPointmaxPoint)
        if 
maxPoint 0:
            
self.stGauge.SetPercentage(curPointmaxPoint)
            
self.tooltipST.SetText("%s : %d / %d" % (locale.TASKBAR_STcurPointmaxPoint))

    
def SetExperience(selfcurPointmaxPoint):

        
curPoint min(curPointmaxPoint)
        
curPoint max(curPoint0)
        
maxPoint max(maxPoint0)

        
quarterPoint maxPoint 4
        FullCount 
0

        
if != quarterPoint:
            
FullCount min(4curPoint quarterPoint)

        for 
i in xrange(4):
            
self.expGauge[i].Hide()

        for 
i in xrange(FullCount):
            
self.expGauge[i].SetRenderingRect(0.00.00.00.0)
            
self.expGauge[i].Show()

        if 
!= quarterPoint:
            if 
FullCount 4:
                
Percentage float(curPoint quarterPoint) / quarterPoint 1.0
                self
.expGauge[FullCount].SetRenderingRect(0.0Percentage0.00.0)
                
self.expGauge[FullCount].Show()

        
#####
        
self.tooltipEXP.SetText("%s : %.2f%%" % (locale.TASKBAR_EXPfloat(curPoint) / max(1float(maxPoint)) * 100))

    
## QuickSlot
    
def RefreshQuickSlot(self):

        
pageNum player.GetQuickPage()

        try:
            
self.quickPageNumImageBox.LoadImage(TaskBar.QUICKPAGE_NUMBER_FILENAME[pageNum])
        
except:
            
pass

        startNumber 
0
        
for slot in self.quickslot:

            for 
i in xrange(4):

                
slotNumber i+startNumber

                
(TypePosition) = player.GetLocalQuickSlot(slotNumber)

                if 
player.SLOT_TYPE_NONE == Type:
                    
slot.ClearSlot(slotNumber)
                    continue

                if 
player.SLOT_TYPE_INVENTORY == Type:

                    
itemIndex player.GetItemIndex(Position)
                    
itemCount player.GetItemCount(Position)
                    if 
itemCount <= 1:
                        
itemCount 0
                    
                    
## 자동물약 (#72723, #72724) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo]
                    
if 72723 == itemIndex or 72724 == itemIndex:
                        
# metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
                        
metinSocket = [player.GetItemMetinSocket(Positionj) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
                        
                        if 
!= int(metinSocket[0]):
                            
slot.ActivateSlot(slotNumber)
                        else:
                            
slot.DeactivateSlot(slotNumber)
                    
                    
slot.SetItemSlot(slotNumberitemIndexitemCount)

                
elif player.SLOT_TYPE_SKILL == Type:

                    
skillIndex player.GetSkillIndex(Position)
                    if 
== skillIndex:
                        
slot.ClearSlot(slotNumber)
                        continue

                    
skillType skill.GetSkillType(skillIndex)
                    if 
skill.SKILL_TYPE_GUILD == skillType:
                        
import guild
                        skillGrade 
0
                        skillLevel 
guild.GetSkillLevel(Position)

                    else:
                        
skillGrade player.GetSkillGrade(Position)
                        
skillLevel player.GetSkillLevel(Position)

                    
slot.SetSkillSlotNew(slotNumberskillIndexskillGradeskillLevel)
                    
slot.SetSlotCountNew(slotNumberskillGradeskillLevel)
                    
slot.SetCoverButton(slotNumber)

                    
## NOTE : CoolTime 체크
                    
if player.IsSkillCoolTime(Position):
                        (
coolTimeelapsedTime) = player.GetSkillCoolTime(Position)
                        
slot.SetSlotCoolTime(slotNumbercoolTimeelapsedTime)

                    
## NOTE : Activate 되어 있다면 아이콘도 업데이트
                    
if player.IsSkillActive(Position):
                        
slot.ActivateSlot(slotNumber)

                
elif player.SLOT_TYPE_EMOTION == Type:

                    
emotionIndex Position
                    slot
.SetEmotionSlot(slotNumberemotionIndex)
                    
slot.SetCoverButton(slotNumber)
                    
slot.SetSlotCount(slotNumber0)

            
slot.RefreshSlot()
            
startNumber += 4

    def canAddQuickSlot
(selfTypeslotNumber):

        if 
player.SLOT_TYPE_INVENTORY == Type:

            
itemIndex player.GetItemIndex(slotNumber)
            return 
item.CanAddToQuickSlotItem(itemIndex)

        return 
TRUE

    def AddQuickSlot
(selflocalSlotIndex):
        
AttachedSlotType mouseModule.mouseController.GetAttachedType()
        
AttachedSlotNumber mouseModule.mouseController.GetAttachedSlotNumber()
        
AttachedItemIndex mouseModule.mouseController.GetAttachedItemIndex()

        if 
player.SLOT_TYPE_QUICK_SLOT == AttachedSlotType:
            
player.RequestMoveGlobalQuickSlotToLocalQuickSlot(AttachedSlotNumberlocalSlotIndex)

        
elif player.SLOT_TYPE_EMOTION == AttachedSlotType:

            
player.RequestAddLocalQuickSlot(localSlotIndexAttachedSlotTypeAttachedItemIndex)

        
elif TRUE == self.canAddQuickSlot(AttachedSlotTypeAttachedSlotNumber):

            
## Online Code
            
player.RequestAddLocalQuickSlot(localSlotIndexAttachedSlotTypeAttachedSlotNumber)
        
        
mouseModule.mouseController.DeattachObject()
        
self.RefreshQuickSlot()

    
def SelectEmptyQuickSlot(selfslotIndex):

        if 
TRUE == mouseModule.mouseController.isAttached():
            
self.AddQuickSlot(slotIndex)

    
def SelectItemQuickSlot(selflocalQuickSlotIndex):

        if 
TRUE == mouseModule.mouseController.isAttached():
            
self.AddQuickSlot(localQuickSlotIndex)

        else:
            
globalQuickSlotIndex=player.LocalQuickSlotIndexToGlobalQuickSlotIndex(localQuickSlotIndex)
            
mouseModule.mouseController.AttachObject(selfplayer.SLOT_TYPE_QUICK_SLOTglobalQuickSlotIndexglobalQuickSlotIndex)

    
def UnselectItemQuickSlot(selflocalSlotIndex):

        if 
FALSE == mouseModule.mouseController.isAttached():
            
player.RequestUseLocalQuickSlot(localSlotIndex)
            return

        
elif mouseModule.mouseController.isAttached():
            
mouseModule.mouseController.DeattachObject()
            return


    
def OnUseSkill(selfusedSlotIndexcoolTime):

        
QUICK_SLOT_SLOT_COUNT 4
        slotIndex 
0

        
## Current Skill Button
        
if usedSlotIndex == self.curSkillButton.GetSlotIndex():
            
self.curSkillButton.Activate(coolTime)

        
## Quick Slot
        
for slotWindow in self.quickslot:

            for 
i in xrange(QUICK_SLOT_SLOT_COUNT):

                (
TypePosition) = player.GetLocalQuickSlot(slotIndex)

                if 
Type == player.SLOT_TYPE_SKILL:
                    if 
usedSlotIndex == Position:
                        
slotWindow.SetSlotCoolTime(slotIndexcoolTime)
                        return

                
slotIndex += 1

    def OnActivateSkill
(selfusedSlotIndex):
        
slotIndex 0

        
## Current Skill Button
        
if usedSlotIndex == self.curSkillButton.GetSlotIndex():
            
self.curSkillButton.Deactivate()

        
## Quick Slot
        
for slotWindow in self.quickslot:

            for 
i in xrange(4):

                (
TypePosition) = player.GetLocalQuickSlot(slotIndex)

                if 
Type == player.SLOT_TYPE_SKILL:
                    if 
usedSlotIndex == Position:
                        
slotWindow.ActivateSlot(slotIndex)
                        return

                
slotIndex += 1

    def OnDeactivateSkill
(selfusedSlotIndex):
        
slotIndex 0

        
## Current Skill Button
        
if usedSlotIndex == self.curSkillButton.GetSlotIndex():
            
self.curSkillButton.Deactivate()

        
## Quick Slot
        
for slotWindow in self.quickslot:

            for 
i in xrange(4):

                (
TypePosition) = player.GetLocalQuickSlot(slotIndex)

                if 
Type == player.SLOT_TYPE_SKILL:
                    if 
usedSlotIndex == Position:
                        
slotWindow.DeactivateSlot(slotIndex)
                        return

                
slotIndex += 1

    
## ToolTip
    
def OverInItem(selfslotNumber):
        if 
mouseModule.mouseController.isAttached():
            return

        (
TypePosition) = player.GetLocalQuickSlot(slotNumber)

        if 
player.SLOT_TYPE_INVENTORY == Type:
            
self.tooltipItem.SetInventoryItem(Position)
            
self.tooltipSkill.HideToolTip()

        
elif player.SLOT_TYPE_SKILL == Type:

            
skillIndex player.GetSkillIndex(Position)
            
skillType skill.GetSkillType(skillIndex)

            if 
skill.SKILL_TYPE_GUILD == skillType:
                
import guild
                skillGrade 
0
                skillLevel 
guild.GetSkillLevel(Position)

            else:
                
skillGrade player.GetSkillGrade(Position)
                
skillLevel player.GetSkillLevel(Position)

            
self.tooltipSkill.SetSkillNew(PositionskillIndexskillGradeskillLevel)
            
self.tooltipItem.HideToolTip()

    
def OverOutItem(self):
        if 
!= self.tooltipItem:
            
self.tooltipItem.HideToolTip()
        if 
!= self.tooltipSkill:
            
self.tooltipSkill.HideToolTip()

    
def OnUpdate(self):
        if 
TRUE == self.hpGaugeBoard.IsIn():
            
self.tooltipHP.Show()
        else:
            
self.tooltipHP.Hide()

        if 
TRUE == self.mpGaugeBoard.IsIn():
            
self.tooltipSP.Show()
        else:
            
self.tooltipSP.Hide()

        if 
TRUE == self.stGaugeBoard.IsIn():
            
self.tooltipST.Show()
        else:
            
self.tooltipST.Hide()

        if 
TRUE == self.expGaugeBoard.IsIn():
            
self.tooltipEXP.Show()
        else:
            
self.tooltipEXP.Hide()

    
## Skill
    
def ToggleLeftMouseButtonModeWindow(self):

        
wndMouseButtonMode self.mouseModeButtonList[self.MOUSE_BUTTON_LEFT]

        if 
TRUE == wndMouseButtonMode.IsShow():

            
wndMouseButtonMode.Hide()

        else:
            
wndMouseButtonMode.Show()

    
def ToggleRightMouseButtonModeWindow(self):

        
wndMouseButtonMode self.mouseModeButtonList[self.MOUSE_BUTTON_RIGHT]

        if 
TRUE == wndMouseButtonMode.IsShow():

            
wndMouseButtonMode.Hide()
            
self.CloseSelectSkill()

        else:
            
wndMouseButtonMode.Show()
            
self.OpenSelectSkill()

    
def OpenSelectSkill(self):

        
PAGE_SLOT_COUNT 6

        
(xSkillButtony) = self.curSkillButton.GetGlobalPosition()
        
-= (37 32 1)

        for 
key in self.skillCategoryNameList:

            
appendCount 0
            startNumber 
self.skillPageStartSlotIndexDict[key]
            
xSkillButton

            getSkillIndex
=player.GetSkillIndex
            getSkillLevel
=player.GetSkillLevel
            
for i in xrange(PAGE_SLOT_COUNT):

                
skillIndex getSkillIndex(startNumber+i)
                
skillLevel getSkillLevel(startNumber+i)

                if 
== skillIndex:
                    continue
                if 
== skillLevel:
                    continue
                if 
skill.IsStandingSkill(skillIndex):
                    continue

                
## FIXME : 스킬 하나당 슬롯 하나씩 할당하는건 아무리 봐도 부하가 크다.
                ##         이 부분은 시간을 나면 고치도록. - [levites]
                
skillButton self.SkillButton()
                
skillButton.SetSkill(startNumber+i)
                
skillButton.SetPosition(xy)
                
skillButton.SetSkillEvent(ui.__mem_func__(self.CloseSelectSkill), startNumber+i+1)
                
skillButton.SetSkillToolTip(self.tooltipSkill)
                
skillButton.SetTop()
                
skillButton.Show()
                
self.selectSkillButtonList.append(skillButton)

                
appendCount += 1
                x 
-= 32

            
if appendCount 0:
                
-= 32

    def CloseSelectSkill
(selfslotIndex=-1):

        
self.mouseModeButtonList[self.MOUSE_BUTTON_RIGHT].Hide()
        for 
button in self.selectSkillButtonList:
            
button.Destroy()

        
self.selectSkillButtonList = []

        if -
!= slotIndex:
            
self.curSkillButton.Show()
            
self.curMouseModeButton[self.MOUSE_BUTTON_RIGHT].Hide()
            
player.SetMouseFunc(player.MBT_RIGHTplayer.MBF_SKILL)
            
player.ChangeCurrentSkillNumberOnly(slotIndex-1)
        else:
            
self.curSkillButton.Hide()
            
self.curMouseModeButton[self.MOUSE_BUTTON_RIGHT].Show()

    
def SelectMouseButtonEvent(selfdirevent):
        
SetMouseButtonSetting(direvent)

        
self.CloseSelectSkill()
        
self.mouseModeButtonList[dir].Hide()

        
btn 0
        type 
self.NONE
        func 
self.NONE
        tooltip_text 
""        
        
        
if self.MOUSE_BUTTON_LEFT == dir:
            
type player.MBT_LEFT

        elif self
.MOUSE_BUTTON_RIGHT == dir:
            
type player.MBT_RIGHT

        
if self.EVENT_MOVE == event:
            
btn self.mouseModeButtonList[dir].GetChild("button_move")
            
func player.MBF_MOVE
            tooltip_text 
locale.TASKBAR_MOVE
        elif self
.EVENT_ATTACK == event:
            
btn self.mouseModeButtonList[dir].GetChild("button_attack")
            
func player.MBF_ATTACK
            tooltip_text 
locale.TASKBAR_ATTACK
        elif self
.EVENT_AUTO == event:
            
btn self.mouseModeButtonList[dir].GetChild("button_auto_attack")
            
func player.MBF_AUTO
            tooltip_text 
locale.TASKBAR_AUTO
        elif self
.EVENT_MOVE_AND_ATTACK == event:
            
btn self.mouseModeButtonList[dir].GetChild("button_move_and_attack")
            
func player.MBF_SMART
            tooltip_text 
locale.TASKBAR_ATTACK
        elif self
.EVENT_CAMERA == event:
            
btn self.mouseModeButtonList[dir].GetChild("button_camera")
            
func player.MBF_CAMERA
            tooltip_text 
locale.TASKBAR_CAMERA
        elif self
.EVENT_SKILL == event:
            
btn self.mouseModeButtonList[dir].GetChild("button_skill")
            
func player.MBF_SKILL
            tooltip_text 
locale.TASKBAR_SKILL

        
if != btn:
            
self.curMouseModeButton[dir].SetToolTipText(tooltip_text0, -18)
            
self.curMouseModeButton[dir].SetUpVisual(btn.GetUpVisualFileName())
            
self.curMouseModeButton[dir].SetOverVisual(btn.GetOverVisualFileName())
            
self.curMouseModeButton[dir].SetDownVisual(btn.GetDownVisualFileName())
            
self.curMouseModeButton[dir].Show()

        
player.SetMouseFunc(typefunc)

    
def OnChangeCurrentSkill(selfskillSlotNumber):
        
self.curSkillButton.SetSkill(skillSlotNumber)
        
self.curSkillButton.Show()
        
self.curMouseModeButton[self.MOUSE_BUTTON_RIGHT].Hide() 

und meine costinfo.py
PHP Code:
# option
IN_GAME_SHOP_ENABLE 1
CONSOLE_ENABLE 
0

PVPMODE_ENABLE 
1
PVPMODE_TEST_ENABLE 
0
PVPMODE_ACCELKEY_ENABLE 
1
PVPMODE_ACCELKEY_DELAY 
0.5
PVPMODE_PROTECTED_LEVEL 
30

ENERGY 
0
ENERGY_END_TIME 
0
ENERGY_TYPE 
0
ENABLE_ENERGY_SYSTEM 
1

FOG_LEVEL0 
4800.0
FOG_LEVEL1 
9600.0
FOG_LEVEL2 
12800.0
FOG_LEVEL 
FOG_LEVEL0
FOG_LEVEL_LIST
=[FOG_LEVEL0FOG_LEVEL1FOG_LEVEL2]        

CAMERA_MAX_DISTANCE_SHORT 2500.0
CAMERA_MAX_DISTANCE_LONG 
3500.0
CAMERA_MAX_DISTANCE_LIST
=[CAMERA_MAX_DISTANCE_SHORTCAMERA_MAX_DISTANCE_LONG]
CAMERA_MAX_DISTANCE CAMERA_MAX_DISTANCE_SHORT

CHRNAME_COLOR_INDEX 
0

ENVIRONMENT_NIGHT
="d:/ymir work/environment/moonlight04.msenv"

# constant
HIGH_PRICE 500000
MIDDLE_PRICE 
50000
ERROR_METIN_STONE 
28960
SUB2_LOADING_ENABLE 
1
EXPANDED_COMBO_ENABLE 
1
CONVERT_EMPIRE_LANGUAGE_ENABLE 
1
USE_ITEM_WEAPON_TABLE_ATTACK_BONUS 
0
ADD_DEF_BONUS_ENABLE 
1
LOGIN_COUNT_LIMIT_ENABLE 
0

USE_SKILL_EFFECT_UPGRADE_ENABLE 
1

VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD 
1
GUILD_MONEY_PER_GSP 
100
GUILD_WAR_TYPE_SELECT_ENABLE 
1
TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE 
0

HAIR_COLOR_ENABLE 
1
ARMOR_SPECULAR_ENABLE 
1
WEAPON_SPECULAR_ENABLE 
1
SEQUENCE_PACKET_ENABLE 
1
KEEP_ACCOUNT_CONNETION_ENABLE 
1
MINIMAP_POSITIONINFO_ENABLE 
0
CONVERT_EMPIRE_LANGUAGE_ENABLE 
0
USE_ITEM_WEAPON_TABLE_ATTACK_BONUS 
0
ADD_DEF_BONUS_ENABLE 
0
LOGIN_COUNT_LIMIT_ENABLE 
0
PVPMODE_PROTECTED_LEVEL 
15
TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE 
10

isItemDropQuestionDialog 
0

def GET_ITEM_DROP_QUESTION_DIALOG_STATUS
():
    global 
isItemDropQuestionDialog
    
return isItemDropQuestionDialog

def SET_ITEM_DROP_QUESTION_DIALOG_STATUS
(flag):
    global 
isItemDropQuestionDialog
    isItemDropQuestionDialog 
flag

import app
import net

########################

def SET_DEFAULT_FOG_LEVEL():
    global 
FOG_LEVEL
    app
.SetMinFog(FOG_LEVEL)

def SET_FOG_LEVEL_INDEX(index):
    global 
FOG_LEVEL
    
global FOG_LEVEL_LIST
    
try:
        
FOG_LEVEL=FOG_LEVEL_LIST[index]
    
except IndexError:
        
FOG_LEVEL=FOG_LEVEL_LIST[0]
    
app.SetMinFog(FOG_LEVEL)

def GET_FOG_LEVEL_INDEX():
    global 
FOG_LEVEL
    
global FOG_LEVEL_LIST
    
return FOG_LEVEL_LIST.index(FOG_LEVEL)

########################

def SET_DEFAULT_CAMERA_MAX_DISTANCE():
    global 
CAMERA_MAX_DISTANCE
    app
.SetCameraMaxDistance(CAMERA_MAX_DISTANCE)

def SET_CAMERA_MAX_DISTANCE_INDEX(index):
    global 
CAMERA_MAX_DISTANCE
    
global CAMERA_MAX_DISTANCE_LIST
    
try:
        
CAMERA_MAX_DISTANCE=CAMERA_MAX_DISTANCE_LIST[index]
    
except:
        
CAMERA_MAX_DISTANCE=CAMERA_MAX_DISTANCE_LIST[0]

    
app.SetCameraMaxDistance(CAMERA_MAX_DISTANCE)

def GET_CAMERA_MAX_DISTANCE_INDEX():
    global 
CAMERA_MAX_DISTANCE
    
global CAMERA_MAX_DISTANCE_LIST
    
return CAMERA_MAX_DISTANCE_LIST.index(CAMERA_MAX_DISTANCE)

########################

import chrmgr
import player
import app

def SET_DEFAULT_CHRNAME_COLOR
():
    global 
CHRNAME_COLOR_INDEX
    chrmgr
.SetEmpireNameMode(CHRNAME_COLOR_INDEX)

def SET_CHRNAME_COLOR_INDEX(index):
    global 
CHRNAME_COLOR_INDEX
    CHRNAME_COLOR_INDEX
=index
    chrmgr
.SetEmpireNameMode(index)

def GET_CHRNAME_COLOR_INDEX():
    global 
CHRNAME_COLOR_INDEX
    
return CHRNAME_COLOR_INDEX

def SET_VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD
(index):
    global 
VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD
    VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD 
index

def GET_VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD
():
    global 
VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD
    
return VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD

def SET_DEFAULT_CONVERT_EMPIRE_LANGUAGE_ENABLE
():
    global 
CONVERT_EMPIRE_LANGUAGE_ENABLE
    net
.SetEmpireLanguageMode(CONVERT_EMPIRE_LANGUAGE_ENABLE)

def SET_DEFAULT_USE_ITEM_WEAPON_TABLE_ATTACK_BONUS():
    global 
USE_ITEM_WEAPON_TABLE_ATTACK_BONUS
    player
.SetWeaponAttackBonusFlag(USE_ITEM_WEAPON_TABLE_ATTACK_BONUS)

def SET_DEFAULT_USE_SKILL_EFFECT_ENABLE():
    global 
USE_SKILL_EFFECT_UPGRADE_ENABLE
    app
.SetSkillEffectUpgradeEnable(USE_SKILL_EFFECT_UPGRADE_ENABLE)

def SET_TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE():
    global 
TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE
    app
.SetTwoHandedWeaponAttSpeedDecreaseValue(TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE)

########################
import item

ACCESSORY_MATERIAL_LIST 
= [5062350624506255062650627506285062950630506315063250633]
#ACCESSORY_MATERIAL_LIST = [50623, 50623, 50624, 50624, 50625, 50625, 50626, 50627, 50628, 50629, 50630, 50631, 50632, 50633, 
#                50623, 50623, 50624, 50624, ]

def GET_ACCESSORY_MATERIAL_VNUM(vnumsubType):
    
ret vnum

    
if vnum >= 16210 and vnum <= 16219:
        return 
50625

    
if item.ARMOR_WRIST == subType:    
        
WRIST_ITEM_VNUM_BASE 14000
        ret 
-= WRIST_ITEM_VNUM_BASE
    elif item
.ARMOR_NECK == subType:
        
NECK_ITEM_VNUM_BASE 16000
        ret 
-= NECK_ITEM_VNUM_BASE
    elif item
.ARMOR_EAR == subType:
        
EAR_ITEM_VNUM_BASE 17000
        ret 
-= EAR_ITEM_VNUM_BASE

    type 
ret/20

    
if type<or type>=len(ACCESSORY_MATERIAL_LIST):
        
type = (ret-170) / 20
        
if type<or type>=len(ACCESSORY_MATERIAL_LIST):
            return 
0

    
return ACCESSORY_MATERIAL_LIST[type

Hier nochmal ein Ingamescreen vom Ganzen:





Ich hoffe ich habe genug angaben preisgegebn, damit mir einer helfen kann. Ich bedanke mich schonmal im vorraus für die antworten und für die Hilfe. Falls ich etwas vergessen habe werde ich dieses Thema editieren.
MFG Freddy



TayzZ.? is offline  
Old   #2
 
elite*gold: 0
Join Date: Aug 2012
Posts: 14
Received Thanks: 0
Habe gleiches Problem. Würde mich interessieren, wie man das beheben kann


aaaccb111 is offline  
Old   #3
 
elite*gold: 0
Join Date: Apr 2014
Posts: 165
Received Thanks: 6
#push
TayzZ.? is offline  
Old   #4
wherever the light ends

 
elite*gold: 164
Join Date: Feb 2011
Posts: 4,954
Received Thanks: 2,810
[Release] Energy System

Im Anhang lassen sich die modifizierten Dateien entnehmen, u.a. auch die uiTaskbar, in deiner angegebenen Taskbar ist das System bzw. die Klasse
Code:
class EnergyBar(ui.ScriptWindow):
noch gar nicht definiert.

lg


Nick is offline  
Old   #5
 
elite*gold: 0
Join Date: Apr 2014
Posts: 165
Received Thanks: 6
Danke für deine Hilfe, nur wie definiere ich diese?


TayzZ.? is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Energiesystem Einfügen
Hallo, Ich würde gerne das Energie system In meinen Server einfügen Könnte Mir da jemand helfen? Weil habe die Datein auch noch nicht :o Wenn mir...
2 Replies - Metin2 PServer - Discussions / Questions
[HILFE]Energiesystem
Hey Leute, Ich habe neulich das Energiesystem bei den Daroo Clienten eingefügt. Es hat auch schön geklappt und ich kann den client starten, aber...
4 Replies - Metin2 PServer - Discussions / Questions
[HELP]Energiesystem
Hey Leute, ich hab das Energiesystem Clientside eingefügt aber leider kommt ein Error.. Hier die Syserr: 0902 14:25:27015 :: File...
2 Replies - Metin2 PServer - Discussions / Questions
Kostüm/Energiesystem entfernen
Hallo da mir die SuFu nix sagt kann mir vll jemand sagen ob man das Kostüm sowie das Energiesystem entfernen könnte? LG
9 Replies - Metin2 PServer - Discussions / Questions
[Guide]Energiesystem
http://www.bilder-hochladen.net/files/khyi-10-1c38.jpg http://www.bilder-hochladen.net/files/khyi-11-19ca.jpg...
6 Replies - Metin2 Guides & Templates



All times are GMT +1. The time now is 18:32.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.