Heroes Invasion - Not summoning monsters.

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
145
Got this from the 2.6 Torozor files so don't know if same command and works etc. So if anyone could fill in the errors I'll be much applied.

Robot.txt

#AutoRun NPC SEC 1800 @tester

RobotManage.txt

;Robot


;-----------None on map invade--
[@tester]
#IF
checkmonmap SHOLD4 60
#ACT
sendmsg 0 StrongHold~is~Lost!!!
#ELSEACT
SENDMSG 0 StrongHold~is~under~invasion
MISSION SHOLD4 225 212
PARAM1 182
PARAM2 256
PARAM3 5
PARAM4 10
MOBPLACE OmaKnight
MOBPLACE OmaSniper
MOBPLACE OmaMage
MOBPLACE OmaMage




MISSION SHOLD4 225 212
PARAM1 267
PARAM2 259
PARAM3 5
PARAM4 10
MOBPLACE OmaKnight
MOBPLACE OmaSniper
MOBPLACE OmaMage
MOBPLACE OmaMage




MISSION SHOLD4 225 212
PARAM1 265
PARAM2 168
PARAM3 5
PARAM4 10
MOBPLACE OmaKnight
MOBPLACE OmaSniper
MOBPLACE OmaMage
MOBPLACE OmaMage




[@Note]
#IF
checkmonmap SHOLD4 10
#ACT
SENDMSG 0 HighGuard:~StrongHold~is~under~invasion

Monsters should spawn in each of the three locations at every 30 minutes if I'm not mistaken.

-Ash
 

BeerNMoney

LOMCN Veteran
Veteran
Apr 9, 2010
1,248
8
125
Anyone have an idea on what's wrong here please?

---------- Post Merged at 10:00 PM ---------- Previous Post was at 06:58 PM ----------

Bump, anyone help please? much appreciated if you can.

---------- Post Merged at 11:41 PM ---------- Previous Post was at 10:00 PM ----------

Anyone have an idea on what's wrong here please?

---------- Post Merged at 10:00 PM ---------- Previous Post was at 06:58 PM ----------

Bump, anyone help please? much appreciated if you can.


....
 
Last edited:
Upvote 0

Ardbeg

Legend
Legendary
Aug 8, 2004
3,211
1
144
260
Southern England
On Ruby you could have inside Envir / Robot_Def bot AutoRunRobot.txt and RobotManage.txt

These could be as follows ...

AutoRunRobot.txt
;ActionType RunCmd Method Interval Title

#AutoRun NPC MIN 5 @onlinecount



RobotManage.txt
[@onlinecount]
#IF
#ACT
SENDALLMSG "Characters in game : <$USERCOUNT> " 2
BREAK
CLOSE

Then in the Envir directory but outside Robot_Def have Robot.txt

Which contains

;RobotName ScriptName
AutoRunRobot AutoRunRobot


This all allows the server to be aware of a file called AutoRunRobot.txt and the command lines contained on it.
After reading the file, it then knows the times to call the command lines and will then use the @name from the line to run the code with the same name on RobotManage.txt.

As I said, that's on Ruby and will display the user count every five minutes in a blue serverwide shout.
 
Upvote 0

Ardbeg

Legend
Legendary
Aug 8, 2004
3,211
1
144
260
Southern England
Have you got any robot scripts working ?
If not, why not try something far simpler and see if that works ?
Try something that simply says hello.
Get that working and progress from there.
 
Upvote 0

TheMasterGee

LOMCN Veteran
Veteran
Apr 23, 2003
253
4
115
The title does say [Heroes], so here's a very basic tester I had on a server. Get this going, then you can adapt it to what you want to do.

Envir/Robot_def/AutoRunRobot.txt
Code:
;###################################
;# A CRON job effort for your Mir2 #
;###################################
;#  This is where your 'crons' go  #
;###################################


#AutoRun NPC MIN 59	@BWtoSVmission
#AutoRun NPC MIN 57	@BWtoWWmission
You can use SEC, MIN, HOUR, RUNONDAY, RUNONWEEK - just like a cron job :)


Envir/Robot_def/RobotManage.txt
Code:
;###################################
;# A CRON job effort for your Mir2 #
;###################################
;#  These are the 'cron' routines  #
;###################################

;-Bichon to Serpent Valley Mission (regular mobs that exist in SV)
;-----------------------------------------------------------------
[@BWtoSVmission]
#IF
CheckRangeMonCount	0 670 83 20 > 2
#ACT
;SENDCENTERMSG 0 251 249 10 "No BW to SV mission"
break
#ELSEACT
MISSION	0	670	83	; Destination Map & Co-ords 
PARAM1	550			; Origin X
PARAM2	245 			; Origin Y
PARAM3	1			; Max No of *each* the below mobs
PARAM4	10			; Range of Origin Spawn
MobPlace	TigerSnake
MobPlace	RedSnake
MobPlace	RakingCat
MobPlace	HookingCat
MobPlace	SpittingSpider
MobPlace	Oma
break

;-Bichon to Woomyan Woods Mission (regular mobs that exist in WW)
;-----------------------------------------------------------------
[@BWtoWWmission]
#IF
CheckRangeMonCount	0 327 34 20 > 2
#ACT
;SENDCENTERMSG 0 249 251 8 "No BW to WW mission"
break
#ELSEACT
MISSION	0	327	34	; Destination Map & Co-ords 
PARAM1	130			; Origin X
PARAM2	185 			; Origin Y
PARAM3	1			; Max No of *each* the below mobs
PARAM4	10			; Range of Origin Spawn
MobPlace	OmaFighter
MobPlace	ForestYeti
MobPlace	RakingCat
MobPlace	HookingCat
MobPlace	SpittingSpider
MobPlace	Oma
break
My Envir/Robot.txt still is as original:
Code:
;©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨
;ïw¶ûÊÀ½ç www.cqfir.com  ÖÆ×÷ÈË:ÖÜÐÐ  QQ: 13677866  µç»°:023-58541052  
;©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨©¨
;»úÆ÷ÈËÃû³Æ ½Å±¾Ãû³Æ
ϵͳ¿ØÖÆ           AutoRunRobot
ϵͳ¿ØÖÆ           wwwcqfircom     1

These 2 missions firstly check that there aren't already mobs at the destination, otherwize you get a massive pool of mobs if they're not killed, then they do as described. The SENDCENTERMSG is commented out, but is useful to see if the mission doesn't run when you're testing.
 
Upvote 0

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
145
I'm still not able to get this fixed. I've tried your way and the monsters aren't invading the map.

-Ash
 
Upvote 0