In reply to: Well... -- Xorlak 11:16:20 12-10-2005
hmmm... Posted by: Tidus 23:05:23 12-10-2005 |
Ok, then if i already have the item, and want to add to just the quantity I would do this.
#method itemgive(stuff$,itemamount!)
{
#include(item.prg)
#for(i!=1;i!<31;i!=i!+1)
{
#if(itemcount[i!]!>=0)
{
#if(item[i!]$="")
{
#item[i!]$=stuff$
#itemcount[i!]!=itemcount[i!]!+itemamount!
#if(itemcount[i!]!>99)
{
#itemcount[i!]!=99
}
#i!=31
#if(item[i!]$=stuff$)
{
#itemcount[i!]!=itemcount[i!]!+itemamount!
#if(itemcount[i!]!>99)
{
#itemcount[i!]!=99
}
#i!=31
}
}
}
}
Thanks again ;)