OK論壇

 找回密碼
 註冊
查看: 1257|回復: 2

如何取得殺死某怪物的玩家編號呢?

 關閉 [複製鏈接]
  • TA的每日心情
    無聊
    2010-10-23 01:34 AM
  • 簽到天數: 8 天

    連續簽到: 0 天

    [LV.3]偶爾看看II

    發表於 2010-10-20 15:43:48 | 顯示全部樓層 |閱讀模式
    假設A玩家和B玩家組隊我想讓B玩家殺死某怪物後能讓A玩家的某變數值做改變
    類似組團幫忙某玩家解任務那樣

    不知有高手能給點提示或意見嗎?
    回復

    使用道具 舉報

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

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2010-10-20 19:10:51 | 顯示全部樓層
    attachrid(<account ID>)
    detachrid;


    A 'RID' is an ID of a character who caused the NPC script to run, as has been
    explained above in the introduction section. Quite a bit of commands want a RID
    to work, since they wouldn't know where to send information otherwise. And in
    quite a few cases the script gets invoked with a RID of zero (like through
    OnTime special labels). If an NPC script needs this, it can attach a specified
    character's id to itself. by calling the 'attachrid' function.

    'attachrid' returns 1 if the character was found online and 0 if it wasn't.

    This could also be used, while running in a script invoked by a character
    through talking to an NPC, to mess with other characters.
    Detaching the RID will make the RID of the script zero.
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    無聊
    2010-10-23 01:34 AM
  • 簽到天數: 8 天

    連續簽到: 0 天

    [LV.3]偶爾看看II

     樓主| 發表於 2010-10-20 23:44:30 | 顯示全部樓層
    attachrid()
    detachrid;

    A 'RID' is an ID of a character who caused the NPC script to run, as has  ...
    pan00017 發表於 2010-10-20 07:10 PM



       嗯...我試試看這個指令
    回復 支持 反對

    使用道具 舉報

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

    本版積分規則

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

    GMT+8, 2025-7-1 06:03 PM , Processed in 0.098597 second(s), 20 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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