Poste einmal deine ui.py und uiinventory.py
Beiträge von flightm0de
-
-
Hab soeben das Problem mit den Icons oben rechts gefixt bekommen, jedoch nicht den Bug mit dem Verschieben der Items..
-
Ja, hab den Martysource und da ists direkt integriert.
Das dürft aber nicht der Grund fürs Verschieben der Items sein oder ?
Das kann ich dir nicht sagen. Ich kann dir aber sagen dass ich den Effect gefixt habe weil du den uiinventory Teil anders machen musst. Mein RefreshBagSlotWindow sieht so aus:
Code- def RefreshBagSlotWindow(self):
- getItemVNum=player.GetItemIndex
- getItemCount=player.GetItemCount
- setItemVNum=self.wndItem.SetItemSlot
- for i in xrange(player.INVENTORY_PAGE_SIZE):
- slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
- itemCount = getItemCount(slotNumber)
- # itemCount == 0이면 소켓을 비운다.
- if 0 == itemCount:
- self.wndItem.ClearSlot(i)
- continue
- elif 1 == itemCount:
- itemCount = 0
- itemVnum = getItemVNum(slotNumber)
- setItemVNum(i, itemVnum, itemCount)
- ## 자동물약 (HP: #72723 ~ #72726, SP: #72727 ~ #72730) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo]
- if constInfo.IS_AUTO_POTION(itemVnum):
- # metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
- metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
- if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
- slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex
- isActivated = 0 != metinSocket[0]
- if isActivated:
- self.wndItem.ActivateSlot(slotNumber)
- potionType = 0;
- if constInfo.IS_AUTO_POTION_HP(itemVnum):
- potionType = player.AUTO_POTION_TYPE_HP
- elif constInfo.IS_AUTO_POTION_SP(itemVnum):
- potionType = player.AUTO_POTION_TYPE_SP
- usedAmount = int(metinSocket[1])
- totalAmount = int(metinSocket[2])
- player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotPos(i))
- else:
- self.wndItem.DeactivateSlot(slotNumber)
- if app.ENABLE_SASH_SYSTEM:
- slotNumberChecked = 0
- if not constInfo.IS_AUTO_POTION(itemVnum):
- # if app.ENABLE_HIGHLIGHT_SYSTEM:
- # if not slotNumber in self.listHighlightedSlot:
- # self.wndItem.DeactivateSlot(i)
- # else:
- self.wndItem.DeactivateSlot(i)
- for j in xrange(sash.WINDOW_MAX_MATERIALS):
- (isHere, iCell) = sash.GetAttachedItem(j)
- if isHere:
- if iCell == slotNumber:
- self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
- if not slotNumber in self.listAttachedSashs:
- self.listAttachedSashs.append(slotNumber)
- slotNumberChecked = 1
- else:
- if slotNumber in self.listAttachedSashs and not slotNumberChecked:
- self.wndItem.DeactivateSlot(i)
- self.listAttachedSashs.remove(slotNumber)
- if app.ENABLE_NEW_TYPE_OF_POTION:
- if constInfo.IS_NEW_SPEED_POTION(itemVnum):
- metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
- if slotNumber >= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex:
- slotNumber -= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex
- isActivated = 0 != metinSocket[0]
- if isActivated:
- self.wndItem.ActivateSlot(slotNumber)
- else:
- self.wndItem.DeactivateSlot(slotNumber)
- self.wndItem.RefreshSlot()
- if self.wndBelt:
- self.wndBelt.RefreshSlot()
Musst den if app.ENABLE_NEW_TYPE_OF_POTION: Teil einfach am Ende des Sash Teiles setzen
War bei mir tatsächlich schon in derselben Funktion drin, hat also keins der beiden Probleme behoben.
-
Wegen dem Active Effect: Hast du Schulterband verbaut?
Ja, hab den Martysource und da ists direkt integriert.
Das dürft aber nicht der Grund fürs Verschieben der Items sein oder ?
-
Also ich hab das wirklich 1:1 nach dem beigelegten Tutorial eingebaut, bin das ganze mehrfach durchgegangen.
Aktivieren/Deaktivieren geht, zwar haben die Taus kein Icon oben links aber das ist ne andere Geschichte.
Nur lassen sich die neuen Items nur innerhalb der ersten Itemreihe (auf jeder Invetarseite) bewegen.Andere Items lassen sich problemlos bewegen, nur die Perma-Buffitems nicht wie man im Video sehen kann.
Ebenso fehlt der "aktiv"-Effekt wie bei neu aufgehobenen Items gänzlich.Syserr spuckt auch nichts Sinnvolles raus.. gibts hier evtl. jemanden der ne Idee hat oder mal drüberschauen könnte ?
Bitte melden Sie sich an, um diesen Link zu sehen.
Im Anhang ist das besagte System, welches aus einem Sammelthread hier im Forum habe. -
Prinzipiell läuft der Server mit den Protos, sobald ich jedoch neue Inhalte hinzufüge
und diese packe (was sich auch fehlerfrei packen lässt) bringt der Server nachm Hochfahren nur "connection refused"..
Jemand vllt. ne Idee ? Hab nichts am Encoding der Textdateien geändert, sobald ich nur neue Inhalte einpaste
will er mit der neuen Proto einfach nicht hochfahren
-
Bitte melden Sie sich an, um diesen Link zu sehen.
RatatatatatataVielen Dank, hat einwandfrei geklappt
-
In Char.cpp, in diesem Block:
Code- if (IsPC())
- {
- // 최대 생명력/정신력
- iMaxHP = JobInitialPoints[GetJob()].max_hp + m_points.iRandomHP + GetPoint(POINT_HT) * JobInitialPoints[GetJob()].hp_per_ht;
- iMaxSP = JobInitialPoints[GetJob()].max_sp + m_points.iRandomSP + GetPoint(POINT_IQ) * JobInitialPoints[GetJob()].sp_per_iq;
- iMaxStamina = JobInitialPoints[GetJob()].max_stamina + GetPoint(POINT_HT) * JobInitialPoints[GetJob()].stamina_per_con;
- {
- CSkillProto* pkSk = CSkillManager::instance().Get(SKILL_ADD_HP);
- if (NULL != pkSk)
- {
- pkSk->SetPointVar("k", 1.0f * GetSkillPower(SKILL_ADD_HP) / 100.0f);
- iMaxHP += static_cast<int>(pkSk->kPointPoly.Eval());
- }
- }
- // 기본 값들
- SetPoint(POINT_MOV_SPEED, 175);
- SetPoint(POINT_ATT_SPEED, 130);
- PointChange(POINT_ATT_SPEED, GetPoint(POINT_PARTY_HASTE_BONUS));
- SetPoint(POINT_CASTING_SPEED, 100);
- }
- else
- {
- iMaxHP = m_pkMobData->m_table.dwMaxHP;
- iMaxSP = 0;
- iMaxStamina = 0;
- SetPoint(POINT_ATT_SPEED, m_pkMobData->m_table.sAttackSpeed);
- SetPoint(POINT_MOV_SPEED, m_pkMobData->m_table.sMovingSpeed);
- SetPoint(POINT_CASTING_SPEED, m_pkMobData->m_table.sAttackSpeed);
- }
Das abändern:
Edit: Sorry zu früh fürs Gehirn, hab mich an das Kommentar über mir gehalten.
Du möchtest nicht die Standardwerte ändern, sondern das Limit der maximalen Bewegungsspeed ändern/entfernen, right?
Jop, und das will bisher net funktionieren
-
Du meinst
Kannst auch versuchen einfach die 5.7 zu nehmen. Zumindest beim MartySource macht das keinerlei Probleme
Bei Fliege geht es nicht , ab Mysql 5.7 gibt es die PASSWORD methode nicht mehr.
Und Marty sagt er empfiehlt für seinen Source kein MYSQL 5.7 oder 8.0 . Weil es zu problemen mit System usw kommen kann
Bitte melden Sie sich an, um diesen Anhang zu sehen.Bitte melden Sie sich an, um diesen Anhang zu sehen.
Doch klar gibts die noch in der 5.7
-
Kannst auch versuchen einfach die 5.7 zu nehmen. Zumindest beim MartySource macht das keinerlei Probleme
-
Bin gerade dabei mich an den Source ranzutasten und dachte mir ich versuche das einfach mal..
Die ganzen Datentypen der Parameter der GetPoint, SetPoint Funtionen und einiger anderer die auf den Movespeed zugreifen bzw. diesen
brauchen um was auch immer zu berechnen habe ich angepasst.
Ingame wird der Movespeed auch angezeigt (also schonmal keine Beschränkung durch Client-/Source), jedoch wirkt dieser halt nicht.
Hat jemand ne Idee was mir noch fehlt ?
Bin relativ neu was das ganze angeht, sofern jemand eine Lösung hat gerne auch mit Erklärung.
-
Wo ist hier das Problem hä 😂
Ich hab mich nie über Marty beschwert noch gratis-Hilfe gesucht.
-
Bitte melden Sie sich an, um diesen Anhang zu sehen.
Wo problem
knapp 20 Stunden, da Problem
Edit:
Bitte melden Sie sich an, um diesen Anhang zu sehen.
Dann eine nicht hilfreiche Antwort, und wieder bis gestern nix deshalb frag ich hier -
Frage ihn doch einfach auf Discord, denke mal ggfs gegen eine kleine Gebühr macht er das.
Ansonsten kannst du mir hier schreiben ich richte es dir gegen eine kleine Gebühr auch ein.
Marty hat immer ewige Antwortzeiten, zumal hat der sicherlich besseres zu tun als zum 1000-sten Mal Files aufzusetzen
-
Moin,
hab mich nach langer Zeit mal wieder entschlossen etwas aktiver zu werden und wollte dementsprechend
wieder nen Server mit dem Source von Marty aufsetzen, den ich 2018 auch ganz "legal" bei ihm erworben hab.
Problem ist nur, dass ich das ganze nicht so wirklich hinbekomme da ich etwas "eingerostet" bin.
Gäbe es hier jemanden, der gegen eine kleine Gebühr bereit wär mir das ganze aufzusetzen ?
-
Maybe faules Workaround, aber einfach nachschauen welche Methoden beim Un-/Equippen aufgerufen werden und die einmal bei AttachFlag/DeatachFlag hinzufügen ?
-
most part of ur uiScriptLocale is a dictionary. Therefore in python u can only add ur if statement only outside of it.
The lines after ur if statement try to access data of ur dictionary called "window" meaning that it has to be already initialized when the statement is used.
Code- import uiScriptLocale
- IMG_DIR = "d:/ymir work/ui/game/gameoption/"
- TITLE_IMAGE_TEXT_X = 5
- TITLE_IMAGE_TEXT_Y = 4
- OPTION_START_X = 17
- SLIDER_POSITION_X = 50
- SLIDER_START_Y = 40
- BUTTON_START_Y = 33
- BUTTON_NEXT_Y = 20
- RADIO_BUTTON_RANGE_X = 65
- TOGGLE_BUTTON_RANGE_X = 65
- RADIO_BUTTON_TEXT_X = 25
- TOGGLE_BUTTON_TEXT_X = 20
- SMALL_OPTION_HEIGHT = 65
- NORMAL_OPTION_HEIGHT = 80
- SLIDER_OPTION_HEIGHT = 65
- window = {
- "name" : "GameOptionDialog",
- # Dont touch these lines!
- "style" : (),
- "x" : 171,
- "y" : 3,
- "width" : 300,
- "height" : 324,
- # Dont touch these lines!
- "children" :
- (
- {
- "name" : "show_name_window",
- "type" : "window",
- "x" : 0,
- "y" : 0,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- {
- "name" : "show_name_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "title_show_name",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME,
- },
- ),
- },
- {
- "name" : "always_show_name_on_button",
- "type" : "radio_button",
- "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0,
- "y" : 33,
- "text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME_ON,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "always_show_name_off_button",
- "type" : "radio_button",
- "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1,
- "y" : 33,
- "text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME_OFF,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "outline_window",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- {
- "name" : "outline_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "title_outline",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.OPTION_OUTLINE_INFO,
- },
- ),
- },
- {
- "name" : "outline_on_button",
- "type" : "radio_button",
- "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0,
- "y" : 33,
- "text" : uiScriptLocale.OPTION_OUTLINE_ON,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "outline_off_button",
- "type" : "radio_button",
- "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1,
- "y" : 33,
- "text" : uiScriptLocale.OPTION_OUTLINE_OFF,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "affect_icons_window",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- {
- "name" : "affect_icons_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "title_affect_icons",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : "Affect Icons",
- },
- ),
- },
- {
- "name" : "show_affect_icons",
- "type" : "radio_button",
- "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0,
- "y" : 33,
- "text" : uiScriptLocale.OPTION_OUTLINE_ON,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "hide_affect_icons",
- "type" : "radio_button",
- "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1,
- "y" : 33,
- "text" : uiScriptLocale.OPTION_OUTLINE_OFF,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "perspective_window",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SLIDER_OPTION_HEIGHT,
- "children":
- (
- {
- "name" : "perspective_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "title_perspective",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.OPTION_FOV,
- },
- ),
- },
- {
- "name" : "perspective_controller",
- "type" : "sliderbar",
- "x" : OPTION_START_X+SLIDER_POSITION_X,
- "y" : SLIDER_START_Y,
- },
- ),
- },
- {
- "name" : "effect_level_title",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SLIDER_OPTION_HEIGHT,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- #effect
- {
- "name" : "effect_level_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "effect_level",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL,
- },
- ),
- },
- {
- "name" : "effect_level0",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*0,
- "y" : 33,
- "text" : "1",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL1_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "effect_level1",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*1,
- "y" : 33,
- "text" : "2",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL2_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "effect_level2",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*2,
- "y" : 33,
- "text" : "3",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL3_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "effect_level3",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*3,
- "y" : 33,
- "text" : "4",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL4_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "effect_level4",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*4,
- "y" : 33,
- "text" : "5",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL5_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "bazaarTitle",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SLIDER_OPTION_HEIGHT+SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- #effect
- {
- "name" : "bazaarTitle_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "bazaarTitleText",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL,
- },
- ),
- },
- {
- "name" : "bazaar0",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*0,
- "y" : 33,
- "text" : "1",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL1_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "bazaar1",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*1,
- "y" : 33,
- "text" : "2",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL2_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "bazaar2",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*2,
- "y" : 33,
- "text" : "3",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL3_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "bazaar3",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*3,
- "y" : 33,
- "text" : "4",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL4_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "bazaar4",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*4,
- "y" : 33,
- "text" : "5",
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL5_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "PetTitle",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SLIDER_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- #effect
- {
- "name" : "pet_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "PetTitleText",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS,
- },
- ),
- },
- {
- "name" : "pet_on",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*0,
- "y" : 33,
- "text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_ON,
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_ON_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "pet_off",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*1,
- "y" : 33,
- "text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_OFF,
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_OFF_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "MountTitle",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SLIDER_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- {
- "name" : "mount_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "MountTitleText",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.GRAPHICONOFF_MOUNT_STATUS,
- },
- ),
- },
- {
- "name" : "mount_on",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*0,
- "y" : 33,
- "text" : uiScriptLocale.GRAPHICONOFF_MOUNT_STATUS_ON,
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_MOUNT_STATUS_ON_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "mount_off",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*1,
- "y" : 33,
- "text" : uiScriptLocale.GRAPHICONOFF_MOUNT_STATUS_OFF,
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_MOUNT_STATUS_OFF_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "npcName",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SLIDER_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SMALL_OPTION_HEIGHT,
- "children":
- (
- {
- "name" : "npcName_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "npcNameTitleText",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS,
- },
- ),
- },
- {
- "name" : "npcName_on",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*0,
- "y" : 33,
- "text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_ON,
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_ON_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- {
- "name" : "npcName_off",
- "type" : "radio_button",
- "x" : OPTION_START_X+(RADIO_BUTTON_RANGE_X-15)*1,
- "y" : 33,
- "text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_OFF,
- "tooltip_text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_OFF_TOOLTIP,
- "text_x" : RADIO_BUTTON_TEXT_X,
- "default_image" : IMG_DIR + "radio_unselected.tga",
- "over_image" : IMG_DIR + "radio_unselected.tga",
- "down_image" : IMG_DIR + "radio_selected.tga",
- },
- ),
- },
- {
- "name" : "object_distance_window",
- "type" : "window",
- "x" : 0,
- "y" : SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SLIDER_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT,
- "width":304,
- "height":SLIDER_OPTION_HEIGHT,
- "children":
- (
- {
- "name" : "object_distance_title_img",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : IMG_DIR+"option_title.tga",
- "children":
- (
- {
- "name" : "title_object_distance",
- "type" : "text",
- "x" : TITLE_IMAGE_TEXT_X,
- "y" : TITLE_IMAGE_TEXT_Y,
- "text_horizontal_align":"left",
- "text" : uiScriptLocale.OPTION_OBJECT_DISTANCE,
- },
- ),
- },
- {
- "name" : "object_distance_controller",
- "type" : "sliderbar",
- "x" : OPTION_START_X+SLIDER_POSITION_X,
- "y" : SLIDER_START_Y,
- },
- ),
- },
- ),
- }
- if app.ENABLE_DOG_MODE:
- CUR_LINE_Y += LINE_STEP
- window["height"] = window["height"] + 25
- window["children"][0]["height"] = window["children"][0]["height"] + 25
- window["children"][0]["children"] = window["children"][0]["children"] + [
- ## Dog Mode
- {
- "name" : "dogmode_on_off",
- "type" : "text",
- "multi_line" : 1,
- "x" : LINE_LABEL_X,
- "y" : CUR_LINE_Y+2,
- "text" : "Potwory",
- },
- {
- "name" : "dog_mode_open",
- "type" : "radio_button",
- "x" : LINE_DATA_X,
- "y" : CUR_LINE_Y,
- "text" : "Dzikie Psy",
- "default_image" : ROOT_PATH + "middle_button_01.sub",
- "over_image" : ROOT_PATH + "middle_button_02.sub",
- "down_image" : ROOT_PATH + "middle_button_03.sub",
- },
- {
- "name" : "dog_mode_close",
- "type" : "radio_button",
- "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
- "y" : CUR_LINE_Y,
- "text" : "Normalne",
- "default_image" : ROOT_PATH + "middle_button_01.sub",
- "over_image" : ROOT_PATH + "middle_button_02.sub",
- "down_image" : ROOT_PATH + "middle_button_03.sub",
- },]
This is (at least by python syntax) correct.
If ur still getting errors I dont really think the problem can be solved here without further information.
Feel free to correct me if I'm wrong
Edit:
I dont have a lot of knowledge of metins client, but u try to access a bool from the module called "app" (app.ENABLE_DOG_MODULE), without importing it. Is app fsr still available here ?
-
dubaro.de
100x besser als Mindfactory.
Nen Garantieersatz bei Mindfactory durchzukriegen (5€ „Premium Garantie“ hin oder her) kannste +- knicken ohne Kopfschmerzen.kann ich verneinen. Mein Arbeitspeicher hat z.B. nicht die Leistungen gebracht, wie versprochen. kurz ne Mail hin „Klar schicken sie zurück, sie bekommen ihr Geld wieder“ und alles war i.o. Von dem Geld dann einfach einen andere Marke gekauft. Aber Mindfactory ist schon lange keine „Billiger“ Anbieter mehr.
Spreche da nur aus eigener Erfahrung wie es bei mir mal war.
-
dubaro.de
100x besser als Mindfactory.
Nen Garantieersatz bei Mindfactory durchzukriegen (5€ „Premium Garantie“ hin oder her) kannste +- knicken ohne Kopfschmerzen. -
Lässt sich das Weapon/Sash Multicolor auch auf Rüstungen übertragen ? Müsste denke ich jetzt mal zumindest nicht allzu viel Arbeit sein.
Dann wären die 1600 Mark auch etwas "gerechtfertigter"