Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

這個語法是怎樣打的?怎麼像是小幫手??

這個語法是怎樣打的?怎麼像是小幫手??網站網址:http://myweb.hinet.net/home14/advance01/好厲害喔~是怎麼用的... Script原始碼,可以解說一下嗎??我是指那個博士喔~

1 Answer

Rating
  • Anonymous
    1 decade ago
    Best Answer

    那是我的網頁!.....這各很簡單!這是屬於microsoft內建的程式語法:<OBJECT id=tsaiannie53441 height=32 width=32 classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F></OBJECT> <SCRIPT> var MerlinID; var MerlinACS; tsaiannie53441.Connected = true; MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS); Merlin = tsaiannie53441.Characters.Character(MerlinID);Merlin.Show();Merlin.Play("Announce");Merlin.Play("GetAttention");Merlin.Speak("hello!你好啊...");Merlin.Play("GestureLeft");Merlin.Speak("歡迎光臨蘇三起解公會網站");Merlin.Play("SEARCH");Merlin.Play("Acknowledge");Merlin.Play("GestureRight");Merlin.Speak("歡迎各位白亭伺服器網友加入");Merlin.Play("Congratulate_2");Merlin.Speak("對了!!");Merlin.Play("DoMagic2");Merlin.Play("Greet");Merlin.Speak("千萬不要用外掛");Merlin.Play("STOPLISTENING");Merlin.Speak("本公會嚴禁外掛");Merlin.Play("CONFUSED");Merlin.Speak("拒絕用外掛來滿足等級虛榮感!");Merlin.Play("THINK");Merlin.Speak("有沒有聽到");Merlin.Play("BLINK");Merlin.Speak("外掛!外掛!我牽掛!!");Merlin.Play("Wave");Merlin.Speak("就醬囉...bye bye!");Merlin.MoveTo(400,300); Merlin.Hide();function LoadLocalAgent(CharID, CharACS) {LoadReq = tsaiannie53441.Characters.Load(CharID, CharACS);return(true);}</SCRIPT>以上語法修改後,貼在<head>   </head>中間------------------------------------------------------------------改變梅林大師的動作<object id=SmileKevin classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F></object><script> var MerlinID; var MerlinACS; SmileKevin.Connected = true; MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS); Merlin = SmileKevin.Characters.Character(MerlinID); Merlin.MoveTo(x,y); //移動至某座標,x與y之單位為像素Merlin.Show();//出現Merlin.Hide();//隱藏 Merlin.Speak("要說的話");//說話 Merlin.Think("要思考的內容 ");//思考 Merlin.Play("GestureUp");//向上 Merlin.Play("GestureDown");//向下 Merlin.Play("GestureLeft");// 向左 Merlin.Play("GestureRight");// 向右 Merlin.Play("Sad");//嘆氣.停頓Merlin.Play("Surprised");//驚訝(有聲音)Merlin.Play("Pleased");//欣慰;握掌 Merlin.Play("Announce");//宣告;吹喇叭 Merlin.Play("Blink");//眨眼 Merlin.Play("Decline");//無奈;攤手搖頭Merlin.Play("Confused");//迷惘;抓頭Merlin.Play("Congratulate");//恭賀;拿出獎盃Merlin.Play("Congratulate_2"); //鼓掌(有聲音)Merlin.Play("Wave");//揮手 Merlin.Play("Acknowledge");//點頭示意Merlin.Play("DoMagic1");//變魔術1 Merlin.Play("DoMagic2");//變魔術2Merlin.Play("Explain");//敘述;攤手 Merlin.Play("GetAttention");//注意;敲門 Merlin.Play("Greet");//致敬;彎腰Merlin.Play("Idle1_1");//停頓Merlin.Play("Idle1_2");//停頓;向左看 Merlin.Play("Idle2_1");//停頓;觀察魔術棒 Merlin.Play("Idle2_2");//停頓;兩手在腹前交叉 Merlin.Play("Idle3_1");//停頓;打呵欠 Merlin.Play("Idle3_2");//停頓;打瞌睡(持續不停) Merlin.Play("LookUp");//上看 Merlin.Play("LookDown");//下看 Merlin.Play("LookLeft");//左看 Merlin.Play("LookRight");//右看 Merlin.Play("MoveUp");//上移 Merlin.Play("MoveDown");//下移 Merlin.Play("MoveLeft");//左移 Merlin.Play("MoveRight");//右移 Merlin.Play("Process");//調配魔法湯Merlin.Play("Processing");//調配魔法湯(持續不停) Merlin.Play("Read");//閱讀 Merlin.Play("Reading");//閱讀(持續不停) Merlin.Play("Write");//書寫 Merlin.Play("Writing");//書寫(持續持續不停)Merlin.Play("Search");//搜尋;水晶球 Merlin.Play("Searching");//搜尋-持續 Merlin.Play("StartListening");//聽 Merlin.Play("StopListening");//掩耳 Merlin.Play("Suggest");//想到點子;亮燈泡 Merlin.Play("Uncertain");//前傾 function LoadLocalAgent(CharID, CharACS) {LoadReq = SmileKevin.Characters.Load(CharID, CharACS);return(true);} </script>

Still have questions? Get your answers by asking now.