L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Thread Closed 
 
Thread Rating:
  • 32 Vote(s) - 2.47 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Augument
Author Message
dnb Offline
Zaken's Royal Guard
*

Posts: 59
Joined: Mar 2012
Reputation: 1
Version: 1.4.2.132
Post: #1
Augument

Alright setted it up , It's ready.

But then I get an error not enough Gemstones or Lifestones.

Everything is spelled correctly.

Lemme hear whatcha got
04-07-2012 18:35 PM
Find all posts by this user
darkscream Offline
‡※-Like a Boss-※‡
**

Posts: 102
Joined: Jan 2012
Reputation: 8
Version: 1.4.2.133
Post: #2
RE: Augument

what script do you use?
04-07-2012 19:32 PM
Find all posts by this user
dnb Offline
Zaken's Royal Guard
*

Posts: 59
Joined: Mar 2012
Reputation: 1
Version: 1.4.2.132
Post: #3
RE: Augument

(04-07-2012 19:32 PM)darkscream Wrote:  what script do you use?

local weaponName = "Recurve Thorne Bow"
local lifestoneName = "Top-Grade Life Stone - Level 84"
local gemstoneName = "Gemstone B"
local gemstone_count = 36
local npcName = "Pushkin"

function getItemByName(name)
invList = GetInventory();
for item in invList.list do
if item.Name == name then
-- ShowToClient("ITEM", item.Name .. " (ID: " .. item.displayId .. ")");
return item
end
end
end

function openAugmentWindow(name)
target = GetTarget()
if ( target ~= nil ) then
if ( target:GetName() ~= name ) then
CancelTarget(true)
Sleep(500)
TargetNpc(name, 0)
Sleep(500)
end
else
TargetNpc(name, 0)
Sleep(500)
end

target = GetTarget()
if ( target ~= nil and target:GetName() == name ) then
Talk()
Sleep(500)
ClickLinkAndWait("common/augmentation_01.htm");
Sleep(500)
Click("", "Start smelting.");
Sleep(200)
return true
end
return false
end

function openAugmentCancelWindow(name)
target = GetTarget()
if ( target ~= nil ) then
if ( target:GetName() ~= name ) then
CancelTarget(true)
Sleep(500)
TargetNpc(name, 0)
Sleep(500)
end
else
TargetNpc(name, 0)
Sleep(500)
end

target = GetTarget()
if ( target ~= nil and target:GetName() == name ) then
Talk()
Sleep(500)
ClickLinkAndWait("common/augmentation_02.htm");
Sleep(500)
Click("", "Remove the Stone of Life.");
Sleep(200)
return true
end
return false
end

weapon = getItemByName(weaponName)
if ( weapon == nil ) then
ShowToClient("AUGMENT", "Could not find weapon " .. weaponName)
else
weaponId = weapon.objectId
GetAugmentManager():setItemId(weaponId)
repeat
if ( weapon.RefineryOp2 == 0 ) then
lifestone = getItemByName(lifestoneName)
gemstone = getItemByName(gemstoneName)
if ( lifestone == nil or gemstone == nil ) then
ShowToClient("AUGMENT:", "Out of gemstones or life stones")
break
end

GetAugmentManager():setItemId(weaponId)
GetAugmentManager():setLifeStoneId(lifestone.objectId)
GetAugmentManager():setGemstoneId(gemstone.objectId, 25)
GetAugmentManager():Augment()

if ( openAugmentWindow(npcName) == false ) then
break
end

while ( GetAugmentManager():getAugmentResult() == Augment.AUGMENT_PENDING ) do
Sleep(200)
end
if ( GetAugmentManager():getAugmentResult() == Augment.AUGMENT_FINISHED ) then
Sleep ( 100 ) -- sleep so item data is updated
weapon = GetInventory():FindById(weaponId)
end

if ( GetAugmentManager():KeepAugment ( weapon.RefineryOp2 ) == true ) then
ShowToClient("AUGMENT:", "You have achieved desired augment! " .. weapon.RefineryOp2)
break
end
else
if ( GetAugmentManager():KeepAugment ( weapon.RefineryOp2 ) == true ) then
ShowToClient("AUGMENT:", "You have achieved desired augment! " .. weapon.RefineryOp2)
break
end

GetAugmentManager():setItemId(weaponId)
GetAugmentManager():AugmentCancel()

if ( openAugmentCancelWindow(npcName) == false ) then
break
end

while ( GetAugmentManager():getAugmentCancelResult() == Augment.AUGMENT_CANCEL_PENDING ) do
Sleep(200)
end
if ( GetAugmentManager():getAugmentCancelResult() == Augment.AUGMENT_FINISHED ) then
Sleep ( 100 ) -- sleep so item data is updated
end
weapon = GetInventory():FindById(weaponId)
end
until false
end

Also on the Augmention tab (L2 Tower Cofig) Nothing pops up.
(This post was last modified: 04-07-2012 22:18 PM by dnb.)
04-07-2012 19:44 PM
Find all posts by this user
dnb Offline
Zaken's Royal Guard
*

Posts: 59
Joined: Mar 2012
Reputation: 1
Version: 1.4.2.132
Post: #4
RE: Augument

bump
04-08-2012 20:31 PM
Find all posts by this user
mk89 Offline
Goblin Grave Robber
*

Posts: 11
Joined: Aug 2011
Reputation: 0
Version: 1.4.1.108
Post: #5
RE: Augument

GetAugmentManager():setGemstoneId(gemstone.objectId, 25)
should be 36
04-08-2012 21:00 PM
Find all posts by this user
dnb Offline
Zaken's Royal Guard
*

Posts: 59
Joined: Mar 2012
Reputation: 1
Version: 1.4.2.132
Post: #6
RE: Augument

ty Alright thats fixed but I dont see anything on the l2tower config Augmention tab to like select the augment I want.

ERRHM?

bump Tongue

bump

bmp
(This post was last modified: 04-08-2012 23:55 PM by dnb.)
04-08-2012 21:24 PM
Find all posts by this user
dnb Offline
Zaken's Royal Guard
*

Posts: 59
Joined: Mar 2012
Reputation: 1
Version: 1.4.2.132
Post: #7
RE: Augument

bymp 1
04-09-2012 04:17 AM
Find all posts by this user
dnb Offline
Zaken's Royal Guard
*

Posts: 59
Joined: Mar 2012
Reputation: 1
Version: 1.4.2.132
Post: #8
RE: Augument

bump
04-10-2012 21:36 PM
Find all posts by this user
darkscream Offline
‡※-Like a Boss-※‡
**

Posts: 102
Joined: Jan 2012
Reputation: 8
Version: 1.4.2.133
Post: #9
RE: Augument

(04-08-2012 21:24 PM)dnb Wrote:  ty Alright thats fixed but I dont see anything on the l2tower config Augmention tab to like select the augment I want.

o really?
how about this:
[Image: aug.jpg]

Uncheck all you don't want
(This post was last modified: 04-10-2012 22:04 PM by darkscream.)
04-10-2012 22:02 PM
Find all posts by this user
dnb Offline
Zaken's Royal Guard
*

Posts: 59
Joined: Mar 2012
Reputation: 1
Version: 1.4.2.132
Post: #10
RE: Augument

Yeh the only thing is , Theres nothing on the list.

lol...
04-10-2012 22:26 PM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  augument Insajd 0 1,612 08-10-2013 03:20 AM
Last Post: Insajd



User(s) browsing this thread: 1 Guest(s)