Jump to content

Recommended Posts

Posted

Looking For good Agument System for high five

 

if any have pm me or tell here

 

local weaponName = "Eternal Core Dual Sword"
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()
                ClickAndWait("npc_268457188_Chat 5", "Augment an item");
                Sleep(450)                
                ClickAndWait("npc_268457188_Link common/augmentation_01.htm", "Augment an item");
                Sleep(450)
                ClickAndWait("npc_268457188_Augment 1", "Start augmenting")
                Sleep(450)  
return true
   end
   return false
end

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 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();
        ClickAndWait("npc_268457188_Chat 5", "Augment an item");
        Sleep(350)                
        ClickAndWait("npc_268457188_Chat 2", "Remove Augment");
      Sleep(350)
      ClickAndWait("menu_select?ask=-503&reply=200", "Remove the refined Life Stone.");
      Sleep(350)
      return true
   end
   return false
end

weapon = getItemByName(weaponName)
if ( weapon == nil ) then
   ShowToClient("- NeedWeed4 -", "nie ma broni " .. 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("- NeedWeeed4 -", "brak kamykow")
            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 ( weapon.RefineryOp2 ) == false ) then
            ShowToClient("- g11 -", "You have achieved desired augment! " .. weapon.RefineryOp2)
            break
         end
      else
         if ( GetAugmentManager():KeepAugment ( weapon.RefineryOp2 ) == false ) then
            ShowToClient("- g11 -", "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

Posted

i mean a npc with all aguments

 

so all can buy whata agument want with out lifestone

Posted

i mean a npc with all aguments

 

so all can buy whata agument want with out lifestone

 

I have... pm me

 

Augument NPC...

Posted

Looking For good Agument System for high five

 

if any have pm me or tell here

 

U Say for good agument system not NPC bro  :happyforever:

Srry for that

Guest
This topic is now closed to further replies.


×
×
  • Create New...