Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to empty inventory.
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#7
RE: How to empty inventory.

there is a way to check it :

try something like that :
String[] itemList = ("itemName1", "itemName2", "itemName3");

String[] itemList = ("itemName1", "itemName2", "itemName3");

for(int i = 0; i<= itemList.length; i++){
    if(hasItem(itemList[i]) == true){
               removeItem(itemList[i];
    }
}

please consider this is java code, sooo you have to find out how you have to write it in the script file ...

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
03-10-2013, 07:26 PM
Find


Messages In This Thread
How to empty inventory. - by W4rpCore - 03-10-2013, 06:52 PM
RE: How to empty inventory. - by stonecutter - 03-10-2013, 07:03 PM
RE: How to empty inventory. - by W4rpCore - 03-10-2013, 07:09 PM
RE: How to empty inventory. - by The chaser - 03-10-2013, 07:20 PM
RE: How to empty inventory. - by NaxEla - 03-10-2013, 07:09 PM
RE: How to empty inventory. - by stonecutter - 03-10-2013, 07:26 PM
RE: How to empty inventory. - by PutraenusAlivius - 03-11-2013, 03:42 PM
RE: How to empty inventory. - by No Author - 03-11-2013, 03:53 PM
RE: How to empty inventory. - by W4rpCore - 03-11-2013, 03:58 PM
RE: How to empty inventory. - by PutraenusAlivius - 03-11-2013, 04:04 PM



Users browsing this thread: 2 Guest(s)