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)
Example #2
0
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)
Example #4
0
 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)
Example #6
0
def OnResurrect():
    r = RESURRECTIONWND.resList.getValue()
    TGEEval('Canvas.popDialog("ResurrectionGui");')
    from mud.client.playermind import PLAYERMIND
    PLAYERMIND.resurrect(r)