updated some headers in 3 merchants scripts

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10693 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lupus 2007-06-05 07:19:01 +00:00
parent 2abcfff451
commit 05aa029541
4 changed files with 47 additions and 60 deletions

View File

@ -1,6 +1,7 @@
Date Added Date Added
====== ======
2007/06/04 2007/06/04
* Updated versions in some merchants scripts [Lupus]
* Cleaned up Rachel donation prizes a bit [Playtester] * Cleaned up Rachel donation prizes a bit [Playtester]
* Added 11.2 guns to gunslinger shop [Playtester] * Added 11.2 guns to gunslinger shop [Playtester]
* Reverted Bullet Dealer Tony to Stable [Playtester] * Reverted Bullet Dealer Tony to Stable [Playtester]

View File

@ -3,7 +3,7 @@
//===== By: ================================================== //===== By: ==================================================
//= eAthena dev team //= eAthena dev team
//===== Current Version: ===================================== //===== Current Version: =====================================
//= 1.2 //= 1.2a
//===== Compatible With: ===================================== //===== Compatible With: =====================================
//= eAthena 1.0+ //= eAthena 1.0+
//===== Description: ========================================= //===== Description: =========================================
@ -12,14 +12,14 @@
//= 1.0 First version. [SinSloth] //= 1.0 First version. [SinSloth]
//= 1.1 Optimized version - Reduced to only one function [SinSloth] //= 1.1 Optimized version - Reduced to only one function [SinSloth]
//= 1.2 Optimized^2, corrected npc's name [ultramage] //= 1.2 Optimized^2, corrected npc's name [ultramage]
//= 1.2a Optimized. Please, ommit extra NPC names [Lupus]
//============================================================ //============================================================
que_ng,187,149,3 script Magazine Dealer Kenny 83,{ que_ng,187,149,3 script Magazine Dealer Kenny 83,{
if(BaseJob != Job_Gunslinger) mes "[Kenny]";
{ mes "I am the Casing Dealer, Kenny!";
mes "[Kenny]"; if(BaseJob != Job_Gunslinger) {
mes "I am the Casing Dealer, Kenny!";
mes "I'm here to package the Shells"; mes "I'm here to package the Shells";
mes "and Bullets for Gunslingers."; mes "and Bullets for Gunslingers.";
next; next;
@ -30,9 +30,6 @@ que_ng,187,149,3 script Magazine Dealer Kenny 83,{
mes "after you're done looking around."; mes "after you're done looking around.";
close; close;
} }
mes "[Kenny]";
mes "I am the Casing Dealer, Kenny!";
mes "If your bullets are getting"; mes "If your bullets are getting";
mes "too heavy, come to me!"; mes "too heavy, come to me!";
next; next;
@ -70,7 +67,10 @@ function script Func_Casing {
next; next;
mes "[Kenny]"; mes "[Kenny]";
mes "" +getitemname(getarg(1))+ " will"; mes "" +getitemname(getarg(1))+ " will";
if(getarg(0) == 13202) { mes "cost 500 Shells of Blood"; } else mes "cost 500 " +getitemname(getarg(0))+ "s"; if(getarg(0) == 13202)
mes "cost 500 Shells of Blood";
else
mes "cost 500 " +getitemname(getarg(0))+ "s";
mes "and 500 zeny each."; mes "and 500 zeny each.";
next; next;
mes "[Kenny]"; mes "[Kenny]";
@ -78,17 +78,14 @@ function script Func_Casing {
mes "Input 0 if you want to cancel."; mes "Input 0 if you want to cancel.";
next; next;
input .@caser_amount; input .@caser_amount;
if(.@caser_amount < 1) mes "[Kenny]";
{ if(.@caser_amount < 1) {
mes "[Kenny]";
mes "Alright. If there's"; mes "Alright. If there's";
mes "something else I can help"; mes "something else I can help";
mes "you with, please tell me."; mes "you with, please tell me.";
close; close;
} }
if(.@caser_amount > 50) if(.@caser_amount > 50) {
{
mes "[Kenny]";
mes "You've exceeded the limit!"; mes "You've exceeded the limit!";
mes "Try again next time?"; mes "Try again next time?";
close; close;
@ -96,18 +93,14 @@ function script Func_Casing {
set .@caser_bullet, .@caser_amount * 500; set .@caser_bullet, .@caser_amount * 500;
//Weight checking //Weight checking
if(checkweight(getarg(1), .@caser_amount) != 1) if(checkweight(getarg(1), .@caser_amount) != 1) {
{
mes "[Kenny]";
mes "You are overweight."; mes "You are overweight.";
mes "Please clear your inventory."; mes "Please clear your inventory.";
close; close;
} }
//Materials checking //Materials checking
if(countitem(getarg(0)) < .@caser_bullet) if(countitem(getarg(0)) < .@caser_bullet) {
{
mes "[Kenny]";
mes "Huh......"; mes "Huh......";
mes "You don't have enough"; mes "You don't have enough";
mes "materials to trade for"; mes "materials to trade for";
@ -118,22 +111,21 @@ function script Func_Casing {
} }
//Zeny checking //Zeny checking
if(Zeny < .@caser_bullet) if(Zeny < .@caser_bullet) {
{
mes "[Kenny]";
mes "Erm... You don't have enough money."; mes "Erm... You don't have enough money.";
mes "The fee is 500 zeny"; mes "The fee is 500 zeny";
mes "Check your zeny and come again."; mes "Check your zeny and come again.";
close; close;
} }
mes "[Kenny]";
mes "Ah very well!"; mes "Ah very well!";
mes "The number is confirmed!"; mes "The number is confirmed!";
if(getarg(1) < 12149) mes "I'll get you the Packs right away."; if(getarg(1) < 12149)
else mes "I'll get you the Casings right away."; mes "I'll get you the Packs right away.";
else
mes "I'll get you the Casings right away.";
set Zeny, Zeny - .@caser_bullet; set Zeny, Zeny - .@caser_bullet;
delitem getarg(0), .@caser_bullet; delitem getarg(0), .@caser_bullet;
getitem getarg(1), .@caser_amount; getitem getarg(1), .@caser_amount;
close; close;
} }

View File

@ -3,7 +3,7 @@
//===== By =================================================== //===== By ===================================================
//= Playtester, Paradox924X //= Playtester, Paradox924X
//===== Version ============================================== //===== Version ==============================================
//= 1.1 //= 1.3
//===== Compatible With ====================================== //===== Compatible With ======================================
//= eAthena SVN with jAthena scripting engine and . variables //= eAthena SVN with jAthena scripting engine and . variables
//===== Description ========================================== //===== Description ==========================================
@ -11,12 +11,15 @@
//===== Comments ============================================= //===== Comments =============================================
//= 1.0 First version [Playtester] //= 1.0 First version [Playtester]
//= 1.1 Converted from Aegis [Paradox924X] //= 1.1 Converted from Aegis [Paradox924X]
//= 1.2 More optimized conversion [Legionaire]
//= 1.2a Removed .GATs [Lupus]
//= 1.3 Fixed [Playtester]
//============================================================ //============================================================
que_ng,187,156,3 script Bullet Dealer Tony 86,{ que_ng,187,156,3 script Bullet Dealer Tony 86,{
mes "[Tony]";
if (BaseJob == Job_Gunslinger) { if (BaseJob == Job_Gunslinger) {
mes "[Tony]";
mes "I'm Bullet-tooth Tony!"; mes "I'm Bullet-tooth Tony!";
mes "Whenever your out of bullets,"; mes "Whenever your out of bullets,";
mes "Visit me!!!"; mes "Visit me!!!";
@ -28,16 +31,11 @@ que_ng,187,156,3 script Bullet Dealer Tony 86,{
mes "And pay money~!"; mes "And pay money~!";
next; next;
switch(select("Poison Sphere:Flare Sphere:Lighting Sphere:Blind Sphere:Freezing Sphere:Cancel")) { switch(select("Poison Sphere:Flare Sphere:Lighting Sphere:Blind Sphere:Freezing Sphere:Cancel")) {
case 1: case 1: callfunc "Bullet_Trade",937,10,13205; break;
callfunc "Bullet_Trade",937,10,13205; case 2: callfunc "Bullet_Trade",7097,2,13203; break;
case 2: case 3: callfunc "Bullet_Trade",7053,3,13204; break;
callfunc "Bullet_Trade",7097,2,13203; case 4: callfunc "Bullet_Trade",1024,5,13206; break;
case 3: case 5: callfunc "Bullet_Trade",7054,2,13207; break;
callfunc "Bullet_Trade",7053,3,13204;
case 4:
callfunc "Bullet_Trade",1024,5,13206;
case 5:
callfunc "Bullet_Trade",7054,2,13207;
case 6: case 6:
mes "[Tony]"; mes "[Tony]";
mes "Mmm~ Okay~"; mes "Mmm~ Okay~";
@ -46,18 +44,16 @@ que_ng,187,156,3 script Bullet Dealer Tony 86,{
mes "Will always be here~!!!"; mes "Will always be here~!!!";
close; close;
} }
} else {
mes "[Tony]";
mes "I'm a trader who supplies";
mes "Gunslingers with trade items.";
mes "I am called Bullet-tooth Tony.";
next;
mes "[Tony]";
mes "I don't think you are a Gunslinger";
mes "So just look around";
mes "and go.";
close;
} }
mes "I'm a trader who supplies";
mes "Gunslingers with trade items.";
mes "I am called Bullet-tooth Tony.";
next;
mes "[Tony]";
mes "I don't think you are a Gunslinger";
mes "So just look around";
mes "and go.";
close;
} }
function script Bullet_Trade { function script Bullet_Trade {
@ -78,18 +74,16 @@ function script Bullet_Trade {
set @tony,.@input; set @tony,.@input;
set @tony1,.@input; set @tony1,.@input;
set @tony2,.@input * getarg(1); set @tony2,.@input * getarg(1);
mes "[Tony]";
if (.@input < 1 || .@input > 500) { if (.@input < 1 || .@input > 500) {
mes "[Tony]";
mes "Invalid Amount!"; mes "Invalid Amount!";
mes "Enter again~!"; mes "Enter again~!";
close; close;
} else if ((countitem(1010) >= @tony) && (countitem(1011) >= @tony1) && (countitem(getarg(0)) >= @tony2)) { } else if ((countitem(1010) >= @tony) && (countitem(1011) >= @tony1) && (countitem(getarg(0)) >= @tony2)) {
if (checkweight(getarg(2),.@input * 30) == 0) { if (checkweight(getarg(2),.@input * 30) == 0) {
mes "[Tony]";
mes "I cannot give it to you because your inventory is full. Come back after your inventory has more space."; mes "I cannot give it to you because your inventory is full. Come back after your inventory has more space.";
close; close;
} else { } else {
mes "[Tony]";
mes "Oh~ Good!"; mes "Oh~ Good!";
mes "Trade number checked!"; mes "Trade number checked!";
mes "I'll trade immediately."; mes "I'll trade immediately.";
@ -100,7 +94,6 @@ function script Bullet_Trade {
close; close;
} }
} else { } else {
mes "[Tony]";
mes "Tsk Tsk~"; mes "Tsk Tsk~";
mes "You do not have"; mes "You do not have";
mes "enough items for the"; mes "enough items for the";
@ -108,4 +101,4 @@ function script Bullet_Trade {
mes "Prepare again and come back."; mes "Prepare again and come back.";
close; close;
} }
} }

View File

@ -3,9 +3,9 @@
//===== By: ================================================== //===== By: ==================================================
//= eAthena Dev Team //= eAthena Dev Team
//===== Current Version: ===================================== //===== Current Version: =====================================
//= 1.9a //= 1.9b
//===== Compatible With: ===================================== //===== Compatible With: =====================================
//= eAthena 7.15 + //= eAthena 1.0+
//===== Description: ========================================= //===== Description: =========================================
//= //=
//===== Additional Comments: ================================= //===== Additional Comments: =================================
@ -24,6 +24,7 @@
//= 1.8 Added Rachel Official shops. Special Thanks to RockmanEXE. [erKURITA] //= 1.8 Added Rachel Official shops. Special Thanks to RockmanEXE. [erKURITA]
//= 1.9 Uncommented Homunculus shop, since Homunculus is working on trunk now. [Evera] //= 1.9 Uncommented Homunculus shop, since Homunculus is working on trunk now. [Evera]
//= 1.9a Pet Merchant -> Lighthalzen [erKURITA] //= 1.9a Pet Merchant -> Lighthalzen [erKURITA]
//= 1.9b Added items to Chivas Regal
//============================================================ //============================================================