[dev rev 360] slot in any equip?

Status
Not open for further replies.
find this in gmcmds.cpp
Code:
else if (strcmp(command, "item")==0)//Modified by Hiei (added refine/socket/stats)
    {
        if(Config.Command_Item > thisclient->Session->accesslevel)
	       return true;
        UINT itemrefine, itemstats, itemls, itemsocket;
        if ((tmp = strtok(NULL, " "))==NULL) return true; UINT itemid =atoi(tmp);
        if ((tmp = strtok(NULL, " "))==NULL) return true; UINT itemtype =atoi(tmp);
        if ((tmp = strtok(NULL, " "))==NULL) return true; UINT itemamount =atoi(tmp);
        if ((tmp = strtok(NULL, " "))==NULL)
            itemrefine =0;
        else
            itemrefine = atoi(tmp)<10?atoi(tmp)*16:9*16;
        if ((tmp = strtok(NULL, " "))==NULL)
            itemls =100;
        else
            itemls = atoi(tmp);
        if ((tmp = strtok(NULL, " "))==NULL)
            itemsocket =0;
        else
            itemsocket =atoi(tmp)==0?false:true;
        if ((tmp = strtok(NULL, " "))==NULL)
            itemstats =0;
        else
            itemstats =atoi(tmp);
// Remove below if you want GM to socket anything but Armor, Jewelery or Weapons - code by lmame           
        if(itemtype!=3&&itemtype!=7&&itemtype!=8)
        {
            itemsocket=0;
            if (itemstats>=300)
            {
                itemstats=0;
            }
            
        }
        Log( MSG_GMACTION, " %s : /item %i,%i,%i,%i,%i,%i" , thisclient->CharInfo->charname, itemid, itemtype, itemamount , itemrefine , itemsocket ,itemstats);
        return pakGMItem( thisclient , itemid , itemtype , itemamount , itemrefine , itemls, itemstats , itemsocket );
    }

See the bit that says // Remove below if you want GM to socket anything but Armor, Jewelery or Weapons - code by lmame ??
Just do what it says and delete or comment out the bit under it
i.e. this bit
Code:
if(itemtype!=3&&itemtype!=7&&itemtype!=8)
        {
            itemsocket=0;
            if (itemstats>=300)
            {
                itemstats=0;
            }
            
        }
 
i saw ur post on osrose dev is that correct in script that overwriting the gem in a socket item... can u post it here in full scrip and how to make it compile to dev rev 360 thanks!!!
 
Status
Not open for further replies.
Back