diff options
author | daegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-01 04:29:56 +0000 |
---|---|---|
committer | daegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-01 04:29:56 +0000 |
commit | 8832adba3ec9df0f7f890154f69f0993b8d1d8e5 (patch) | |
tree | 0e73afe6a780abf29fe035301f1354f24762da7a /npc/re/merchants/kunai_maker.txt | |
parent | fa533907d49c7e288be33efb55fcb094f8e48591 (diff) | |
download | hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.gz hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.bz2 hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.xz hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.zip |
Full npc folder reorganization. (I hope I didn't break anything D:)
-Now common scripts goes to the main npc folder, and pre-re-only/re-only ones goes to their respective folders.
-NPCs with practically the same script but little differences have been left in the main folder and uses the command checkre() for the differences.
-For those NPCs with different coordinates but same script, the script has been left in the main folder but the NPCs splitted as duplicates.
-All pre-renewal files has been reverted back to their pre-renewal behavior.
TODO:
-Correct pre-re quest rewards.
-Check for pre-re/re differences in mapflags.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16545 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/re/merchants/kunai_maker.txt')
-rw-r--r-- | npc/re/merchants/kunai_maker.txt | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/npc/re/merchants/kunai_maker.txt b/npc/re/merchants/kunai_maker.txt deleted file mode 100644 index ab630f72c..000000000 --- a/npc/re/merchants/kunai_maker.txt +++ /dev/null @@ -1,103 +0,0 @@ -//===== rAthena Script ======================================= -//= Kunai Merchant Kashin -//===== By: ================================================== -//= rAthena dev team -//===== Current Version: ===================================== -//= 1.3 -//===== Compatible With: ===================================== -//= rAthena SVN -//===== Description: ========================================= -//= Trades a few shurikens + ninja stones for elemental kunai. -//===== Additional Comments: ================================= -//= 1.0 Added the npc. It uses a function that sends the item -//= id of the 2 required items plus the amount. Can trade -//= up to 500 units (5,000 kunais) at once. [erKURITA] -//= 1.1 Officialized script [Playtester] -//= 1.2a Optimized/cleaned up a bit [ultramage] -//= 1.3 Updated to match AEGIS script. [Kisuka] -//============================================================ - -que_ng,72,29,3 script Kunai Merchant Kashin 83,{ - if(BaseJob == Job_Ninja) { - mes "[Kashin]"; - mes "I am Kashin, distributor"; - mes "of Kunai for Ninjas. Take"; - mes "a look around and let me"; - mes "know if you're interested"; - mes "in any of my wares."; - next; - switch(select("10 Fell Poison Kunai:10 Icicle Kunai:10 High Wind Kunai:10 Black Earth Kunai:10 Heat Wave Kunai:Cancel")) { - case 1: callfunc "Kunai_Trade",13250,20,7524,1,13259; break; - case 2: callfunc "Kunai_Trade",13251,8,7522,2,13255; break; - case 3: callfunc "Kunai_Trade",13252,4,7523,2,13257; break; - case 4: callfunc "Kunai_Trade",13253,2,7524,1,13256; break; - case 5: callfunc "Kunai_Trade",13254,1,7521,2,13258; break; - case 6: - mes "[Kashin]"; - mes "Well then, thank you"; - mes "for visiting my shop."; - mes "Please come to me when"; - mes "you need to buy some"; - mes "Kunais. Goodbye for now~"; - close; - } - } - mes "[Kashin]"; - mes "I am Kashin, distributor"; - mes "of Kunai for Ninjas. If you"; - mes "have any friends that are"; - mes "Ninjas, then you might"; - mes "want to tell them about me."; - close; -} - -function script Kunai_Trade { - mes "[Kashin]"; - mes "You can exchange"; - mes ""+getarg(1)+" "+getitemname(getarg(0))+" and"; - mes ""+getarg(3)+" "+getitemname(getarg(2))+" for every"; - mes "set of 10 "+getitemname(getarg(4))+"."; - next; - mes "[Kashin]"; - mes "I can only give you a maximum of 500 sets of Kunais at a time."; - mes "If you want to cancel the trade, then please enter ''0.'' How many"; - mes "Kunai sets would you like?"; - next; - input .@amount; - if(.@amount < 1 || .@amount > 500) { - mes "[Kashin]"; - mes "Eh? I'm sorry, but"; - mes "I can't give you that"; - mes "many Kunai sets. Please"; - mes "enter a value less than 500."; - close; - } - if(countitem(getarg(0)) < .@amount*getarg(1) || countitem(getarg(2)) < .@amount*getarg(3)) { - mes "[Kashin]"; - mes "Hmm, you don't have"; - mes "enough items for this"; - mes "Kunai exchange. Please"; - mes "check your items again."; - close; - } - if(checkweight(getarg(4), .@amount*10) == 0) { - mes "[Kashin]"; - mes "Hmm, it seems like your"; - mes "Inventory doesn't have"; - mes "enough space to store"; - mes "more items. You better"; - mes "free up some space first."; - close; - } - mes "[Kashin]"; - mes "Great, everything is in"; - mes "order, so let's go ahead"; - mes "and complete this trade."; - mes "I'm sure that you'll be"; - mes "quite satisfied with"; - mes "these Kunais."; - delitem getarg(0),getarg(1)*.@amount; - delitem getarg(2),getarg(3)*.@amount; - getitem getarg(4),10*.@amount; - close; -} |