summaryrefslogtreecommitdiff
path: root/npc/battleground/kvm/kvm_item_pay.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-26 02:06:46 +0100
committerHaru <haru@dotalux.com>2014-11-02 01:36:50 +0100
commitbf4b0a281207e46a9b21a9c9f779aeafaa739b62 (patch)
tree0230ee95510255548ebb7f4080460b466c9e2ca6 /npc/battleground/kvm/kvm_item_pay.txt
parent6b20c5b6988c889df35b890d93c338f8b87fa430 (diff)
downloadhercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.gz
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.bz2
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.xz
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.zip
Replaced 'set' with direct assignment where applicable (common folder)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/battleground/kvm/kvm_item_pay.txt')
-rw-r--r--npc/battleground/kvm/kvm_item_pay.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/battleground/kvm/kvm_item_pay.txt b/npc/battleground/kvm/kvm_item_pay.txt
index fa14455d6..ed6190690 100644
--- a/npc/battleground/kvm/kvm_item_pay.txt
+++ b/npc/battleground/kvm/kvm_item_pay.txt
@@ -18,9 +18,9 @@
bat_room,151,144,3 script KVM Logistic Officer#a 4_M_JOB_KNIGHT2,{
if (countitem(7773)) {
- set .@pointstoadd,countitem(7773);
+ .@pointstoadd = countitem(7773);
delitem 7773,.@pointstoadd;
- set kvm_point,kvm_point+.@pointstoadd;
+ kvm_point += .@pointstoadd;
mes "[Logistics]";
mes "Are those "+getitemname(7773)+"s I see?";
mes "We no longer accept that currency,";
@@ -45,7 +45,7 @@ bat_room,151,144,3 script KVM Logistic Officer#a 4_M_JOB_KNIGHT2,{
mes "be reversed. Please be carefull.";
mes "Select the next step please.";
next;
- set .@name$,strcharinfo(0);
+ .@name$ = strcharinfo(0);
switch(select("Read the KVM Catalogue.:Purchase KVM Items.:Confirm KVM Points.:Explanation of KVM Rewards.:Explanation of KVM Points.")) {
case 1:
mes "[Logistics]";
@@ -283,7 +283,7 @@ PurchaseItem:
break;
case 2:
if (kvm_point >= .@prices[getarg(1)]) {
- set kvm_point,kvm_point-.@prices[getarg(1)];
+ kvm_point -= .@prices[getarg(1)];
getitem getarg(0),1;
mes "[Logistics]";
mes "You have purchased a "+getitemname(getarg(0))+".";