1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
//===== Athena Script ========================================
//= Bullet Dealer, Tony
//===== By ===================================================
//= Playtester, Paradox924X, Legionaire
//===== Version ==============================================
//= 1.2a
//===== Compatible With ======================================
//= eAthena SVN with jAthena scripting engine and . variables
//===== Description ==========================================
//= Bullet trader.
//===== Comments =============================================
//= 1.0 First version [Playtester]
//= 1.1 Converted from Aegis [Paradox924X]
//= 1.2 More optimized conversion [Legionaire]
//= 1.2a Removed .GATs [Lupus]
//============================================================
que_ng,187,156,3 script Bullet Dealer Tony 86,{
if(BaseJob != Job_Gunslinger){
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 "[Tony]";
mes "I'm Bullet-tooth Tony!";
mes "Whenever you're out of bullets,";
mes "Visit me!!!";
next;
mes "[Tony]";
mes "Now~! Friend~Companion~ Buddy~";
mes "What do you need?!";
mes "Choose anything~!";
mes "And pay money~!";
menu "Poison Sphere",-, "Flare Sphere",-, "Lightning Sphere",-, "Blind Sphere",-, "Freezing Sphere",-, "Cancel",-;
next;
if(@menu == 1) setarray .@btt[0],13205,937,10;
if(@menu == 2) setarray .@btt[0],13203,7097,2;
if(@menu == 3) setarray .@btt[0],13204,7053,3;
if(@menu == 4) setarray .@btt[0],13206,1024,5;
if(@menu == 5) setarray .@btt[0],13207,7054,2;
if(@menu == 6){ mes "[Tony]";
mes "Mmm~ Okay~";
mes "Please visit again~";
mes "I, Bullet-tooth Tony,";
mes "Will always be here~!!!";
close;
}
mes "[Tony]";
mes "Input the amount you wish to purchase.";
next;
mes "[Tony]";
mes "We trade 30 "+getitemname(.@btt[0])+"s for";
mes "1 Phracon,";
if(.@btt[0] == 13205){ mes "10 Venom Canines,"; mes "And 1 Emveretarcon."; }else{ mes "1 Emveretarcon,"; mes "and "+.@btt[2]+" "+getitemname(.@btt[1])+"."; }
next;
mes "[Tony]";
mes "The maximum number you can trade is 500.";
mes "If you want to cancel, input 0.";
input .@btt[3];
next;
if(.@btt[3] == 0 && .@btt >= 501){
mes "[Tony]";
mes "Invalid amount!";
mes "Enter again~!";
close;
}else if(countitem(1010) < .@btt[3] || countitem(1011) < .@btt[3] || countitem(.@btt[1]) < .@btt[3]*.@btt[2]){
mes "[Tony]";
mes "Tsk tsk~";
mes "You do not have";
mes "enough items for the";
mes "items you want to trade.";
mes "Prepare again and come back.";
close;
}else if(checkweight(.@btt[0],.@btt[3]*30) == 0){
mes "[Tony]";
mes "I cannot give it to you because your inventory is full. Come back after your inventory has more space.";
close;
}
mes "[Tony]";
mes "Oh~ Good!";
mes "Trade number checked!";
mes "I'll trade immediately.";
delitem 1010,.@btt[3];
delitem 1011,.@btt[3];
delitem .@btt[1],.@btt[3]*.@btt[2];
getitem .@btt[0],.@btt[3]*30;
close;
}
|