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/merchants/manuk.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/merchants/manuk.txt')
-rw-r--r-- | npc/merchants/manuk.txt | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/npc/merchants/manuk.txt b/npc/merchants/manuk.txt new file mode 100644 index 000000000..9500a7eb2 --- /dev/null +++ b/npc/merchants/manuk.txt @@ -0,0 +1,68 @@ +//===== rAthena Script ======================================= +//= Manuk Merchant +//===== By: ================================================== +//= rAthena Dev Team +//===== Current Version: ===================================== +//= 1.2 +//===== Compatible With: ===================================== +//= rAthena SVN +//===== Description: ========================================= +//= [Aegis Conversion] +//= Manuk coin redemption NPC. +//===== Additional Comments: ================================= +//= 1.0 First version +//= 1.1 Fixed checkweight. [Gepard] +//= 1.2 Optimized. [Euphy] +//============================================================ + +man_in01,286,16,1 script Merchant of Manuk 454,{ + mes "[Merchant of Manuk]"; + if ((isequipped(2782) == 1) && (ep13_2_rhea == 100)) { + if (!checkweight(1201,1)) { + mes "It looks like you're carrying too many things."; + mes "Why not put some of your items in storage and come back?"; + close; + } + mes "Hello."; + mes "What are you looking for?"; + next; + setarray .@Items[2],12342,12343,12348; + set .@i, select("View item description:Manuk's Opportunity:Manuk's Courage:Manuk's Faith:Cancel"); + mes "[Merchant of Manuk]"; + if (.@i == 1) { + mes "Here are the item descriptions."; + close2; + ReadBook 11019,1; + end; + } + else if (.@i < 5) { + mes "I can sell you 3 "+getitemname(.@Items[.@i])+" for^3131FF 1 coin^000000."; + next; + switch(select("Purchase:Do not purchase")) { + case 1: + if (countitem(6080)) { + mes "[Merchant of Manuk]"; + mes "Thank you for coming."; + delitem 6080,1; + getitem .@Items[.@i],3; + close; + } + else { + mes "[Merchant of Manuk]"; + mes "You don't have enough coins."; + close; + } + case 2: + mes "[Merchant of Manuk]"; + break; + } + } + mes "Come again if you change your mind."; + close; + } + else { + mes "Rtt od d"; + mes "Qwo hd is d irr"; + close; + } +}
\ No newline at end of file |