我要加入

星空之門/星夢懷念群

會長:windnoname / 風無名開設日:2015-08-13 03:14:47

  • EXP

  • 資金1  
  • 關連作品星空之門 Online、星夢 Online... 看更多
  • 招募制度:自由加入制
  • 成員:28 人
  • 昨日人氣:0

修改腳本

推上精選編輯

近期編輯:windnoname ...看更多

腳本方面A:
例如要修改任務  都是在\CDGameShell\Dat\Quest    裡面的 .txt  格式檔案  用系統的記事本打開即可修改的
例如修改    [星空新手指導員]
NQ020_A.txt   -->新手指導員 腳本
用記事本打開 NQ020_A.txt    然後 ctrl+f    搜尋  ModifyData("Money",   這個是任務得到的金錢
AddItem(xxxxx)   xxxxx 就是任務得到的道具  如果要加多個道具就直接再寫多一個 AddItem(道具編號)  就這麼簡單
SetFlag("NQ020_Task",4)   完成該任務標記   這個不用怎改,  除非自己新增修改別的任務

傳送器教學
傳送器 道具編號是 2001  可以寫到新手指導員拿到  上面方法教了 在腳本相應位置 加上  AddItem(2001)

GiftItem2001.txt --> 傳送器腳本 (本身服務端傳送器少了騎士之城跟機械之城)
打開GiftItem2001 腳本 把本身代碼全刪了 把以下代碼寫到裡面

function response1()
        choice=GetChoice()
        if choice==0 then
                Ask("p確定要去魔法之都嗎?","是","還是不去","gotocity01")
        elseif choice==1 then
                Ask("p確定要去騎士之城嗎?","是","還是不去","gotocity02")
        elseif choice==2 then
                Ask("p確定要去機械之城嗎?","是","還是不去","gotocity03")
        else
                Ask("p確定要去尼尼亞皇城嗎?","是","還是不去","gotocity04")
        end
end

function gotocity01()
        choice=GetChoice()
        if choice==0 then
                MovePlayer(2112,3488,09)
        else
                AddItem(2001,1)
                QuestEnd()
        end
end

function gotocity02()
        choice=GetChoice()
        if choice==0 then
                MovePlayer(3456,10560,22)
        else
                AddItem(2001,1)
                QuestEnd()
        end
end

function gotocity04()
        choice=GetChoice()
        if choice==0 then
                MovePlayer(13568,12096,15)
        else
                AddItem(2001,1)
                QuestEnd()
        end
end

function gotocity03()
        choice=GetChoice()
        if choice==0 then
                MovePlayer(13888,7456,17)
        else
                AddItem(2001,1)
                QuestEnd()
        end
end


function start()
        --if the map is completed , uncomment the following command and the function response1
        -- then delete the function response01
        Ask("p請問去那個城市呢?","魔法之都","騎士之城","機械之城","尼尼亞皇城","response1")
        --Ask("p請問去那個城市呢?","魔法之都","尼尼亞皇城","response01")
end

本篇文章轉載至2000Fun

公會首頁

主選單
關聯資料

目前沒有資料連到「修改腳本」。


face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】