Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AUGMENT SCRIPT H5
Author Message
michalnt98 Offline
Elpy
*

Posts: 2
Joined: Jun 2012
Reputation: 0
Version: 1.4.1.112
Post: #1
AUGMENT SCRIPT H5

Witam, szukam dzialajacego,dobrego i w miare szybkiego skryptu do l2tower co augmentuje bron i prosilbym o wytlumaczenie jak go uzyc , serwer high rate , jest tam Pushkin , l2 FORSAKEN high rate
06-23-2014 11:34 AM
Find all posts by this user Quote this message in a reply
kroki91 Offline
Expired VIP Member
**

Posts: 16
Joined: Jul 2012
Reputation: 0
Version: 1.4.3.143
Post: #2
RE: AUGMENT SCRIPT H5

Mam 2 sktypy ale ani jeden ani drugi nie działają w dobry sposób
Tutaj masz jeden "Ale pamiętaj musisz zwracać jakie augu wychodzi bo działa cały czas w kółko czyli robi i kasuje.Kiedy będziecie mieli tą augumentacje której potrzebowaliście po prostu odbiegnijcie bo nie stopuje się skrypt jak pisałem wcześniej.Na filmikach na youtube jest pokazane jak gość wybiera z /xcfg te augumentacje które chce żeby na nich się zastopowało ale ja jeszcze tego nie ogarnąłem może akurat ktoś nam tutaj pomoże z rozwikłaniem tego problemu (dzieki)



local weaponName = "Nazwa Broni"
-- local lifestoneName = "Top-Grade Life Stone - Level 86"
local lifestoneName = "Top-Grade Life Stone - Level 86"
local gemstoneName = "Gemstone B"
local gemstone_count = 36
local npcName = "Nazwa Blacksmith U jakiego augumentujemy"

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(1000)
TargetNpc(name, 0)
Sleep(1000)
end
else
TargetNpc(name, 0)
Sleep(1000)
end
-- LinkAndWait
target = GetTarget()
if ( target ~= nil and target:GetName() == name ) then
Talk()
Sleep(1000)
-- ClickLinkAndWait("Augment an item");
Click("", "Augment an item");
Sleep(1000)
-- Click("Augment an item", "Start augmenting.");
Click("", "Augment an item");
Sleep(1000)
Click("", "Start augmenting.");
Sleep(500)
return true
end
return false
end

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

target = GetTarget()
if ( target ~= nil and target:GetName() == name ) then
Talk()
Sleep(1000)
-- ClickLinkAndWait("Remove Augment");
Click("", "Augment an item");
Sleep(1000)
-- Click("", "Remove the refined Life Stone.");
Click("", "Remove Augment");
Sleep(1000)
Click("", "Remove the refined Life Stone.");
Sleep(500)
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, 36)
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 ( 24979 ) == true ) then
ShowToClient("AUGMENT:", "You have achieved desired augment! " .. weapon.RefineryOp2)
break
end
else
if ( GetAugmentManager():KeepAugment ( 24979 ) == 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
(This post was last modified: 11-16-2014 09:47 AM by kroki91.)
11-16-2014 09:41 AM
Find all posts by this user Quote this message in a reply
Post Reply 




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