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,870
    Reputation
    101
    Thanks
    15,252
    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.
    Last edited by Gio; 08-21-2013 at 01:13 PM.

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

    Darakath (11-20-2013),[MPGH]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
    614
    Reputation
    13
    Thanks
    789
    lul, is this in Game.as?

  4. #3
    JamesRo's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1,870
    Reputation
    101
    Thanks
    15,252
    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,339
    Reputation
    653
    Thanks
    7,504
    Great work, James.

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

    [MPGH]Jhem (08-21-2013)

  7. #5
    Gio's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Georgia
    Posts
    6,998
    Reputation
    1145
    Thanks
    3,148
    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 2013
    Minion Since: 13 August 2013
    Former Staff Since: 5 February 2014

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

    [MPGH]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 like her, She likes him, He likes me. How about you?
    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    Anime World.
    Posts
    4,128
    Reputation
    888
    Thanks
    6,042
    My Mood
    Cynical
    I DOn't Know How To Use That.

    but Thanks.




    • Member since March 20, 2012
    • Donator since March 1, 2014 (thanks to Jov)
    • Contributor since April 10, 2014
    • Minion Other MMORPG Games since August 1, 2015
    • Minion BlackShot since Nov 5, 2015

  12. #9
    zerobrium's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    614
    Reputation
    13
    Thanks
    789
    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:

    [MPGH]Jhem (08-21-2013)

  14. #10
    Kasiek's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    My house
    Posts
    161
    Reputation
    16
    Thanks
    265
    My Mood
    Amused
    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,870
    Reputation
    101
    Thanks
    15,252
    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),mitch1490 (08-24-2013),Oliboli8769 (08-24-2013),Timii (08-24-2013)

  17. #12
    AQWorldsWhiteKnight890's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    Space
    Posts
    209
    Reputation
    10
    Thanks
    18
    My Mood
    Angry
    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
    Nagoya, Japan.
    Posts
    12
    Reputation
    10
    Thanks
    3
    My Mood
    Bored
    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,839
    Reputation
    303
    Thanks
    973
    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
    614
    Reputation
    13
    Thanks
    789
    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, 07:01 PM
  2. So BORED! has nothing to do here..
    By xDaNnx in forum General
    Replies: 23
    Last Post: 09-23-2011, 02:11 AM
  3. Bored? See here
    By [G]enesis in forum General
    Replies: 31
    Last Post: 08-29-2011, 02:00 PM