From 46fbbaabefa29df1378ae68b7f063dbc64846042 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 26 Oct 2014 04:26:34 +0100 Subject: Replaced 'set' with direct assignment where applicable (re folder) Signed-off-by: Haru --- npc/re/merchants/enchan_mal.txt | 354 ++++++++++++++++++++-------------------- 1 file changed, 177 insertions(+), 177 deletions(-) (limited to 'npc/re/merchants/enchan_mal.txt') diff --git a/npc/re/merchants/enchan_mal.txt b/npc/re/merchants/enchan_mal.txt index 24ed71c04..6dbb264df 100644 --- a/npc/re/merchants/enchan_mal.txt +++ b/npc/re/merchants/enchan_mal.txt @@ -49,21 +49,21 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ mes "Several rules are changed. Well, you better have experience."; close; case 2: - set @mal_enchant_select,1; + @mal_enchant_select = 1; break; case 3: - set @mal_enchant_select,2; + @mal_enchant_select = 2; break; } if (!getequipisequiped(EQI_HAND_R)) { mes "[Mayomayo]"; mes "Did you take off your equipment?"; - set @mal_enchant_select,0; + @mal_enchant_select = 0; close; } - set @mal_equip_id, getequipid(EQI_HAND_R); - set .@equip_type, getiteminfo(@mal_equip_id,11); + @mal_equip_id = getequipid(EQI_HAND_R); + .@equip_type = getiteminfo(@mal_equip_id,11); //callsub L_Socket,,<4-x enchants possible>; switch(.@equip_type) { // Check weapon type first to speed up the checks. @@ -306,18 +306,18 @@ malangdo,213,167,4 script Mayomayo#mal 4_CAT_3COLOR,{ mes "This is not a suitable equipment for the enchant. Don't forget we only take care of high class weapons, including level 4 weapons~"; else mes "This equipment can not be initialized. Don't forget we only handle some luxury weapons, including level 4 weapons~"; - set @mal_equip_id,0; - set @mal_enchant_select,0; + @mal_equip_id = 0; + @mal_enchant_select = 0; close; L_Socket: - set .@select, @mal_enchant_select; - set .@equip_id, @mal_equip_id; - set .@equip_name$, getitemname(.@equip_id)+((getitemslots(.@equip_id))?"["+getitemslots(.@equip_id)+"]":""); - set .@equip_refine, getequiprefinerycnt(EQI_HAND_R); + .@select = @mal_enchant_select; + .@equip_id = @mal_equip_id; + .@equip_name$ = getitemname(.@equip_id)+((getitemslots(.@equip_id))?"["+getitemslots(.@equip_id)+"]":""); + .@equip_refine = getequiprefinerycnt(EQI_HAND_R); setarray .@equip_card[0], getequipcardid(EQI_HAND_R,0),getequipcardid(EQI_HAND_R,1),getequipcardid(EQI_HAND_R,2),getequipcardid(EQI_HAND_R,3); - set @mal_equip_id,0; - set @mal_enchant_select,0; + @mal_equip_id = 0; + @mal_enchant_select = 0; if (.@select == 1) { mes "[Mayomayo]"; @@ -327,16 +327,16 @@ L_Socket: setarray .@coin[0],6422,6421,6420,6419,6418,6423; // Payment ID setarray .@cost[0], 15, 10, 6, 3, 2, 1; // Payment multiplier - set .@menu$, "Stop:"; - for(set .@i,0; .@i= 4700) // Armor Enchant System - set .@equip_card[.@i],0; + .@equip_card[.@i] = 0; } getitem2 .@equip_id,1,1,.@equip_refine,0,.@equip_card[0],.@equip_card[1],.@equip_card[2],.@equip_card[3]; -- cgit v1.2.3-70-g09d2