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

Thread Closed 
 
Thread Rating:
  • 11 Vote(s) - 2.82 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Augment Script Interlude
Author Message
TeeTee Offline
Gremlin
*

Posts: 5
Joined: Dec 2011
Reputation: 0
Version: 1.4.1.102
Post: #1
Augment Script Interlude

Hey guys, whenever i use my script there alwayxs pops up a windows with this message "My Text is missin : common/augmentation_01.txt" what does that mean and what do i have to do?

script is :

local weaponName = "Draconic Bow"
local lifestoneName = "Mid-Grade Life Stone: level 76"
local gemstoneName = "Gemstone C"
local gemstone_count = 25
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



----

would be nice if some1 could help me out
07-19-2013 18:20 PM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Auto Augment - Services / AIO NPC. 2pho3nix 11 18,328 07-27-2020 09:37 AM
Last Post: z3renity
  Interlude Augment script/plugin - l2mid anheoo 4 9,589 04-05-2020 10:59 AM
Last Post: icarox3
  L2 Mafia [Ken Orwen] Interlude xKIDutz 0 1,748 11-02-2018 21:44 PM
Last Post: xKIDutz
  LF AutoAugment Script for Interlude Server lefterhs1994 0 2,566 01-15-2018 18:33 PM
Last Post: lefterhs1994
  H5 augment thingy Szakalaka 1 4,625 11-21-2017 06:43 AM
Last Post: annavrah04
Wink LifeDrain start 12.05.2017 Interlude drosgardius 0 2,344 05-10-2017 23:37 PM
Last Post: drosgardius
  i cannot detect a window on a interlude server PraetorFTW 0 2,564 12-19-2016 14:59 PM
Last Post: PraetorFTW
  LF Interlude low/mid rate Server with working l2tower pwsriddick 1 3,227 04-22-2016 21:26 PM
Last Post: Higorkovic
WTS help plugins Augment Interlude blackzer01 0 3,432 01-18-2016 17:01 PM
Last Post: blackzer01
  Best version for interlude? aciddemon123 2 4,891 12-11-2015 16:37 PM
Last Post: aciddemon123



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