summaryrefslogtreecommitdiff
path: root/npc/custom/itembind.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-10 04:28:03 +0100
committerHaru <haru@dotalux.com>2013-11-10 04:31:28 +0100
commitb4f1b3b5c5c009ed4f7635c5349ea97c80c08c25 (patch)
treecbd305d3896bdc9f498ed9eb72836dc7b6c32b99 /npc/custom/itembind.txt
parentc9b63614070f7fce81c88cd60e5edad5a7730df0 (diff)
downloadhercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.gz
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.bz2
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.xz
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.zip
Follow-up to 857bdc4f98be6cd1e185a24565d6b6b54752b9b4
- Consolidated case in variables, labels, constants. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/custom/itembind.txt')
-rw-r--r--npc/custom/itembind.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/custom/itembind.txt b/npc/custom/itembind.txt
index a95de3577..f30455123 100644
--- a/npc/custom/itembind.txt
+++ b/npc/custom/itembind.txt
@@ -19,7 +19,7 @@ prontera,144,174,4 script Bound Items 429,{
next;
mes "What would you like to do?";
if(select("Bind:Unbind") == 1) {
- if(zeny < .bindprice) {
+ if(Zeny < .bindprice) {
mes "You don't have enough zeny to bind an item.";
close;
}
@@ -55,7 +55,7 @@ prontera,144,174,4 script Bound Items 429,{
next;
mes "Are you sure you'd like to bind your "+ getitemname(@inventorylist_id[.@item]) +" to your "+.boundtypes$[.@boundtype]+"?";
if(select("Yes:No") == 1) {
- zeny -= .bindprice;
+ Zeny -= .bindprice;
delitem2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item];
getitembound2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item],.@boundtype;
mes "All done!";
@@ -70,7 +70,7 @@ prontera,144,174,4 script Bound Items 429,{
countbound(2);
if(.unbindprice) {
mes "Unbinding an item has a fee of ^0000FF"+.unbindprice+"^000000 zeny.";
- if(zeny < .unbindprice) {
+ if(Zeny < .unbindprice) {
mes "You don't have enough to unbind an item.";
close;
}
@@ -102,7 +102,7 @@ prontera,144,174,4 script Bound Items 429,{
next;
mes "Are you sure you'd like to unbind your "+ getitemname(@inventorylist_id[.@item]) +"?";
if(select("Yes:No") == 1) {
- zeny -= .unbindprice;
+ Zeny -= .unbindprice;
delitem2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item];
getitem2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item];
mes "All done!";
@@ -130,4 +130,4 @@ OnInit:
.boundtypes$[2] = "guild";
.boundtypes$[4] = "character";
end;
-} \ No newline at end of file
+}