Event: Attack Town

DayWalker™

Golden Oldie
Golden Oldie
Dec 11, 2004
761
1
123
Middlesbrough ! Smoggy!
I need a hand , i have the following spawns in the npc scripting but no mobs seem to be attacking the town , all teh mobs are in my db , ive checked .
Code:
[@Next1] 
#ACT 
MonGenP "0,431,374,3" AntGeneral 2 
MonGenP "0,431,374,3" Kuma0 2 
MonGenP "0,416,365,3" FrogSpider 2 
MonGenP "0,416,365,3" BigApe 2 
MonGenP "0,411,352,3" BlackEvilBoar 2 
MonGenP "0,411,352,3" GiantSpider 2 
MonGenP "0,463,402,3" BlackWildCat 2 
MonGenP "0,463,402,3" BoneElite 2 
MonGenP "0,476,411,3" DesertWizard 2 
MonGenP "0,476,411,3" GiantKeratoid 2 
Eventmsg Grobal "The first wave is attacking the city !!" 10004 
Delaygoto [Grobal] 240 @Next2 
[@Next2] 
#ACT 
MonGenP "0,431,374,5" Golem 3 
MonGenP "0,431,374,5" BlueHoroBlaster 2 
MonGenP "0,416,365,5" KumaAxeMan 3 
MonGenP "0,416,365,5" KumaSoldier 2 
MonGenP "0,411,352,5" SandLizard1 3 
MonGenP "0,411,352,5" LizardFighter 2 
MonGenP "0,463,402,5" MadWhiteWorm 3 
MonGenP "0,463,402,5" OmaWarrior 2 
MonGenP "0,476,411,5" PriestCorpse 3 
MonGenP "0,476,411,5" SandGolem 2 
Eventmsg Grobal "The second wave is attacking !!" 10004 
Delaygoto [Grobal] 300 @Next3 
[@Next3] 
#ACT 
SaveValue "Flag_Def\Event\Attacktown.txt" [main_abc] [start] 0 
MonGenP "0,431,374,8" SandWorm 3 
MonGenP "0,431,374,8" SkullFighter 3 
MonGenP "0,416,365,8" SnakeScorpion 3 
MonGenP "0,416,365,8" Specter 3 
MonGenP "0,411,352,8" VenomSpider 3 
MonGenP "0,411,352,8" WoomaGuardian9 3 
MonGenP "0,463,402,8" YellowLizard 3 
MonGenP "0,463,402,8" EPriest 3 
MonGenP "0,476,411,8" FlamingWooma9 3 
MonGenP "0,476,411,8" Ghoul0 3 
Eventmsg Grobal "The Last Wave Is Attacking !!" 10004

/Stan
 

DayWalker™

Golden Oldie
Golden Oldie
Dec 11, 2004
761
1
123
Middlesbrough ! Smoggy!
Nope none at all.

The npc isnt responding in-game at all i think its to do with this scriting :

Code:
[@main]
#IF
#ACT
LoadValue A7 [QuestDiary\System\Invasions\Story\mines.txt] [Convert] [Msg0]
EventMsg Grobal %A7
MonClear 0
Delaygoto [Grobal] 20 @startattack

/Stan
 
Last edited:
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,191
30
2,796
540
yeah i think i know why. wasnt sure if job was capable of it thats all. try this.

Code:
[@main]
#IF
#ACT
lineMsg [Grobal] "test"
MonClear 0
Delaygoto [Grobal] 20 @startattack


[@startattack]
#IF
#ACT
LoadValue A7 [QuestDiary\System\Invasions\Story\mines.txt] [Convert] [Msg1]
EventMsg Grobal %A7

LoadValue B0 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_1]
LoadValue B1 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_2]
LoadValue B2 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_3]
LoadValue B3 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_4]
LoadValue B4 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_5]
LoadValue B5 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_6]
LoadValue B6 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_7]
LoadValue B7 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_8]
LoadValue B8 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [1ST_9]

LoadValue P0 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_1]
LoadValue P1 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_2]
LoadValue P2 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_3]
LoadValue P3 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_4]
LoadValue P4 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_5]
LoadValue P5 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_6]
LoadValue P6 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_7]
LoadValue P7 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_8]
LoadValue P8 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [1ST_9]

