Jump to content

Shang

Member
  • Posts

    276
  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Everything posted by Shang

  1. https://metin2dev.org/board/index.php?/topic/781-cadd-armour-effects-with-python/
  2. Look at your shit code bro. If the slotnumber isn't in the list and the slot have to be usable? If you delete this: and slotNumber in self.listUnusableSlot: you'll see working anyway.
  3. Why are you appending the slots in a list if you don't use the list?
  4. Man, when server loads the txt it converts string to numbers (like mysql) ANTIFLAG_GIVE is an antiflag number.
  5. M2 Download Center Download Here ( Internal ) Hi devs, today i'm going to release a simple TextLink. It works like a button but without a button, only with text. Let's see. It has Close event. The python code: Shitty spoiler deletes the tabs. Be carefull about tabs. Or go to pastebin: [Hidden Content]
  6. item.set_attribute_type already exists with name item.set_value. Syntax: item.set_value(num(0,6), type, value) item.get_attr here you have @PACI's function: Syntax: item.get_attr(num(0,6))[1] - gets the bonus type item.get_attr(num(0,6))[2] - gets the bonus value
  7. You're free to post the link. If you post only for recieve likes....
  8. You have to set in socket0 the global timestamp plus the time of costume duration. Example 1h of costume: lua: get_time()+3600 py: app.GetGlobalTimeStamp()+3600
  9. To ban sashes in guildstorage put the vnums of sashed inside this table in quest: local blackListItem = {50821,50822,50823,50824,50825,50826,51002} And replace def OverInItem with this: def OverInItem(self, index): items = constInfo.GUILDSTORAGE["slots"]["TAB"+str(self.tab)] attrs = [(items[index][8],items[index][9]),(items[index][10],items[index][11]),(items[index][12],items[index][13]),(items[index][14],items[index][15]),(items[index][16],items[index][17]),(items[index][18],items[index][19]),(items[index][20],items[index][21])] attrs += [(0,0)]*8 self.toolTip.ClearToolTip() self.toolTip.AddRefineItemData(items[index][0], [items[index][2],items[index][3],items[index][4],items[index][5],items[index][6],items[index][7]], attrs) Tell if works.
  10. Shoulder sash system has more bonuses. You have to add these bonuses values to quest and to recieve ingame.
  11. self.itemImage.OnMouseOverIn(self.ShowTip)self.itemImage.OnMouseOverOut(self.HideTip)
  12. Because the height of the taskbar img. It is transparent img but not ingame.
  13. self.txttooltip = uiToolTip.ToolTip() self.txttooltip.AutoAppendTextLine(text) self.txttooltip.HideToolTip() self.image.SAFE_SetEvent("MOUSE_OVER_IN", self.txttooltip.ShowToolTip) self.image.SAFE_SetEvent("MOUSE_OVER_OUT", self.txttooltip.HideToolTip)
  14. It isn't a problem. Just find RecvGuildSafeboxPacket: subHeader in client source and comment the line, it's a TraceError (a debug method).
  15. Try this: self.isActiveRotation = False self.button.SetMouseClickEvent(self.ActiveRotation) self.button.SetMouseButtonUpEvent(self.DeactiveRotation) def ActiveRotation(self): self.isActiveRotation = True def DeactiveRotation(self): self.isActiveRotation = False def OnUpdate(self): if self.isActiveRotation: self.Rotation -= 1 chr.SetRotation(self.Rotation)
  16. self.button.SetToolTipText('text') or 'tooltip_text' : 'text'
  17. It is unix timestamp format. You can convert it here: [Hidden Content]
  18. Use pc.give_item2_select(vnum, count) instead of pc.give_item2.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.