summaryrefslogtreecommitdiff
path: root/npc/custom/itembind.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-07 01:23:46 +0100
committerHaru <haru@dotalux.com>2016-02-07 01:23:46 +0100
commit1fd628e7be9e6de4ea48394be09ae10e912d8f3d (patch)
tree4e5b42a444f83976c33f22540d3aa46a8ceb7001 /npc/custom/itembind.txt
parente68aa1f74d315f7bf24d7c8829002d0031b23539 (diff)
parent0462bc828e59ce99a48303a2f6190d3a01ce9465 (diff)
downloadhercules-1fd628e7be9e6de4ea48394be09ae10e912d8f3d.tar.gz
hercules-1fd628e7be9e6de4ea48394be09ae10e912d8f3d.tar.bz2
hercules-1fd628e7be9e6de4ea48394be09ae10e912d8f3d.tar.xz
hercules-1fd628e7be9e6de4ea48394be09ae10e912d8f3d.zip
Merge pull request #1110 from dastgir/22-ScriptClean-Phase2
Script CleanUp Phase 2
Diffstat (limited to 'npc/custom/itembind.txt')
-rw-r--r--npc/custom/itembind.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/custom/itembind.txt b/npc/custom/itembind.txt
index efc8821ff..d39bfe802 100644
--- a/npc/custom/itembind.txt
+++ b/npc/custom/itembind.txt
@@ -18,13 +18,13 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{
mes "With this, you can rest assured your items are safe.";
next;
mes "What would you like to do?";
- if(select("Bind:Unbind") == 1) {
+ if(select("Bind", "Unbind") == 1) {
if(Zeny < .bindprice) {
mes "You don't have enough zeny to bind an item.";
close;
}
mes "What kind of bind?";
- .@boundtype = 1 << (select("Account:Guild:Character")-1);
+ .@boundtype = 1 << (select("Account", "Guild", "Character")-1);
if(.@boundtype == 2 && (!getcharid(2) || getguildmaster(getcharid(2)) != strcharinfo(0))) {
mes "In order for me to bind an item to a guild you must be the master of one.";
close;
@@ -52,14 +52,14 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{
.@item = .@bindlist[select(.@bindlist$)-2];
next;
mes "Before I continue, I want you to know I can't tell the difference between multiple items. If you have a specific item you want bounded, please remove any duplicates from inventory.";
- if(select("I understand, continue:Wait a minute") == 2) {
+ if(select("I understand, continue", "Wait a minute") == 2) {
next;
mes "I'll be here when you're ready.";
close;
}
next;
mes "Are you sure you'd like to bind your "+ getitemname(@inventorylist_id[.@item]) +" to your "+.boundtypes$[.@boundtype]+"?";
- if(select("Yes:No") == 1) {
+ if(select("Yes", "No") == 1) {
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;
@@ -99,14 +99,14 @@ prontera,144,174,4 script Bound Items 4_M_JP_MID,{
}
}
mes "Before I continue, I want you to know I can't tell the difference between multiple items. If you have a specific item you want unbounded, please remove any duplicates from inventory.";
- if(select("I understand, continue:Wait a minute") == 2) {
+ if(select("I understand, continue", "Wait a minute") == 2) {
next;
mes "I'll be here when you're ready.";
close;
}
next;
mes "Are you sure you'd like to unbind your "+ getitemname(@inventorylist_id[.@item]) +"?";
- if(select("Yes:No") == 1) {
+ if(select("Yes", "No") == 1) {
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];