When working on Eternal Death Slayer Version 2, I thought it would be cool if there is a chance of something you dont expect, so i decided on a 1 out of 100 chance that a monster attacks you when you go to the lobby, although when i inserted the code, all it did is make the window close. Here's my code:
SET /a rmonster=%random% %%100>nul
IF %rmonster%=5 GOTO rmonsterattck
And then I was wondering maybe its something at the rmonsterattck that was going wrong, so here you go (though theres not much code here):
:rmonsterattck
CLS
ECHO Logged in as %name% - Random Monster
ECHO ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
ECHO º STATS
ECHO º Life=%life% Money=%money% Skill=%skill% Armor=%armor%
ECHO ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
ECHO.
ECHO
PAUSE