Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,872
    Reputation
    182
    Thanks
    17,852
    My Mood
    Happy

    Nothing to see here

    Code:
    public static function isInInvTree(name:String):Boolean
    		{
    			for each(var m:Object in _instance.world.invTree)
    			{
    				if(m.sName == name)
    				{
    					id = m.ItemID;
    					return true;
    				}
    			}
    			return false;
    		}
    		public static function isInItems(name:String):Boolean
    		{
    			for each(var o:Object in _instance.world.myAvatar.items)
    			{
    				if(o.sName == name)
    				{
    					id = o.ItemID;
    					return true;
    				}
    			}
    			return false;
    		}
    		public static function inCNT(name:String):Boolean
    		{
    			var ds:* = _instance.ui.dropStack;
    			var i:int;
    			trace(ds.numChildren);
    			if(ds.numChildren == 0)
    			{
    				trace("nope.avi");
    				return false;
    			}
    			if(ds.numChildren >0)
    			{
    				while(i < ds.numChildren)
    				{
    					
    					if(ds.getChildAt(i).cnt.strName.text.toLowerCase().indexOf(name.toLowerCase()) == 0)
    					   {
    						   trace("Found, Index is " + ds.getChildAt(i).cnt.strName.text.toLowerCase().indexOf(name.toLowerCase()));
    					   	   return true;
    					   }
    					   trace(ds.getChildAt(i).cnt.strName.text);
    					   trace(ds.getChildAt(i).cnt.strName.text.toLowerCase().indexOf(name.toLowerCase()));
    					i++;
    				}
    				
    			}else
    			{
    				trace("no drops, aborting...");
    			}
    			return false;
    			
    		}
    		public static function pickUpItem(name:String)
    		{
    			trace("name is " + name);
    			if(inCNT(name) && isInInvTree(name))
    			{
    				_instance.sfc.sendXtMessage("zm", "getDrop", [id], "str", _instance.world.curRoom);
    			}else
    			{
    				return;
    			}
    			
    		}
    Notes:
    1. If you are going to use it, give credits.
    2. You will need to define some variables.
    3. If you don't know what is this or how to use, don't even bother asking.
    4. I know my coding skills aren't great.

  2. The Following 5 Users Say Thank You to JamesRo For This Useful Post:

    Darakath (11-20-2013),Jhem (08-21-2013),mitch1490 (08-21-2013),Oliboli8769 (08-21-2013),Rance-Sama (08-21-2013)

  3. #2
    zerobrium's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    613
    Reputation
    13
    Thanks
    823
    lul, is this in Game.as?

  4. #3
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,872
    Reputation
    182
    Thanks
    17,852
    My Mood
    Happy
    Quote Originally Posted by zerobrium View Post
    lul, is this in Game.as?
    You can put it anywhere you want, you just need to know how to call it later.

  5. #4
    Rance-Sama's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Ice
    Posts
    6,322
    Reputation
    653
    Thanks
    8,883
    Great work, James.

  6. The Following User Says Thank You to Rance-Sama For This Useful Post:

    Jhem (08-21-2013)

  7. #5
    Gio's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Work
    Posts
    7,149
    Reputation
    1227
    Thanks
    3,467
    My Mood
    Twisted

    I deleted that FO part. Your coding skillz are great

    I regard the theatre as the greatest of all art forms, the most immediate way in which a human being can share with another the sense of what it is to be a human being. -Wilde

    Member Since: 7 March 2013
    Donator Since: 14 January 2014
    Editor Since: 10 August 2013
    Manager Since: 27 September 2013
    Middleman Since: 31 January 2014
    BattleOn Minion Since: 13 August 2013
    Dragon Nest Minion Since: 12 September 2013
    Minecraft Minion Since: Don't Remember
    Social Games Minion Since: Don't Remember
    Realm Of The Mad God Minion Since: Don't Remember
    Alliance of Valiant Arms Minion Since: Don't Remember
    Pharaoh #5: 2 January 2014
    Former Staff Since: 5 February 2015


  8. The Following User Says Thank You to Gio For This Useful Post:

    Jhem (08-21-2013)

  9. #6
    aqwlegiontitanhacker's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    NYC
    Posts
    246
    Reputation
    10
    Thanks
    18
    God damn this is great!

  10. #7
    mitch1490's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    2
    My Mood
    Happy
    Wow... I spend like 4 months only to code this and now its public... still thanks for contribution.

  11. #8
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,393
    My Mood
    Stressed
    I DOn't Know How To Use That.

    but Thanks.

  12. #9
    zerobrium's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    613
    Reputation
    13
    Thanks
    823
    Quote Originally Posted by Jheamuel123 View Post
    I DOn't Know How To Use That.

    but Thanks.
    Welp, getDrops.

  13. The Following User Says Thank You to zerobrium For This Useful Post:

    Jhem (08-21-2013)

  14. #10
    Kasiek's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    My house
    Posts
    198
    Reputation
    16
    Thanks
    295
    My Mood
    Sad
    No point in posting it if more than half the people don't know how the hell to use this/facepalm

  15. #11
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,872
    Reputation
    182
    Thanks
    17,852
    My Mood
    Happy
    Quote Originally Posted by Kasiek View Post
    No point in posting it if more than half the people don't know how the hell to use this/facepalm
    I've seen stupid posts before, but this one took the cake

  16. The Following 4 Users Say Thank You to JamesRo For This Useful Post:

    AQWorldsWhiteKnight890 (08-24-2013),Daenerys (08-24-2013),mitch1490 (08-24-2013),Oliboli8769 (08-24-2013)

  17. #12
    AQWorldsWhiteKnight890's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    Space
    Posts
    209
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    Quote Originally Posted by Jheamuel123 View Post
    I DOn't Know How To Use That.

    but Thanks.
    It just said "Don't ask if you don't know how to use it." -_-

  18. #13
    munkdaanaa's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Summoner's rift
    Posts
    58
    Reputation
    10
    Thanks
    6
    My Mood
    Sleepy
    I bet this gets you something really cool, sucks for us n00b non-coders.

  19. #14
    Plutonsvea's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    Australia
    Posts
    1,889
    Reputation
    303
    Thanks
    990
    My Mood
    Fine
    Quote Originally Posted by munkdaanaa View Post
    I bet this gets you something really cool, sucks for us n00b non-coders.
    1. function pickUpItem(name:String)

    2. instance.ui.dropStack;

    3. trace("no drops, aborting

    What do you think it's for? /facepalm
    Did I help you? You know what to do.

     





  20. #15
    zerobrium's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    613
    Reputation
    13
    Thanks
    823
    Quote Originally Posted by Plutonsvea View Post
    1. function pickUpItem(name:String)

    2. instance.ui.dropStack;

    3. trace("no drops, aborting

    What do you think it's for? /facepalm
    Free ac's and membership hax?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] *cough* Nothing to see here! Good Luck! (Free key)
    By IvanHD in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 11
    Last Post: 03-03-2013, 06:01 PM
  2. So BORED! has nothing to do here..
    By xDaNnx in forum General
    Replies: 23
    Last Post: 09-23-2011, 01:11 AM
  3. Bored? See here
    By [G]enesis in forum General
    Replies: 31
    Last Post: 08-29-2011, 01:00 PM