Jump to content
  • 0

CursedStopwatch - [ Easy ]


cder

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.02
  • Content Count:  96
  • Reputation:   0
  • Joined:  08/06/18
  • Last Seen:  

Well, I’ve been coming up with an event and I’m getting along with his schedule right now, but I have a little doubt, I used the OnClock command for 00:00 AM and I managed to reset all the penalties of the event, especially the message of the "annouce" command works perfectly, however I'm not able to assign the variables, what would be the form?

 

Small Script:

Spoiler

OnClock0000:
announce "Cursed Stopwatch Has Been Removed ...",0;
set CHARHMC, CHARHMC = 4; // Hours
set CHARMMC, CHARMMC = 59; // Minutes
set CHARSMC, CHARSMC = 59; // Seconds
set ToCallCidadeEventMC, ToCallCidadeEventMC = 0; // Call Char City
end;

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  929
  • Reputation:   170
  • Joined:  04/05/13
  • Last Seen:  

Any errors?

Try set variables at OnClockxxx1 and debug + look how it works.

And set variables again at OnClockxxx2 do the same.

Edited by Start_
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.02
  • Content Count:  96
  • Reputation:   0
  • Joined:  08/06/18
  • Last Seen:  

1 hour ago, Start_ said:

Any errors?

Try set variables at OnClockxxx1 and debug + look how it works.

And set variables again at OnClockxxx2 do the same.

There is no error, I just need to assign an "Integer / Variable", as it is in the "Spoiler" above, but I don't assign the variable with the OnClock command, only the use of the "Annouce" command worked, but I don't assign everything that I put in the "spoiler / onclock" script

I will put the entire script of the event, in this case here he is sending the character to the city to arrest the character in the city until the next day when the OnClock Activate for the player to be free of the curse, if he stays more than 5 hours online in my game...

 

Spoiler

-    script    CursedStopwatch    -1,{

OnClock0000:
announce "Cursed Chronometers Have Been Removed ...",0;
set CHARHMC, CHARHMC = 4; // Hours
set CHARMMC, CHARMMC = 59; // Minutes
set CHARSMC, CHARSMC = 59; // Seconds
set ToCallCidadeEventMC, ToCallCidadeEventMC = 0; // Call Char City
end;

OnPCLoginEvent:

if(NewCharEventMC < 1){
NewCharEventMC++;
set CHARHMC, CHARHMC = 4;
set CHARMMC, CHARMMC = 59;
set CHARSMC, CHARSMC = 59;
addtimer 1000, strnpcinfo(3) + "::OnSegundos"; // Seconds
end;
}
else
addtimer 1000, strnpcinfo(3) + "::OnSegundos";
end;

OnSegundos:
if (ToCallCidadeEventMC == 1){
    deltimer strnpcinfo(3) + "::OnSegundos";
    addtimer 1000, strnpcinfo(3) + "::OnSegundos";
    end;
    }
    else
        if (CHARHMC < 1 && CHARMMC < 1 && CHARSMC < 1){
        dispbottom "Voce ainda tem: [0"+CHARHMC+":"+CHARMMC+":"+CHARSMC+"]";
        ToCallCidadeEventMC++;
        warp "genese",214,168;
        deltimer strnpcinfo(3) + "::OnSegundos";
        addtimer 1000, strnpcinfo(3) + "::OnSegundos";
        end;
        }
        else
            if (CHARMMC < 1 && CHARSMC < 1){
            dispbottom "Voce ainda tem: [0"+CHARHMC+":"+CHARMMC+":"+CHARSMC+"]";
            set CHARMMC, CHARMMC = 59;
            set CHARSMC, CHARSMC = 59;
            CHARHMC--;
            deltimer strnpcinfo(3) + "::OnSegundos";
            addtimer 1000, strnpcinfo(3) + "::OnSegundos";
            end;
            }
            else
                if (CHARSMC < 1){
                dispbottom "Voce ainda tem: [0"+CHARHMC+":"+CHARMMC+":"+CHARSMC+"]";
                set CHARSMC, CHARSMC = 59;
                CHARMMC--;
                deltimer strnpcinfo(3) + "::OnSegundos";
                addtimer 1000, strnpcinfo(3) + "::OnSegundos";
                end;
                }
                else
                    dispbottom "Voce ainda tem: [0"+CHARHMC+":"+CHARMMC+":"+CHARSMC+"]";
                    CHARSMC--;
                    deltimer strnpcinfo(3) + "::OnSegundos";
                    addtimer 1000, strnpcinfo(3) + "::OnSegundos";
                    end;
}

 

Edited by cder
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...