if(jieduan=0)
setHortation(false)
	hero[2][1]
	hero[0][0]=82
	hero[1][0]=10
	addHero(hero)
	sethp(4,1000)
	setmp(4,600)
	setJD(jieduan+1)
endif

if(jieduan=1)
	talk[1]
	talk[0]="谁让你多管闲事！" 
	setTalk(4,talk)
	setJD(jieduan+1)
        jieduan=jieduan+1
endif

if(jieduan=2)
   if(gethp(4)<880)
	setJD(4)
        talk[1]
	talk[0]="好吧，就让本大王尝尝你这老匹夫的肉好了！"
	setTalk(4,talk)
   endif
   
    if(probability(20))
        act[4]
	act[0]=13
	act[1]=16
	act[2]=17
	act[3]=2
	randomContor(4,act)
    else
	setcontor(4,-1,0,0) 
    endif
endif

if(jieduan=4)
    	if(gethp(4)<450)
            setJD(6)
            talk[1]
            talk[0]="和你拼了！！"
            setTalk(4,talk)
            addBuff(4,17,1,100)	
	endif

     if(probability(50))
        act[2]
	act[0]=13
	act[1]=2
	randomContor(4,act)
    else
	setcontor(4,-1,0,0) 
    endif
endif

if(jieduan=6)
	if(probability(70))
	act[4]
	act[0]=13
	act[1]=16
	act[2]=17
	act[3]=2
	randomContor(4,act)
	else
	setcontor(4,-1,0,0) 
	endif
endif

ret
