Darakath (11-20-2013),Jhem (08-21-2013),mitch1490 (08-21-2013),Oliboli8769 (08-21-2013),Rance-Sama (08-21-2013)
Notes: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; } }
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 12:13 PM.
Darakath (11-20-2013),Jhem (08-21-2013),mitch1490 (08-21-2013),Oliboli8769 (08-21-2013),Rance-Sama (08-21-2013)
Great work, James.
Jhem (08-21-2013)
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
Jhem (08-21-2013)
God damn this is great!
Wow... I spend like 4 months only to code this and now its public... still thanks for contribution.
I DOn't Know How To Use That.
but Thanks.
Jhem (08-21-2013)
No point in posting it if more than half the people don't know how the hell to use this/facepalm
AQWorldsWhiteKnight890 (08-24-2013),Daenerys (08-24-2013),mitch1490 (08-24-2013),Oliboli8769 (08-24-2013)
I bet this gets you something really cool, sucks for us n00b non-coders.