From 581475bc6416790765c498aa3d611f6868ffb64a Mon Sep 17 00:00:00 2001 From: amber Date: Sun, 14 Nov 2004 16:18:26 +0000 Subject: Fixed some file types git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@172 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/sample/PCLoginEvent.txt | 64 +-- npc/sample/bank_test.txt | 118 ++--- npc/sample/gstorage_test.txt | 66 +-- npc/sample/npc_card_remover.txt | 394 ++++++++--------- npc/sample/npc_equip_sample.txt | 34 +- npc/sample/npc_extend_shop.txt | 136 +++--- npc/sample/npc_sample.txt | 914 +++++++++++++++++++-------------------- npc/sample/npc_shop_test.txt | 62 +-- npc/sample/npc_test_arena.txt | 208 ++++----- npc/sample/npc_test_array.txt | 70 +-- npc/sample/npc_test_chat.txt | 56 +-- npc/sample/npc_test_ev.txt | 292 ++++++------- npc/sample/npc_test_func.txt | 54 +-- npc/sample/npc_test_npctimer.txt | 66 +-- npc/sample/npc_test_skill.txt | 38 +- npc/sample/npc_test_str.txt | 34 +- npc/sample/npc_testchkoption.txt | 28 +- npc/sample/npc_time_sample.txt | 38 +- 18 files changed, 1336 insertions(+), 1336 deletions(-) (limited to 'npc/sample') diff --git a/npc/sample/PCLoginEvent.txt b/npc/sample/PCLoginEvent.txt index 66b99e86d..d668c0960 100644 --- a/npc/sample/PCLoginEvent.txt +++ b/npc/sample/PCLoginEvent.txt @@ -1,33 +1,33 @@ -// eAthena Special NPC - -// PCLoginEvent NPC (davidsiaw) -//============================================================================== -// How it works: -// When a player logs in, the NPC will run as if he just clicked it. Which means -// if the script is like this: -// -// [code] -// prontera.gat,0,0,0 script PCLoginEvent -1,{ -// mes "lmao"; -// close; -// } -// [/code] -// -// every player who logs in will recieve a message 'lmao' in their face as soon -// as they can see the map. -//----------------------------------------------------------------------------- -// Note: -// 1) This NPC will only run if its name is 'PCLoginEvent' -// 2) I made it invisible because you don't need to see it. Its an abstract NPC -// 3) If you don't want it, simply delete it -// 4) If you have more than one PCLoginEvent NPC, strange things will happen. -// 5) You can put this script in ANY file. -// 6) I put an end; there because that just makes it do nothing. -// 7) Modify this script to your liking and give your players a surprise -// 8) Remember: IT RUNS LIKE A NORMAL NPC. BUT THE ONLY WAY TO 'CLICK' IT IS BY -// LOGGING ON - - -prontera.gat,0,0,0 script PCLoginEvent -1,{ - end; +// eAthena Special NPC + +// PCLoginEvent NPC (davidsiaw) +//============================================================================== +// How it works: +// When a player logs in, the NPC will run as if he just clicked it. Which means +// if the script is like this: +// +// [code] +// prontera.gat,0,0,0 script PCLoginEvent -1,{ +// mes "lmao"; +// close; +// } +// [/code] +// +// every player who logs in will recieve a message 'lmao' in their face as soon +// as they can see the map. +//----------------------------------------------------------------------------- +// Note: +// 1) This NPC will only run if its name is 'PCLoginEvent' +// 2) I made it invisible because you don't need to see it. Its an abstract NPC +// 3) If you don't want it, simply delete it +// 4) If you have more than one PCLoginEvent NPC, strange things will happen. +// 5) You can put this script in ANY file. +// 6) I put an end; there because that just makes it do nothing. +// 7) Modify this script to your liking and give your players a surprise +// 8) Remember: IT RUNS LIKE A NORMAL NPC. BUT THE ONLY WAY TO 'CLICK' IT IS BY +// LOGGING ON + + +prontera.gat,0,0,0 script PCLoginEvent -1,{ + end; } \ No newline at end of file diff --git a/npc/sample/bank_test.txt b/npc/sample/bank_test.txt index 511790926..6a9bfe08d 100644 --- a/npc/sample/bank_test.txt +++ b/npc/sample/bank_test.txt @@ -1,59 +1,59 @@ -// カプラ銀行サービス テストスクリプト -prontera.gat,162,188,1 script 銀行員カプラ 112,{ - cutin "kafra_06",2; - - mes"[銀行員カプラ]"; - mes "カプラ銀行サービスです。"; - mes "毎度ご利用ありがとうございます♪"; - mes "1000zからでのご利用になります。"; - next; - menu "預ける",BANK_IN,"引き出す",BANK_OUT,"やっぱやめる",B_EXIT2; -BANK_IN: - mes"[銀行員カプラ]"; - mes "預ける金額を入力してください♪"; - mes "ちなみに、手数料として"; - mes "預かり金の1%頂きます。"; - next; - input @kafrabank; - - if(@kafrabank<1000) goto B_EXIT2; - set @kafrabank2,@kafrabank*1/100; - if(@kafrabank+@kafrabank2>Zeny) goto BANK_F; - set Zeny,Zeny-@kafrabank-@kafrabank2; - set #kafrabank,#kafrabank+@kafrabank; - mes "手数料^135445" + @kafrabank2 + "z^000000頂きますね。"; - - goto B_EXIT; -BANK_OUT: - if(#kafrabank==0) goto BANK_F2; - mes"[銀行員カプラ]"; - mes "現在あなたからお預かりしているのは"; - mes "^135445" + #kafrabank + "^000000Zenyです。"; - mes "引き出す金額を入力してください♪"; - next; - input @kafrabank; - - if(@kafrabank<1) goto B_EXIT2; - if(@kafrabank>#kafrabank) goto BANK_F; - set #kafrabank,#kafrabank-@kafrabank; - set Zeny,Zeny+@kafrabank; - - goto B_EXIT; - -BANK_F: - mes"[銀行員カプラ]"; - mes "持ち金が足りないようですね。"; - goto B_EXIT2; -BANK_F2: - mes"[銀行員カプラ]"; - mes "あなたからは、1zも"; - mes "お預かりしていないですよ?"; - goto B_EXIT2; - -B_EXIT: - mes "無事に取り引きできました。"; -B_EXIT2: - mes "またのご利用をお待ちしています♪"; - cutin "kafra_06",255; - close; -} +// カプラ銀行サービス テストスクリプト +prontera.gat,162,188,1 script 銀行員カプラ 112,{ + cutin "kafra_06",2; + + mes"[銀行員カプラ]"; + mes "カプラ銀行サービスです。"; + mes "毎度ご利用ありがとうございます♪"; + mes "1000zからでのご利用になります。"; + next; + menu "預ける",BANK_IN,"引き出す",BANK_OUT,"やっぱやめる",B_EXIT2; +BANK_IN: + mes"[銀行員カプラ]"; + mes "預ける金額を入力してください♪"; + mes "ちなみに、手数料として"; + mes "預かり金の1%頂きます。"; + next; + input @kafrabank; + + if(@kafrabank<1000) goto B_EXIT2; + set @kafrabank2,@kafrabank*1/100; + if(@kafrabank+@kafrabank2>Zeny) goto BANK_F; + set Zeny,Zeny-@kafrabank-@kafrabank2; + set #kafrabank,#kafrabank+@kafrabank; + mes "手数料^135445" + @kafrabank2 + "z^000000頂きますね。"; + + goto B_EXIT; +BANK_OUT: + if(#kafrabank==0) goto BANK_F2; + mes"[銀行員カプラ]"; + mes "現在あなたからお預かりしているのは"; + mes "^135445" + #kafrabank + "^000000Zenyです。"; + mes "引き出す金額を入力してください♪"; + next; + input @kafrabank; + + if(@kafrabank<1) goto B_EXIT2; + if(@kafrabank>#kafrabank) goto BANK_F; + set #kafrabank,#kafrabank-@kafrabank; + set Zeny,Zeny+@kafrabank; + + goto B_EXIT; + +BANK_F: + mes"[銀行員カプラ]"; + mes "持ち金が足りないようですね。"; + goto B_EXIT2; +BANK_F2: + mes"[銀行員カプラ]"; + mes "あなたからは、1zも"; + mes "お預かりしていないですよ?"; + goto B_EXIT2; + +B_EXIT: + mes "無事に取り引きできました。"; +B_EXIT2: + mes "またのご利用をお待ちしています♪"; + cutin "kafra_06",255; + close; +} diff --git a/npc/sample/gstorage_test.txt b/npc/sample/gstorage_test.txt index aa6749ec0..6a8816e43 100644 --- a/npc/sample/gstorage_test.txt +++ b/npc/sample/gstorage_test.txt @@ -1,33 +1,33 @@ -// カプラギルド倉庫サービス テストスクリプト -prontera.gat,165,188,4 script ギルド倉庫カプラ 112,{ - cutin "kafra_06",2; - - mes"[ギルド倉庫カプラ]"; - mes "カプラギルド倉庫サービスです。"; - mes "毎度ご利用ありがとうございます♪"; - mes "テスト用なので金は貰いません。"; - next; - menu "ギルド倉庫を利用する",GS_OPEN,"やっぱやめる",GS_EXIT3; - -GS_OPEN: - set @flag,guildopenstorage(0); - if(@flag == 1) goto GS_EXIT1; - if(@flag == 2) goto GS_EXIT2; - goto GS_EXIT4; - -GS_EXIT1: - mes "ギルドメンバーが倉庫を使用中です。"; - mes "しばらく待ってから利用してください。"; - goto GS_EXIT4; - -GS_EXIT2: - mes "ギルドに所属してない方は利用することができません。"; - goto GS_EXIT4; - -GS_EXIT3: - mes "またのご利用をお待ちしています♪"; - -GS_EXIT4: - cutin "kafra_06",255; - close; -} +// カプラギルド倉庫サービス テストスクリプト +prontera.gat,165,188,4 script ギルド倉庫カプラ 112,{ + cutin "kafra_06",2; + + mes"[ギルド倉庫カプラ]"; + mes "カプラギルド倉庫サービスです。"; + mes "毎度ご利用ありがとうございます♪"; + mes "テスト用なので金は貰いません。"; + next; + menu "ギルド倉庫を利用する",GS_OPEN,"やっぱやめる",GS_EXIT3; + +GS_OPEN: + set @flag,guildopenstorage(0); + if(@flag == 1) goto GS_EXIT1; + if(@flag == 2) goto GS_EXIT2; + goto GS_EXIT4; + +GS_EXIT1: + mes "ギルドメンバーが倉庫を使用中です。"; + mes "しばらく待ってから利用してください。"; + goto GS_EXIT4; + +GS_EXIT2: + mes "ギルドに所属してない方は利用することができません。"; + goto GS_EXIT4; + +GS_EXIT3: + mes "またのご利用をお待ちしています♪"; + +GS_EXIT4: + cutin "kafra_06",255; + close; +} diff --git a/npc/sample/npc_card_remover.txt b/npc/sample/npc_card_remover.txt index c341c4d1b..f991bc32c 100644 --- a/npc/sample/npc_card_remover.txt +++ b/npc/sample/npc_card_remover.txt @@ -1,197 +1,197 @@ -// Card removal NPC by TyrNemesis^ 日本語訳:胡蝶蘭 -prt_in.gat,28,73,4 script 賢い老女 78,{ - -UPGRADEROOT: -// mes "[Wise Old Woman]"; -// mes "Good day, young one. I have the power to remove cards that you have compounded onto your equipment. Does this idea please you?"; - mes "[賢い老女]"; - mes "いい天気だね、若いの。"; - mes "ところで、アタシは武具に装着している"; - mes "カードを取り外す力を持っているけど、"; - mes "力を貸そうかね?"; - next; -// menu "Yes, it does.",REMOVEMENU, -// "What do you charge?",REMOVEPRICE, -// "No thanks.",CLOSEOUT; - menu "お願いします。",REMOVEMENU, - "いくらかかるんですか?",REMOVEPRICE, - "必要ないです。",CLOSEOUT; - -REMOVEPRICE: -// mes "[Wise Old Woman]"; -// mes "I charge a flat fee of 200000 zeny, plus 25000 zeny for each card I remove from the item. In addition, I need a star crumb and a yellow gemstone to work my magic."; - mes "[賢い老女]"; - mes "そうだね、"; - mes "まず基本料金として^4040FF200000z^000000。"; - mes "そしてカード1枚につき^4040FF25000z^000000貰うよ。"; - mes "あとは、魔法を使うために^4040FF星のかけら^000000と"; - mes "^4040FFイエロージェムストーン^000000が1つずつ必要だよ。"; - next; -// menu "Very well. Let's do it.",REMOVEMENU, -// "No thanks.",CLOSEOUT; - menu "お願いします。",REMOVEMENU, - "必要ないです。",CLOSEOUT; - -REMOVEMENU: -// mes "[Wise Old Woman]"; -// mes "Very well. Which item shall I examine for you?"; - mes "[賢い老女]"; - mes "よしよし。"; - mes "どの武具のカードを取り外すんだね?"; - next; -// menu "I changed my mind.",CLOSEOUT, - menu "やっぱりやめます。",CLOSEOUT, - getequipname(1),-, - getequipname(2),-, - getequipname(3),-, - getequipname(4),-, - getequipname(5),-, - getequipname(6),-, - getequipname(7),-, - getequipname(8),-, - getequipname(9),-, - getequipname(10),-; - set @part,@menu-1; - if(getequipcardcnt(@part) == 0) goto DENYCARDCOUNT; - set @cardcount,getequipcardcnt(@part); -// if(@cardcount > 1) goto CARDNUMMULTIMSG; -// mes "[Wise Old Woman]"; -// mes "This item has " + @cardcount + " card compounded on it. To perform my magic, I will need 225000 zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000."; -// goto CARDNUMPOSTMSG; -//CARDNUMMULTIMSG: -// mes "[Wise Old Woman]"; -// mes "This item has " + @cardcount + " cards compounded on it. To perform my magic, I will need " + (200000+(@cardcount * 25000)) + " zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000."; - mes "[賢い老女]"; - mes "この武具には" + @cardcount + "つカードがついてるね。"; - mes "^0000FF" + (200000+(@cardcount * 25000)) + "z^000000と^0000FF星のかけら^000000と^0000FFイエロージェムストーン^000000が必要だよ。"; -//CARDNUMPOSTMSG: - next; -// menu "Very well. Do it.",REMOVECARDWARNING, -// "Never mind.",CLOSEOUT; - menu "わかりました、お願いします。",REMOVECARDWARNING, - "やっぱりやめます。",CLOSEOUT; - -REMOVECARDWARNING: -// mes "[Wise Old Woman]"; -// mes "Before I begin, I must warn you--I may fail. If I do, I may destroy the cards, the item, or both. I do not give refunds. That being said, which is more important to you: The cards, or the item?"; - mes "[賢い老女]"; - mes "おっと言い忘れるところだったね。"; - mes "この魔法はとても難しいから、"; - mes "^FF4040失敗するかもしれない^000000のさ。"; - mes "失敗したらカードか武具、あるいは"; - mes "その両方が^FF4040破壊されてしまう^000000かも"; - mes "しれないんだよ。"; - next; - mes "[賢い老女]"; - mes "失敗しても^FF4040返金はしない^000000から、"; - mes "一応聞いて置くけど、比べるなら"; - mes "カードと武具のどっちが大切だい?"; - next; -// menu "I changed my mind about this.",CLOSEOUT, -// "The item.",PRIORITYITEM, -// "The cards.",PRIORITYCARD; - menu "それならやめます。",CLOSEOUT, - "武具の方が大切です。",PRIORITYITEM, - "カードの方が大切です",PRIORITYCARD; - -PRIORITYITEM: - set @failtype,1; - goto REMOVECARD; - -PRIORITYCARD: - set @failtype,2; - goto REMOVECARD; - -REMOVECARD: -// mes "[Wise Old Woman]"; -// mes "Very well. I shall begin."; - mes "[賢い老女]"; - mes "よし、始めるよ。"; - next; - if((zeny < (200000+(@cardcount * 25000))) || (countitem(1000) < 1) || (countitem(715) < 1)) goto DENYMATERIAL; - set zeny,zeny - (200000+(@cardcount * 25000)); - delitem 1000,1; - delitem 715,1; - -// Replace the constants in the next 3 lines with failure chance values defined in refine_db.txt -// First value = Total failure chance (item and cards destroyed) -// Second value = Partial failure chance (one or the other is destroyed, player decides which one is safe) -// Third value = Harmless failure chance (all that's lost is your investment) - - set @failchance,rand(100); - if(@failchance < 2) goto FAILREMOVECARD0; - if((@failchance < 6) && (@failtype == 1)) goto FAILREMOVECARD1; - if((@failchance < 6) && (@failtype == 2)) goto FAILREMOVECARD2; - if(@failchance < 10) goto FAILREMOVECARD3; - successremovecards @part; -// mes "[Wise Old Woman]"; -// mes "The process was a success. Here are your cards and your item. Farewell."; - mes "[賢い老女]"; - mes "うまくいったよ。"; - mes "これらが武具とアイテムさ。じゃあね。"; - close; - -FAILREMOVECARD0: -// mes "[Wise Old Woman]"; -// mes "The process was a total failure. I am afraid the item and the cards were destroyed."; - mes "[賢い老女]"; - mes "残念だけど完全に失敗したよ。"; - mes "武具もカードも壊れてしまった。"; - failedremovecards @part,0; - close; - -FAILREMOVECARD1: -// mes "[Wise Old Woman]"; -// mes "While I have managed to remove the cards from the item, they were destroyed in the process. The item, however, is okay."; - mes "[賢い老女]"; - mes "頑張ったけどね、"; - mes "カードのほうは全部壊れてしまったよ。"; - mes "でも武具の方は無事だったよ。"; - failedremovecards @part,1; - close; - -FAILREMOVECARD2: -// mes "[Wise Old Woman]"; -// mes "Most unfortunate. I succeeded at removing the cards, but the item itself was destroyed in the process."; - mes "[賢い老女]"; - mes "不運だったね。"; - mes "カードを取り外すのはうまくいったけど"; - mes "武具が壊れてしまったよ。"; - failedremovecards @part,2; - close; - -FAILREMOVECARD3: -// mes "[Wise Old Woman]"; -// mes "I have failed to remove the cards. Luckily, however, both the item and the cards are still okay."; - mes "[賢い老女]"; - mes "カードを取り外すのに失敗したよ。"; - mes "でも、不幸中の幸いさ。"; - mes "武具もカードも無事だよ。"; - failedremovecards @part,3; - close; - -DENYCARDCOUNT: -// mes "[Wise Old Woman]"; -// mes "Young one... There are no cards compounded on this item. I can do nothing with it, I'm afraid."; - mes "[賢い老女]"; - mes "若いの、カードがついてないよ。"; - mes "それじゃアタシの出番はないさ。"; - close; - -DENYMATERIAL: -// mes "[Wise Old Woman]"; -// mes "You do not have all the items I require to work my magic, child. Come again when you do."; - mes "[賢い老女]"; - mes "必要なアイテムが足りないようだね。"; - mes "アイテムを揃えてもう一度来な。"; - close; - -CLOSEOUT: -// mes "[Wise Old Woman]"; -// mes "Very well. Return at once if you seek my services."; - mes "[賢い老女]"; - mes "わかったよ。"; - mes "アタシの力が必要ならいつでも来な。"; - close; - -} +// Card removal NPC by TyrNemesis^ 日本語訳:胡蝶蘭 +prt_in.gat,28,73,4 script 賢い老女 78,{ + +UPGRADEROOT: +// mes "[Wise Old Woman]"; +// mes "Good day, young one. I have the power to remove cards that you have compounded onto your equipment. Does this idea please you?"; + mes "[賢い老女]"; + mes "いい天気だね、若いの。"; + mes "ところで、アタシは武具に装着している"; + mes "カードを取り外す力を持っているけど、"; + mes "力を貸そうかね?"; + next; +// menu "Yes, it does.",REMOVEMENU, +// "What do you charge?",REMOVEPRICE, +// "No thanks.",CLOSEOUT; + menu "お願いします。",REMOVEMENU, + "いくらかかるんですか?",REMOVEPRICE, + "必要ないです。",CLOSEOUT; + +REMOVEPRICE: +// mes "[Wise Old Woman]"; +// mes "I charge a flat fee of 200000 zeny, plus 25000 zeny for each card I remove from the item. In addition, I need a star crumb and a yellow gemstone to work my magic."; + mes "[賢い老女]"; + mes "そうだね、"; + mes "まず基本料金として^4040FF200000z^000000。"; + mes "そしてカード1枚につき^4040FF25000z^000000貰うよ。"; + mes "あとは、魔法を使うために^4040FF星のかけら^000000と"; + mes "^4040FFイエロージェムストーン^000000が1つずつ必要だよ。"; + next; +// menu "Very well. Let's do it.",REMOVEMENU, +// "No thanks.",CLOSEOUT; + menu "お願いします。",REMOVEMENU, + "必要ないです。",CLOSEOUT; + +REMOVEMENU: +// mes "[Wise Old Woman]"; +// mes "Very well. Which item shall I examine for you?"; + mes "[賢い老女]"; + mes "よしよし。"; + mes "どの武具のカードを取り外すんだね?"; + next; +// menu "I changed my mind.",CLOSEOUT, + menu "やっぱりやめます。",CLOSEOUT, + getequipname(1),-, + getequipname(2),-, + getequipname(3),-, + getequipname(4),-, + getequipname(5),-, + getequipname(6),-, + getequipname(7),-, + getequipname(8),-, + getequipname(9),-, + getequipname(10),-; + set @part,@menu-1; + if(getequipcardcnt(@part) == 0) goto DENYCARDCOUNT; + set @cardcount,getequipcardcnt(@part); +// if(@cardcount > 1) goto CARDNUMMULTIMSG; +// mes "[Wise Old Woman]"; +// mes "This item has " + @cardcount + " card compounded on it. To perform my magic, I will need 225000 zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000."; +// goto CARDNUMPOSTMSG; +//CARDNUMMULTIMSG: +// mes "[Wise Old Woman]"; +// mes "This item has " + @cardcount + " cards compounded on it. To perform my magic, I will need " + (200000+(@cardcount * 25000)) + " zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000."; + mes "[賢い老女]"; + mes "この武具には" + @cardcount + "つカードがついてるね。"; + mes "^0000FF" + (200000+(@cardcount * 25000)) + "z^000000と^0000FF星のかけら^000000と^0000FFイエロージェムストーン^000000が必要だよ。"; +//CARDNUMPOSTMSG: + next; +// menu "Very well. Do it.",REMOVECARDWARNING, +// "Never mind.",CLOSEOUT; + menu "わかりました、お願いします。",REMOVECARDWARNING, + "やっぱりやめます。",CLOSEOUT; + +REMOVECARDWARNING: +// mes "[Wise Old Woman]"; +// mes "Before I begin, I must warn you--I may fail. If I do, I may destroy the cards, the item, or both. I do not give refunds. That being said, which is more important to you: The cards, or the item?"; + mes "[賢い老女]"; + mes "おっと言い忘れるところだったね。"; + mes "この魔法はとても難しいから、"; + mes "^FF4040失敗するかもしれない^000000のさ。"; + mes "失敗したらカードか武具、あるいは"; + mes "その両方が^FF4040破壊されてしまう^000000かも"; + mes "しれないんだよ。"; + next; + mes "[賢い老女]"; + mes "失敗しても^FF4040返金はしない^000000から、"; + mes "一応聞いて置くけど、比べるなら"; + mes "カードと武具のどっちが大切だい?"; + next; +// menu "I changed my mind about this.",CLOSEOUT, +// "The item.",PRIORITYITEM, +// "The cards.",PRIORITYCARD; + menu "それならやめます。",CLOSEOUT, + "武具の方が大切です。",PRIORITYITEM, + "カードの方が大切です",PRIORITYCARD; + +PRIORITYITEM: + set @failtype,1; + goto REMOVECARD; + +PRIORITYCARD: + set @failtype,2; + goto REMOVECARD; + +REMOVECARD: +// mes "[Wise Old Woman]"; +// mes "Very well. I shall begin."; + mes "[賢い老女]"; + mes "よし、始めるよ。"; + next; + if((zeny < (200000+(@cardcount * 25000))) || (countitem(1000) < 1) || (countitem(715) < 1)) goto DENYMATERIAL; + set zeny,zeny - (200000+(@cardcount * 25000)); + delitem 1000,1; + delitem 715,1; + +// Replace the constants in the next 3 lines with failure chance values defined in refine_db.txt +// First value = Total failure chance (item and cards destroyed) +// Second value = Partial failure chance (one or the other is destroyed, player decides which one is safe) +// Third value = Harmless failure chance (all that's lost is your investment) + + set @failchance,rand(100); + if(@failchance < 2) goto FAILREMOVECARD0; + if((@failchance < 6) && (@failtype == 1)) goto FAILREMOVECARD1; + if((@failchance < 6) && (@failtype == 2)) goto FAILREMOVECARD2; + if(@failchance < 10) goto FAILREMOVECARD3; + successremovecards @part; +// mes "[Wise Old Woman]"; +// mes "The process was a success. Here are your cards and your item. Farewell."; + mes "[賢い老女]"; + mes "うまくいったよ。"; + mes "これらが武具とアイテムさ。じゃあね。"; + close; + +FAILREMOVECARD0: +// mes "[Wise Old Woman]"; +// mes "The process was a total failure. I am afraid the item and the cards were destroyed."; + mes "[賢い老女]"; + mes "残念だけど完全に失敗したよ。"; + mes "武具もカードも壊れてしまった。"; + failedremovecards @part,0; + close; + +FAILREMOVECARD1: +// mes "[Wise Old Woman]"; +// mes "While I have managed to remove the cards from the item, they were destroyed in the process. The item, however, is okay."; + mes "[賢い老女]"; + mes "頑張ったけどね、"; + mes "カードのほうは全部壊れてしまったよ。"; + mes "でも武具の方は無事だったよ。"; + failedremovecards @part,1; + close; + +FAILREMOVECARD2: +// mes "[Wise Old Woman]"; +// mes "Most unfortunate. I succeeded at removing the cards, but the item itself was destroyed in the process."; + mes "[賢い老女]"; + mes "不運だったね。"; + mes "カードを取り外すのはうまくいったけど"; + mes "武具が壊れてしまったよ。"; + failedremovecards @part,2; + close; + +FAILREMOVECARD3: +// mes "[Wise Old Woman]"; +// mes "I have failed to remove the cards. Luckily, however, both the item and the cards are still okay."; + mes "[賢い老女]"; + mes "カードを取り外すのに失敗したよ。"; + mes "でも、不幸中の幸いさ。"; + mes "武具もカードも無事だよ。"; + failedremovecards @part,3; + close; + +DENYCARDCOUNT: +// mes "[Wise Old Woman]"; +// mes "Young one... There are no cards compounded on this item. I can do nothing with it, I'm afraid."; + mes "[賢い老女]"; + mes "若いの、カードがついてないよ。"; + mes "それじゃアタシの出番はないさ。"; + close; + +DENYMATERIAL: +// mes "[Wise Old Woman]"; +// mes "You do not have all the items I require to work my magic, child. Come again when you do."; + mes "[賢い老女]"; + mes "必要なアイテムが足りないようだね。"; + mes "アイテムを揃えてもう一度来な。"; + close; + +CLOSEOUT: +// mes "[Wise Old Woman]"; +// mes "Very well. Return at once if you seek my services."; + mes "[賢い老女]"; + mes "わかったよ。"; + mes "アタシの力が必要ならいつでも来な。"; + close; + +} diff --git a/npc/sample/npc_equip_sample.txt b/npc/sample/npc_equip_sample.txt index 942ec47eb..ce429d924 100644 --- a/npc/sample/npc_equip_sample.txt +++ b/npc/sample/npc_equip_sample.txt @@ -1,17 +1,17 @@ - -prontera.gat,161,181,6 script GetEquipID Sample 105,{ - mes "[GetEquipID Sample]"; - mes " GetEquipID(01) : " + getequipid(1); - mes " GetEquipID(02) : " + getequipid(2); - mes " GetEquipID(03) : " + getequipid(3); - mes " GetEquipID(04) : " + getequipid(4); - mes " GetEquipID(05) : " + getequipid(5); - mes " GetEquipID(06) : " + getequipid(6); - mes " GetEquipID(07) : " + getequipid(7); - mes " GetEquipID(08) : " + getequipid(8); - mes " GetEquipID(09) : " + getequipid(9); - mes " GetEquipID(10) : " + getequipid(10); - close; - end; -} - + +prontera.gat,161,181,6 script GetEquipID Sample 105,{ + mes "[GetEquipID Sample]"; + mes " GetEquipID(01) : " + getequipid(1); + mes " GetEquipID(02) : " + getequipid(2); + mes " GetEquipID(03) : " + getequipid(3); + mes " GetEquipID(04) : " + getequipid(4); + mes " GetEquipID(05) : " + getequipid(5); + mes " GetEquipID(06) : " + getequipid(6); + mes " GetEquipID(07) : " + getequipid(7); + mes " GetEquipID(08) : " + getequipid(8); + mes " GetEquipID(09) : " + getequipid(9); + mes " GetEquipID(10) : " + getequipid(10); + close; + end; +} + diff --git a/npc/sample/npc_extend_shop.txt b/npc/sample/npc_extend_shop.txt index 242c900c0..3f9f71c2d 100644 --- a/npc/sample/npc_extend_shop.txt +++ b/npc/sample/npc_extend_shop.txt @@ -1,68 +1,68 @@ -//レアアイテムNPCショップ - - - -// アイテム系 -prontera.gat,163,170,3 shop 高級なアイテム屋 75,507:-1,508:-1,509:-1,510:-1,514:-1,518:-1,533:-1,607:-1,608:-1,529:-1,530:-1,603:-1,604:-1,616:-1,617:-1,644:-1,724:-1,718:-1,714:-1,756:-1,757:-1,984:-1,985:-1,1002:-1,998:-1,999:-1,1003:-1,989:-1,713:-1,970:-1,971:-1,972:-1,7026:-1,7027:-1701:-1,968:-1,1029:-1,1030:-1,7034:-1,7035:-1,7036:-1,7047:-1 - - - -// 装備 片手剣 -prontera.gat,149,170,3 shop 究極の片手剣屋 76,1108:-1,1111:-1,1114:-1,1120:-1,1125:-1,1127:-1,1128:-1,1130:-1,1131:-1,1132:-1,1133:-1,1134:-1,1135:-1,1136:-1,1137:-1,1138:-1,1139:-1,1140:-1,1141:-1,1144:-1,1145:-1 -// 装備 両手剣 -prontera.gat,149,167,3 shop 究極の両手剣屋 76,1117:-1,1152:-1,1155:-1,1158:-1,1161:-1,1162:-1,1164:-1,1165:-1,1166:-1,1167:-1,1168:-1,1170:-1 -// 装備 短剣 -prontera.gat,149,164,3 shop 究極の短剣屋 76,1202:-1,1205:-1,1208:-1,1211:-1,1214:-1,1220:-1,1223:-1,1226:-1,1227:-1,1228:-1,1229:-1,1231:-1,1232:-1,1233:-1,1234:-1,1236:-1,1237:-1,1239:-1 -// 装備 カタール -prontera.gat,149,161,3 shop 究極のカタール屋 76,1251:-1,1253:-1,1255:-1,1256:-1,1257:-1,1258:-1,1259:-1,1260:-1,1261:-1 -// 装備 斧 -prontera.gat,149,158,3 shop 究極の斧屋 76,1302:-1,1305:-1,1306:-1,1352:-1,1361:-1,1363:-1,1364:-1,1366:-1,1367:-1,1368:-1 -// 装備 槍 -prontera.gat,149,155,3 shop 究極の槍屋 76,1402:-1,1405:-1,1408:-1,1413:-1,1414:-1,1415:-1,1417:-1,1455:-1,1461:-1,1464:-1,1466:-1,1467:-1,1468:-1,1469:-1,1470:-1,1471:-1 -// 装備 鈍器 -prontera.gat,149,152,3 shop 究極の鈍器屋 76,1502:-1,1505:-1,1508:-1,1511:-1,1514:-1,1517:-1,1520:-1,1523:-1,1524:-1,1525:-1,1526:-1,1527:-1,1528:-1,1529:-1,1530:-1 -// 装備 本 -prontera.gat,149,149,3 shop 究極の本屋 76,1550:-1,1551:-1,1552:-1,1553:-1,1554:-1,1555:-1,1556:-1,1557:-1,1558:-1 -// 装備 杖 -prontera.gat,149,146,3 shop 究極の杖屋 76,1602:-1,1605:-1,1608:-1,1611:-1,1613:-1,1614:-1,1615:-1,1472:-1,1473:-1 -// 装備 弓 -prontera.gat,149,143,3 shop 究極の弓屋 76,1705:-1,1708:-1,1711:-1,1715:-1,1716:-1,1719:-1,1720:-1 - - - -// 装備 頭部(S付き) -prontera.gat,162,167,5 shop 至高のS兜屋 77,2202:-1,2204:-1,2209:-1,2217:-1,2221:-1,2223:-1,2225:-1,2227:-1,2229:-1,2231:-1,2233:-1 -// 装備 頭部(S無しその1) -prontera.gat,162,164,5 shop 至高の変装品屋1 77,2207:-1,2210:-1,2213:-1,2214:-1,2215:-1,2230:-1,2234:-1,2235:-1,2236:-1,2244:-1,2245:-1,2246:-1,2247:-1,2248:-1,2249:-1,2250:-1,2251:-1,2252:-1,2253:-1,2254:-1,2255:-1,2256:-1,2257:-1,2258:-1,2259:-1,2260:-1,2261:-1,2262:-1,2263:-1,2264:-1,2271:-1,2272:-1,2273:-1,2274:-1,2275:-1,2277:-1,2279:-1,2280:-1,2282:-1,2283:-1,2284:-1,2285:-1,2287:-1,2289:-1,2290:-1,2293:-1,2294:-1,2298:-1,2299:-1 -// 装備 頭部(S無しその2) -prontera.gat,162,161,5 shop 至高の変装品屋2 77,5001:-1,5002:-1,5003:-1,5006:-1,5007:-1,5008:-1,5009:-1,5010:-1,5011:-1,5012:-1,5013:-1,5014:-1,5015:-1,5016:-1,5017:-1,5018:-1,5019:-1,5020:-1,5021:-1,5022:-1,5023:-1,5024:-1,5025:-1,5026:-1,5027:-1,5028:-1,5029:-1,5030:-1,5031:-1,5032:-1,5033:-1,5034:-1,5035:-1,5036:-1,5037:-1,5038:-1,5039:-1,5040:-1,5041:-1,5042:-1,5043:-1,5045:-1,5046:-1,5047:-1,5048:-1,5049:-1,5050:-1,5052:-1,5053:-1 -// 装備 頭部(中段&下段) -prontera.gat,162,158,5 shop 至高の変装品屋3 77,2276:-1,2281:-1,2286:-1,2288:-1,2291:-1,2292:-1,2295:-1,2296:-1,2297:-1,5004:-1,5005:-1,5054:-1,2265:-1,2266:-1,2267:-1,2268:-1,2269:-1,2270:-1,5051:-1 -// 装備 鎧 -prontera.gat,162,155,5 shop 至高の鎧屋 77,2311:-1,2315:-1,2317:-1,2318:-1,2320:-1,2322:-1,2324:-1,2326:-1,2327:-1,2329:-1,2331:-1,2334:-1,2336:-1,2337:-1,2342:-1 -// 装備 盾 -prontera.gat,162,152,5 shop 至高の盾屋 77,2102:-1,2104:-1,2106:-1,2108:-1,2109:-1 -// 装備 靴 -prontera.gat,162,149,5 shop 至高の靴屋 77,2402:-1,2404:-1,2406:-1,2407:-1,2410:-1,2412:-1 -// 装備 外套 -prontera.gat,162,146,5 shop 至高の外套屋 77,2502:-1,2504:-1,2506:-1,2507:-1,2508:-1,2509:-1 -// 装備 アクセサリ -prontera.gat,162,143,5 shop 至高のアクセサリ屋 77,2601:-1,2602:-1,2603:-1,2604:-1,2605:-1,2607:-1,2610:-1,2615:-1,2616:-1,2617:-1,2618:-1,2619:-1,2620:-1,2621:-1,2622:-1,2623:-1,2624:-1,2625:-1,2626:-1,2629:-1,2631:-1 - - - -// 武器に刺すカード -prontera.gat,162,235,5 shop 最強の武器カード屋 80,4002:-1,4004:-1,4006:-1,4018:-1,4025:-1,4026:-1,4019:-1,4029:-1,4043:-1,4017:-1,4020:-1,4024:-1,4037:-1,4055:-1,4057:-1,4076:-1,4096:-1,4104:-1,4005:-1,4030:-1,4049:-1,4062:-1,4065:-1,4069:-1,4085:-1,4130:-1,4007:-1,4035:-1,4060:-1,4063:-1,4068:-1,4080:-1,4094:-1,4111:-1,4118:-1,4140:-1,4082:-1,4092:-1,4126:-1,4072:-1,4086:-1,4106:-1,4115:-1,4117:-1,4121:-1,4125:-1,4134:-1,4137:-1,4142:-1,4147:-1 -// 頭に挿すカード -prontera.gat,149,235,3 shop 最強の頭カード屋 80,4010:-1,4039:-1,4041:-1,4046:-1,4052:-1,4087:-1,4110:-1,4112:-1,4122:-1,4127:-1,4132:-1,4143:-1,4148:-1 -// 鎧に挿すカード -prontera.gat,162,238,5 shop 最強の鎧カード屋 80,4001:-1,4003:-1,4008:-1,4011:-1,4014:-1,4016:-1,4021:-1,4023:-1,4031:-1,4078:-1,4047:-1,4054:-1,4089:-1,4098:-1,4099:-1,4101:-1,4114:-1,4119:-1,4141:-1,4042:-1,4061:-1,4105:-1,4135:-1 -// 盾に挿すカード -prontera.gat,149,238,3 shop 最強の盾カード屋 80,4012:-1,4013:-1,4032:-1,4058:-1,4059:-1,4066:-1,4074:-1,4083:-1,4120:-1,4124:-1,4136:-1,4138:-1,4045:-1,4067:-1,4075:-1,4090:-1,4128:-1,4146:-1 -// 肩にかけるものに挿すカード -prontera.gat,162,241,5 shop 最強の外套カード屋 80,4056:-1,4071:-1,4081:-1,4095:-1,4108:-1,4109:-1,4113:-1,4116:-1,4133:-1,4015:-1,4088:-1,4102:-1,4129:-1 -// 靴に挿すカード -prontera.gat,149,241,3 shop 最強の靴カード屋 80,4009:-1,4038:-1,4050:-1,4070:-1,4097:-1,4100:-1,4107:-1,4123:-1,4131:-1 -// アクセサリーに挿すカード -prontera.gat,162,244,5 shop 最強のアクセサリカード屋 80,4022:-1,4027:-1,4028:-1,4034:-1,4051:-1,4064:-1,4091:-1,4079:-1,4033:-1,4040:-1,4044:-1,4048:-1,4053:-1,4073:-1,4084:-1,4093:-1,4103:-1,4139:-1,4036:-1,4077:-1,4144:-1,4145:-1 - +//レアアイテムNPCショップ + + + +// アイテム系 +prontera.gat,163,170,3 shop 高級なアイテム屋 75,507:-1,508:-1,509:-1,510:-1,514:-1,518:-1,533:-1,607:-1,608:-1,529:-1,530:-1,603:-1,604:-1,616:-1,617:-1,644:-1,724:-1,718:-1,714:-1,756:-1,757:-1,984:-1,985:-1,1002:-1,998:-1,999:-1,1003:-1,989:-1,713:-1,970:-1,971:-1,972:-1,7026:-1,7027:-1701:-1,968:-1,1029:-1,1030:-1,7034:-1,7035:-1,7036:-1,7047:-1 + + + +// 装備 片手剣 +prontera.gat,149,170,3 shop 究極の片手剣屋 76,1108:-1,1111:-1,1114:-1,1120:-1,1125:-1,1127:-1,1128:-1,1130:-1,1131:-1,1132:-1,1133:-1,1134:-1,1135:-1,1136:-1,1137:-1,1138:-1,1139:-1,1140:-1,1141:-1,1144:-1,1145:-1 +// 装備 両手剣 +prontera.gat,149,167,3 shop 究極の両手剣屋 76,1117:-1,1152:-1,1155:-1,1158:-1,1161:-1,1162:-1,1164:-1,1165:-1,1166:-1,1167:-1,1168:-1,1170:-1 +// 装備 短剣 +prontera.gat,149,164,3 shop 究極の短剣屋 76,1202:-1,1205:-1,1208:-1,1211:-1,1214:-1,1220:-1,1223:-1,1226:-1,1227:-1,1228:-1,1229:-1,1231:-1,1232:-1,1233:-1,1234:-1,1236:-1,1237:-1,1239:-1 +// 装備 カタール +prontera.gat,149,161,3 shop 究極のカタール屋 76,1251:-1,1253:-1,1255:-1,1256:-1,1257:-1,1258:-1,1259:-1,1260:-1,1261:-1 +// 装備 斧 +prontera.gat,149,158,3 shop 究極の斧屋 76,1302:-1,1305:-1,1306:-1,1352:-1,1361:-1,1363:-1,1364:-1,1366:-1,1367:-1,1368:-1 +// 装備 槍 +prontera.gat,149,155,3 shop 究極の槍屋 76,1402:-1,1405:-1,1408:-1,1413:-1,1414:-1,1415:-1,1417:-1,1455:-1,1461:-1,1464:-1,1466:-1,1467:-1,1468:-1,1469:-1,1470:-1,1471:-1 +// 装備 鈍器 +prontera.gat,149,152,3 shop 究極の鈍器屋 76,1502:-1,1505:-1,1508:-1,1511:-1,1514:-1,1517:-1,1520:-1,1523:-1,1524:-1,1525:-1,1526:-1,1527:-1,1528:-1,1529:-1,1530:-1 +// 装備 本 +prontera.gat,149,149,3 shop 究極の本屋 76,1550:-1,1551:-1,1552:-1,1553:-1,1554:-1,1555:-1,1556:-1,1557:-1,1558:-1 +// 装備 杖 +prontera.gat,149,146,3 shop 究極の杖屋 76,1602:-1,1605:-1,1608:-1,1611:-1,1613:-1,1614:-1,1615:-1,1472:-1,1473:-1 +// 装備 弓 +prontera.gat,149,143,3 shop 究極の弓屋 76,1705:-1,1708:-1,1711:-1,1715:-1,1716:-1,1719:-1,1720:-1 + + + +// 装備 頭部(S付き) +prontera.gat,162,167,5 shop 至高のS兜屋 77,2202:-1,2204:-1,2209:-1,2217:-1,2221:-1,2223:-1,2225:-1,2227:-1,2229:-1,2231:-1,2233:-1 +// 装備 頭部(S無しその1) +prontera.gat,162,164,5 shop 至高の変装品屋1 77,2207:-1,2210:-1,2213:-1,2214:-1,2215:-1,2230:-1,2234:-1,2235:-1,2236:-1,2244:-1,2245:-1,2246:-1,2247:-1,2248:-1,2249:-1,2250:-1,2251:-1,2252:-1,2253:-1,2254:-1,2255:-1,2256:-1,2257:-1,2258:-1,2259:-1,2260:-1,2261:-1,2262:-1,2263:-1,2264:-1,2271:-1,2272:-1,2273:-1,2274:-1,2275:-1,2277:-1,2279:-1,2280:-1,2282:-1,2283:-1,2284:-1,2285:-1,2287:-1,2289:-1,2290:-1,2293:-1,2294:-1,2298:-1,2299:-1 +// 装備 頭部(S無しその2) +prontera.gat,162,161,5 shop 至高の変装品屋2 77,5001:-1,5002:-1,5003:-1,5006:-1,5007:-1,5008:-1,5009:-1,5010:-1,5011:-1,5012:-1,5013:-1,5014:-1,5015:-1,5016:-1,5017:-1,5018:-1,5019:-1,5020:-1,5021:-1,5022:-1,5023:-1,5024:-1,5025:-1,5026:-1,5027:-1,5028:-1,5029:-1,5030:-1,5031:-1,5032:-1,5033:-1,5034:-1,5035:-1,5036:-1,5037:-1,5038:-1,5039:-1,5040:-1,5041:-1,5042:-1,5043:-1,5045:-1,5046:-1,5047:-1,5048:-1,5049:-1,5050:-1,5052:-1,5053:-1 +// 装備 頭部(中段&下段) +prontera.gat,162,158,5 shop 至高の変装品屋3 77,2276:-1,2281:-1,2286:-1,2288:-1,2291:-1,2292:-1,2295:-1,2296:-1,2297:-1,5004:-1,5005:-1,5054:-1,2265:-1,2266:-1,2267:-1,2268:-1,2269:-1,2270:-1,5051:-1 +// 装備 鎧 +prontera.gat,162,155,5 shop 至高の鎧屋 77,2311:-1,2315:-1,2317:-1,2318:-1,2320:-1,2322:-1,2324:-1,2326:-1,2327:-1,2329:-1,2331:-1,2334:-1,2336:-1,2337:-1,2342:-1 +// 装備 盾 +prontera.gat,162,152,5 shop 至高の盾屋 77,2102:-1,2104:-1,2106:-1,2108:-1,2109:-1 +// 装備 靴 +prontera.gat,162,149,5 shop 至高の靴屋 77,2402:-1,2404:-1,2406:-1,2407:-1,2410:-1,2412:-1 +// 装備 外套 +prontera.gat,162,146,5 shop 至高の外套屋 77,2502:-1,2504:-1,2506:-1,2507:-1,2508:-1,2509:-1 +// 装備 アクセサリ +prontera.gat,162,143,5 shop 至高のアクセサリ屋 77,2601:-1,2602:-1,2603:-1,2604:-1,2605:-1,2607:-1,2610:-1,2615:-1,2616:-1,2617:-1,2618:-1,2619:-1,2620:-1,2621:-1,2622:-1,2623:-1,2624:-1,2625:-1,2626:-1,2629:-1,2631:-1 + + + +// 武器に刺すカード +prontera.gat,162,235,5 shop 最強の武器カード屋 80,4002:-1,4004:-1,4006:-1,4018:-1,4025:-1,4026:-1,4019:-1,4029:-1,4043:-1,4017:-1,4020:-1,4024:-1,4037:-1,4055:-1,4057:-1,4076:-1,4096:-1,4104:-1,4005:-1,4030:-1,4049:-1,4062:-1,4065:-1,4069:-1,4085:-1,4130:-1,4007:-1,4035:-1,4060:-1,4063:-1,4068:-1,4080:-1,4094:-1,4111:-1,4118:-1,4140:-1,4082:-1,4092:-1,4126:-1,4072:-1,4086:-1,4106:-1,4115:-1,4117:-1,4121:-1,4125:-1,4134:-1,4137:-1,4142:-1,4147:-1 +// 頭に挿すカード +prontera.gat,149,235,3 shop 最強の頭カード屋 80,4010:-1,4039:-1,4041:-1,4046:-1,4052:-1,4087:-1,4110:-1,4112:-1,4122:-1,4127:-1,4132:-1,4143:-1,4148:-1 +// 鎧に挿すカード +prontera.gat,162,238,5 shop 最強の鎧カード屋 80,4001:-1,4003:-1,4008:-1,4011:-1,4014:-1,4016:-1,4021:-1,4023:-1,4031:-1,4078:-1,4047:-1,4054:-1,4089:-1,4098:-1,4099:-1,4101:-1,4114:-1,4119:-1,4141:-1,4042:-1,4061:-1,4105:-1,4135:-1 +// 盾に挿すカード +prontera.gat,149,238,3 shop 最強の盾カード屋 80,4012:-1,4013:-1,4032:-1,4058:-1,4059:-1,4066:-1,4074:-1,4083:-1,4120:-1,4124:-1,4136:-1,4138:-1,4045:-1,4067:-1,4075:-1,4090:-1,4128:-1,4146:-1 +// 肩にかけるものに挿すカード +prontera.gat,162,241,5 shop 最強の外套カード屋 80,4056:-1,4071:-1,4081:-1,4095:-1,4108:-1,4109:-1,4113:-1,4116:-1,4133:-1,4015:-1,4088:-1,4102:-1,4129:-1 +// 靴に挿すカード +prontera.gat,149,241,3 shop 最強の靴カード屋 80,4009:-1,4038:-1,4050:-1,4070:-1,4097:-1,4100:-1,4107:-1,4123:-1,4131:-1 +// アクセサリーに挿すカード +prontera.gat,162,244,5 shop 最強のアクセサリカード屋 80,4022:-1,4027:-1,4028:-1,4034:-1,4051:-1,4064:-1,4091:-1,4079:-1,4033:-1,4040:-1,4044:-1,4048:-1,4053:-1,4073:-1,4084:-1,4093:-1,4103:-1,4139:-1,4036:-1,4077:-1,4144:-1,4145:-1 + diff --git a/npc/sample/npc_sample.txt b/npc/sample/npc_sample.txt index f589ef370..390e5db28 100644 --- a/npc/sample/npc_sample.txt +++ b/npc/sample/npc_sample.txt @@ -1,457 +1,457 @@ -// -// Athena Sample Script -// (c) 2003 Athena Project. -// -// $Id: npc_sample.txt,v 1.1.1.1 2004/09/10 17:26:47 MagicalTux Exp $ - -// このファイルは、Athenaで使用されるスクリプトの解説と使用例のサンプルと -// なっています。 - -// ============= -// *基本的な書式 -// ============= -// \t\t\t -// \tはTABをあらわします。 -// command は "warp" / "monster" / "shop" / "script" のいずれかになります。 -// 各行において"//"以降はコメントとして無視されます。 -// 以下、個々について解説をしていきます。 -// -// 書式中とかかれている部分はnという文字ではなく、任意の文字列/値を示します。 -// また、[n]は必要に応じて指定する任意の文字列/値となっています。 - -// ======== -// *command -// ======== -// -// --------------- -// *通常warp(warp) -// --------------- -// 書式 : ,, warp ,,[.gat],, -// -// - マップデータファイル名。拡張子は必須です。 -// , - ワープポイントの中心座標(x,y) -// - npc名。一文字以上の任意の文字で指定します。ユニークな名前である必要はありません。 -// 実際には表示されません。 -// , - 動作範囲(x,y) を中心に(dx+1,dy+1)の範囲にPCが来ると発動します -// ,, - -// 移動先のマップデータファイル名,座標(x,y) -// destination_gatnameについては拡張子".gat"はあっても無くても構いません。 -// 移動先のmapデータファイルが存在しない(あるいはmap_configで指定されていない)場合は発動しません。 -// 移動先の座標が進入禁止区域であった場合は、ランダムな座標にワープします。 -// また、同一座標に複数のwarpが置かれていた場合、先に記述されているものが有効になります -// これは、confファイル内で指定される、npc*.txtファイルをまたいでwarpを記述するときも同じことがいえます。 -// 例: -prontera.gat,156,185,4 warp sample1 0,0,prontera.gat,156,225 -prontera.gat,156,185,4 warp sample1a 0,0,prontera.gat,156,230 -// sample1の方が先に記述されているので、156,225に移動します -prontera.gat,156,220,4 warp sample1-1 0,0,prontera.gat,156,180 - -// -------------------- -// *モンスター(monster) -// -------------------- -// 書式:,,[,,] monster ,[,,] -// - マップデータファイル名。拡張子は必須です。 -// , - 初期配置座標(x,y) 0,0であればランダムな位置に配置されます。 -// [,,] - 特定範囲内に配置する時に指定します。 -// - マウスカーソルを合わせたときに表示される名前。名前は一文字以上指定してください -// - キャラクター種。詳細についてはお察しください(db/mob_db.txtが参考になると思いますが...) -// - 配置数 -// [,,] - 同一pc_idをもつモンスターの生成時間についての定義 -// 前回出現時間+出現遅延1,倒された時間+出現遅延2,倒された時間+5秒 で算出される値のうち、最も大きい物を -// 出現時間とします -// 例: -prontera.gat,0,0 monster ポリン 1002,5 - -// --------- -// *店(shop) -// --------- -// 書式:,,, shop ,:[,:[,.....:]] -// - マップデータファイル名。拡張子は必須です。 -// , - NPCの配置座標(x,y) -// - npcの向いている方向。0を北(y座標方向+)として、反時計回り45度きざみになっています -// - マウスカーソルを合わせたときに表示される名前。名前は一文字以上指定してください -// - キャラクター種。詳細についてはお察しください -// : - item_id_Nの商品を価格price_Nとして販売物ウインドウに表示します。 -// item_idについてはdb/item_db.txtを参照してください。 -// 例: -prontera.gat,136,203,6 shop 道具商人 73,501:5,502:20,503:55,504:120,506:20,645:80,656:150,601:30,602:30,611:20,610:400 - -// -====================- -// *NPCスクリプト(script) -// -====================- -// 書式: -// ,,, script [,,],{