LoadValue B9 "QuestDiary\System\Invasions\Attack\mines.txt" [Target] [TargetN1]


MongenP "0,431,374,5" %B0 %P0
MongenP "0,431,374,5" %B1 %P1
MongenP "0,416,365,5" %B2 %P2
MongenP "0,416,365,5" %B3 %P3
MongenP "0,411,352,5" %B4 %P4
MongenP "0,411,352,5" %B5 %P5
MongenP "0,463,402,5" %B6 %P6
MongenP "0,463,402,5" %B7 %P7
MongenP "0,476,411,5" %B8 %P8

ApplyMonMission "0,431,374,5,9999" "%B0" "%B9"
ApplyMonMission "0,431,374,5,9999" "%B1" "%B9"
ApplyMonMission "0,416,365,5,9999" "%B2" "%B9"
ApplyMonMission "0,416,365,5,9999" "%B3" "%B9"
ApplyMonMission "0,411,352,5,9999" "%B4" "%B9"
ApplyMonMission "0,411,352,5,9999" "%B5" "%B9"
ApplyMonMission "0,463,402,5,9999" "%B6" "%B9"
ApplyMonMission "0,463,402,5,9999" "%B7" "%B9"
ApplyMonMission "0,476,411,5,9999" "%B8" "%B9"

Delaygoto [Grobal] 60 @GEvent_0_Rush_2ND

[@GEvent_0_Rush_2ND]
;; ºñõ¼º 1½Ã¹æÇâ ¼º¹®ÂÊ ¸÷·¯½¬
#IF
#ACT
LoadValue B0 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_1]
LoadValue B1 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_2]
LoadValue B2 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_3]
LoadValue B3 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_4]
LoadValue B4 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_5]
LoadValue B5 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_6]
LoadValue B6 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_7]
LoadValue B7 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_8]
LoadValue B8 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [2ND_9]

LoadValue P0 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_1]
LoadValue P1 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_2]
LoadValue P2 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_3]
LoadValue P3 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_4]
LoadValue P4 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_5]
LoadValue P5 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_6]
LoadValue P6 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_7]
LoadValue P7 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_8]
LoadValue P8 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [2ND_9]

LoadValue B9 "QuestDiary\System\Invasions\Attack\mines.txt" [Target] [TargetN1]

MongenP "0,431,374,5" %B0 %P0
MongenP "0,431,374,5" %B1 %P1
MongenP "0,416,365,5" %B2 %P2
MongenP "0,416,365,5" %B3 %P3
MongenP "0,411,352,5" %B4 %P4
MongenP "0,411,352,5" %B5 %P5
MongenP "0,463,402,5" %B6 %P6
MongenP "0,463,402,5" %B7 %P7
MongenP "0,476,411,5" %B8 %P8

ApplyMonMission "0,431,374,5,9999" "%B0" "%B9"
ApplyMonMission "0,431,374,5,9999" "%B1" "%B9"
ApplyMonMission "0,416,365,5,9999" "%B2" "%B9"
ApplyMonMission "0,416,365,5,9999" "%B3" "%B9"
ApplyMonMission "0,411,352,5,9999" "%B4" "%B9"
ApplyMonMission "0,411,352,5,9999" "%B5" "%B9"
ApplyMonMission "0,463,402,5,9999" "%B6" "%B9"
ApplyMonMission "0,463,402,5,9999" "%B7" "%B9"
ApplyMonMission "0,476,411,5,9999" "%B8" "%B9"



Delaygoto [Grobal] 60 @GEvent_0_Rush_3RD

[@GEvent_0_Rush_3RD]
#IF
#ACT
lineMsg [Grobal] "test"

LoadValue B0 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_1]
LoadValue B1 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_2]
LoadValue B2 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_3]
LoadValue B3 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_4]
LoadValue B4 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_5]
LoadValue B5 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_6]
LoadValue B6 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_7]
LoadValue B7 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_8]
LoadValue B8 "QuestDiary\System\Invasions\Attack\mines.txt" [MonName] [3TH_9]

