OK論壇

 找回密碼
 註冊
查看: 2408|回復: 11

武器轉屬性

 關閉 [複製鏈接]
  • TA的每日心情
    開心
    2012-10-30 02:00 AM
  • 簽到天數: 59 天

    連續簽到: 1 天

    [LV.5]常住居民I

    發表於 2010-6-7 12:32:32 | 顯示全部樓層 |閱讀模式
    本帖最後由 錯誤 於 2010-6-13 03:35 AM 編輯

    mes "[女武槍換屬性]";
            Mes "你要把[^0000FF"+getitemname(getequipid(1411))+"^000000],";
            Mes "變為屬性武器,是嗎?";
            Mes "^FF0000如果武器上有卡片";
            Mes "變換屬性後,卡片將消失^000000";
            Mes "^0000FF換過屬性的武器不能再插卡了^000000";
            next;
            menu "是",L1,"不是",L2;
            
            L2:
            mes "[女武槍換屬性]";
            mes "沒有?就去收集阿";
            close;        

    L1:
            mes "[女武槍換屬性]";
            Mes "選擇你需要的屬性";
            next;
            mes "[武器屬性制作員]";
            Mes "選擇你需要的屬性";
            if (@qh==3) goto S_sa;
            next;
            Set @produce,select("水屬性","地屬性","火屬性","風屬性","無屬性");
            if (@sx==5) set @sx,0;
    S_sa:
            successrefitem 4;
            getitem2 @wqdid,1,1,0,0,255,((@qh*5*256)+@sx),getcharid(0)%65536,getcharid(0)/65536;
            mes "[女武槍換屬性]";
            Mes "請好好使用!!";
            close;
    }

    請問我這樣轉換屬性怎不能成功=ˇ=是屬性設錯了嗎?

    而每次對話他就+1對話10次就+10甚至超過..可以設定嗎?
    因為我想要有那個效果出來

    請問我需要改哪一些
    回復

    使用道具 舉報

  • TA的每日心情
    開心
    2024-9-22 07:14 PM
  • 簽到天數: 238 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2010-6-7 18:52:42 | 顯示全部樓層
    去搜尋getitem2教學
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2012-10-30 02:00 AM
  • 簽到天數: 59 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2010-6-7 21:57:27 | 顯示全部樓層
    回復 2# pan00017


        getitem2請問是腳本區嗎
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-6-7 22:21:41 | 顯示全部樓層
    *getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
    *getitem2 "<Item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};

    This command will give an amount of specified items to the invoking character.
    If an optional character ID is specified, and that character is currently
    online, items will be created in their inventory instead. If they are not
    online, nothing will happen. It works essentially the same as 'getitem' (it even
    works for negative ID numbers the same way, which is kinda silly) but is a lot
    more flexible, since it allows you to give the player an item altered with it's
    specific properties.

    Those parameters that are different from 'getitem' are:

    identify    - Whether you want the item to be identified or not, 0 unidentified,
                  1 identified.
    refine      - For how many plusses will it be refined.
                  It will not let you refine an item higher than +10, if you
                  specify more it'll still be 10.
    attribute   - Whether the item is broken (1) or not (0) and NOT an elemental
                  attribute.
    card1,2,3,4 - If you want a card compound to it, place the card ID number into
                  the specific card slot. Card ID numbers also found in
                  'db/item_db.txt'

    Card1-card4 values are also used to store name information for named items, as
    well as the elemental property of weapons and armor. You can create a named item
    in this manner, however, if you just need a named piece of standard equipment,
    it is much easier to the 'getnameditem' function instead.

    You will need to keep these values if you want to destroy and then perfectly
    recreate a named item, for this see 'getinventorylist'.

    If you still want to try creating a named item with this command because
    'getnameditem' won't do it for you cause it's too limited, you can do it like
    this. Careful, minor magic ahead.

        // First, let's get an ID of a character who's name will be on the item.
        // Only an existing character's name may be there.
        // Let's assume our character is 'Adam' and find his ID.
       
        set @charid,getcharid(0,"Adam");

        // Now we split the character ID number into two portions with a binary
        // shift operation. If you don't understand what this does, just copy it.
       
        set @card3, @charid & 65535;
        set @card4, @charid >> 16;

        // If you're inscribing non-equipment, @card1 must be 254.
        // Arrows are also not equipment.
        set @card1,254;
       
        // For named equipment, card2 means the Star Crumbs and elemental
        // crystals used to make this equipment. For everything else, it's 0.
         
        set @card2,0;
       
        // Now, let's give the character who invoked the script some
        // Adam's Apples:
       
        getitem2 512,1,1,0,0,@card1,@card2,@card3,@card4;

    This wasn't tested with all possible items, so I can't give any promises,
    experiment first before relying on it.

    To create equipment, continue this example it like this:

        // We've already have card3 and card4 loaded with correct
        // values so we'll just set up card1 and card2 with data
        // for an Ice Stiletto.

        // If you're inscribing equipment, @card1 must be 255.
        set @card1,255;
       
        // That's the number of star crumbs in a weapon.
        set @sc,2;
       
        // That's the number of elemental property of the weapon.
        set @ele,1;

        // And that's the wacky formula that makes them into
        // a single number.   
        set @card2,@ele+((@sc*5)<<8);

        // That will make us an Adam's +2 VVS Ice Stiletto:
       
        getitem2 1216,1,1,2,0,@card1,@card2,@card3,@card4;

    Experiment with the number of star crumbs - I'm not certain just how much will
    work most and what it depends on. The valid element numbers are:

    1 - Ice, 2 - Earth 3 - Fire 4 - Wind.
       
    You can, apparently, even create duplicates of the same pet egg with this
    command, creating a pet which is the same, but simultaneously exists in two
    eggs, and may hatch from either, although, I'm not sure what kind of a mess will
    this really cause.
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2012-10-30 02:00 AM
  • 簽到天數: 59 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2010-6-7 22:44:42 | 顯示全部樓層
    回復 4# goddameit


        痾

    都英文=ˇ=我看不懂...抱歉
    謝謝你的回答
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-6-7 22:57:48 | 顯示全部樓層
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2012-10-30 02:00 AM
  • 簽到天數: 59 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2010-6-7 23:06:25 | 顯示全部樓層
    回復 6# goddameit


        謝謝你︿︿我剛還跑去下載...翻譯器..

    抱歉剛沒按到回覆
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2012-10-30 02:00 AM
  • 簽到天數: 59 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2010-6-8 00:35:47 | 顯示全部樓層
    回復 6# goddameit


        大大那個我慢慢稿
    可以問你別問題嗎?

    為啥我自己寫卡普腳本1個成不能有2種卡普?第2種會跑不出來
    第一種是存點~倉庫~公會倉
    第二種是倉庫~公會倉

    請問市什麼原因?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-6-8 00:48:11 | 顯示全部樓層
    回復 8# 錯誤


        開新帖
    按版規
    發問
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2012-10-30 02:00 AM
  • 簽到天數: 59 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2010-6-8 01:53:12 | 顯示全部樓層
    回復 9# goddameit


        恩謝謝你~^^

    希望可以跟你學習
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2010-6-7 01:51 AM
  • 簽到天數: 28 天

    連續簽到: 0 天

    [LV.4]偶爾看看III

    發表於 2010-6-8 06:53:33 | 顯示全部樓層
    getitem2 "<物品中文名稱>",<數量>,<鑑定>,<精練>,<屬性>,<卡片1>,<卡片2>,<卡片3>,<卡片4>{,};



    getitem2 <物品編號>,<數量>,<鑑定>,<精練>,<屬性>,<卡片1>,<卡片2>,<卡片3>,<卡片4>{,};
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2012-10-30 02:00 AM
  • 簽到天數: 59 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2010-6-13 03:35:02 | 顯示全部樓層
    以解決謝謝幫忙^^
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

    Archiver|手機版|小黑屋|OK討論區

    GMT+8, 2025-7-6 02:51 PM , Processed in 0.144506 second(s), 20 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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