|
You last visited: Today at 01:36
Advertisement
[SAMMELTHREAD] Game Source Changes
Discussion on [SAMMELTHREAD] Game Source Changes within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
01/01/2014, 21:15
|
#31
|
elite*gold: 0
Join Date: Jul 2010
Posts: 83
Received Thanks: 89
|
Adding ores to the mining
mining.cpp
SInfo info[MAX_ORE] =
{
{ 20047, 50601, 50621 },
{ 20048, 50602, 50622 },
{ 20049, 50603, 50623 },
{ 20050, 50604, 50624 },
{ 20051, 50605, 50625 },
{ 20052, 50606, 50626 },
{ 20053, 50607, 50627 },
{ 20054, 50608, 50628 },
{ 20055, 50609, 50629 },
{ 20056, 50610, 50630 },
{ 20057, 50611, 50631 },
{ 20058, 50612, 50632 },
{ 20059, 50613, 50633 },
{ 30301, 50614, 50634 },
{ 30302, 50615, 50635 },
{ 30303, 50616, 50636 },
{ 30304, 50617, 50637 },
{ 30305, 50618, 50638 },
{ MOB_VNUM, ORE_VNUM, BLOWN_ORE },
};
and edit this line to count of your ORES
|
|
|
01/01/2014, 21:25
|
#32
|
elite*gold: 260
Join Date: Jul 2009
Posts: 330
Received Thanks: 140
|
Quote:
Originally Posted by Adasaurus
Adding ores to the mining
mining.cpp
[...]
and edit this line to count of your ORES
|
first useable ext  but if you mine ores, the can be destroyed  xD
|
|
|
01/01/2014, 21:29
|
#33
|
elite*gold: 0
Join Date: Dec 2013
Posts: 48
Received Thanks: 152
|
Quote:
Originally Posted by Adasaurus
Change the LicenceTime for game
limit_time.h
#define GLOBAL_LIMIT_TIME 1409996783UL // Sat Sep 6 18:46:23 2014
|
Thx bro.
|
|
|
01/01/2014, 21:34
|
#34
|
elite*gold: 0
Join Date: Aug 2011
Posts: 61
Received Thanks: 13
|
Where is the full source?I cannot find it lol
|
|
|
01/01/2014, 21:34
|
#35
|
elite*gold: 0
Join Date: Dec 2013
Posts: 14
Received Thanks: 124
|
Adding new commands:
cmd.cpp:
First add new ACMD at start of the file.
->
PHP Code:
ACMD(Function_Name) Example -> ACMD(do_clear_item)
->
After that you have to add the Command in the array of Commands:
->
PHP Code:
{ "COMMAND_NAME", FUNCTION_TO_CALL, 0, POS_DEAD, GRADE_REQUIRED },
as Example:
{ "newcmd", do_clear_item, 0, POS_DEAD, GM_PLAYER },
Now you have to add the function into cmd_gm or cmd_general.cpp:
->
Add new ACMD:
->
As example we clear the attributes of our current helmet:
PHP Code:
ACMD (do_clear_item) // Create new function { item = ch->GetWear(WEAR_HEAD); // declare helmet item->ClearAttribute(); // clear Attributes of the selected item }
-> 
Done.
If you want to use arguments watch the functions one_argument() , two_arguments().
Example:
PHP Code:
ACMD (do_clear_item) { char arg1[512]; one_argument(argument, arg1, sizeof(arg1));
switch(arg1[0]) {
case "w": //WEAPON item = ch->getWear(WEAR_WEAPON); item->clearAttributes(); break;
case "a": //ARMOR item = ch->getWear(WEAR_BODY); item->clearAttributes(); break;
} }
|
|
|
01/01/2014, 21:38
|
#36
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
Quote:
Originally Posted by Adasaurus
Change the LicenceTime for game
limit_time.h
#define GLOBAL_LIMIT_TIME 1409996783UL // Sat Sep 6 18:46:23 2014
|
You can disable it undefining it.
|
|
|
01/01/2014, 21:42
|
#37
|
elite*gold: 0
Join Date: Jul 2010
Posts: 190
Received Thanks: 106
|
Quote:
Originally Posted by Kraizy IV
Adding new commands:
cmd.cpp:
First add new ACMD at start of the file.
->
PHP Code:
ACMD(Function_Name)
Example -> ACMD(do_clear_item)
->
After that you have to add the Command in the array of Commands:
->
PHP Code:
{ "COMMAND_NAME", FUNCTION_TO_CALL, 0, POS_DEAD, GRADE_REQUIRED },
as Example:
{ "newcmd", do_clear_item, 0, POS_DEAD, GM_PLAYER },
Now you have to add the function into cmd_gm or cmd_general.cpp:
->
Add new ACMD:
->
As example we clear the attributes of our current helmet:
PHP Code:
ACMD (do_clear_item) // Create new function
{
item = ch->GetWear(WEAR_HEAD); // declare helmet
item->ClearAttribute(); // clear Attributes of the selected item
}
-> 
Done.
|
Thenks stronk kreyzi
I can add command to call quest functions ?
an example; affect.add quest command to /bonus ID Minute Rate
|
|
|
01/01/2014, 21:45
|
#38
|
elite*gold: 0
Join Date: Sep 2012
Posts: 66
Received Thanks: 25
|
Which Line of these should be the best for dev?
Because dev, novaline had removed the Metin2Server_Check with comments
|
|
|
01/01/2014, 21:48
|
#39
|
elite*gold: 0
Join Date: Dec 2013
Posts: 14
Received Thanks: 124
|
Quote:
Originally Posted by ~Ok
Thenks stronk kreyzi
I can add command to call quest functions ?
an example; affect.add quest command to /bonus ID Minute Rate
|
If you want to use arguments watch the functions one_argument() , two_arguments().
Example:
PHP Code:
ACMD (do_clear_item) { char arg1[512]; one_argument(argument, arg1, sizeof(arg1));
switch(arg1[0]) {
case "w": //WEAPON item = ch->getWear(WEAR_WEAPON); item->clearAttributes(); break;
case "a": //ARMOR item = ch->getWear(WEAR_BODY); item->clearAttributes(); break;
} }
|
|
|
01/01/2014, 21:49
|
#40
|
elite*gold: 0
Join Date: Dec 2013
Posts: 48
Received Thanks: 152
|
Quote:
Originally Posted by Sujino
Which Line of these should be the best for dev?
Because dev, novaline had removed the Metin2Server_Check with comments
|
You should do it because it is not supposed to be there.
The untouched versions should be the mainlines, I prefer using mainline.
|
|
|
01/01/2014, 21:49
|
#41
|
elite*gold: 260
Join Date: Jul 2009
Posts: 330
Received Thanks: 140
|
offical is mainline_released, but the dev line and the novaline are newer
|
|
|
01/01/2014, 21:52
|
#42
|
elite*gold: 20
Join Date: Dec 2012
Posts: 67
Received Thanks: 34
|
edited #
|
|
|
01/01/2014, 21:54
|
#43
|
elite*gold: 0
Join Date: May 2013
Posts: 223
Received Thanks: 93
|
Kann mir jemand sagen, wie genau man die z.B game auf FreeBSD compilen muss/kann? Komme mit dem gmake nicht ganz klar (Will nicht so recht :P ).
|
|
|
01/01/2014, 21:55
|
#44
|
Trade Restricted
elite*gold: 0
Join Date: Jan 2013
Posts: 2,681
Received Thanks: 2,718
|
Quote:
Originally Posted by .Captor
Kann mir jemand sagen, wie genau man die z.B game auf FreeBSD compilen muss/kann? Komme mit dem gmake nicht ganz klar (Will nicht so recht :P ).
|
dein FreeBSD root braucht erstmal /etc/rc.d/netif -restart
|
|
|
01/01/2014, 21:57
|
#45
|
elite*gold: 0
Join Date: May 2013
Posts: 223
Received Thanks: 93
|
Quote:
Originally Posted by [LxR]Secresy
dein FreeBSD root braucht erstmal /etc/rc.d/netif -restart
|
Wohl eher nicht?? xD Bitte gescheite antworten die mir auch Helfen.
|
|
|
Similar Threads
|
[Collection Thread] Ich suche ein Game! / I'm searching for a game!
05/27/2025 - General Gaming Discussion - 3430 Replies
German:
Wenn ihr ein Spiel sucht dann postet es bitte in diesem Thread sonst versinkt die General Gaming Section in solchen Threads.
Wer irgendwas anderes postet als nen Gametipp oder ne Gamesuche bekommt ausnahmslos eine Warnung!
Sofern du auf der Suche nach Browsergames bist, dann verwende dieses Thema.
75%
English:
Please post in this thread if you are searching for a game instead of creating a separate thread otherwise there will be mess in the General Gaming Section because too...
|
All times are GMT +1. The time now is 01:40.
|
|