Implementing the Script Gemstone Bagger! (#7318)

* Adding The Gem Bagging!

* Adding suggestion from @aleos89 
* Adding suggestion from @Atemo
This commit is contained in:
JohnnyPlayy 2022-10-04 16:18:06 -03:00 committed by GitHub
parent 48f1493747
commit 85a938ecce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 156 additions and 0 deletions

View File

@ -49792,6 +49792,30 @@ Body:
Weight: 250
Script: |
getitem "Explosive_Kunai",500;
- Id: 100192
AegisName: Gemstone_Blue
Name: Blue Gemstone Pouch
Type: Usable
Buy: 20
Weight: 250
Script: |
getitem "Blue_Gemstone",500;
- Id: 100193
AegisName: Gemstone_YL
Name: Yellow Gemstone Pouch
Type: Usable
Buy: 20
Weight: 250
Script: |
getitem "Yellow_Gemstone",500;
- Id: 100194
AegisName: Gemstone_Red
Name: Red Gemstone Pouch
Type: Usable
Buy: 20
Weight: 250
Script: |
getitem "Red_Gemstone",500;
- Id: 100195
AegisName: aegis_100195
Name: Full Metal Jacket Cartridge

View File

@ -0,0 +1,59 @@
//===== rAthena Script =======================================
//= Gemstone Bagger
//===== Description: =========================================
// The information in this script was taken from kro
//===== Changelogs: ==========================================
//= 1.0 First Version. [JohnnyPlayy, Pokye]
//============================================================
//= Gemstone Bagger
//============================================================
- script #GemstoneBagger HIDDEN_NPC,{
mes "[Gemstone Bagger]";
mes "We pack gemstones in bags in an easy to find way.";
mes "What would you like to do?";
next;
switch(select("Exchange Gemstones:Cancel")) {
case 1:
mes "[Gemstone Bagger]";
mes "I will prepare a bag for gemstones.";
close2;
callshop "Gemstone_Bagger";
break;
case 2:
mes "[Gemstone Bagger]";
mes "Come back if you need help.";
close;
}
}
//= Duplicate
//============================================================
alb2trea,89,65,3 duplicate(#GemstoneBagger) Gemstone Bagger#01 1_F_MERCHANT_01
alberta_in,178,97,5 duplicate(#GemstoneBagger) Gemstone Bagger#02 4_M_01
aldeba_in,100,54,3 duplicate(#GemstoneBagger) Gemstone Bagger#03 4_F_02
ama_in01,20,26,5 duplicate(#GemstoneBagger) Gemstone Bagger#04 4_M_JPN
cmd_fild07,259,126,5 duplicate(#GemstoneBagger) Gemstone Bagger#05 4_F_01
cmd_in01,84,178,3 duplicate(#GemstoneBagger) Gemstone Bagger#06 4_M_04
ein_in01,197,22,5 duplicate(#GemstoneBagger) Gemstone Bagger#07 4_F_EINWOMAN
einbroch,222,206,5 duplicate(#GemstoneBagger) Gemstone Bagger#08 4_M_EINMAN
geffen_in,77,175,3 duplicate(#GemstoneBagger) Gemstone Bagger#09 1_F_03
gonryun,146,82,5 duplicate(#GemstoneBagger) Gemstone Bagger#10 4_M_TWOLDMAN
hu_in01,252,370,3 duplicate(#GemstoneBagger) Gemstone Bagger#11 4_F_02
izlude_in,55,110,5 duplicate(#GemstoneBagger) Gemstone Bagger#12 4_M_01
lhz_in02,40,145,5 duplicate(#GemstoneBagger) Gemstone Bagger#13 4_F_03
lhz_in03,243,106,5 duplicate(#GemstoneBagger) Gemstone Bagger#14 4_M_EINMAN
lou_in02,244,175,5 duplicate(#GemstoneBagger) Gemstone Bagger#15 4_F_CHNWOMAN
malangdo,233,160,3 duplicate(#GemstoneBagger) Gemstone Bagger#16 4_CAT_ADV2
moc_ruins,95,128,3 duplicate(#GemstoneBagger) Gemstone Bagger#17 1_F_01
morocc,153,241,7 duplicate(#GemstoneBagger) Gemstone Bagger#18 4W_M_03
morocc,143,101,5 duplicate(#GemstoneBagger) Gemstone Bagger#19 4_F_04
payon,163,96,3 duplicate(#GemstoneBagger) Gemstone Bagger#20 1_F_ORIENT_01
payon_in01,12,47,3 duplicate(#GemstoneBagger) Gemstone Bagger#21 1_F_ORIENT_01
payon_in02,84,40,3 duplicate(#GemstoneBagger) Gemstone Bagger#22 4_M_ORIENT01
prt_fild05,292,226,3 duplicate(#GemstoneBagger) Gemstone Bagger#23 1_M_01
prt_in,125,78,5 duplicate(#GemstoneBagger) Gemstone Bagger#24 1_M_INNKEEPER
um_in,103,115,3 duplicate(#GemstoneBagger) Gemstone Bagger#25 4_M_UMOLDMAN
xmas_in,36,37,5 duplicate(#GemstoneBagger) Gemstone Bagger#26 4_M_04
yuno,221,115,3 duplicate(#GemstoneBagger) Gemstone Bagger#27 4_F_02
yuno_in01,34,30,3 duplicate(#GemstoneBagger) Gemstone Bagger#28 4_F_02

View File

@ -48,6 +48,7 @@ Header:
Footer:
Imports:
- Path: npc/re/merchants/barters/Extended_Ammunition.yml
- Path: npc/re/merchants/barters/Gemstone_Bagger.yml
- Path: npc/re/merchants/barters/quests_16_1.yml
- Path: npc/re/merchants/barters/quests_16_2.yml
- Path: npc/re/merchants/barters/quests_17_1.yml

View File

@ -0,0 +1,71 @@
# This file is a part of rAthena.
# Copyright(C) 2022 rAthena Development Team
# https://rathena.org - https://github.com/rathena
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###########################################################################
# Barter Database
###########################################################################
#
# Barter Settings
#
###########################################################################
# - Name NPC name.
# Map Map name. (Default: not on a map)
# X Map x coordinate. (Default: 0)
# Y Map y coordinate. (Default: 0)
# Direction Direction the NPC is looking. (Default: North)
# Sprite Sprite name of the NPC. (Default: FakeNpc)
# Items: List of sold items.
# - Index Index of the item inside the shop. (0-...)
# Maximum index depends on client.
# Item Aegis name of the item.
# Stock Amount of item in stock. 0 means unlimited. (Default: 0)
# Zeny Cost of them item in Zeny. (Default: 0)
# RequiredItems: List of required items (Optional)
# - Index Index of the required item. (0-4)
# Item Aegis name of required item.
# Amount Amount of required item. (Default: 1)
# Refine Refine level of required item. (Default: 0)
###########################################################################
Header:
Type: BARTER_DB
Version: 1
Body:
###########################################################################
##= Gemstone Bagger ( Exchange )
###########################################################################
- Name: Gemstone_Bagger
Items:
- Index: 0
Item: Gemstone_Blue
RequiredItems:
- Index: 0
Item: Blue_Gemstone
Amount: 500
- Index: 1
Item: Gemstone_YL
RequiredItems:
- Index: 0
Item: Yellow_Gemstone
Amount: 500
- Index: 2
Item: Gemstone_Red
RequiredItems:
- Index: 0
Item: Red_Gemstone
Amount: 500

View File

@ -130,6 +130,7 @@ npc: npc/re/merchants/enchantgrade.txt
npc: npc/re/merchants/Extended_Ammunition.txt
npc: npc/re/merchants/Extended_Stylist.txt
npc: npc/re/merchants/flute.txt
npc: npc/re/merchants/Gemstone_Bagger.txt
npc: npc/re/merchants/gld_mission_exchange.txt
npc: npc/re/merchants/ghost_palace_exchange.txt
npc: npc/re/merchants/guild_warehouse.txt