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

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

Posts: 4
Joined: Oct 2013
Reputation: 0
Version: 1.4.3.143
Post: #1
Information HELP AUGMENT SCRIPT

My script works very well but don't put "Gemstone C" , the gemstones count stays always as many as u buy..Example: if u buy 25 gemstones in shop u can augment infinite weapons, and in the inventory count stay 25 always... Please help me fix this script

[Image: GhsGhq.png][/php]





local weaponName = "Vesper Caster"
local lifestoneName = "Mid-Grade Life Stone: level 76"
local gemstoneName = "Gemstone C"
local gemstone_count = 25
local npcName = "Augmenter"

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)
Click("", "Augment");
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)
Click("", "Remove");
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)
Sleep (100)
GetAugmentManager():setLifeStoneId(lifestone.objectId)
Sleep (100)
GetAugmentManager():setGemstoneId(gemstone.objectId, gemstone_count)
Sleep (100)
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


Attached File(s) Thumbnail(s)
   
02-13-2015 18:42 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #2
RE: HELP AUGMENT SCRIPT

lol what? wee woo wee woo chinese bot alert wee woo wee woo
(This post was last modified: 02-13-2015 19:12 PM by tophersoccer.)
02-13-2015 19:12 PM
Find all posts by this user Quote this message in a reply
 Reputed by : eustach3(+1)
eustach3 Offline
VIP Member
***

Posts: 324
Joined: Sep 2011
Reputation: 133
Version: 1.4.3.143
Post: #3
RE: HELP AUGMENT SCRIPT

I love the way you struggle to hide your inventory items and NPC title but you leave the server name and site.. just beautiful

[Image: Ghs_Ghq.png]
02-13-2015 19:49 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #4
RE: HELP AUGMENT SCRIPT

yeah i dont get why he did that...it seems backwards.
02-13-2015 20:23 PM
Find all posts by this user Quote this message in a reply
enio12 Offline
Elpy
*

Posts: 4
Joined: Oct 2013
Reputation: 0
Version: 1.4.3.143
Post: #5
Wink RE: HELP AUGMENT SCRIPT


(02-13-2015 20:23 PM)tophersoccer Wrote:  yeah i dont get why he did that...it seems backwards.

I need this help too mutch augmenting its only 5% there

(02-13-2015 19:49 PM)eustach3 Wrote:  I love the way you struggle to hide your inventory items and NPC title but you leave the server name and site.. just beautiful

[Image: Ghs_Ghq.png]

I don't care about the server , i care about my player cuz i got at least 4 weeks farming and don't want to get banned right now Smile
(This post was last modified: 02-13-2015 20:59 PM by enio12.)
02-13-2015 20:55 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #6
RE: HELP AUGMENT SCRIPT

(02-13-2015 20:55 PM)enio12 Wrote:  I don't care about the server , i care about my player cuz i got at least 4 weeks farming and don't want to get banned right now Smile

move adena and items to a non-bot account, repost image so we can see your name, we report you to server, you get banned, but you still have adena and items on other account, problem solved
02-13-2015 21:27 PM
Find all posts by this user Quote this message in a reply
eustach3 Offline
VIP Member
***

Posts: 324
Joined: Sep 2011
Reputation: 133
Version: 1.4.3.143
Post: #7
RE: HELP AUGMENT SCRIPT

Anyway.. it`s not possible on interlude to move gemstone to augment window.. it`s just bugged on interlude... apparently no one could make it work for interlude.
02-15-2015 03:40 AM
Find all posts by this user Quote this message in a reply
Post Reply 


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
  H5 augment thingy Szakalaka 1 4,625 11-21-2017 06:43 AM
Last Post: annavrah04
WTS help plugins Augment Interlude blackzer01 0 3,432 01-18-2016 17:01 PM
Last Post: blackzer01
  Auto augment lostrelos 0 5,756 02-16-2015 19:34 PM
Last Post: lostrelos
F.A.Q. Augment for Interlude "Services Manager" CRASHxtrm 1 3,681 07-06-2014 10:13 AM
Last Post: Demon152
  Augment Script BLUMCRAE1 0 5,460 06-08-2014 18:43 PM
Last Post: BLUMCRAE1
  Augment Script Errors l2exee 1 4,193 03-31-2014 05:50 AM
Last Post: mardukx
Information [REQUEST] Auto Augment on INTERLUDE for RUPIO (NOT PUSHKIN) Oren 0 3,020 02-10-2014 23:32 PM
Last Post: Oren
  Augment Script Interlude TeeTee 0 7,828 07-19-2013 18:20 PM
Last Post: TeeTee



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