def PyOnBankSlot(args): from mud.client.playermind import PLAYERMIND slot = int(args[1]) if not PLAYERMIND.cursorItem and not NPCWND.bankPane.bank.get(slot+RPG_SLOT_BANK_BEGIN,None): return PLAYERMIND.onBankSlot(slot+RPG_SLOT_BANK_BEGIN)
def PyOnBankSlot(args): from mud.client.playermind import PLAYERMIND slot = int(args[1]) if not PLAYERMIND.cursorItem and not NPCWND.bankPane.bank.get( slot + RPG_SLOT_BANK_BEGIN, None): return PLAYERMIND.onBankSlot(slot + RPG_SLOT_BANK_BEGIN)
def onZoneChannelToggle(self): from mud.client.playermind import PLAYERMIND,TOGGLEABLECHANNELS v = int(TGEObject("CHATGUI_ZONE_TOGGLE").getValue()) if v: PLAYERMIND.doCommand("CHANNEL",[0,"zone","on"]) else: PLAYERMIND.doCommand("CHANNEL",[0,"zone","off"]) from playerSettings import PLAYERSETTINGS PLAYERSETTINGS.setChannel(TOGGLEABLECHANNELS['Z'],v)
def onZoneChannelToggle(self): from mud.client.playermind import PLAYERMIND, TOGGLEABLECHANNELS v = int(TGEObject("CHATGUI_ZONE_TOGGLE").getValue()) if v: PLAYERMIND.doCommand("CHANNEL", [0, "zone", "on"]) else: PLAYERMIND.doCommand("CHANNEL", [0, "zone", "off"]) from playerSettings import PLAYERSETTINGS PLAYERSETTINGS.setChannel(TOGGLEABLECHANNELS['Z'], v)
def OnResurrect(): r = RESURRECTIONWND.resList.getValue() TGEEval('Canvas.popDialog("ResurrectionGui");') from mud.client.playermind import PLAYERMIND PLAYERMIND.resurrect(r)