LoadValue P0 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_1]
LoadValue P1 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_2]
LoadValue P2 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_3]
LoadValue P3 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_4]
LoadValue P4 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_5]
LoadValue P5 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_6]
LoadValue P6 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_7]
LoadValue P7 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_8]
LoadValue P8 "QuestDiary\System\Invasions\Attack\mines.txt" [MonNum] [3TH_9]

LoadValue B9 "QuestDiary\System\Invasions\Attack\mines.txt" [Target] [TargetN1]

MongenP "0,431,374,5" %B0 %P0
MongenP "0,431,374,5" %B1 %P1
MongenP "0,416,365,5" %B2 %P2
MongenP "0,416,365,5" %B3 %P3
MongenP "0,411,352,5" %B4 %P4
MongenP "0,411,352,5" %B5 %P5
MongenP "0,463,402,5" %B6 %P6
MongenP "0,463,402,5" %B7 %P7
MongenP "0,476,411,5" %B8 %P8

ApplyMonMission "0,431,374,5,9999" "%B0" "%B9"
ApplyMonMission "0,431,374,5,9999" "%B1" "%B9"
ApplyMonMission "0,416,365,5,9999" "%B2" "%B9"
ApplyMonMission "0,416,365,5,9999" "%B3" "%B9"
ApplyMonMission "0,411,352,5,9999" "%B4" "%B9"
ApplyMonMission "0,411,352,5,9999" "%B5" "%B9"
ApplyMonMission "0,463,402,5,9999" "%B6" "%B9"
ApplyMonMission "0,463,402,5,9999" "%B7" "%B9"
ApplyMonMission "0,476,411,5,9999" "%B8" "%B9"

Delaygoto [Grobal] 120 @defendtown

[@defendtown]
#ACT
lineMsg [Grobal] "test"

MonClear 0
CLEARZONE 0

if that doesnt work then job just isnt capable of that. why dont u use cd instead?
 
Upvote 0

DayWalker™

Golden Oldie
Golden Oldie
Dec 11, 2004
761
1
123
Middlesbrough ! Smoggy!
why dont u use cd instead?

Ive made modifications to these JOB files i really cant be bothered altering them again using CD files :).

Ill try that when i get home farril .

edit:

Farril i tried that scripting , when i click the npc in-game i get the following message :

test

in red context like a gm shout

Delaygoto [Grobal] 20 @startattack<-------------what is the purpose of this line?

/Stan
 
Last edited:
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,191
30
2,796
540
if we continue posting here i advise you double post if u havnt posted in a while, otherwise i wont read the thread.

Delaygoto [Grobal] 20 @startattack

this globally sends the npc to @startattack after 20 seconds. in job it may be different. try this.

Delaygoto Grobal 20 @startattack
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,191
30
2,796
540
ok. this is a totally different way. but try this..

Code:
[@main]
#IF
#ACT
monclear 3
MonGenP "3,213,185,8" Oma 6
Clearpath
AddPath 216, 184
AddPath 225, 176
AddPath 231, 182
AddPath 231, 188
AddPath 243, 200
AddPath 206, 237
AddPath 179, 210
AddPath 172, 210
AddPath 162, 199
AddPath 182, 179
AddPath 194, 191
AddPath 204, 181
AddPath 212, 189
AddPath 216, 185
AddPath 216, 184
Applypath "3,213,185,8" Oma


quite simple to follow. the first and last co ords are where it starts. keep the 8 there. the addpath co ords are all the places it will goto, you can have just one it you want, doesnt really matter.

once its killed everything in its path at one route, it will continue to the next.

this SHOULD work as i believe i got it from job.

if this works ill show you some cool tricks you can do with it.
 
Last edited:
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,191
30
2,796
540
[@main]
#IF
#SAY
<start/@start>\

[@start]
#ACT
monclear 3
MonGenP "3,213,185,8" Oma 6
Clearpath
AddPath 216, 184
AddPath 225, 176
AddPath 231, 182
AddPath 231, 188
AddPath 243, 200
AddPath 206, 237
AddPath 179, 210
AddPath 172, 210
AddPath 162, 199
AddPath 182, 179
AddPath 194, 191
AddPath 204, 181
AddPath 212, 189
AddPath 216, 185
AddPath 216, 184
Applypath "3,213,185,8" Oma

if this doesnt work then your doing something wrong, because i know that works in job.
 
Upvote 0