Jump to content

ShadowJr

Advanced members
  • Content Count

    38
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by ShadowJr


  1. Check first if there are no other quests with this ID!
     

        DefineMission( 643, "hola", 644 )

        MisBeginAction(AddMission, 644)

        MisBeginAction(SetFlag, 644, 1)

        MisBeginAction(AddTrigger, 6441, TE_GETITEM, 2604, 20)

        MisCancelAction(ClearMission, 644)

       

        MisNeed(MIS_NEED_ITEM, 2604, 20, 10, 20 )

       

        MisResultCondition(HasMission, 644)

        MisResultCondition(HasFlag, 2005, 29 )

        MisResultAction(AddMoney, 1000000, 1000000 )

        --MisResultAction(SetRecord, 644 )

        MisResultAction(ClearMission, 644 )

        MisResultBagNeed(20)

       

        InitTrigger()

        TriggerCondition( 1, IsItem, 2604)

        TriggerAction( 1, AddNextFlag, 644, 10, 20 )

        RegCurTrigger( 6441 )


  2. Have you tried using smaller values?
     

    DefineMission( 6442, "hola", 6441 )

        MisBeginAction(AddMission, 6441)

        MisBeginAction(SetFlag, 6441, 1)

        MisBeginAction(AddTrigger, 64411, TE_GETITEM, 2604, 20)

        MisCancelAction(ClearMission, 6441)

       

        MisNeed(MIS_NEED_ITEM, 2604, 20, 10, 20 )

       

        MisResultCondition(HasMission, 6441)

        MisResultCondition(HasFlag, 2005, 29 )

        MisResultAction(AddMoney, 1000000, 1000000 )

        --MisResultAction(SetRecord, 6441 )

        MisResultAction(ClearMission, 6441 )

        MisResultBagNeed(20)

       

        InitTrigger()

        TriggerCondition( 1, IsItem, 2604)

        TriggerAction( 1, AddNextFlag, 6441, 10, 20 )

        RegCurTrigger( 64411 )

    • Thanks 1

  3. Hello @V3ct0r  Did you add this to the DB?
     

    USE [gamedb];

    ALTER TABLE gamedb.dbo.guild add bank varchar(8000);

    alter table gamedb.dbo.guild add gold bigint default(0) NOT NULL;

    alter table gamedb.dbo.character drop constraint DF_character_guild_permission;
    alter table gamedb.dbo.character alter column guild_permission bigint;
    ALTER TABLE gamedb.dbo.character ADD CONSTRAINT DF_character_guild_permission DEFAULT 0 FOR guild_permission;

    alter table gamedb.dbo.guild add 
    PDEF int default(0) NOT NULL,
    MSPD int default(0) NOT NULL,
    ASPD int default(0) NOT NULL,
    MXATK int default(0) NOT NULL,
    DEF  int default(0) NOT NULL,
    HIT  int default(0) NOT NULL,
    FLEE int default(0) NOT NULL,
    HREC int default(0) NOT NULL,
    SREC int default(0) NOT NULL,
    MXHP int default(0) NOT NULL,
    MXSP int default(0) NOT NULL,
    level int default(0) NOT NULL;

    alter table gamedb.dbo.guild add colour int default(-1) NOT NULL;
    alter table gamedb.dbo.guild add icon int default(0) NOT NULL;

    CREATE TABLE holding

      id INT NOT NULL IDENTITY(1,1) PRIMARY KEY,
      bag VARCHAR(8000) NOT NULL,
    );

    alter table gamedb.dbo.account add IMP int default(0);

    alter table gamedb.dbo.character add chatColour int default(-1) NOT NULL

     

    Are you using the last files I sent? I just tested here, it's all working fine!

    • Thanks 1

  4. 2 hours ago, V3ct0r said:

    Olá @ShadowJr,

     

    Encontrei uma tonelada de erros tentando compilar e executar essas fontes. Você pode me enviar arquivos compilados de servidor e cliente com bancos de dados para testes?

    Hello @V3ct0r 

     

    As I can't send these files as public, I sent them through my Discord:  ShadowJr#5627

    Thank you!


  5. On 4/21/2022 at 4:04 PM, V3ct0r said:

    04/21/2022

     

    + The project has been upgraded to Visual Studio Community 2022;

    + Added the feature to automatically close the offline stall if it becomes empty (all items are sold). This behavior is enabled or disabled using the 'close_stall_on_empty' option in the 'pkodev.stallserver.cfg' configuration file;

    + Sending the client's IP address in the login packet to the GateServer to determine the IP addresses of the players behind the StallServer. GateServer should have the appropriate extension installed. This behavior is enabled or disabled using the 'ip_mod' option in the 'pkodev.stallserver.cfg' configuration file;

    + Insignificant code fixes and other minor changes.

     

     

    All changes have been commited to the project repository on GitHub. Don't forget to update the configuration file 'pkodev.stallserver.cfg'.

     

    Hello @V3ct0r Any news on using your offline stall with CO Source code?


  6. 2 hours ago, V3ct0r said:

    03/10/2022

     

    + Translation of comments in Server.h and Server.cpp files into English;
    + Fixed server crash when processing packets from the client. The problem was in the procedure for reading strings from the buffer, when the parser tried to read a string with zero length;
    + Fixed crash when stopping the server due to incorrect order of releasing resources;
    + Minor code changes.

     

    All changes have been commited to the project repository on Github. I ask interested users to test pkodev.stallserver.exe and send reports to this topic. Maybe someone will run it on their test server. Thanks for any help!

    Thank you very much @V3ct0r!  do you also intend to make it compatible with corsairs source code?


  7. On 09/11/2021 at 07:30, V3ct0r said:

    Olá amigos!

     

    Prometi lançar uma versão atualizada do StallServer, mas estou tendo algumas dificuldades com multithreading, com o qual estou lidando no momento. Eu também sofri recentemente uma doença, então não havia oportunidade de trabalhar no projeto.

     

    O projeto não está abandonado e quase concluído.

     

    7.png

     

    Peço desculpas pela longa espera

    Hello @V3ct0r, Any news about the new stallserver?


  8. Merry Christmas! 😄

    1 Zodiac_Teleporter 1 1128 7 29900,30400 29900,30400 180 Zodiac Palace 177 0 Npc_Zodiac 0
    2 Zodiac_Teleporter 1 1128 7 29875,22175 29875,22175 180 Zodiac Palace 177 0 Npc_Zodiac 0
    3 Zodiac_Teleporter 1 1128 7 30000,13200 30000,13200 180 Zodiac Palace 177 0 Npc_Zodiac 0
    4 Zodiac_Teleporter 1 1128 7 29975.5975 29975.5975 180 Zodiac Palace 177 0 Npc_Zodiac 0
    5 Zodiac_Teleporter 1 1128 7 22425,5925 22425,5925 180 Zodiac Palace 177 0 Npc_Zodiac 0
    6 Zodiac_Teleporter 1 1128 7 13575,6225 13575,6225 180 Zodiac Palace 177 0 Npc_Zodiac 0
    7 Zodiac_Teleporter 1 1128 7 6100,5900 6100,5900 180 Zodiac Palace 177 0 Npc_Zodiac 0
    8 Zodiac_Teleporter 1 1128 7 6000,13800 6000,13800 180 Zodiac Palace 177 0 Npc_Zodiac 0
    9 Zodiac_Teleporter 1 1128 7 5725,22175 5725,22175 180 Zodiac Palace 177 0 Npc_Zodiac 0
    10 Zodiac_Teleporter 1 1128 7 13525,29325 13525,29325 180 Zodiac Palace 177 0 Npc_Zodiac 0
    11 Zodiac_Teleporter 1 1128 7 22625,29475 22625,29475 180 Zodiac Palace 177 0 Npc_Zodiac 0
    12 Zodiac_Teleporter 1 1128 7 13500,16900 13525,16975 180 Zodiac Palace 177 0 Npc_Zodiac 0

    Replace it

    • Like 1
    • Thanks 1
×
×
  • Create New...