| | |
| | | import ItemControler
|
| | | import ItemCommon
|
| | | import ShareDefine
|
| | | import PlayerCoat
|
| | | import PlayerRune
|
| | | import IpyGameDataPY
|
| | | import NPCCommon
|
| | |
|
| | |
| | | #@return 返回值无意义
|
| | | #@remarks C++触发封包重读所有事件
|
| | | def ReloadEvent(tick):
|
| | | GameWorld.__ReloadScript() # 只调用一次,与后台重读脚本一致
|
| | | |
| | | scriptPath = ChConfig.GetAppPath() + "Script\\Event\\EventSrc"
|
| | | GameWorld.ReloadScript(scriptPath, "EventSrc")
|
| | |
|
| | |
| | | pack_DesBackPack = sendPack.GetDesBackPack()
|
| | | pack_SrcIndex = sendPack.GetSrcIndex()
|
| | | pack_DestIndex = sendPack.GetDestIndex()
|
| | | |
| | | # 符印交换
|
| | | if PlayerRune.SwitchRune(curPlayer, pack_SrcBackpack, pack_DesBackPack, pack_SrcIndex, pack_DestIndex):
|
| | | return
|
| | | |
| | | #ʱװ
|
| | | if PlayerCoat.SwitchCoat(curPlayer, pack_SrcBackpack, pack_DesBackPack, pack_SrcIndex, pack_DestIndex):
|
| | | return
|
| | | |
| | | #FunctionNPCCommon.PackItemExchange(curPlayer, pack_SrcBackpack, pack_DesBackPack,
|
| | | # pack_SrcIndex, pack_DestIndex, tick)
|
| | | return
|