From e635025f2600a77f3c38e498b7b1f590da1867c6 Mon Sep 17 00:00:00 2001 From: Playtester Date: Wed, 5 Jul 2006 10:34:50 +0000 Subject: * Updated Socket Enchant NPC - fixed various bugs - adjusted success rates - now has official coordinates and sprite git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7533 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/Changelog.txt | 5 ++++ npc/merchants/socket_enchant.txt | 58 ++++++++++++++++++++-------------------- 2 files changed, 34 insertions(+), 29 deletions(-) diff --git a/npc/Changelog.txt b/npc/Changelog.txt index 2b7bfd315..371fd0cc5 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -38,6 +38,11 @@ Playtester Date Added ====== +07/05 + * Updated Socket Enchant NPC [Playtester] + - fixed various bugs + - adjusted success rates + - now has official coordinates and sprite 07/04 * Added the Socket Enchant NPC written by Sousuke_PL [Playtester] - I already tested and fixed some stuff but requires some more testing diff --git a/npc/merchants/socket_enchant.txt b/npc/merchants/socket_enchant.txt index 790c8abd7..9d4fcbfe5 100644 --- a/npc/merchants/socket_enchant.txt +++ b/npc/merchants/socket_enchant.txt @@ -38,7 +38,7 @@ lhz_in02.gat,281,35,5 script Socket Enchant 84,{ mes "Choose the number of page. Type 1 to 5:"; next; input @weapsite; - if(@weapsite > 5) goto L_WaepJump; + if(@weapsite > 5 || @weapsite < 1) goto L_WaepJump; if(@weapsite == 1) goto L_Weapon1; if(@weapsite == 2) goto L_Weapon2; @@ -47,7 +47,6 @@ lhz_in02.gat,281,35,5 script Socket Enchant 84,{ if(@weapsite == 5) goto L_Weapon5; - L_Weapon1: close2; @@ -239,15 +238,15 @@ lhz_in02.gat,281,35,5 script Socket Enchant 84,{ mes "[Socket Enchant]"; mes "Choose the number of page. Type 1 to 6:"; next; - input @weapsite; - if(@armorsite > 6) goto L_ArmorJump; + input @armorsite; + if(@armorsite > 6 || @armorsite < 1) goto L_ArmorJump; - if(@armorsite == 1) goto L_ArmorJump1; - if(@armorsite == 2) goto L_ArmorJump2; - if(@armorsite == 3) goto L_ArmorJump3; - if(@armorsite == 4) goto L_ArmorJump4; - if(@armorsite == 5) goto L_ArmorJump5; - if(@armorsite == 6) goto L_ArmorJump6; + if(@armorsite == 1) goto L_Armor1; + if(@armorsite == 2) goto L_Armor2; + if(@armorsite == 3) goto L_Armor3; + if(@armorsite == 4) goto L_Armor4; + if(@armorsite == 5) goto L_Armor5; + if(@armorsite == 6) goto L_Armor6; L_Armor1: @@ -256,6 +255,7 @@ lhz_in02.gat,281,35,5 script Socket Enchant 84,{ mes "[Socket Enchant]"; mes "Please choose your item:"; menu "Mantle",Mantle,"Coat",Coat,"Circlet",Circlet,"Biretta",Biretta,"Mirror Shield",Mirror_Shield,"Chain Mail",Chain_Mail,"Shield",Shield,"Bongun Hat",Bongun_Hat,"Next",L_Armor2,"Jump to page...",L_ArmorJump; + L_Armor2: close2; @@ -554,7 +554,7 @@ function script addslot { delitem @itemup,@itemupiece; set Zeny,Zeny-@addprice; delitem @olditem,1; - if(@rateit>rand(1,100))goto L_Fail; + if(@rateitrand(1,100))goto L_Fail; + if(@rateit