副本創建失敗
本帖最後由 美美美美美 於 2015-9-6 09:25 PM 編輯我使用這個腳本
http://svn.code.sf.net/p/rathena/svn/trunk/npc/re/instances/OldGlastHeim.txt
卡在這裡
case 1:
if (instance_create(.@md_name$) < 0) {
mes "Party Name: "+.@p_name$;
mes "Party Leader: "+strcharinfo(0);
mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!";
close;
}
怎解決?
db/instance_db 寫錯 腳本內的 set .@md_name$,"Old Glast Heim";
要對應你的instance_db內的名稱
*instance_create("<instance name>");
Creates an instance for the party of the attached player. The instance name,
along with all other instance data, is read from 'db/(pre-)re/instance_db.txt'.
Upon success, the command generates a unique instance ID, duplicates all listed
maps and NPCs, sets the alive time, and triggers the "OnInstanceInit" label in
all NPCs inside the instance.
The command returns the instance ID upon success, and these values upon failure:
-1: Invalid type.
-2: Party not found.
-3: Instance already exists.
-4: No free instances (MAX_INSTANCE exceeded).
doc裡面有自己看
-樂- 發表於 2015-9-6 06:45 PM static/image/common/back.gif
腳本內的 set .@md_name$,"Old Glast Heim";
要對應你的instance_db內的名稱
創建成功後卡在
http://i.imgur.com/0EtGEs5.png
mes "The memorial dungeon "+.@md_name$+" does not exist.";
mes "The party leader did not generate the dungeon yet.";
close;
Residue 發表於 2015-9-6 06:46 PM static/image/common/back.gif
*instance_create("");
Creates an instance for the party of the attached player. The instance name ...
已設好這段. 謝謝 美美美美美 發表於 2015-9-6 07:01 PM static/image/common/back.gif
創建成功後卡在
你只給ra的腳本我無法判斷你改了哪邊, 改了什麼.
-樂- 發表於 2015-9-6 07:24 PM static/image/common/back.gif
你只給ra的腳本我無法判斷你改了哪邊, 改了什麼.
已PM
另外增加了quest
12317,82800,0,0,0,0,0,0,"Fake Keyblade"
12318,0,2475,1,0,0,0,0,"Upper Cats: annoying guy"
12319,0,2476,1,0,0,0,0,"Upper Cats: annoying guy"
美美美美美 發表於 2015-9-6 07:30 PM static/image/common/back.gif
已PM
另外增加了quest
12317,82800,0,0,0,0,0,0,"Fake Keyblade"
我用你給的腳本後, 我是能正常建立副本, 隊員也可以進入副本,
我只改 set .@md_name$,"Old Glast Heim";
與instance_db內的副本名稱對應.
本帖最後由 美美美美美 於 2015-9-6 09:23 PM 編輯
-樂- 發表於 2015-9-6 09:01 PM static/image/common/back.gif
我用你給的腳本後, 我是能正常建立副本, 隊員也可以進入副本,
我只改 set .@md_name$,"Old Glast Hei ...
12,Old Glast Heim,10800,1@gl_k,150,20,2@gl_k
這樣正確嗎?
============================
原來寫錯了
11,Old Glast Heim,10800,1@gl_k,150,20,1@gl_k,2@gl_k
頁:
[1]