summaryrefslogtreecommitdiff
path: root/npc/merchants/kunai_maker.txt
diff options
context:
space:
mode:
authoreaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-02 17:52:11 +0000
committereaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-02 17:52:11 +0000
commiteda66218c142672f053a126ea0cea9ce43effb02 (patch)
treea342cf09497c2e66a181ad39fbf769c3455bb4ea /npc/merchants/kunai_maker.txt
parent631137fae16d2ef187e461fe8ac5e53e1088967b (diff)
downloadhercules-eda66218c142672f053a126ea0cea9ce43effb02.tar.gz
hercules-eda66218c142672f053a126ea0cea9ce43effb02.tar.bz2
hercules-eda66218c142672f053a126ea0cea9ce43effb02.tar.xz
hercules-eda66218c142672f053a126ea0cea9ce43effb02.zip
* Added kunai_maker.txt to make elemental kunais. [erKURITA]
* Added new npcs @ que_ng.gat ninja map portion. [erKURITA] * Added new shops @ que_ng.gat ninja map portion. [erKURITA] * Commented wrong shops @ amatsu.txt. [erKURITA] * Added que_ng.gat ninja map portion's warp. [erKURITA] * Modified and corrected the gunslinger quest. [erKURITA] * Changed the prices of the ninja stones according to kRO. [erKURITA] All the kRO related info is thanks to RockmanEXE git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6448 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/merchants/kunai_maker.txt')
-rw-r--r--npc/merchants/kunai_maker.txt104
1 files changed, 104 insertions, 0 deletions
diff --git a/npc/merchants/kunai_maker.txt b/npc/merchants/kunai_maker.txt
new file mode 100644
index 000000000..fc79db9fb
--- /dev/null
+++ b/npc/merchants/kunai_maker.txt
@@ -0,0 +1,104 @@
+//===== eAthena Script =======================================
+//= Kunai "Trader" @ que_ng.gat
+//===== By: ==================================================
+//= erKURITA
+//===== Current Version: =====================================
+//= 1.0
+//===== Compatible With: =====================================
+//= eAthena 1.0
+//===== Description: =========================================
+//= NPC that trades you a few shurikens + ninja stones for
+//= elemental kunais.
+//===== 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]
+//============================================================
+que_ng.gat,72,29,3 script Kunai Seller 83,{
+mes "[Jin]";
+mes "Hi, I sell elemental enchanted kunais. I'll trade you some elemental stones and one kind of shurikens for a determined elemental Kunai";
+next;
+mes "[Jin]";
+mes "What would you like to trade some? It's free";
+switch(select("10 Poison Kunais:10 Icycle Kunais:10 Rough Wind Kunais:10 Black Soil Kunai:10 Explosion Kunai:Nothing at the Moment")) {
+//Callfunc usage: callfunc "Kunai_Trade",itemreqid1,itemreqct1,itemreqid2,itemreqct2,itemidtrade;
+ case 1:
+ next;
+ callfunc "Kunai_Trade",13250,20,7524,1,13259;
+ close;
+ case 2:
+ next;
+ callfunc "Kunai_Trade",13251,8,7522,2,13255;
+ goto L_Bye;
+ case 3:
+ next;
+ callfunc "Kunai_Trade",13252,4,7523,2,13257;
+ goto L_Bye;
+ case 4:
+ next;
+ callfunc "Kunai_Trade",13253,2,7524,1,13256;
+ goto L_Bye;
+ case 5:
+ next;
+ callfunc "Kunai_Trade",13254,1,7521,2,13258;
+ goto L_Bye;
+ case 6:
+ next;
+ goto L_Bye;
+ }
+L_Bye:
+ next;
+ mes "[Jin]";
+ mes "Good bye and hope to see you again then";
+ close;
+}
+
+function script Kunai_Trade -1,{
+
+mes "[Jin]";
+if (MaxWeight*50/100 < Weight) {
+ if (MaxWeight*90/100 < Weight) {
+ mes "Sorry but you have more than 90% weight. Your kunais might drop. I can't give you anything.";
+ next;
+ goto L_Menu;
+ } else
+ mes "You have 50% or more weight, do you still want to continue?";
+ menu "Yes",-,"No, thanks",L_Return;
+}
+
+mes "Would you like to trade my 10 "+getitemname(getarg(4))+" for yours "+getarg(1)+" "+getitemname(getarg(0))+" and "+getarg(3)+" "+getitemname(getarg(2))+" ?";
+switch(select("Yes:I'll think about it")) {
+ case 1:
+ next;
+ mes "[Jin]";
+ if (countitem(getarg(0)) < getarg(1) || countitem(getarg(2)) < getarg(3)) {
+ mes "Sorry but you're missing one of the required items. Please get them";
+ close;
+ } else
+ mes "How many do you want to trade? I can only trade you 500 units at once, and remember 1 unit = 10 kunais of your wish";
+ input @trade;
+ next;
+ mes "[Jin]";
+ if (@trade > 500) {
+ mes "Sorry, but I told you I could only trade you 500 units at once. Try again";
+ close;
+ } else if (@trade == 0) {
+ mes "Sorry, but 1 unit is the minimun I can trade. Try again please.";
+ close;
+ } else if ((countitem(getarg(0)) < @trade*getarg(1)) || (countitem(getarg(2)) < @trade*getarg(3))) {
+ mes "Sorry, but you don't have enough items to trade "+@trade+" unit(s). Get more please";
+ close;
+ } else
+ mes "Here you go, enjoy them";
+ delitem getarg(0),getarg(1)*@trade;
+ delitem getarg(2),getarg(3)*@trade;
+ getitem getarg(4),10*@trade;
+ next;
+ return;
+ case 2:
+ return;
+ }
+L_Bye:
+return;
+
+} \ No newline at end of file