OK論壇

 找回密碼
 註冊
查看: 2940|回復: 10

[腳本] 頭飾試戴區

[複製鏈接]
  • TA的每日心情
    慵懶
    2016-6-9 12:41 PM
  • 簽到天數: 31 天

    連續簽到: 1 天

    [LV.5]常住居民I

    發表於 2011-10-19 12:17:05 | 顯示全部樓層 |閱讀模式
    因為有玩家跟我說希望能先戴戴看頭飾再決定要不要去買,還有說買不起要是能夠試戴就好了。所以做了一個頭飾試戴區。能夠傳送玩家到特殊區域,所有頭飾商品1Z,但是無法帶走。








    1.點NPC,會問你要不要過去試戴區。






    2. 去了之後會傳送到試戴區,NPC根據分類來擺放商品,試用品全部只要1Z。





    3.隨便挑一個買。





    4. 戴上去。





    5. 狂買一堆試戴之後,想走只要點NPC回去就行了。


    6. 最後會把你所有買過的試戴用品全回收,當然連頭上正套的也剝下來。




    評分

    參與人數 1積分 +77 現金 +77 積極性 +77 收起 理由
    goddameit + 77 + 77 + 77

    查看全部評分

    回復

    使用道具 舉報

  • TA的每日心情
    慵懶
    2012-7-19 08:02 AM
  • 簽到天數: 130 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2011-10-19 14:32:30 | 顯示全部樓層
    本帖最後由 x0823x 於 2011-10-19 02:35 PM 編輯

    不適合用在有開放倉庫指令跟信箱指令的私服吧
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2016-12-15 11:58 PM
  • 簽到天數: 379 天

    連續簽到: 1 天

    [LV.9]以壇為家II

    發表於 2011-10-19 14:41:22 | 顯示全部樓層
    mapflag nocommand應該就沒事了吧
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

    發表於 2011-10-19 15:33:37 | 顯示全部樓層
    給玩家物品 是很危險的動作  show 外觀比較安全
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2016-6-9 12:41 PM
  • 簽到天數: 31 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2011-10-19 17:21:53 | 顯示全部樓層
    這理邊拿到的物品不能交易丟棄販賣,而且還有其他的NPC可以檢查是不是有非法物品。

    定時清查資料庫的結果也是沒發現有玩家能夠帶出來的,看起來是相當安全
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2023-12-30 04:16 AM
  • 簽到天數: 1322 天

    連續簽到: 1 天

    [LV.10]以壇為家III

    發表於 2011-10-20 16:11:15 | 顯示全部樓層
    只setloot show 外觀 不就不用後續的監控動作?
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    奮斗
    2020-10-3 11:40 PM
  • 簽到天數: 64 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2011-10-20 16:52:20 | 顯示全部樓層
    用rentitem比較方便一點,無須煩惱其餘問題
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2022-5-4 11:43 PM
  • 簽到天數: 248 天

    連續簽到: 1 天

    [LV.8]以壇為家I

    發表於 2011-10-20 19:56:15 | 顯示全部樓層
    要開放這個的確要聯想很多可能會讓玩家取得的可能0.0
    所以還是展示就好XD
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2016-6-9 12:41 PM
  • 簽到天數: 31 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2011-10-21 15:30:38 | 顯示全部樓層
    setlook 可以直接設定成頭飾外觀嗎 !?  我是二轉版本看說明好像沒查到 @_@aaa


    另外想說讓玩家可以直接拿起來戴也比較有感覺。
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2016-12-15 11:58 PM
  • 簽到天數: 379 天

    連續簽到: 1 天

    [LV.9]以壇為家II

    發表於 2011-10-21 19:22:36 | 顯示全部樓層
    1. *setlook <look type>,<look value>;
    2. *changelook <look type>,<look value>;

    3. 'setlook' will alter the look data for the invoking character. It is used
    4. mainly for changing the palette used on hair and clothes: you specify which look
    5. type you want to change, then the palette you want to use. Make sure you specify
    6. a palette number that exists/is usable by the client you use.
    7. 'changelook' works the same, but is only client side (it doesn't save the look value).

    8.     // This will change your hair(6), so that it uses palette 8, what ever your
    9.     // palette 8 is, your hair will use that color

    10.     setlook 6,8;

    11.     // This will change your clothes(7), so they are using palette 1, whatever
    12.     // your palette 1 is, your clothes will then use that set of colors.
    13.    
    14.     setlook 7,1;

    15. Here are the possible look types:

    16. 0 - Base sprite
    17. 1 - Hairstyle
    18. 2 - Weapon
    19. 3 - Head bottom
    20. 4 - Head top
    21. 5 - Head mid
    22. 6 - Hair color
    23. 7 - Clothes color
    24. 8 - Shield
    25. 9 - Shoes

    26. Whatever 'shoes' means is anyone's guess, ask Gravity - the client does nothing
    27. with this value. It still wants it from the server though, so it is kept, but
    28. normally doesn't do a thing.

    29. Only the look data for hairstyle, hair color and clothes color are saved to the
    30. char server's database and will persist. The rest freely change as the character
    31. puts on and removes equipment, changes maps, logs in and out and otherwise you
    32. should not expect to set them. In fact, messing with them is generally
    33. hazardous, do it at your own risk, it is not tested what will this actually do -
    34. it won't cause database corruption and probably won't cause a server crash, but
    35. it's easy to crash the client with just about anything unusual.

    36. However, it might be an easy way to quickly check for empty view IDs for
    37. sprites, which is essential for making custom headgear.

    38. Since a lot of people have different palettes for hair and clothes, it's
    39. impossible to tell you what all the color numbers are. If you want a serious
    40. example, there is a Stylist script inside the default eAthena installation that
    41. you can look at, this may help you create a Stylist of your own:
    42. 'custom\dye.txt'
    複製代碼
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2016-6-9 12:41 PM
  • 簽到天數: 31 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2011-10-22 11:32:19 | 顯示全部樓層
    謝謝 我研究看看
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2024-4-29 04:40 PM , Processed in 0.059360 second(s), 22 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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