查看: 1198|回復: 2

[問題] 真酒 和 黃金酒 問題 (求高手指教

[複製鏈接]
發表於 2012-6-10 15:27:01 | 顯示全部樓層 |閱讀模式
[隱藏]

馬上註冊,結交更多好友,享用更多功能,讓你輕鬆玩轉社區。

您需要 登錄 才可以下載或查看,沒有帳號?註冊

x
以下是我對著真酒腳本 而改的 黃金酒腳本
為何遊戲用不到它 : 它說 沒裝上字首 ( 求高上指教





local equipedWeapon = 0
local EQPart = 1

Ask("你想要激發哪一件裝備的字首?","手環","鞋","符","武器","衣","盾","頸","頭","披風","不要了")
if GetChoice() == 1 then --手環
        EQPart = 1
elseif GetChoice() == 2 then --鞋
        EQPart = 2
elseif GetChoice() == 3 then --符
        EQPart = 4
elseif GetChoice() == 4 then --武器
        EQPart = 8
elseif GetChoice() == 5 then --衣
        EQPart = 16
elseif GetChoice() == 6 then --盾
        EQPart = 32
elseif GetChoice() == 7 then --頸
        EQPart = 64
elseif GetChoice() == 8 then --頭
        EQPart = 128
elseif GetChoice() == 9 then --披風
        EQPart = 256
end
               
equipedWeapon = GetEquipedEq(EQPart)
       
if EQPart == 8 and equipedWeapon == nil then
        equipedWeapon = GetEquipedEq(40)
end
       
if equipedWeapon ~= nil then
        local weaponID = GetData("ItemIdx", equipedWeapon)
        local WeaponDBID = GetData("DBID", equipedWeapon)

        local PrefixID = math.floor(math.mod(weaponID, 10000000) / 100000)

        if PrefixID ~= 116 and PrefixID ~= 118 and PrefixID ~=124  and PrefixID ~= 119 and PrefixID ~= 117 then
                Say("無法使用!你的裝備沒有花榮、柴進、李逵、朱武、關勝字首。", 1)
        else
                if PrefixID == 116 then
                        PrefixID = 120
                elseif PrefixID == 118 then
                        PrefixID = 123
                elseif PrefixID == 124 then
                        PrefixID = 125
                elseif PrefixID == 119 then
                        PrefixID = 122
                elseif PrefixID == 117 then
                        PrefixID = 121
                end
                if RemoveItem(100003091, 1, "Remove by item3091.lua Upgrade Prefix to "..PrefixID, 0) == 1 then
                        AssignPrefix(PrefixID, equipedWeapon)
                        Say("你的裝備已升級了字首。", 1)
                end
        end
else
        Say("你沒有裝上此部位的裝備!", 1)
end
發表於 2012-6-10 16:31:46 | 顯示全部樓層
真.結義酒劇本裡的這行有錯誤
local PrefixID = math.floor(math.mod(weaponID, 10000000) / 100000)
應修改為
local PrefixID = math.floor(math.mod(weaponID, 100000000) / 100000)
回復

使用道具 舉報

 樓主| 發表於 2012-6-10 18:00:05 | 顯示全部樓層
gota6 發表於 2012-6-10 04:31 PM
真.結義酒劇本裡的這行有錯誤
local PrefixID = math.floor(math.mod(weaponID, 10000000) / 100000)
應修 ...

試試看. 先謝謝
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|排行榜|幫助|希望國度

GMT+8, 2024-5-13 12:10 , Processed in 0.062096 second(s), 14 queries .

Theme Design By Tenny (希望國度)| Version: 10.0

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表