• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

/make command source

Newbie Spellweaver
Joined
Aug 14, 2007
Messages
17
Reaction score
3
Hi. :)

I have written /make command. ;)
There is the source:

Code:
void UseMakeCommand(DWORD gObjId, char * msg)
{
    if(strlen(msg) < 18)
    {
        return;
    }

    int spaces = 0;
    for(int i=0; i < strlen(msg); i++)
    {
        if(msg[i] == ' ')
            spaces++;
    }
    if(spaces < 7)
        return;

    if(IsObjectGM(gObjId) == false)
    {
        return;
    }

    char * PosA;
    PosA = strchr( msg , ' ' );

    char * PosB;
    PosB = strchr( PosA+1 , ' ' );

    char * PosC;
    PosC = strchr( PosB+1 , ' ' );

    char * PosD;
    PosD = strchr( PosC+1 , ' ' );

    int ItemType, ItemNr, ItemLevel;
    if(*(PosA+2) != ' ')
    {
        ItemType = (int)(*(PosA+1) - 48) * 10 + (int)(*(PosA+2) - 48);
    }
    else
    {
        ItemType = (*(PosA+1)) - 48;
    }

    if(*(PosB+2) != ' ')
    {
        ItemNr = (int)(*(PosB+1) - 48) * 10 + (int)(*(PosB+2) - 48);
    }
    else
    {
        ItemNr = (*(PosB+1)) - 48;
    }

    if(*(PosC+2) != ' ')
    {
        ItemLevel = (int)(*(PosC+1) - 48) * 10 + (int)(*(PosC+2) - 48);
    }
    else
    {
        ItemLevel = (*(PosC+1)) - 48;
    }

    int ItemSkill = (*(PosD+1)) - 48;
    int ItemLuck = (*(PosD+3)) - 48;
    int ItemOpt = (*(PosD+5)) - 48;
    int ItemExc = (*(PosD+7)) - 48;


    DWORD Item = ItemType * 512 + ItemNr;

    InvItemCreate ( gObjId , GetObjectMap(gObjId) , GetObjectPosX(gObjId) , GetObjectPosY(gObjId) , Item , ItemLevel , 0 ,ItemSkill , ItemLuck, ItemOpt , -1 , ItemExc , 0 );
    GCServerMsgStringSend("[Make]: You have made an item.", gObjId, 1);

}
 
Last edited:
Newbie Spellweaver
Joined
Oct 22, 2005
Messages
64
Reaction score
0
Re: [Release] /make command source

You can put a guide to how to put this in a dll?
 
Newbie Spellweaver
Joined
Aug 18, 2007
Messages
35
Reaction score
0
Re: [Release] /make command source

can i put this command to 1.02K server, if yes how to do it ?
 
Newbie Spellweaver
Joined
Oct 26, 2007
Messages
87
Reaction score
13
Re: [Release] /make command source

10x nice
 
Experienced Elementalist
Joined
Jun 14, 2006
Messages
223
Reaction score
0
Re: [Release] /make command source

very nice, thank you
 
Experienced Elementalist
Joined
Dec 2, 2004
Messages
225
Reaction score
30
Re: [Release] /make command source

Good Release 10/10

Applicable to version?

thanks
 
Junior Spellweaver
Joined
Oct 27, 2006
Messages
132
Reaction score
5
Re: [Release] /make command source

Good Release 10/10

Applicable to version?

thanks

all 1.0.0.16 + older i think ... tested with DMT not released yet S2 files based on clean 1.0.0.16 GS's and working fine except ancient's :) ... in other words You can add this to any server files.

Code:
/make 1 2 3 4 5 6 7

1 - item type - from 1 to 15
2 - item index - various selection from various items
3 - item lvl - 1 - 13
4 - item skill - 1 - skill/0 - no skill
5 - item luck - 1 - luck/0 - w/o luck
6 - item option - 0 - 4 (4,8,12,16)
7 - excellent opt - 0 to 8 (where 0-8 test by Yourself :) )
 
Experienced Elementalist
Joined
Sep 14, 2006
Messages
229
Reaction score
0
Re: [Release] /make command source

and the .h file !?
 
Newbie Spellweaver
Joined
Oct 16, 2007
Messages
32
Reaction score
0
Re: [Release] /make command source

not bad, 9/10, took me a few to get it going
 
Junior Spellweaver
Joined
May 16, 2007
Messages
112
Reaction score
0
Re: [Release] /make command source

Thanks .. u can xplain more about this ... and u somebody have a guide for hook one dll to any gs? :juggle:
 
Junior Spellweaver
Joined
Jul 24, 2007
Messages
139
Reaction score
30
Re: [Release] /make command source

Search for FeN$x Hooking DLL Guide on the forum.
 
Junior Spellweaver
Joined
May 16, 2007
Messages
112
Reaction score
0
Re: [Release] /make command source

Thanks man i'll try later :) ...:poster_ss
 
Newbie Spellweaver
Joined
Aug 20, 2007
Messages
98
Reaction score
8
Re: [Release] /make command source

plz post a guide how to add this to a server files

and GREAT JOB 10/10:poster_ss:juggle:









Sorry for my bad english...
 
Back
Top