View unanswered posts | View active topics It is currently Tue Mar 19, 2024 5:19 am



Reply to topic  [ 1 post ] 
 Setting native tech in activity 
Author Message
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Setting native tech in activity
For example set native tech as dummy:

Code:
   local gui = self:GetBuyGUI(0) -- Argument is a team
   local id = PresetMan:GetModuleID("Dummy")
         
   if id > -1 and gui then
      print ("Set native tech to: "..id)
      gui:SetNativeTechModule(id)
   end


This will open dummy items in buy GUI and set high prices on foreign tech items.

UPD:

Yeah, right, wasted a couple of hours staring at CortexCommand.exe to figure this instead of looking into Metafight.lua... What an idiot...


Thu Jun 07, 2012 9:02 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.122s | 17 Queries | GZIP : Off ]