| | |
| | | # @return 返回值无意义
|
| | | # @remarks 客户端封包响应 //0C 07 客户端发送仓库密码#tagSendWarehousePsw
|
| | | def SendWarehousePsw(curPlayer, tick):
|
| | | #玩家当前状态不是输入密码状态
|
| | | if curPlayer.GetWarehouseState() != IPY_GameWorld.wsEnterPsw:
|
| | | return
|
| | | |
| | | #获得客户端封包
|
| | | sendPack = IPY_GameWorld.IPY_SendWarehousePsw()
|
| | | curPsw = sendPack.GetPsw()
|
| | | oldPsw = curPlayer.GetWarehousePsw()
|
| | | |
| | | #这里是调用c++的过滤空格,可以过滤全角空格, python不能
|
| | | curPsw = GameWorld.GetGameWorld().GetCharTrim(curPsw)
|
| | | |
| | | #密码不正确
|
| | | if curPsw != oldPsw:
|
| | | curPlayer.Frm_WarehouseMsg(IPY_GameWorld.whmPswError)
|
| | | EventShell.DoExitEvent(curPlayer)
|
| | | |
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_pan_59781")
|
| | | return
|
| | | |
| | | #密码正确
|
| | | ShowWarehouse(curPlayer)
|
| | | #===========================================================================
|
| | | # #玩家当前状态不是输入密码状态
|
| | | # if curPlayer.GetWarehouseState() != IPY_GameWorld.wsEnterPsw:
|
| | | # return
|
| | | # |
| | | # #获得客户端封包
|
| | | # sendPack = IPY_GameWorld.IPY_SendWarehousePsw()
|
| | | # curPsw = sendPack.GetPsw()
|
| | | # oldPsw = curPlayer.GetWarehousePsw()
|
| | | # |
| | | # #这里是调用c++的过滤空格,可以过滤全角空格, python不能
|
| | | # curPsw = GameWorld.GetGameWorld().GetCharTrim(curPsw)
|
| | | # |
| | | # #密码不正确
|
| | | # if curPsw != oldPsw:
|
| | | # curPlayer.Frm_WarehouseMsg(IPY_GameWorld.whmPswError)
|
| | | # EventShell.DoExitEvent(curPlayer)
|
| | | # |
| | | # PlayerControl.NotifyCode(curPlayer, "GeRen_pan_59781")
|
| | | # return
|
| | | # |
| | | # #密码正确
|
| | | # ShowWarehouse(curPlayer)
|
| | | #===========================================================================
|
| | | return
|
| | |
|
| | | #---------------------------------------------------------------------
|