pieroom.py
来自「这是书籍Premier.Press.MUD.GAME.PROGRAMMING.r」· Python 代码 · 共 12 行
PY
12 行
import BetterMUD
import data.logics.logic
class pieroom( data.logics.logic.logic ):
def Run( self, action, arg1, arg2, arg3, arg4, data ):
if action == "getitem":
item = BetterMUD.item( arg2 )
if item.TemplateID() == 2:
self.mud.AddActionRelative( 5000, "vision", self.me, 0, 0, 0, "The Baker puts a new pie into the oven!" )
self.mud.AddActionRelative( 1200000, "spawnitem", 2, self.me, 0, 0, "" )
self.mud.AddActionRelative( 1200001, "vision", self.me, 0, 0, 0, "A freshly baked Pie pops out of the oven!" )
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?