Пример #1
0
    def __MakeCharacter(self, race, x, y):
        nonplayer.GetEventType(1)
        nonplayer.GetGradeByVID(1)
        nonplayer.GetLevelByVID(100)
        nonplayer.GetMonsterName("SeMa Test")

        nonplayer.LoadNonPlayerData()

        chr.CreateInstance(race)
        chr.SetInstanceType(chr.INSTANCE_TYPE_NPC)
        chr.SelectInstance(race)
        chr.SetVirtualID(race)
        chr.SetRace(1)
        chr.SetNameString("Test SeMa")

        chr.Refresh()
        #chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
        #chr.SetLoopMotion(chr.MOTION_MODE_GENERAL)

        chr.SetPixelPosition(x, y)
        chr.SetDirection(chr.DIR_SOUTHEAST)
        chr.SetMoveSpeed(300)
        chr.Render()
        grp.RestoreViewport()
        grp.PopState()
        grp.SetInterfaceRenderState()
        chr.Show()
Пример #2
0
    def __MakeCharacter(self, chr_id, race):

        chr.CreateInstance(chr_id)
        chr.SelectInstance(chr_id)
        chr.SetVirtualID(chr_id)
        chr.SetRace(race)
        chr.SetArmor(0)
        chr.SetHair(0)

        chr.Refresh()
        chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
        chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)

        chr.SetRotation(0.0)
        chr.Hide()
Пример #3
0
    def MakeCharacter(self, index, id, name, race, form, hair):
        if 0 == id:
            return

        chr.CreateInstance(index)
        chr.SelectInstance(index)
        chr.SetVirtualID(index)
        chr.SetNameString(name)

        chr.SetRace(race)
        chr.SetArmor(form)
        chr.SetHair(hair)
        chr.Refresh()
        chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
        chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)
        chr.SetRotation(0.0)
Пример #4
0
	def __MakeCharacter(self, page, slot, race):

		chr_id = self.__GetSlotChrID(page, slot)

		chr.CreateInstance(chr_id)
		chr.SelectInstance(chr_id)
		chr.SetVirtualID(chr_id)
		#
		self.instanceIDs.append(chr_id)

		chr.SetRace(race)
		chr.SetArmor(0)
		chr.SetHair(0)

		chr.Refresh()
		chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
		chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)

		chr.SetRotation(0.0)
		chr.Hide()