summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-07-05 12:25:49 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-07-05 12:30:10 -0700
commit89e2ac5687d698f0843ac46612ee33b6692bbc93 (patch)
tree8ea32e1691381e9d4db72b54c4ebed0ce809c3d2
parent27ad0933834fb488c6deac76d660cda338bb5da8 (diff)
downloadserverdata-89e2ac5687d698f0843ac46612ee33b6692bbc93.tar.gz
serverdata-89e2ac5687d698f0843ac46612ee33b6692bbc93.tar.bz2
serverdata-89e2ac5687d698f0843ac46612ee33b6692bbc93.tar.xz
serverdata-89e2ac5687d698f0843ac46612ee33b6692bbc93.zip
Move starting brace to new line
-rwxr-xr-xtools/tmx_converter.py2
-rw-r--r--world/map/npc/001-1/_mobs.txt3
-rw-r--r--world/map/npc/001-1/banker.txt3
-rw-r--r--world/map/npc/001-1/barber.txt3
-rw-r--r--world/map/npc/001-1/bard.txt5
-rw-r--r--world/map/npc/001-1/bernard.txt4
-rw-r--r--world/map/npc/001-1/bleacher.txt3
-rw-r--r--world/map/npc/001-1/children.txt6
-rw-r--r--world/map/npc/001-1/constable.txt3
-rw-r--r--world/map/npc/001-1/elanore.txt7
-rw-r--r--world/map/npc/001-1/entertainer.txt3
-rw-r--r--world/map/npc/001-1/gossip.txt4
-rw-r--r--world/map/npc/001-1/guards.txt7
-rw-r--r--world/map/npc/001-1/guide.txt3
-rw-r--r--world/map/npc/001-1/luca.txt4
-rw-r--r--world/map/npc/001-1/mikhail.txt4
-rw-r--r--world/map/npc/001-1/monster_guide.txt3
-rw-r--r--world/map/npc/001-1/npcs.txt6
-rw-r--r--world/map/npc/001-1/rewards_master.txt3
-rw-r--r--world/map/npc/001-1/sandra.txt4
-rw-r--r--world/map/npc/001-1/sarah.txt4
-rw-r--r--world/map/npc/001-1/soul-menhir.txt3
-rw-r--r--world/map/npc/001-1/trader.txt3
-rw-r--r--world/map/npc/001-1/vincent.txt3
-rw-r--r--world/map/npc/001-2/_mobs.txt3
-rw-r--r--world/map/npc/001-2/casino.txt21
-rw-r--r--world/map/npc/001-2/dedication.txt3
-rw-r--r--world/map/npc/001-2/omar.txt9
-rw-r--r--world/map/npc/001-2/phaet.txt3
-rw-r--r--world/map/npc/001-2/shops.txt3
-rw-r--r--world/map/npc/001-2/troupe_leader.txt3
-rw-r--r--world/map/npc/001-3/_mobs.txt3
-rw-r--r--world/map/npc/001-3/guards.txt6
-rw-r--r--world/map/npc/002-1/_mobs.txt3
-rw-r--r--world/map/npc/002-1/lieutenant_dausen.txt4
-rw-r--r--world/map/npc/002-1/nickos.txt4
-rw-r--r--world/map/npc/002-1/nomads.txt6
-rw-r--r--world/map/npc/002-1/stewen.txt4
-rw-r--r--world/map/npc/002-2/_mobs.txt3
-rw-r--r--world/map/npc/002-2/rogue.txt4
-rw-r--r--world/map/npc/002-3/_mobs.txt3
-rw-r--r--world/map/npc/002-3/mining_camp_barrier.txt4
-rw-r--r--world/map/npc/002-3/nathan.txt4
-rw-r--r--world/map/npc/002-4/_mobs.txt3
-rw-r--r--world/map/npc/002-4/mine_triggerone.txt4
-rw-r--r--world/map/npc/002-4/mine_triggerthree.txt4
-rw-r--r--world/map/npc/002-4/mine_triggertwo.txt4
-rw-r--r--world/map/npc/002-4/naem.txt4
-rw-r--r--world/map/npc/002-4/underground_palace_barrier.txt4
-rw-r--r--world/map/npc/002-5/_mobs.txt3
-rw-r--r--world/map/npc/002-5/chest.txt4
-rw-r--r--world/map/npc/002-5/sema.txt4
-rw-r--r--world/map/npc/003-1/_mobs.txt3
-rw-r--r--world/map/npc/003-1/stranger.txt4
-rw-r--r--world/map/npc/003-2/_mobs.txt3
-rw-r--r--world/map/npc/004-1/_mobs.txt3
-rw-r--r--world/map/npc/004-2/_mobs.txt3
-rw-r--r--world/map/npc/005-1/_mobs.txt3
-rw-r--r--world/map/npc/005-1/npcs.txt6
-rw-r--r--world/map/npc/005-1/spirit.txt9
-rw-r--r--world/map/npc/005-1/tree.txt12
-rw-r--r--world/map/npc/005-3/_mobs.txt3
-rw-r--r--world/map/npc/005-4/_mobs.txt3
-rw-r--r--world/map/npc/005-4/bossfight.txt3
-rw-r--r--world/map/npc/006-1/_mobs.txt3
-rw-r--r--world/map/npc/006-1/mika.txt3
-rw-r--r--world/map/npc/006-1/pachua.txt3
-rw-r--r--world/map/npc/006-3/_mobs.txt3
-rw-r--r--world/map/npc/007-1/_mobs.txt3
-rw-r--r--world/map/npc/007-1/voltain.txt4
-rw-r--r--world/map/npc/007-1/witch.txt35
-rw-r--r--world/map/npc/008-1/_mobs.txt3
-rw-r--r--world/map/npc/008-1/andra.txt4
-rw-r--r--world/map/npc/008-1/annualeaster.txt16
-rw-r--r--world/map/npc/008-1/diryn.txt3
-rw-r--r--world/map/npc/008-1/dock.txt3
-rw-r--r--world/map/npc/008-1/george.txt3
-rw-r--r--world/map/npc/008-1/hinnak.txt3
-rw-r--r--world/map/npc/009-1/_mobs.txt3
-rw-r--r--world/map/npc/009-1/jack.txt3
-rw-r--r--world/map/npc/009-1/milly.txt7
-rw-r--r--world/map/npc/009-1/old_man.txt3
-rw-r--r--world/map/npc/009-1/old_woman.txt3
-rw-r--r--world/map/npc/009-1/sabine.txt3
-rw-r--r--world/map/npc/009-1/soul-menhir.txt3
-rw-r--r--world/map/npc/009-1/water_pump.txt3
-rw-r--r--world/map/npc/009-2/_mobs.txt3
-rw-r--r--world/map/npc/009-2/airlia.txt3
-rw-r--r--world/map/npc/009-2/alan.txt3
-rw-r--r--world/map/npc/009-2/doctor.txt3
-rw-r--r--world/map/npc/009-2/drunks.txt6
-rw-r--r--world/map/npc/009-2/inspector.txt3
-rw-r--r--world/map/npc/009-2/kfahr.txt3
-rw-r--r--world/map/npc/009-2/lena.txt4
-rw-r--r--world/map/npc/009-2/misc.txt6
-rw-r--r--world/map/npc/009-2/nicholas.txt4
-rw-r--r--world/map/npc/009-2/nurse.txt3
-rw-r--r--world/map/npc/009-2/olana.txt4
-rw-r--r--world/map/npc/009-2/peter.txt4
-rw-r--r--world/map/npc/009-2/richard.txt3
-rw-r--r--world/map/npc/009-2/selim.txt3
-rw-r--r--world/map/npc/009-2/shops.txt3
-rw-r--r--world/map/npc/009-2/waitress.txt4
-rw-r--r--world/map/npc/009-2/wyara.txt3
-rw-r--r--world/map/npc/009-3/_mobs.txt3
-rw-r--r--world/map/npc/009-3/sword.txt3
-rw-r--r--world/map/npc/009-3/warp.txt3
-rw-r--r--world/map/npc/009-4/_mobs.txt3
-rw-r--r--world/map/npc/009-4/barriers.txt26
-rw-r--r--world/map/npc/009-4/orum.txt3
-rw-r--r--world/map/npc/009-4/orum_warps.txt9
-rw-r--r--world/map/npc/009-4/torches.txt36
-rw-r--r--world/map/npc/009-4/waric.txt9
-rw-r--r--world/map/npc/009-5/_mobs.txt3
-rw-r--r--world/map/npc/009-6/_mobs.txt3
-rw-r--r--world/map/npc/009-6/brodomir.txt3
-rw-r--r--world/map/npc/010-1/_mobs.txt3
-rw-r--r--world/map/npc/010-2/_mobs.txt3
-rw-r--r--world/map/npc/010-2/chef.txt7
-rw-r--r--world/map/npc/010-2/dimonds.txt39
-rw-r--r--world/map/npc/010-2/doug.txt4
-rw-r--r--world/map/npc/010-2/loratay.txt4
-rw-r--r--world/map/npc/010-2/workers.txt6
-rw-r--r--world/map/npc/011-1/_mobs.txt3
-rw-r--r--world/map/npc/011-1/alchemist.txt4
-rw-r--r--world/map/npc/011-1/auldsbel.txt4
-rw-r--r--world/map/npc/011-1/oscar.txt6
-rw-r--r--world/map/npc/011-3/_mobs.txt3
-rw-r--r--world/map/npc/011-3/hermit.txt3
-rw-r--r--world/map/npc/011-4/_mobs.txt3
-rw-r--r--world/map/npc/011-4/bl_barrier.txt4
-rw-r--r--world/map/npc/011-6/_mobs.txt3
-rw-r--r--world/map/npc/011-6/bryant.txt4
-rw-r--r--world/map/npc/012-1/_mobs.txt3
-rw-r--r--world/map/npc/012-1/amrak.txt3
-rw-r--r--world/map/npc/012-1/injured-mouboo.txt6
-rw-r--r--world/map/npc/012-3/_mobs.txt3
-rw-r--r--world/map/npc/012-3/mana-seed.txt4
-rw-r--r--world/map/npc/012-3/warningsigns.txt6
-rw-r--r--world/map/npc/012-4/_mobs.txt3
-rw-r--r--world/map/npc/013-1/_mobs.txt3
-rw-r--r--world/map/npc/013-1/sagatha.txt12
-rw-r--r--world/map/npc/013-2/_mobs.txt3
-rw-r--r--world/map/npc/013-2/apprentice.txt3
-rw-r--r--world/map/npc/013-2/notes.txt33
-rw-r--r--world/map/npc/013-2/wizard.txt3
-rw-r--r--world/map/npc/013-3/_mobs.txt3
-rw-r--r--world/map/npc/013-3/barrier.txt3
-rw-r--r--world/map/npc/013-3/mask_chest.txt3
-rw-r--r--world/map/npc/013-3/misc.txt3
-rw-r--r--world/map/npc/013-3/sword_chest.txt3
-rw-r--r--world/map/npc/014-1/_mobs.txt3
-rw-r--r--world/map/npc/014-1/wedding-officiator.txt3
-rw-r--r--world/map/npc/014-3/_mobs.txt3
-rw-r--r--world/map/npc/015-1/_mobs.txt3
-rw-r--r--world/map/npc/015-1/alice.txt4
-rw-r--r--world/map/npc/015-1/barrier.txt3
-rw-r--r--world/map/npc/015-1/sword.txt3
-rw-r--r--world/map/npc/015-3/_mobs.txt3
-rw-r--r--world/map/npc/015-3/barrier.txt4
-rw-r--r--world/map/npc/015-3/katze.txt4
-rw-r--r--world/map/npc/015-3/pot.txt4
-rw-r--r--world/map/npc/016-1/_mobs.txt3
-rw-r--r--world/map/npc/016-1/gwendolyn.txt3
-rw-r--r--world/map/npc/017-1/_mobs.txt3
-rw-r--r--world/map/npc/017-2/_mobs.txt3
-rw-r--r--world/map/npc/017-3/_mobs.txt3
-rw-r--r--world/map/npc/017-4/_mobs.txt3
-rw-r--r--world/map/npc/017-9/_mobs.txt3
-rw-r--r--world/map/npc/018-1/_mobs.txt3
-rw-r--r--world/map/npc/018-1/mike.txt4
-rw-r--r--world/map/npc/018-1/miners.txt3
-rw-r--r--world/map/npc/018-1/sword.txt3
-rw-r--r--world/map/npc/018-2/_mobs.txt3
-rw-r--r--world/map/npc/018-2/angus.txt3
-rw-r--r--world/map/npc/018-2/books.txt3
-rw-r--r--world/map/npc/018-2/caul.txt3
-rw-r--r--world/map/npc/018-2/miners.txt3
-rw-r--r--world/map/npc/018-2/receptionist.txt3
-rw-r--r--world/map/npc/018-3/_mobs.txt3
-rw-r--r--world/map/npc/018-3/bookcase.txt3
-rw-r--r--world/map/npc/018-3/evil-obelisk.txt3
-rw-r--r--world/map/npc/018-3/sword.txt3
-rw-r--r--world/map/npc/019-1/_mobs.txt3
-rw-r--r--world/map/npc/019-1/mobmanager.txt3
-rw-r--r--world/map/npc/019-1/santa_helper.txt3
-rw-r--r--world/map/npc/019-1/snowman.txt3
-rw-r--r--world/map/npc/019-3/_mobs.txt3
-rw-r--r--world/map/npc/019-4/_mobs.txt3
-rw-r--r--world/map/npc/020-1/KrickKrackKrock.txt4
-rw-r--r--world/map/npc/020-1/_mobs.txt3
-rw-r--r--world/map/npc/020-1/rockscissor.txt3
-rw-r--r--world/map/npc/020-1/soul-menhir.txt3
-rw-r--r--world/map/npc/020-1/well.txt7
-rw-r--r--world/map/npc/020-2/_mobs.txt3
-rw-r--r--world/map/npc/020-2/baktar.txt3
-rw-r--r--world/map/npc/020-2/banker.txt6
-rw-r--r--world/map/npc/020-2/furquest.txt4
-rw-r--r--world/map/npc/020-2/shops.txt6
-rw-r--r--world/map/npc/020-3/_mobs.txt3
-rw-r--r--world/map/npc/021-1/_mobs.txt3
-rw-r--r--world/map/npc/021-1/bakery.txt3
-rw-r--r--world/map/npc/021-1/banu.txt4
-rw-r--r--world/map/npc/021-1/eurni.txt3
-rw-r--r--world/map/npc/021-1/gate_guards.txt21
-rw-r--r--world/map/npc/021-1/hetchel.txt3
-rw-r--r--world/map/npc/021-1/hideandseek.txt27
-rw-r--r--world/map/npc/021-1/imec.txt7
-rw-r--r--world/map/npc/021-1/inac.txt3
-rw-r--r--world/map/npc/021-1/north_shops.txt10
-rw-r--r--world/map/npc/021-1/npcs.txt12
-rw-r--r--world/map/npc/021-1/sewer_east.txt3
-rw-r--r--world/map/npc/021-1/sewer_north.txt3
-rw-r--r--world/map/npc/021-1/sewer_west.txt3
-rw-r--r--world/map/npc/021-1/weellos.txt3
-rw-r--r--world/map/npc/021-1/workers.txt9
-rw-r--r--world/map/npc/021-2/_mobs.txt3
-rw-r--r--world/map/npc/021-2/bakery.txt16
-rw-r--r--world/map/npc/021-2/bank.txt3
-rw-r--r--world/map/npc/021-2/barber.txt3
-rw-r--r--world/map/npc/021-2/government_building.txt9
-rw-r--r--world/map/npc/021-2/heathin.txt4
-rw-r--r--world/map/npc/021-2/hotel_receptionist.txt3
-rw-r--r--world/map/npc/021-2/inya.txt4
-rw-r--r--world/map/npc/021-2/jhedia.txt4
-rw-r--r--world/map/npc/021-2/kylian.txt10
-rw-r--r--world/map/npc/021-2/yanis.txt4
-rw-r--r--world/map/npc/021-3/_mobs.txt3
-rw-r--r--world/map/npc/022-1/_mobs.txt3
-rw-r--r--world/map/npc/022-1/adrian.txt4
-rw-r--r--world/map/npc/022-1/anwar.txt7
-rw-r--r--world/map/npc/022-1/dock.txt3
-rw-r--r--world/map/npc/022-1/ferry_master.txt3
-rw-r--r--world/map/npc/022-1/npcs.txt12
-rw-r--r--world/map/npc/022-1/tutorial.txt6
-rw-r--r--world/map/npc/024-1/_mobs.txt3
-rw-r--r--world/map/npc/024-1/ched.txt3
-rw-r--r--world/map/npc/024-1/david.txt4
-rw-r--r--world/map/npc/024-1/eomie.txt4
-rw-r--r--world/map/npc/024-1/tinris.txt4
-rw-r--r--world/map/npc/024-1/tondar.txt3
-rw-r--r--world/map/npc/024-2/_mobs.txt3
-rw-r--r--world/map/npc/024-2/barrier.txt3
-rw-r--r--world/map/npc/024-2/tyer.txt3
-rw-r--r--world/map/npc/024-2/tyer_trigger.txt3
-rw-r--r--world/map/npc/024-3/_mobs.txt3
-rw-r--r--world/map/npc/024-4/_mobs.txt3
-rw-r--r--world/map/npc/025-1/_mobs.txt3
-rw-r--r--world/map/npc/025-1/barrier.txt4
-rw-r--r--world/map/npc/025-1/reset.txt4
-rw-r--r--world/map/npc/025-1/rossy.txt4
-rw-r--r--world/map/npc/025-3/_mobs.txt3
-rw-r--r--world/map/npc/025-3/barriers.txt31
-rw-r--r--world/map/npc/025-4/_mobs.txt3
-rw-r--r--world/map/npc/025-4/battlecaves.txt66
-rw-r--r--world/map/npc/025-4/clauquer.txt4
-rw-r--r--world/map/npc/025-4/julia.txt4
-rw-r--r--world/map/npc/026-1/_mobs.txt3
-rw-r--r--world/map/npc/026-1/sign.txt3
-rw-r--r--world/map/npc/027-1/_mobs.txt3
-rw-r--r--world/map/npc/027-1/golbenez.txt4
-rw-r--r--world/map/npc/027-1/graves.txt39
-rw-r--r--world/map/npc/027-1/monsters.txt3
-rw-r--r--world/map/npc/027-2/_mobs.txt3
-rw-r--r--world/map/npc/027-2/alacrius.txt3
-rw-r--r--world/map/npc/027-2/alacrius2.txt3
-rw-r--r--world/map/npc/027-2/barman.txt3
-rw-r--r--world/map/npc/027-2/caretaker.txt3
-rw-r--r--world/map/npc/027-2/cerhan.txt3
-rw-r--r--world/map/npc/027-2/crying_child.txt4
-rw-r--r--world/map/npc/027-2/diary.txt3
-rw-r--r--world/map/npc/027-2/door.txt6
-rw-r--r--world/map/npc/027-2/evil_guard.txt6
-rw-r--r--world/map/npc/027-2/golbenez.txt4
-rw-r--r--world/map/npc/027-2/gy_inn_shops.txt9
-rw-r--r--world/map/npc/027-2/headless_man.txt4
-rw-r--r--world/map/npc/027-2/husband.txt4
-rw-r--r--world/map/npc/027-2/innkeeper.txt4
-rw-r--r--world/map/npc/027-2/lover.txt4
-rw-r--r--world/map/npc/027-2/testnpcs.txt12
-rw-r--r--world/map/npc/027-2/werewolf.txt3
-rw-r--r--world/map/npc/027-3/_mobs.txt3
-rw-r--r--world/map/npc/027-3/caskets.txt3
-rw-r--r--world/map/npc/027-3/entrance.txt12
-rw-r--r--world/map/npc/027-4/_mobs.txt3
-rw-r--r--world/map/npc/027-4/reaper_script.txt3
-rw-r--r--world/map/npc/028-1/Portal.txt4
-rw-r--r--world/map/npc/028-1/_mobs.txt3
-rw-r--r--world/map/npc/028-3/_mobs.txt3
-rw-r--r--world/map/npc/029-1/_mobs.txt3
-rw-r--r--world/map/npc/029-1/barrier.txt3
-rw-r--r--world/map/npc/029-1/dock.txt3
-rw-r--r--world/map/npc/029-3/_mobs.txt3
-rw-r--r--world/map/npc/029-3/barrier.txt3
-rw-r--r--world/map/npc/029-3/parua.txt3
-rw-r--r--world/map/npc/030-1/_mobs.txt3
-rw-r--r--world/map/npc/030-2/_mobs.txt3
-rw-r--r--world/map/npc/031-1/_mobs.txt3
-rw-r--r--world/map/npc/031-1/angelaOutside.txt4
-rw-r--r--world/map/npc/031-1/dock.txt3
-rw-r--r--world/map/npc/031-1/frozenbeard.txt3
-rw-r--r--world/map/npc/031-1/house.txt3
-rw-r--r--world/map/npc/031-2/_mobs.txt3
-rw-r--r--world/map/npc/031-2/angelaHouse.txt4
-rw-r--r--world/map/npc/031-2/cindyHouse.txt4
-rw-r--r--world/map/npc/031-3/_mobs.txt3
-rw-r--r--world/map/npc/031-3/labyrinth.txt3
-rw-r--r--world/map/npc/031-4/_mobs.txt3
-rw-r--r--world/map/npc/031-4/barrier.txt3
-rw-r--r--world/map/npc/031-4/cindyCave.txt3
-rw-r--r--world/map/npc/032-1/_mobs.txt3
-rw-r--r--world/map/npc/032-1/miriam.txt4
-rw-r--r--world/map/npc/032-3/_mobs.txt3
-rw-r--r--world/map/npc/033-1/_mobs.txt3
-rw-r--r--world/map/npc/033-1/backDoor.txt3
-rw-r--r--world/map/npc/033-1/barbarianinit.txt3
-rw-r--r--world/map/npc/033-1/birrod.txt4
-rw-r--r--world/map/npc/033-1/kimarr.txt3
-rw-r--r--world/map/npc/033-1/yerrnk.txt3
-rw-r--r--world/map/npc/034-1/_mobs.txt3
-rw-r--r--world/map/npc/034-1/ambushs.txt90
-rw-r--r--world/map/npc/034-1/yetiSpawn.txt6
-rw-r--r--world/map/npc/034-2/_mobs.txt3
-rw-r--r--world/map/npc/041-1/_mobs.txt3
-rw-r--r--world/map/npc/041-1/tutorial.txt3
-rw-r--r--world/map/npc/042-1/_mobs.txt3
-rw-r--r--world/map/npc/042-1/hasan.txt10
-rw-r--r--world/map/npc/042-1/kaan.txt4
-rw-r--r--world/map/npc/042-1/npcs.txt3
-rw-r--r--world/map/npc/042-1/valon.txt4
-rw-r--r--world/map/npc/042-2/_mobs.txt3
-rw-r--r--world/map/npc/042-2/sorfina.txt14
-rw-r--r--world/map/npc/042-2/tanisha.txt3
-rw-r--r--world/map/npc/043-1/_mobs.txt3
-rw-r--r--world/map/npc/043-3/_mobs.txt3
-rw-r--r--world/map/npc/044-1/_mobs.txt3
-rw-r--r--world/map/npc/044-3/_mobs.txt3
-rw-r--r--world/map/npc/045-1/_mobs.txt3
-rw-r--r--world/map/npc/046-1/_mobs.txt3
-rw-r--r--world/map/npc/046-3/_mobs.txt3
-rw-r--r--world/map/npc/047-1/_mobs.txt3
-rw-r--r--world/map/npc/048-1/_mobs.txt3
-rw-r--r--world/map/npc/048-2/_mobs.txt3
-rw-r--r--world/map/npc/048-2/bluesageConfig.txt12
-rw-r--r--world/map/npc/048-2/helperAccused.txt4
-rw-r--r--world/map/npc/048-2/helperBookpages1.txt4
-rw-r--r--world/map/npc/048-2/helperBookpages2.txt4
-rw-r--r--world/map/npc/048-2/helperBookpages3.txt4
-rw-r--r--world/map/npc/048-2/helperChief.txt4
-rw-r--r--world/map/npc/048-2/helperCleaning1.txt4
-rw-r--r--world/map/npc/048-2/helperCleaning2.txt4
-rw-r--r--world/map/npc/048-2/helperCleaning3.txt4
-rw-r--r--world/map/npc/048-2/helperCleaning4.txt4
-rw-r--r--world/map/npc/048-2/helperCleaning5.txt4
-rw-r--r--world/map/npc/048-2/helperJanitor.txt4
-rw-r--r--world/map/npc/048-2/helperMInk.txt4
-rw-r--r--world/map/npc/048-2/helperMReed.txt4
-rw-r--r--world/map/npc/048-2/helperMSilk.txt4
-rw-r--r--world/map/npc/048-2/helperMYetiClaw.txt4
-rw-r--r--world/map/npc/048-2/helperResting1.txt4
-rw-r--r--world/map/npc/048-2/helperResting2.txt4
-rw-r--r--world/map/npc/048-2/sageNikolai.txt7
-rw-r--r--world/map/npc/048-2/slimes.txt42
-rw-r--r--world/map/npc/048-2/visitors.txt6
-rw-r--r--world/map/npc/051-1/_mobs.txt3
-rw-r--r--world/map/npc/051-1/desert.txt6
-rw-r--r--world/map/npc/051-1/desertmonsters.txt34
-rw-r--r--world/map/npc/051-1/forest.txt6
-rw-r--r--world/map/npc/051-1/forestmonsters.txt4
-rw-r--r--world/map/npc/051-1/janitor.txt6
-rw-r--r--world/map/npc/051-3/_mobs.txt3
-rw-r--r--world/map/npc/051-3/ambush.txt18
-rw-r--r--world/map/npc/051-3/jailslimes.txt4
-rw-r--r--world/map/npc/051-3/janitor.txt3
-rw-r--r--world/map/npc/051-3/locks.txt16
-rw-r--r--world/map/npc/051-3/reinforcements.txt8
-rw-r--r--world/map/npc/052-1/_mobs.txt3
-rw-r--r--world/map/npc/052-1/channelling.txt18
-rw-r--r--world/map/npc/052-1/janitor.txt3
-rw-r--r--world/map/npc/052-2/_mobs.txt3
-rw-r--r--world/map/npc/052-2/chest.txt4
-rw-r--r--world/map/npc/052-2/janitor.txt9
-rw-r--r--world/map/npc/052-2/lobby.txt18
-rw-r--r--world/map/npc/052-2/partyroom.txt15
-rw-r--r--world/map/npc/052-2/storage.txt9
-rw-r--r--world/map/npc/055-1/_mobs.txt3
-rw-r--r--world/map/npc/055-1/pumpkins.txt3
-rw-r--r--world/map/npc/055-3/_mobs.txt3
-rw-r--r--world/map/npc/056-1/_mobs.txt3
-rw-r--r--world/map/npc/056-2/_mobs.txt3
-rw-r--r--world/map/npc/056-2/barrier.txt3
-rw-r--r--world/map/npc/056-2/mirak.txt3
-rw-r--r--world/map/npc/056-2/notes.txt6
-rw-r--r--world/map/npc/057-1/_mobs.txt3
-rw-r--r--world/map/npc/botcheck/_mobs.txt3
-rw-r--r--world/map/npc/botcheck/announcements.txt4
-rw-r--r--world/map/npc/functions/banker.txt4
-rw-r--r--world/map/npc/functions/barber.txt6
-rw-r--r--world/map/npc/functions/clear_vars.txt10
-rw-r--r--world/map/npc/functions/dailyquest.txt7
-rwxr-xr-xworld/map/npc/functions/debug.txt19
-rw-r--r--world/map/npc/functions/evil_obelisk.txt3
-rw-r--r--world/map/npc/functions/ferry.txt3
-rw-r--r--world/map/npc/functions/game_rules.txt3
-rw-r--r--world/map/npc/functions/inn.txt3
-rw-r--r--world/map/npc/functions/lockpicking.txt4
-rw-r--r--world/map/npc/functions/magic.txt13
-rw-r--r--world/map/npc/functions/mob_points.txt3
-rw-r--r--world/map/npc/functions/process_equip.txt3
-rw-r--r--world/map/npc/functions/slot_machine.txt3
-rw-r--r--world/map/npc/functions/soul_menhir.txt3
-rw-r--r--world/map/npc/functions/strangerquiz.txt3
-rw-r--r--world/map/npc/functions/time.txt3
-rw-r--r--world/map/npc/functions/water_bottle.txt3
-rw-r--r--world/map/npc/items/magic_gm_top_hat.txt3
-rw-r--r--world/map/npc/items/purification_potion.txt3
-rw-r--r--world/map/npc/items/require_stat.txt3
-rw-r--r--world/map/npc/items/restricted_item.txt3
-rw-r--r--world/map/npc/items/scissors.txt3
-rw-r--r--world/map/npc/items/shock_sweet.txt3
-rw-r--r--world/map/npc/items/unreleased_item.txt3
-rw-r--r--world/map/npc/items/warpTowels.txt30
422 files changed, 1426 insertions, 847 deletions
diff --git a/tools/tmx_converter.py b/tools/tmx_converter.py
index 94cf0b2c..009a1145 100755
--- a/tools/tmx_converter.py
+++ b/tools/tmx_converter.py
@@ -289,7 +289,7 @@ class ContentHandler(xml.sax.ContentHandler):
self.state = State.FINAL
def endDocument(self):
- self.mobs.write('\n\n%s.gat,0,0,0|script|Mob%s|-1,{\n' % (self.base, self.base))
+ self.mobs.write('\n\n%s.gat,0,0,0|script|Mob%s|-1,\n{\n' % (self.base, self.base))
for mob_id in sorted(self.mob_ids):
self.mobs.write('On%d:\n set @mobID, %d;\n callfunc "MobPoints";\n end;\n\n' % (mob_id, mob_id))
self.mobs.write(' end;\n}\n')
diff --git a/world/map/npc/001-1/_mobs.txt b/world/map/npc/001-1/_mobs.txt
index 6aaae042..bb79c71d 100644
--- a/world/map/npc/001-1/_mobs.txt
+++ b/world/map/npc/001-1/_mobs.txt
@@ -23,7 +23,8 @@
001-1.gat,137,25,15,7|monster|FireGoblin|1011,1,61000,60000,Mob001-1::On1011
-001-1.gat,0,0,0|script|Mob001-1|-1,{
+001-1.gat,0,0,0|script|Mob001-1|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/001-1/banker.txt b/world/map/npc/001-1/banker.txt
index c5807d0e..aee3e4ba 100644
--- a/world/map/npc/001-1/banker.txt
+++ b/world/map/npc/001-1/banker.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,57,52,0|script|Tybalt|107,{
+001-1.gat,57,52,0|script|Tybalt|107,
+{
callfunc "ClearVariables";
set @npcname$, "Tybalt";
callfunc "Banker";
diff --git a/world/map/npc/001-1/barber.txt b/world/map/npc/001-1/barber.txt
index 103e303a..e58ee880 100644
--- a/world/map/npc/001-1/barber.txt
+++ b/world/map/npc/001-1/barber.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,53,38,0|script|Nicolas|100,{
+001-1.gat,53,38,0|script|Nicolas|100,
+{
mes "[Nicolas the Barber]";
mes "\"Do you need a barber?\"";
next;
diff --git a/world/map/npc/001-1/bard.txt b/world/map/npc/001-1/bard.txt
index 4278bb7a..2de20249 100644
--- a/world/map/npc/001-1/bard.txt
+++ b/world/map/npc/001-1/bard.txt
@@ -1,7 +1,8 @@
//
-//001-1.gat,46,76,0|script|Bard|152,{
-001-1.gat,40,73,0|script|Bard|152,{
+//001-1.gat,46,76,0|script|Bard|152,
+001-1.gat,40,73,0|script|Bard|152,
+{
setarray @songs$, "\"There once was a bard, who had it hard, because a man in dark green, was very mean.\"",
"\"At Hurnscald inn, there was a person of fairest skin, declining wedding bands from quite a many hands.\"",
"\"As the Sun sets down in the forest's brown, she whom the fragrance holds counts her gold.\"";
diff --git a/world/map/npc/001-1/bernard.txt b/world/map/npc/001-1/bernard.txt
index 0d65e6d2..25364698 100644
--- a/world/map/npc/001-1/bernard.txt
+++ b/world/map/npc/001-1/bernard.txt
@@ -1,7 +1,7 @@
// Variables used: nibble 0 of QUEST_SouthTulimshar
-001-1.gat,37,44,0|script|Bernard|117,{
-
+001-1.gat,37,44,0|script|Bernard|117,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/001-1/bleacher.txt b/world/map/npc/001-1/bleacher.txt
index 6ff75cca..e681f8c0 100644
--- a/world/map/npc/001-1/bleacher.txt
+++ b/world/map/npc/001-1/bleacher.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,27,53,0|script|Candide|156,{
+001-1.gat,27,53,0|script|Candide|156,
+{
mes "[Candide]";
mes "\"I've figured out how that volcanic ash bleaches cloth.";
mes "I could do it for you, but I'll need three piles of ash and 5,000 GP for supplies per item.\"";
diff --git a/world/map/npc/001-1/children.txt b/world/map/npc/001-1/children.txt
index 91aa2e1f..16c2d10a 100644
--- a/world/map/npc/001-1/children.txt
+++ b/world/map/npc/001-1/children.txt
@@ -1,6 +1,7 @@
// Aisha and Nina
-001-1.gat,95,29,0|script|Aisha|108,{
+001-1.gat,95,29,0|script|Aisha|108,
+{
set @TEMP,rand(9);
if(@TEMP == 0) goto L_1;
if(@TEMP == 1) goto L_1;
@@ -57,7 +58,8 @@ L_Close:
close;
}
-001-1.gat,39,67,0|script|Nina|103,{
+001-1.gat,39,67,0|script|Nina|103,
+{
mes "[Nina]";
set @TEMP,rand(10);
if(@TEMP == 0) goto L_1;
diff --git a/world/map/npc/001-1/constable.txt b/world/map/npc/001-1/constable.txt
index 6c8be358..e5de9b92 100644
--- a/world/map/npc/001-1/constable.txt
+++ b/world/map/npc/001-1/constable.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,37,35,0|script|Constable Perry Graf|150,{
+001-1.gat,37,35,0|script|Constable Perry Graf|150,
+{
// set @npcname$, "Constable Perry Graf";
set @canSkip, 1;
callfunc "GameRules";
diff --git a/world/map/npc/001-1/elanore.txt b/world/map/npc/001-1/elanore.txt
index 24ca9edd..99e8ac39 100644
--- a/world/map/npc/001-1/elanore.txt
+++ b/world/map/npc/001-1/elanore.txt
@@ -1,6 +1,7 @@
//
-function|script|ElanoreFix|{
+function|script|ElanoreFix|
+{
set @Q_MASK, NIBBLE_1_MASK;
set @Q_SHIFT, NIBBLE_1_SHIFT;
@@ -16,8 +17,8 @@ function|script|ElanoreFix|{
return;
}
-001-1.gat,58,68,0|script|Elanore#_M|108,{
-
+001-1.gat,58,68,0|script|Elanore#_M|108,
+{
set @has_magic, getskilllv(SKILL_MAGIC);
set @Q_MASK, NIBBLE_1_MASK;
diff --git a/world/map/npc/001-1/entertainer.txt b/world/map/npc/001-1/entertainer.txt
index bef7d2ab..ea8e0870 100644
--- a/world/map/npc/001-1/entertainer.txt
+++ b/world/map/npc/001-1/entertainer.txt
@@ -1,6 +1,7 @@
// Emote NPC allows for players to learn the emote skill
-001-1.gat,30,45,0|script|Entertainer|165,{
+001-1.gat,30,45,0|script|Entertainer|165,
+{
if (getskilllv(SKILL_EMOTE) > 0) goto L_Has;
mes "[Entertainer]";
diff --git a/world/map/npc/001-1/gossip.txt b/world/map/npc/001-1/gossip.txt
index 468b8b48..881ada61 100644
--- a/world/map/npc/001-1/gossip.txt
+++ b/world/map/npc/001-1/gossip.txt
@@ -1,7 +1,7 @@
// NPC to provide hints on progression of linear quest chain in Tulimshar
-001-1.gat,49,31,0|script|Gladys|154,{
-
+001-1.gat,49,31,0|script|Gladys|154,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/001-1/guards.txt b/world/map/npc/001-1/guards.txt
index 184956da..cce350c7 100644
--- a/world/map/npc/001-1/guards.txt
+++ b/world/map/npc/001-1/guards.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,48,79,0|script|Ekinu|104,{
+001-1.gat,48,79,0|script|Ekinu|104,
+{
mes "[Ekinu the Town Guard]";
mes "\"What a disaster... I can't believe that we managed to rebuild the town so fast, though.\"";
next;
@@ -74,8 +75,8 @@ L_Close:
close;
}
-001-1.gat,40,79,0|script|Ryan|104,{
-
+001-1.gat,40,79,0|script|Ryan|104,
+{
if (getskilllv(SKILL_MAGIC)) goto L_message;
mes "[Ryan the Town Guard]";
diff --git a/world/map/npc/001-1/guide.txt b/world/map/npc/001-1/guide.txt
index 07c6f9bb..f50e3eda 100644
--- a/world/map/npc/001-1/guide.txt
+++ b/world/map/npc/001-1/guide.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,32,27,0|script|Ian|102,{
+001-1.gat,32,27,0|script|Ian|102,
+{
// This line is only relevant for players, who started before the timestamp was introduced.
// Set the graduation cap flag at the right position.
// It is a bugfix
diff --git a/world/map/npc/001-1/luca.txt b/world/map/npc/001-1/luca.txt
index f1725404..55502e35 100644
--- a/world/map/npc/001-1/luca.txt
+++ b/world/map/npc/001-1/luca.txt
@@ -1,7 +1,7 @@
//
-001-1.gat,108,55,0|script|Luca|102,{
-
+001-1.gat,108,55,0|script|Luca|102,
+{
set @EXP_BRAWLING, 2000;
if (BaseLevel >= 35) goto L_teach;
diff --git a/world/map/npc/001-1/mikhail.txt b/world/map/npc/001-1/mikhail.txt
index 3980ac9b..c82dd89f 100644
--- a/world/map/npc/001-1/mikhail.txt
+++ b/world/map/npc/001-1/mikhail.txt
@@ -1,7 +1,7 @@
// Variables used: nibble 0 of QUEST_SouthTulimshar
-001-1.gat,50,46,0|script|Mikhail|120,{
-
+001-1.gat,50,46,0|script|Mikhail|120,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/001-1/monster_guide.txt b/world/map/npc/001-1/monster_guide.txt
index 7d5693e2..0aca7e41 100644
--- a/world/map/npc/001-1/monster_guide.txt
+++ b/world/map/npc/001-1/monster_guide.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,48,52,0|script|Aidan|102,{
+001-1.gat,48,52,0|script|Aidan|102,
+{
if(MPQUEST == 0) goto Register;
mes "[Aidan the Monster Guide]";
mes "You currently have " +Mobpt+ " Monster Points. These points are acquired while killing monsters";
diff --git a/world/map/npc/001-1/npcs.txt b/world/map/npc/001-1/npcs.txt
index b58ae7d8..c2b020af 100644
--- a/world/map/npc/001-1/npcs.txt
+++ b/world/map/npc/001-1/npcs.txt
@@ -1,6 +1,7 @@
// Talk NPCs to help make trek interesting around the Bazaar.
-001-1.gat,46,26,0|script|Yalina|209,{
+001-1.gat,46,26,0|script|Yalina|209,
+{
set @npcname$, "Yalina";
mes "[" + @npcname$ + "]";
@@ -13,7 +14,8 @@
close;
}
-001-1.gat,84,72,0|script|Cyndala|210,{
+001-1.gat,84,72,0|script|Cyndala|210,
+{
set @npcname$, "Cyndala";
mes "[" + @npcname$ + "]";
diff --git a/world/map/npc/001-1/rewards_master.txt b/world/map/npc/001-1/rewards_master.txt
index abf85ce8..7ebc12f5 100644
--- a/world/map/npc/001-1/rewards_master.txt
+++ b/world/map/npc/001-1/rewards_master.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,50,53,0|script|Ishi|106,{
+001-1.gat,50,53,0|script|Ishi|106,
+{
if (MPQUEST == 0) goto L_Register;
if (tvis == 0) set tvis, 1;
if (Mobpt < tvis) goto L_NotEnough;
diff --git a/world/map/npc/001-1/sandra.txt b/world/map/npc/001-1/sandra.txt
index 021f8519..50e302db 100644
--- a/world/map/npc/001-1/sandra.txt
+++ b/world/map/npc/001-1/sandra.txt
@@ -1,7 +1,7 @@
// Variables used: nibble 3 of QUEST_SouthTulimshar
-001-1.gat,110,71,0|script|Sandra|114,{
-
+001-1.gat,110,71,0|script|Sandra|114,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/001-1/sarah.txt b/world/map/npc/001-1/sarah.txt
index 3d2cb806..9f61fc19 100644
--- a/world/map/npc/001-1/sarah.txt
+++ b/world/map/npc/001-1/sarah.txt
@@ -1,7 +1,7 @@
// Variables used: nibble 1 of QUEST_SouthTulimshar
-001-1.gat,137,78,0|script|Sarah|106,{
-
+001-1.gat,137,78,0|script|Sarah|106,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/001-1/soul-menhir.txt b/world/map/npc/001-1/soul-menhir.txt
index 2a7f5c27..4ebea361 100644
--- a/world/map/npc/001-1/soul-menhir.txt
+++ b/world/map/npc/001-1/soul-menhir.txt
@@ -1,6 +1,7 @@
//
-001-1.gat,38,69,0|script|Soul Menhir|345,{
+001-1.gat,38,69,0|script|Soul Menhir|345,
+{
callfunc "ClearVariables";
set @map$, "001-1.gat";
setarray @Xs, 37, 38, 39, 37, 39, 37, 39;
diff --git a/world/map/npc/001-1/trader.txt b/world/map/npc/001-1/trader.txt
index b4157ab2..cf2854ef 100644
--- a/world/map/npc/001-1/trader.txt
+++ b/world/map/npc/001-1/trader.txt
@@ -3,7 +3,8 @@
// Updated by: TheKandiman
// Reviewed by: Wombat
-001-1.gat,57,33,0|script|Trader|115,{
+001-1.gat,57,33,0|script|Trader|115,
+{
set @Ironprice, 1000;
set @Sulphurprice, 1200;
set @Potionprice, 500;
diff --git a/world/map/npc/001-1/vincent.txt b/world/map/npc/001-1/vincent.txt
index 4ed4adfc..eb4c1fed 100644
--- a/world/map/npc/001-1/vincent.txt
+++ b/world/map/npc/001-1/vincent.txt
@@ -1,6 +1,7 @@
// Variables used: nibble 2 of QUEST_SouthTulimshar
-001-1.gat,135,42,0|script|Vincent|113,{
+001-1.gat,135,42,0|script|Vincent|113,
+{
set @hw2011_npc_id, $@hw2011_npc_vincent;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/001-2/_mobs.txt b/world/map/npc/001-2/_mobs.txt
index 4aeb43d6..a6625718 100644
--- a/world/map/npc/001-2/_mobs.txt
+++ b/world/map/npc/001-2/_mobs.txt
@@ -3,6 +3,7 @@
-001-2.gat,0,0,0|script|Mob001-2|-1,{
+001-2.gat,0,0,0|script|Mob001-2|-1,
+{
end;
}
diff --git a/world/map/npc/001-2/casino.txt b/world/map/npc/001-2/casino.txt
index 146ccc7e..d5090135 100644
--- a/world/map/npc/001-2/casino.txt
+++ b/world/map/npc/001-2/casino.txt
@@ -1,7 +1,8 @@
// Casino
// takes part in quest given by 021-2/kylian.txt
-001-2.gat,32,72,0|script|#CasinoEntrance|32767,1,1,{
+001-2.gat,32,72,0|script|#CasinoEntrance|32767,1,1,
+{
set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowCasinoNT;
set @kylian, ((QUEST_NorthTulimshar & $@businessmanNT_MASK) >> $@businessmanNT_SHIFT);
if (@kylian != 6)
@@ -14,30 +15,35 @@ L_End:
end;
}
-001-2.gat,134,23,0|script|Valdo|117,{
+001-2.gat,134,23,0|script|Valdo|117,
+{
mes "[Valdo the Worker]";
mes "\"Please let me work. I'm really in a hurry!\"";
close;
}
-001-2.gat,37,65,0|script|Slot1|400,{
+001-2.gat,37,65,0|script|Slot1|400,
+{
callfunc "SlotMachine";
close;
}
-001-2.gat,39,65,0|script|Slot2|400,{
+001-2.gat,39,65,0|script|Slot2|400,
+{
callfunc "SlotMachine";
close;
}
-001-2.gat,41,65,0|script|Slot3|400,{
+001-2.gat,41,65,0|script|Slot3|400,
+{
callfunc "SlotMachine";
close;
}
001-2.gat,32,67,0|shop|MoneyChanger|124,CasinoCoins :-1
-001-2.gat,28,63,0|script|BlackJack|107,{
+001-2.gat,28,63,0|script|BlackJack|107,
+{
mes "[Croupier]";
mes "\"Would you like to play Black Jack?";
mes "You will need 15 casino coins.\"";
@@ -112,7 +118,8 @@ L_Close:
close;
}
-001-2.gat,22,69,0|script|Roulette|107,{
+001-2.gat,22,69,0|script|Roulette|107,
+{
mes "\"Good evening monsieur...";
mes "How much would you like to bet?\"";
next;
diff --git a/world/map/npc/001-2/dedication.txt b/world/map/npc/001-2/dedication.txt
index ec4e7e52..8533b28e 100644
--- a/world/map/npc/001-2/dedication.txt
+++ b/world/map/npc/001-2/dedication.txt
@@ -1,6 +1,7 @@
// Dedication to Irene Christina
-001-2.gat,76,68,0|script|#IreneDedication|400,{
+001-2.gat,76,68,0|script|#IreneDedication|400,
+{
mes "~ Irene Christina ~";
mes "The song in this house is dedicated to Irene.";
next;
diff --git a/world/map/npc/001-2/omar.txt b/world/map/npc/001-2/omar.txt
index 9b1eea8b..db1b3fa1 100644
--- a/world/map/npc/001-2/omar.txt
+++ b/world/map/npc/001-2/omar.txt
@@ -1,5 +1,6 @@
//
-function|script|KadiyaSubquestConsts|{
+function|script|KadiyaSubquestConsts|
+{
set @Q_kadiya_status, (QUEST_MAGIC2 & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT;
set @Q_STATUS_NONE, 0;
@@ -20,7 +21,8 @@ function|script|KadiyaSubquestConsts|{
return;
}
-001-2.gat,70,60,0|script|Omar|162,{
+001-2.gat,70,60,0|script|Omar|162,
+{
callfunc "ElanoreFix";
callfunc "KadiyaSubquestConsts";
@@ -174,7 +176,8 @@ S_update_var:
return;
}
-001-2.gat,76,59,0|script|Kadiya|174,{
+001-2.gat,76,59,0|script|Kadiya|174,
+{
callfunc "ElanoreFix";
set @Q_MASK, NIBBLE_3_MASK;
set @Q_SHIFT, NIBBLE_3_SHIFT;
diff --git a/world/map/npc/001-2/phaet.txt b/world/map/npc/001-2/phaet.txt
index dfdf2ebe..36410c48 100644
--- a/world/map/npc/001-2/phaet.txt
+++ b/world/map/npc/001-2/phaet.txt
@@ -1,6 +1,7 @@
//
-001-2.gat,24,23,0|script|Phaet|125,{
+001-2.gat,24,23,0|script|Phaet|125,
+{
mes "[Phaet the Royal Guard]";
mes "\"Hey, you seem tough enough! Would you like to prove your skills? I'll let you in the arena if you give me 50 gp. You can fight against other players there.\"";
next;
diff --git a/world/map/npc/001-2/shops.txt b/world/map/npc/001-2/shops.txt
index 75753a4f..1857a5df 100644
--- a/world/map/npc/001-2/shops.txt
+++ b/world/map/npc/001-2/shops.txt
@@ -2,7 +2,8 @@
001-2.gat,26,26,0|shop|InnKeeper|112,Beer :-1,Cake :-1,CherryCake :-1
-001-2.gat,103,26,0|script|Rebecca|118,{
+001-2.gat,103,26,0|script|Rebecca|118,
+{
set @npcname$, "Rebecca the Inn Keeper";
set @cost, 100;
callfunc "Inn";
diff --git a/world/map/npc/001-2/troupe_leader.txt b/world/map/npc/001-2/troupe_leader.txt
index f69629a5..f48cd51a 100644
--- a/world/map/npc/001-2/troupe_leader.txt
+++ b/world/map/npc/001-2/troupe_leader.txt
@@ -1,6 +1,7 @@
//
-001-2.gat,34,25,0|script|Troupe Leader|165,{
+001-2.gat,34,25,0|script|Troupe Leader|165,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/001-3/_mobs.txt b/world/map/npc/001-3/_mobs.txt
index 47156be7..d57aeb12 100644
--- a/world/map/npc/001-3/_mobs.txt
+++ b/world/map/npc/001-3/_mobs.txt
@@ -4,7 +4,8 @@
001-3.gat,0,0,0,0|monster|Maggot|1002,10,0,0,Mob001-3::On1002
-001-3.gat,0,0,0|script|Mob001-3|-1,{
+001-3.gat,0,0,0|script|Mob001-3|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/001-3/guards.txt b/world/map/npc/001-3/guards.txt
index 7ff899d0..78ee6ca6 100644
--- a/world/map/npc/001-3/guards.txt
+++ b/world/map/npc/001-3/guards.txt
@@ -1,6 +1,7 @@
//
-001-3.gat,77,37,0|script|Phaet|125,{
+001-3.gat,77,37,0|script|Phaet|125,
+{
mes "[Phaet the Royal Guard]";
mes "\"Do you want to go back?\"";
next;
@@ -18,7 +19,8 @@ L_Sure:
close;
}
-001-3.gat,69,37,0|script|Aradin|126,{
+001-3.gat,69,37,0|script|Aradin|126,
+{
mes "[Aradin the Royal Guard]";
mes "\"Don't touch me...";
mes "You wouldn't enjoy the consequences.\"";
diff --git a/world/map/npc/002-1/_mobs.txt b/world/map/npc/002-1/_mobs.txt
index 45e83293..3579851b 100644
--- a/world/map/npc/002-1/_mobs.txt
+++ b/world/map/npc/002-1/_mobs.txt
@@ -17,7 +17,8 @@
002-1.gat,95,75,15,17|monster|BlackScorpion|1009,1,100000,1800000,Mob002-1::On1009
-002-1.gat,0,0,0|script|Mob002-1|-1,{
+002-1.gat,0,0,0|script|Mob002-1|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/002-1/lieutenant_dausen.txt b/world/map/npc/002-1/lieutenant_dausen.txt
index 47fb0c57..d5e1ab9e 100644
--- a/world/map/npc/002-1/lieutenant_dausen.txt
+++ b/world/map/npc/002-1/lieutenant_dausen.txt
@@ -1,8 +1,8 @@
// Lieutenant in charge of monitoring the monster threat surrounding the city.
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-1.gat,54,27,0|script|Lieutenant Dausen|122,{
-
+002-1.gat,54,27,0|script|Lieutenant Dausen|122,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-1/nickos.txt b/world/map/npc/002-1/nickos.txt
index 67ac2d63..f9365d02 100644
--- a/world/map/npc/002-1/nickos.txt
+++ b/world/map/npc/002-1/nickos.txt
@@ -1,8 +1,8 @@
// Sandstorm mine guard
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-1.gat,28,94,0|script|Nickos|123,{
-
+002-1.gat,28,94,0|script|Nickos|123,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-1/nomads.txt b/world/map/npc/002-1/nomads.txt
index 805b8fef..2d93ffe4 100644
--- a/world/map/npc/002-1/nomads.txt
+++ b/world/map/npc/002-1/nomads.txt
@@ -1,13 +1,15 @@
//
-002-1.gat,15,67,0|script|Samuel|132,{
+002-1.gat,15,67,0|script|Samuel|132,
+{
mes "[Samuel the Nomad]";
mes "\"This is really a nice place.\"";
mes "Don't you think so?\"";
close;
}
-002-1.gat,18,68,0|script|Elijah|128,{
+002-1.gat,18,68,0|script|Elijah|128,
+{
mes "[Elijah the Nomad]";
mes "\"If I only had a tent...\"";
close;
diff --git a/world/map/npc/002-1/stewen.txt b/world/map/npc/002-1/stewen.txt
index 0aa04b34..602e55fb 100644
--- a/world/map/npc/002-1/stewen.txt
+++ b/world/map/npc/002-1/stewen.txt
@@ -1,8 +1,8 @@
// East sandstorm guard
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-1.gat,106,76,0|script|Stewen|123,{
-
+002-1.gat,106,76,0|script|Stewen|123,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-2/_mobs.txt b/world/map/npc/002-2/_mobs.txt
index 562f2699..91350716 100644
--- a/world/map/npc/002-2/_mobs.txt
+++ b/world/map/npc/002-2/_mobs.txt
@@ -3,6 +3,7 @@
-002-2.gat,0,0,0|script|Mob002-2|-1,{
+002-2.gat,0,0,0|script|Mob002-2|-1,
+{
end;
}
diff --git a/world/map/npc/002-2/rogue.txt b/world/map/npc/002-2/rogue.txt
index f8245da5..39a4d8ce 100644
--- a/world/map/npc/002-2/rogue.txt
+++ b/world/map/npc/002-2/rogue.txt
@@ -1,7 +1,7 @@
//
-002-2.gat,25,28,0|script|Malivox|103,{
-
+002-2.gat,25,28,0|script|Malivox|103,
+{
// if (ResetA_charstate == 1) goto L_Multiple;
// set @cost, 10000000 / ($ResetA_uses + 1);
diff --git a/world/map/npc/002-3/_mobs.txt b/world/map/npc/002-3/_mobs.txt
index 4bbf4acf..7d7ac034 100644
--- a/world/map/npc/002-3/_mobs.txt
+++ b/world/map/npc/002-3/_mobs.txt
@@ -3,6 +3,7 @@
-002-3.gat,0,0,0|script|Mob002-3|-1,{
+002-3.gat,0,0,0|script|Mob002-3|-1,
+{
end;
}
diff --git a/world/map/npc/002-3/mining_camp_barrier.txt b/world/map/npc/002-3/mining_camp_barrier.txt
index 84a239e8..2ff0b35e 100644
--- a/world/map/npc/002-3/mining_camp_barrier.txt
+++ b/world/map/npc/002-3/mining_camp_barrier.txt
@@ -1,7 +1,7 @@
//Sandstorm mine barrier
-002-3.gat,82,32,0|script|#Sandstorm_Mine_Barrier|45,0,0,{
-
+002-3.gat,82,32,0|script|#Sandstorm_Mine_Barrier|45,0,0,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-3/nathan.txt b/world/map/npc/002-3/nathan.txt
index 675f01ea..b3661911 100644
--- a/world/map/npc/002-3/nathan.txt
+++ b/world/map/npc/002-3/nathan.txt
@@ -1,7 +1,7 @@
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-3.gat,42,45,6|script|Nathan|109,{
-
+002-3.gat,42,45,6|script|Nathan|109,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-4/_mobs.txt b/world/map/npc/002-4/_mobs.txt
index a159ad23..0fd06e51 100644
--- a/world/map/npc/002-4/_mobs.txt
+++ b/world/map/npc/002-4/_mobs.txt
@@ -17,7 +17,8 @@
002-4.gat,63,100,2,5|monster|AngryScorpion|1057,3,100000,30000,Mob002-4::On1057
-002-4.gat,0,0,0|script|Mob002-4|-1,{
+002-4.gat,0,0,0|script|Mob002-4|-1,
+{
On1056:
set @mobID, 1056;
callfunc "MobPoints";
diff --git a/world/map/npc/002-4/mine_triggerone.txt b/world/map/npc/002-4/mine_triggerone.txt
index df29393e..6d7e8e13 100644
--- a/world/map/npc/002-4/mine_triggerone.txt
+++ b/world/map/npc/002-4/mine_triggerone.txt
@@ -1,8 +1,8 @@
//Sandstorm mine trigger 1 Trigger 002-4 35,43 (127)
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-4.gat,30,47,0|script|Button|400,0,0,{
-
+002-4.gat,30,47,0|script|Button|400,0,0,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-4/mine_triggerthree.txt b/world/map/npc/002-4/mine_triggerthree.txt
index 621da0b2..015928f1 100644
--- a/world/map/npc/002-4/mine_triggerthree.txt
+++ b/world/map/npc/002-4/mine_triggerthree.txt
@@ -1,8 +1,8 @@
//Sandstorm mine trigger 3 Trigger 002-4 98,42 (127)
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-4.gat,91,99,0|script|Button|400,0,0,{
-
+002-4.gat,91,99,0|script|Button|400,0,0,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-4/mine_triggertwo.txt b/world/map/npc/002-4/mine_triggertwo.txt
index 04e54462..4af6ad7e 100644
--- a/world/map/npc/002-4/mine_triggertwo.txt
+++ b/world/map/npc/002-4/mine_triggertwo.txt
@@ -3,8 +3,8 @@
// - nibble 4 and 5 of QUEST_SouthTulimshar
// - in FLAGS, FLAG_OPENED_UNDERGROUND
-002-4.gat,100,37,0|script|Button|400,0,0,{
-
+002-4.gat,100,37,0|script|Button|400,0,0,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-4/naem.txt b/world/map/npc/002-4/naem.txt
index 95735b58..04818ebf 100644
--- a/world/map/npc/002-4/naem.txt
+++ b/world/map/npc/002-4/naem.txt
@@ -2,8 +2,8 @@
// - nibble 4 and 5 of QUEST_SouthTulimshar
// - in FLAGS, bits FLAG_GOT_NAEM_GLOVES and FLAG_OPENED_UNDERGROUND
-002-4.gat,91,96,6|script|Naem|109,{
-
+002-4.gat,91,96,6|script|Naem|109,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-4/underground_palace_barrier.txt b/world/map/npc/002-4/underground_palace_barrier.txt
index 2e0dc60d..240dbbae 100644
--- a/world/map/npc/002-4/underground_palace_barrier.txt
+++ b/world/map/npc/002-4/underground_palace_barrier.txt
@@ -1,7 +1,7 @@
//underground palace barrier
-002-4.gat,68,98,0|script|#UGP_Barrier|45,0,0,{
-
+002-4.gat,68,98,0|script|#UGP_Barrier|45,0,0,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-5/_mobs.txt b/world/map/npc/002-5/_mobs.txt
index 2fbad511..9d14c217 100644
--- a/world/map/npc/002-5/_mobs.txt
+++ b/world/map/npc/002-5/_mobs.txt
@@ -20,7 +20,8 @@
002-5.gat,62,62,5,43|monster|AngryFireGoblin|1108,3,100000,30000,Mob002-5::On1108
-002-5.gat,0,0,0|script|Mob002-5|-1,{
+002-5.gat,0,0,0|script|Mob002-5|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/002-5/chest.txt b/world/map/npc/002-5/chest.txt
index 9671e4b5..f3818bf6 100644
--- a/world/map/npc/002-5/chest.txt
+++ b/world/map/npc/002-5/chest.txt
@@ -1,7 +1,7 @@
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-5.gat,93,37,0|script|Supply Chest|378,{
-
+002-5.gat,93,37,0|script|Supply Chest|378,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-5/sema.txt b/world/map/npc/002-5/sema.txt
index b1b2cbe7..3462c5ca 100644
--- a/world/map/npc/002-5/sema.txt
+++ b/world/map/npc/002-5/sema.txt
@@ -1,7 +1,7 @@
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-5.gat,43,91,6|script|Sema|340,{
-
+002-5.gat,43,91,6|script|Sema|340,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/003-1/_mobs.txt b/world/map/npc/003-1/_mobs.txt
index 4bbca634..35c3274f 100644
--- a/world/map/npc/003-1/_mobs.txt
+++ b/world/map/npc/003-1/_mobs.txt
@@ -9,7 +9,8 @@
003-1.gat,35,25,10,3|monster|MountainSnake|1026,1,700000,600000,Mob003-1::On1026
-003-1.gat,0,0,0|script|Mob003-1|-1,{
+003-1.gat,0,0,0|script|Mob003-1|-1,
+{
On1004:
set @mobID, 1004;
callfunc "MobPoints";
diff --git a/world/map/npc/003-1/stranger.txt b/world/map/npc/003-1/stranger.txt
index 2aaeeea9..97428470 100644
--- a/world/map/npc/003-1/stranger.txt
+++ b/world/map/npc/003-1/stranger.txt
@@ -1,5 +1,5 @@
-003-1.gat,35,25,0|script|Stranger|192, {
-
+003-1.gat,35,25,0|script|Stranger|192,
+{
set @month, 5;
set @start_day, 18;
set @end_day, 25;
diff --git a/world/map/npc/003-2/_mobs.txt b/world/map/npc/003-2/_mobs.txt
index af203ef4..e4b0befc 100644
--- a/world/map/npc/003-2/_mobs.txt
+++ b/world/map/npc/003-2/_mobs.txt
@@ -3,6 +3,7 @@
-003-2.gat,0,0,0|script|Mob003-2|-1,{
+003-2.gat,0,0,0|script|Mob003-2|-1,
+{
end;
}
diff --git a/world/map/npc/004-1/_mobs.txt b/world/map/npc/004-1/_mobs.txt
index e64585d8..31656f56 100644
--- a/world/map/npc/004-1/_mobs.txt
+++ b/world/map/npc/004-1/_mobs.txt
@@ -10,7 +10,8 @@
004-1.gat,93,27,2,3|monster|BlackScorpion|1009,1,120000,60000,Mob004-1::On1009
-004-1.gat,0,0,0|script|Mob004-1|-1,{
+004-1.gat,0,0,0|script|Mob004-1|-1,
+{
On1004:
set @mobID, 1004;
callfunc "MobPoints";
diff --git a/world/map/npc/004-2/_mobs.txt b/world/map/npc/004-2/_mobs.txt
index 72d30f0c..46b9e891 100644
--- a/world/map/npc/004-2/_mobs.txt
+++ b/world/map/npc/004-2/_mobs.txt
@@ -3,6 +3,7 @@
-004-2.gat,0,0,0|script|Mob004-2|-1,{
+004-2.gat,0,0,0|script|Mob004-2|-1,
+{
end;
}
diff --git a/world/map/npc/005-1/_mobs.txt b/world/map/npc/005-1/_mobs.txt
index 7e6d30f5..aea62c29 100644
--- a/world/map/npc/005-1/_mobs.txt
+++ b/world/map/npc/005-1/_mobs.txt
@@ -14,7 +14,8 @@
005-1.gat,96,49,103,48|monster|Maggot|1002,20,100000,30000,Mob005-1::On1002
-005-1.gat,0,0,0|script|Mob005-1|-1,{
+005-1.gat,0,0,0|script|Mob005-1|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/005-1/npcs.txt b/world/map/npc/005-1/npcs.txt
index 2c40697f..499b637e 100644
--- a/world/map/npc/005-1/npcs.txt
+++ b/world/map/npc/005-1/npcs.txt
@@ -2,14 +2,16 @@
005-1.gat,69,76,0|shop|George|115,ShortBow :-1,Arrow :1,IronArrow :-1,Beer :-1,ChickenLeg :-2
-005-1.gat,66,75,0|script|Kieron|132,{
+005-1.gat,66,75,0|script|Kieron|132,
+{
mes "[Kieron]";
mes "\"Be careful if you're going in that cave,";
mes "it's packed full of monsters.\"";
close;
}
-005-1.gat,91,23,0|script|William|131,{
+005-1.gat,91,23,0|script|William|131,
+{
mes "[William]";
mes "\"Going in the cave?";
mes "You better watch your step, last time I checked it was full of monsters!\"";
diff --git a/world/map/npc/005-1/spirit.txt b/world/map/npc/005-1/spirit.txt
index cd75d536..73123842 100644
--- a/world/map/npc/005-1/spirit.txt
+++ b/world/map/npc/005-1/spirit.txt
@@ -1,4 +1,5 @@
-function|script|EarthImpTouch|{
+function|script|EarthImpTouch|
+{
if (getskilllv(SKILL_MAGIC)) goto L_message;
mes "[Well]";
@@ -275,10 +276,12 @@ S_update_var:
return;
}
-005-1.gat,118,70,0|script|#EarthImp0#_M|400,{
+005-1.gat,118,70,0|script|#EarthImp0#_M|400,
+{
callfunc "EarthImpTouch";
}
-005-1.gat,119,70,0|script|#EarthImp1#_M|400,{
+005-1.gat,119,70,0|script|#EarthImp1#_M|400,
+{
callfunc "EarthImpTouch";
}
diff --git a/world/map/npc/005-1/tree.txt b/world/map/npc/005-1/tree.txt
index e42a050f..ed45d9a3 100644
--- a/world/map/npc/005-1/tree.txt
+++ b/world/map/npc/005-1/tree.txt
@@ -1,4 +1,5 @@
-function|script|QuestTreeTrigger|{
+function|script|QuestTreeTrigger|
+{
set @Q_MASK, NIBBLE_2_MASK;
set @Q_SHIFT, NIBBLE_2_SHIFT;
@@ -45,7 +46,8 @@ S_update_var:
return;
}
-function|script|QuestTreeTouch|{
+function|script|QuestTreeTouch|
+{
set @Q_MASK, NIBBLE_2_MASK;
set @Q_SHIFT, NIBBLE_2_SHIFT;
@@ -156,10 +158,12 @@ L_Close:
}
-005-1.gat,79,41,0|script|#DruidTree0#_M|400,{
+005-1.gat,79,41,0|script|#DruidTree0#_M|400,
+{
callfunc "QuestTreeTouch";
}
-005-1.gat,80,41,0|script|#DruidTree1#_M|400,{
+005-1.gat,80,41,0|script|#DruidTree1#_M|400,
+{
callfunc "QuestTreeTouch";
}
diff --git a/world/map/npc/005-3/_mobs.txt b/world/map/npc/005-3/_mobs.txt
index 29e96579..08985e9a 100644
--- a/world/map/npc/005-3/_mobs.txt
+++ b/world/map/npc/005-3/_mobs.txt
@@ -4,7 +4,8 @@
005-3.gat,0,0,0,0|monster|Snake|1010,175,0,0,Mob005-3::On1010
-005-3.gat,0,0,0|script|Mob005-3|-1,{
+005-3.gat,0,0,0|script|Mob005-3|-1,
+{
On1010:
set @mobID, 1010;
callfunc "MobPoints";
diff --git a/world/map/npc/005-4/_mobs.txt b/world/map/npc/005-4/_mobs.txt
index 2c626003..35b4adb1 100644
--- a/world/map/npc/005-4/_mobs.txt
+++ b/world/map/npc/005-4/_mobs.txt
@@ -3,6 +3,7 @@
-005-4.gat,0,0,0|script|Mob005-4|-1,{
+005-4.gat,0,0,0|script|Mob005-4|-1,
+{
end;
}
diff --git a/world/map/npc/005-4/bossfight.txt b/world/map/npc/005-4/bossfight.txt
index b16db617..4a197025 100644
--- a/world/map/npc/005-4/bossfight.txt
+++ b/world/map/npc/005-4/bossfight.txt
@@ -1,6 +1,7 @@
//Author: Kage
-005-4.gat,36,19,0|script|Switch#elecave|400,{
+005-4.gat,36,19,0|script|Switch#elecave|400,
+{
if ($@ELE_CAVE_STATUS != 0) goto L_Enjoy;
mes "*You see a switch, it is flipped off*";
diff --git a/world/map/npc/006-1/_mobs.txt b/world/map/npc/006-1/_mobs.txt
index 386ed695..6bf53fee 100644
--- a/world/map/npc/006-1/_mobs.txt
+++ b/world/map/npc/006-1/_mobs.txt
@@ -18,7 +18,8 @@
006-1.gat,36,98,33,35|monster|Scorpion|1003,10,100000,30000,Mob006-1::On1003
-006-1.gat,0,0,0|script|Mob006-1|-1,{
+006-1.gat,0,0,0|script|Mob006-1|-1,
+{
On1003:
set @mobID, 1003;
callfunc "MobPoints";
diff --git a/world/map/npc/006-1/mika.txt b/world/map/npc/006-1/mika.txt
index b4e2d69c..2b5c7401 100644
--- a/world/map/npc/006-1/mika.txt
+++ b/world/map/npc/006-1/mika.txt
@@ -1,4 +1,5 @@
-006-1.gat,39,27,0|script|Mika|114,{
+006-1.gat,39,27,0|script|Mika|114,
+{
mes "[Mika]";
mes "\"My father told me about a man living in this desert who makes clothes out of snake skin.\"";
next;
diff --git a/world/map/npc/006-1/pachua.txt b/world/map/npc/006-1/pachua.txt
index 9f2d1dab..7fe9377f 100644
--- a/world/map/npc/006-1/pachua.txt
+++ b/world/map/npc/006-1/pachua.txt
@@ -1,4 +1,5 @@
-006-1.gat,23,100,0|script|Pachua|143,{
+006-1.gat,23,100,0|script|Pachua|143,
+{
set @LEATHER_PATCH_PRICE, 300;
// @wants_leather_patch is used as boolean
set @wants_leather_patch, QUEST_Forestbow_state & NIBBLE_4_MASK;
diff --git a/world/map/npc/006-3/_mobs.txt b/world/map/npc/006-3/_mobs.txt
index 84b288ef..a9c22311 100644
--- a/world/map/npc/006-3/_mobs.txt
+++ b/world/map/npc/006-3/_mobs.txt
@@ -29,7 +29,8 @@
006-3.gat,83,107,13,14|monster|YellowSlime|1007,6,90000,30000,Mob006-3::On1007
-006-3.gat,0,0,0|script|Mob006-3|-1,{
+006-3.gat,0,0,0|script|Mob006-3|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/007-1/_mobs.txt b/world/map/npc/007-1/_mobs.txt
index 4e1d7488..90be87d2 100644
--- a/world/map/npc/007-1/_mobs.txt
+++ b/world/map/npc/007-1/_mobs.txt
@@ -12,7 +12,8 @@
007-1.gat,0,0,0,0|monster|Butterfly|1055,10,30,20,Mob007-1::On1055
-007-1.gat,0,0,0|script|Mob007-1|-1,{
+007-1.gat,0,0,0|script|Mob007-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/007-1/voltain.txt b/world/map/npc/007-1/voltain.txt
index d1a28236..659e9d7c 100644
--- a/world/map/npc/007-1/voltain.txt
+++ b/world/map/npc/007-1/voltain.txt
@@ -25,8 +25,8 @@
// # 12: bring gamboge herbs
// # 13: bring chocolate cake
-007-1.gat,37,21,0|script|Voltain|103,{
-
+007-1.gat,37,21,0|script|Voltain|103,
+{
set @BOTTLE_NEEDED, 3;
set @BOTTLE_REWARD_XP, 100;
set @BOTTLE_REWARD_GOLD, 450;
diff --git a/world/map/npc/007-1/witch.txt b/world/map/npc/007-1/witch.txt
index 354df9a0..2af66c9f 100644
--- a/world/map/npc/007-1/witch.txt
+++ b/world/map/npc/007-1/witch.txt
@@ -14,8 +14,8 @@
// 254: Quest is being ended and cleaned: the hero logged off.
// 255: Quest is being ended and cleaned: the hero died or he ran out of time
-007-1.gat,77,81,0|script|Valia|370,{
-
+007-1.gat,77,81,0|script|Valia|370,
+{
set @illia_sapphire_powder, 3;
set @illia_amethyst_powder, 1;
set @illia_iron_powder, 13;
@@ -639,7 +639,8 @@ OnTimer300000:
}
-007-1.gat,128,100,0|script|#IlliaDaemon|127,{
+007-1.gat,128,100,0|script|#IlliaDaemon|127,
+{
end;
onInit:
@@ -871,8 +872,8 @@ L_Start:
}
-function|script|UpdateIlliaProgress|{
-
+function|script|UpdateIlliaProgress|
+{
if ($@illia_progress == 1)
goto L_Torch1;
if ($@illia_progress == 2)
@@ -921,34 +922,42 @@ return;
}
-007-1.gat,72,88,0|script|#IlliaTorch1|374,{
+007-1.gat,72,88,0|script|#IlliaTorch1|374,
+{
end;
}
-007-1.gat,71,85,0|script|#IlliaTorch2|374,{
+007-1.gat,71,85,0|script|#IlliaTorch2|374,
+{
end;
}
-007-1.gat,75,70,0|script|#IlliaTorch3|374,{
+007-1.gat,75,70,0|script|#IlliaTorch3|374,
+{
end;
}
-007-1.gat,85,71,0|script|#IlliaTorch4|374,{
+007-1.gat,85,71,0|script|#IlliaTorch4|374,
+{
end;
}
-007-1.gat,88,69,0|script|#IlliaTorch5|374,{
+007-1.gat,88,69,0|script|#IlliaTorch5|374,
+{
end;
}
-007-1.gat,86,68,0|script|#IlliaTorch6|374,{
+007-1.gat,86,68,0|script|#IlliaTorch6|374,
+{
end;
}
-007-1.gat,87,68,0|script|#IlliaTorch7|374,{
+007-1.gat,87,68,0|script|#IlliaTorch7|374,
+{
end;
}
-007-1.gat,88,67,0|script|#IlliaTorch8|374,{
+007-1.gat,88,67,0|script|#IlliaTorch8|374,
+{
end;
}
diff --git a/world/map/npc/008-1/_mobs.txt b/world/map/npc/008-1/_mobs.txt
index 433f4ee4..1f64f55f 100644
--- a/world/map/npc/008-1/_mobs.txt
+++ b/world/map/npc/008-1/_mobs.txt
@@ -12,7 +12,8 @@
008-1.gat,0,0,0,0|monster|Butterfly|1055,10,30,20,Mob008-1::On1055
-008-1.gat,0,0,0|script|Mob008-1|-1,{
+008-1.gat,0,0,0|script|Mob008-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/008-1/andra.txt b/world/map/npc/008-1/andra.txt
index a58e465a..d86a32a1 100644
--- a/world/map/npc/008-1/andra.txt
+++ b/world/map/npc/008-1/andra.txt
@@ -1,7 +1,7 @@
// Andra asks for your help to keep the soil fertile. The best way to do it is planting, so she asks for water and seeds. When she plants the seeds, some plants are spawned.
-008-1.gat,36,26,0|script|Andra|201,{
-
+008-1.gat,36,26,0|script|Andra|201,
+{
set @water_amount, 1;
set @seeds_amount, 4;
if ($@andra_status == 1) goto L_Planting;
diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt
index d7bd5e9d..f656f46b 100644
--- a/world/map/npc/008-1/annualeaster.txt
+++ b/world/map/npc/008-1/annualeaster.txt
@@ -9,8 +9,8 @@
// the event in these days.
-function|script|AnnualEasterEvent|{
-
+function|script|AnnualEasterEvent|
+{
if ((gettimetick(2)-TUT_var < 5*7*86400) || (BaseLevel < 40)) //player must be created at least 5 weeks ago
goto L_EndTooYoung;
@@ -110,23 +110,27 @@ L_End1:
return;
}
-008-1.gat,65,40,0|script|#TestEgg0|375,{
+008-1.gat,65,40,0|script|#TestEgg0|375,
+{
set @EasterEggID, 0;
callfunc("AnnualEasterEvent");
}
-008-1.gat,65,40,0|script|#TestEgg1|375,{
+008-1.gat,65,40,0|script|#TestEgg1|375,
+{
set @EasterEggID, 1;
callfunc("AnnualEasterEvent");
}
-008-1.gat,65,40,0|script|#TestEgg2|375,{
+008-1.gat,65,40,0|script|#TestEgg2|375,
+{
set @EasterEggID, 2;
callfunc("AnnualEasterEvent");
}
-008-1.gat,59,38,0|script|#AnnualEaster|-1,{
+008-1.gat,59,38,0|script|#AnnualEaster|-1,
+{
end;
onInit:
diff --git a/world/map/npc/008-1/diryn.txt b/world/map/npc/008-1/diryn.txt
index 9b95ee5d..ae3368ac 100644
--- a/world/map/npc/008-1/diryn.txt
+++ b/world/map/npc/008-1/diryn.txt
@@ -2,7 +2,8 @@
// Author: Wombat
// cost depending on level and adapted to new scripting guidelines: Jenalya
-008-1.gat,81,82,0|script|Diryn the Traveler|103,{
+008-1.gat,81,82,0|script|Diryn the Traveler|103,
+{
if (BaseLevel < 45)
goto L_LowerCost;
diff --git a/world/map/npc/008-1/dock.txt b/world/map/npc/008-1/dock.txt
index c944fe71..2d6be3fe 100644
--- a/world/map/npc/008-1/dock.txt
+++ b/world/map/npc/008-1/dock.txt
@@ -1,6 +1,7 @@
// The ferry dock
-008-1.gat,140,64,0|script|#hurnscalddock|45,2,1,{
+008-1.gat,140,64,0|script|#hurnscalddock|45,2,1,
+{
set @loc, DOCK_hurnscald;
callfunc "Ferry";
}
diff --git a/world/map/npc/008-1/george.txt b/world/map/npc/008-1/george.txt
index 70725432..fb7406bb 100644
--- a/world/map/npc/008-1/george.txt
+++ b/world/map/npc/008-1/george.txt
@@ -1,6 +1,7 @@
//
-008-1.gat,136,36,0|script|George|138,{
+008-1.gat,136,36,0|script|George|138,
+{
set @hw2011_npc_id, $@hw2011_npc_george;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/008-1/hinnak.txt b/world/map/npc/008-1/hinnak.txt
index d2551e5a..8deb8263 100644
--- a/world/map/npc/008-1/hinnak.txt
+++ b/world/map/npc/008-1/hinnak.txt
@@ -5,7 +5,8 @@
//
// Variables used: Nibble 1 of QUEST_Hurnscald (previously QUEST_Scythe_state)
-008-1.gat,101,30,0|script|Hinnak|142,{
+008-1.gat,101,30,0|script|Hinnak|142,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/009-1/_mobs.txt b/world/map/npc/009-1/_mobs.txt
index f3cac242..e368c8d5 100644
--- a/world/map/npc/009-1/_mobs.txt
+++ b/world/map/npc/009-1/_mobs.txt
@@ -8,7 +8,8 @@
009-1.gat,0,0,0,0|monster|Butterfly|1055,5,30,20,Mob009-1::On1055
-009-1.gat,0,0,0|script|Mob009-1|-1,{
+009-1.gat,0,0,0|script|Mob009-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/009-1/jack.txt b/world/map/npc/009-1/jack.txt
index f92813db..6d7bf498 100644
--- a/world/map/npc/009-1/jack.txt
+++ b/world/map/npc/009-1/jack.txt
@@ -14,7 +14,8 @@
//#################################################################################
// Lumberjack
-009-1.gat,40,45,0|script|Jack|141,{
+009-1.gat,40,45,0|script|Jack|141,
+{
callfunc "ClearVariables";
set @RAWLOGS_AMOUNT, 40;
diff --git a/world/map/npc/009-1/milly.txt b/world/map/npc/009-1/milly.txt
index b5a482a2..00a63939 100644
--- a/world/map/npc/009-1/milly.txt
+++ b/world/map/npc/009-1/milly.txt
@@ -6,7 +6,8 @@
//
// Inspector quest
-009-1.gat,81,41,0|script|Milly|114,{
+009-1.gat,81,41,0|script|Milly|114,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
@@ -383,8 +384,8 @@ L_Return:
return;
}
-009-1.gat,82,41,0|script|MillyDebugHelper|114,{
-
+009-1.gat,82,41,0|script|MillyDebugHelper|114,
+{
mes "You can set certain quests as finished or not finished. What would you like to do?";
menu
"Bone Knife Quest done.", L_DBoneKnife,
diff --git a/world/map/npc/009-1/old_man.txt b/world/map/npc/009-1/old_man.txt
index e799cc89..cebd0f59 100644
--- a/world/map/npc/009-1/old_man.txt
+++ b/world/map/npc/009-1/old_man.txt
@@ -1,6 +1,7 @@
// Old man
-009-1.gat,85,51,0|script|Old Man|159,{
+009-1.gat,85,51,0|script|Old Man|159,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/009-1/old_woman.txt b/world/map/npc/009-1/old_woman.txt
index fbd0e7aa..7e33e034 100644
--- a/world/map/npc/009-1/old_woman.txt
+++ b/world/map/npc/009-1/old_woman.txt
@@ -1,6 +1,7 @@
// Old woman
-009-1.gat,29,43,0|script|Old Woman|154,{
+009-1.gat,29,43,0|script|Old Woman|154,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/009-1/sabine.txt b/world/map/npc/009-1/sabine.txt
index d67c55b0..48d7e441 100644
--- a/world/map/npc/009-1/sabine.txt
+++ b/world/map/npc/009-1/sabine.txt
@@ -1,6 +1,7 @@
// Girl sitting on bench
-009-1.gat,88,27,0|script|Sabine|106,{
+009-1.gat,88,27,0|script|Sabine|106,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/009-1/soul-menhir.txt b/world/map/npc/009-1/soul-menhir.txt
index d3e5d385..063ac7a9 100644
--- a/world/map/npc/009-1/soul-menhir.txt
+++ b/world/map/npc/009-1/soul-menhir.txt
@@ -1,6 +1,7 @@
//
-009-1.gat,53,40,0|script|Soul Menhir|344,{
+009-1.gat,53,40,0|script|Soul Menhir|344,
+{
callfunc "ClearVariables";
set @map$, "009-1.gat";
setarray @Xs, 52, 53, 54, 52, 54, 52, 54;
diff --git a/world/map/npc/009-1/water_pump.txt b/world/map/npc/009-1/water_pump.txt
index 3ce09159..b582b312 100644
--- a/world/map/npc/009-1/water_pump.txt
+++ b/world/map/npc/009-1/water_pump.txt
@@ -1,5 +1,6 @@
// Water pump. You can fill empty bottles here
-009-1.gat,76,33,0|script|Water Pump|203,{
+009-1.gat,76,33,0|script|Water Pump|203,
+{
callfunc "WaterBottle";
}
diff --git a/world/map/npc/009-2/_mobs.txt b/world/map/npc/009-2/_mobs.txt
index 198257c3..f404b00d 100644
--- a/world/map/npc/009-2/_mobs.txt
+++ b/world/map/npc/009-2/_mobs.txt
@@ -3,6 +3,7 @@
-009-2.gat,0,0,0|script|Mob009-2|-1,{
+009-2.gat,0,0,0|script|Mob009-2|-1,
+{
end;
}
diff --git a/world/map/npc/009-2/airlia.txt b/world/map/npc/009-2/airlia.txt
index 3bc92277..33d38d38 100644
--- a/world/map/npc/009-2/airlia.txt
+++ b/world/map/npc/009-2/airlia.txt
@@ -6,7 +6,8 @@
// * Airlia quest = 2 unlocks other options, perhaps with future Warrior Guild prospects (this is long term)
-009-2.gat,123,71,0|script|Airlia|108,{
+009-2.gat,123,71,0|script|Airlia|108,
+{
// Subquest 1a: Caretaker's daughter (initial, once)
set @LETTER_REWARD_GOLD_INITIAL, 1000;
set @LETTER_REWARD_EXP_INITIAL, 2000;
diff --git a/world/map/npc/009-2/alan.txt b/world/map/npc/009-2/alan.txt
index 53715527..22f2fbc1 100644
--- a/world/map/npc/009-2/alan.txt
+++ b/world/map/npc/009-2/alan.txt
@@ -8,7 +8,8 @@
//#################################################################################
// Archer Shop Master
-009-2.gat,99,23,0|script|Alan|125,{
+009-2.gat,99,23,0|script|Alan|125,
+{
callfunc "ClearVariables";
set @Q_MASK, NIBBLE_0_MASK;
diff --git a/world/map/npc/009-2/doctor.txt b/world/map/npc/009-2/doctor.txt
index c9b5684a..a2e16ff9 100644
--- a/world/map/npc/009-2/doctor.txt
+++ b/world/map/npc/009-2/doctor.txt
@@ -1,6 +1,7 @@
// Doctor
-009-2.gat,148,25,0|script|Doctor|107,{
+009-2.gat,148,25,0|script|Doctor|107,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/009-2/drunks.txt b/world/map/npc/009-2/drunks.txt
index a20a0c91..d97100ac 100644
--- a/world/map/npc/009-2/drunks.txt
+++ b/world/map/npc/009-2/drunks.txt
@@ -1,6 +1,7 @@
//Left drinking contest guy
-009-2.gat,65,55,0|script|Drinker|121,{
+009-2.gat,65,55,0|script|Drinker|121,
+{
mes "[Binge Drinker]";
mes "\"Ha! I'll drink muuuch mo.. more than you! Im not ooone biiit dr...dr..unk!\"";
close;
@@ -8,7 +9,8 @@
//Right drinking contest guy
-009-2.gat,68,55,0|script|Drinker|121,{
+009-2.gat,68,55,0|script|Drinker|121,
+{
mes "[Binge Drinker]";
mes "\"I can still drink more! Better give up you... you... teelotaler! MORE BEER MELINDA!\"";
//I know it's called "teetotaler". That error is on purpose.
diff --git a/world/map/npc/009-2/inspector.txt b/world/map/npc/009-2/inspector.txt
index 59bbd067..662b0c74 100644
--- a/world/map/npc/009-2/inspector.txt
+++ b/world/map/npc/009-2/inspector.txt
@@ -1,6 +1,7 @@
//
-009-2.gat,24,99,0|script|Inspector#Hurnscald|150,{
+009-2.gat,24,99,0|script|Inspector#Hurnscald|150,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/009-2/kfahr.txt b/world/map/npc/009-2/kfahr.txt
index 0df90c34..0b82d06a 100644
--- a/world/map/npc/009-2/kfahr.txt
+++ b/world/map/npc/009-2/kfahr.txt
@@ -13,7 +13,8 @@
//#
//#################################################################################
-009-2.gat,67,57,0|script|Kfahr|125,{
+009-2.gat,67,57,0|script|Kfahr|125,
+{
set @hw2011_npc_id, $@hw2011_npc_kfahr;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/009-2/lena.txt b/world/map/npc/009-2/lena.txt
index c959d86f..4b49edf5 100644
--- a/world/map/npc/009-2/lena.txt
+++ b/world/map/npc/009-2/lena.txt
@@ -1,8 +1,8 @@
// Quest for Fairy Hat and Forest Armor
// Variables used: nibble 0 of QUEST_Hurnscald
-009-2.gat,146,43,0|script|Lena|182,{
-
+009-2.gat,146,43,0|script|Lena|182,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/009-2/misc.txt b/world/map/npc/009-2/misc.txt
index 41d4c78e..5c80dc90 100644
--- a/world/map/npc/009-2/misc.txt
+++ b/world/map/npc/009-2/misc.txt
@@ -1,6 +1,7 @@
//Note in bar
-009-2.gat,54,49,0|script|Note|400,{
+009-2.gat,54,49,0|script|Note|400,
+{
mes "[Note]";
mes "\"We refuse service to anyone who:\"";
mes "\"-Has a bubblehead\"";
@@ -11,7 +12,8 @@
}
//Bookshelf
-009-2.gat,109,44,0|script|#Book|400,{
+009-2.gat,109,44,0|script|#Book|400,
+{
if (getskilllv(SKILL_MAGIC))
goto L_magic;
mes "[Bookshelf]";
diff --git a/world/map/npc/009-2/nicholas.txt b/world/map/npc/009-2/nicholas.txt
index 08fe98c2..d43b7df0 100644
--- a/world/map/npc/009-2/nicholas.txt
+++ b/world/map/npc/009-2/nicholas.txt
@@ -11,8 +11,8 @@
//#
//#################################################################################
-009-2.gat,185,55,0|script|Nicholas|135,{
-
+009-2.gat,185,55,0|script|Nicholas|135,
+{
set @SETZER_XP, 100000;
set @SHIELD_XP, 20000;
diff --git a/world/map/npc/009-2/nurse.txt b/world/map/npc/009-2/nurse.txt
index b89d1f60..d89b30d4 100644
--- a/world/map/npc/009-2/nurse.txt
+++ b/world/map/npc/009-2/nurse.txt
@@ -22,7 +22,8 @@
//######################################################################################
-009-2.gat,147,65,0|script|Nurse|119,{
+009-2.gat,147,65,0|script|Nurse|119,
+{
set @hw2011_npc_id, $@hw2011_npc_nurse;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/009-2/olana.txt b/world/map/npc/009-2/olana.txt
index fe0e92e1..d528cc41 100644
--- a/world/map/npc/009-2/olana.txt
+++ b/world/map/npc/009-2/olana.txt
@@ -1,7 +1,7 @@
// Authors: alastrim, Ali-g, Dark Mage
-009-2.gat,63,79,0|script|Olana|190,{
-
+009-2.gat,63,79,0|script|Olana|190,
+{
set @MinLevel, 60;
set @Cherry_Amount, 10;
diff --git a/world/map/npc/009-2/peter.txt b/world/map/npc/009-2/peter.txt
index e0588f99..8c8f648d 100644
--- a/world/map/npc/009-2/peter.txt
+++ b/world/map/npc/009-2/peter.txt
@@ -1,7 +1,7 @@
// Nicholas' Apprentice and Armorsmith
-009-2.gat,183,57,0|script|Peter|157,{
-
+009-2.gat,183,57,0|script|Peter|157,
+{
set @peter_chain_mail_coal, 10;
set @peter_chain_mail_ingot, 5;
set @peter_chain_mail_money, 20000;
diff --git a/world/map/npc/009-2/richard.txt b/world/map/npc/009-2/richard.txt
index b19b215f..143de014 100644
--- a/world/map/npc/009-2/richard.txt
+++ b/world/map/npc/009-2/richard.txt
@@ -1,6 +1,7 @@
//
-009-2.gat,20,99,0|script|Richard|161,{
+009-2.gat,20,99,0|script|Richard|161,
+{
callfunc "ClearVariables";
set @npcname$, "Richard";
callfunc "Banker";
diff --git a/world/map/npc/009-2/selim.txt b/world/map/npc/009-2/selim.txt
index c434b656..055e54eb 100644
--- a/world/map/npc/009-2/selim.txt
+++ b/world/map/npc/009-2/selim.txt
@@ -5,7 +5,8 @@
//# #
//#################################################################################
-009-2.gat,32,104,0|script|Selim|326,{
+009-2.gat,32,104,0|script|Selim|326,
+{
setarray @all_colours$, "red", "green", "dark blue", "yellow", "light blue", "pink", "black", "orange", "purple", "dark green";
mes "[Selim]";
diff --git a/world/map/npc/009-2/shops.txt b/world/map/npc/009-2/shops.txt
index ce7fc548..c6267ceb 100644
--- a/world/map/npc/009-2/shops.txt
+++ b/world/map/npc/009-2/shops.txt
@@ -10,7 +10,8 @@
// Receptionist
// Offers the player to rest at the inn for 100gp
-009-2.gat,50,48,0|script|Receptionist|108,{
+009-2.gat,50,48,0|script|Receptionist|108,
+{
set @npcname$, "Receptionist";
set @cost, 100;
callfunc "Inn";
diff --git a/world/map/npc/009-2/waitress.txt b/world/map/npc/009-2/waitress.txt
index 782426b2..473b34e0 100644
--- a/world/map/npc/009-2/waitress.txt
+++ b/world/map/npc/009-2/waitress.txt
@@ -1,7 +1,7 @@
// Waitress
-009-2.gat,60,52,0|script|Melinda|140,{
-
+009-2.gat,60,52,0|script|Melinda|140,
+{
mes "[Melinda]";
mes "\"Hi, sweetie! Want a fresh beer for 170 GP?\"";
next;
diff --git a/world/map/npc/009-2/wyara.txt b/world/map/npc/009-2/wyara.txt
index cef03385..27050f1d 100644
--- a/world/map/npc/009-2/wyara.txt
+++ b/world/map/npc/009-2/wyara.txt
@@ -1,7 +1,8 @@
// ----------------------------------------
// Wyara the Hurnscald witch
// ----------------------------------------
-009-2.gat,121,26,0|script|Wyara#_M|103,{
+009-2.gat,121,26,0|script|Wyara#_M|103,
+{
set @Q_MASK, NIBBLE_2_MASK;
set @Q_SHIFT, NIBBLE_2_SHIFT;
set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT;
diff --git a/world/map/npc/009-3/_mobs.txt b/world/map/npc/009-3/_mobs.txt
index aa3760dc..79285ccc 100644
--- a/world/map/npc/009-3/_mobs.txt
+++ b/world/map/npc/009-3/_mobs.txt
@@ -6,7 +6,8 @@
009-3.gat,0,0,0,0|monster|RedSlime|1008,35,0,0,Mob009-3::On1008
-009-3.gat,0,0,0|script|Mob009-3|-1,{
+009-3.gat,0,0,0|script|Mob009-3|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/009-3/sword.txt b/world/map/npc/009-3/sword.txt
index a1e16036..1be13790 100644
--- a/world/map/npc/009-3/sword.txt
+++ b/world/map/npc/009-3/sword.txt
@@ -1,4 +1,5 @@
-009-3.gat,26,100,0|script|#MysticSword#_M|400,{
+009-3.gat,26,100,0|script|#MysticSword#_M|400,
+{
if (getskilllv(SKILL_MAGIC))
goto L_message;
close;
diff --git a/world/map/npc/009-3/warp.txt b/world/map/npc/009-3/warp.txt
index 9bb9ab28..d02c365a 100644
--- a/world/map/npc/009-3/warp.txt
+++ b/world/map/npc/009-3/warp.txt
@@ -1,4 +1,5 @@
-009-3.gat,162,80,0|script|#PVPCaveBarrier|45,0,0,{
+009-3.gat,162,80,0|script|#PVPCaveBarrier|45,0,0,
+{
mes "Do you want to enter the PVP cave? It costs 150GP.";
menu
"No.", L_Exit,
diff --git a/world/map/npc/009-4/_mobs.txt b/world/map/npc/009-4/_mobs.txt
index fcae92f7..38dc2f30 100644
--- a/world/map/npc/009-4/_mobs.txt
+++ b/world/map/npc/009-4/_mobs.txt
@@ -10,7 +10,8 @@
009-4.gat,38,116,24,15|monster|Maggot|1002,3,20000,14000,Mob009-4::On1002
-009-4.gat,0,0,0|script|Mob009-4|-1,{
+009-4.gat,0,0,0|script|Mob009-4|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/009-4/barriers.txt b/world/map/npc/009-4/barriers.txt
index 78635c54..eedf2416 100644
--- a/world/map/npc/009-4/barriers.txt
+++ b/world/map/npc/009-4/barriers.txt
@@ -1,5 +1,6 @@
//# see detailed description at orum.txt
-function|script|GetBarrierColor|{
+function|script|GetBarrierColor|
+{
if (@Barrier < 0 || @Barrier > 2) goto L_Error;
set @Mask, 15;
@@ -12,7 +13,8 @@ L_Error:
close;
}
-function|script|SetBarrierColor|{
+function|script|SetBarrierColor|
+{
if (@Barrier < 0 || @Barrier > 2)
goto L_Error;
if (@BarrierColor <= 0 || @BarrierColor > 12)
@@ -33,8 +35,8 @@ L_Error2:
// Starting Barrier / Quest Entrance
-009-4.gat,37,120,0|script|#OrumCaveStartBarrier|0,1,0,{
-
+009-4.gat,37,120,0|script|#OrumCaveStartBarrier|0,1,0,
+{
if (OrumQuest >= 3) close;
if (OrumQuest == 2) goto L_Started;
@@ -49,8 +51,8 @@ L_Started:
}
// First Barrier
-009-4.gat,57,29,0|script|#OrumCaveFirstBarrier|0,1,0,{
-
+009-4.gat,57,29,0|script|#OrumCaveFirstBarrier|0,1,0,
+{
if (OrumQuest >= 5) close;
message strcharinfo(0), "Nothing seems to happen as you enter this room. The barrier must need both of its torches to function properly.";
@@ -59,8 +61,8 @@ L_Started:
}
// Second Barrier
-009-4.gat,61,54,0|script|#OrumCaveSecondBarrier|0,1,0,{
-
+009-4.gat,61,54,0|script|#OrumCaveSecondBarrier|0,1,0,
+{
if (OrumQuest == 3) set OrumQuest, 4;
set @Barrier, 0;
@@ -88,8 +90,8 @@ L_Advance_Quest:
}
// Third Barrier
-009-4.gat,24,66,0|script|#OrumCaveThirdBarrier|0,1,0,{
-
+009-4.gat,24,66,0|script|#OrumCaveThirdBarrier|0,1,0,
+{
if (OrumQuest == 3) set OrumQuest, 4;
set @Barrier, 1;
@@ -132,8 +134,8 @@ L_Advance_Quest:
}
// Ending Barrier
-009-4.gat,48,38,0|script|#OrumCaveEndBarrier|0,1,0,{
-
+009-4.gat,48,38,0|script|#OrumCaveEndBarrier|0,1,0,
+{
if (OrumQuest >= 11) close;
if (OrumQuest == 3) set OrumQuest, 4;
diff --git a/world/map/npc/009-4/orum.txt b/world/map/npc/009-4/orum.txt
index 8ee21c7c..a8c4b505 100644
--- a/world/map/npc/009-4/orum.txt
+++ b/world/map/npc/009-4/orum.txt
@@ -18,7 +18,8 @@
//# OrumQuestBarrier nibble (0,1,2) stores the color of the barriers #
//#################################################################################
-009-4.gat,37,115,0|script|Orum|158,{
+009-4.gat,37,115,0|script|Orum|158,
+{
// needed to pass the very first barrier
set @B0_WISPPOWDER, 4;
set @B0_POLTERGEISTPOWDER, 2;
diff --git a/world/map/npc/009-4/orum_warps.txt b/world/map/npc/009-4/orum_warps.txt
index 858e0ea0..d4267eb1 100644
--- a/world/map/npc/009-4/orum_warps.txt
+++ b/world/map/npc/009-4/orum_warps.txt
@@ -1,4 +1,5 @@
-009-3.gat,162,113,0|script|#OrumQuestEnter|45,0,0,{
+009-3.gat,162,113,0|script|#OrumQuestEnter|45,0,0,
+{
if (OrumQuest >= 12) goto L_Second_Entrance;
warp "009-4.gat", 37, 113;
close;
@@ -7,7 +8,8 @@ L_Second_Entrance:
warp "009-4.gat", 72, 126;
close;
}
-009-4.gat,36,26,0|script|#LairExit|45,0,0,{
+009-4.gat,36,26,0|script|#LairExit|45,0,0,
+{
if (OrumQuest >= 12) goto L_Second_Entrance;
warp "009-4.gat", 37, 122;
close;
@@ -17,7 +19,8 @@ L_Second_Entrance:
close;
}
-009-4.gat,51,47,0|script|#CavernEnter|45,0,0,{
+009-4.gat,51,47,0|script|#CavernEnter|45,0,0,
+{
if (OrumQuest >= 14) goto L_Second_Cavern;
if (OrumQuest < 12) goto L_See_Orum;
warp "009-4.gat", 103, 23;
diff --git a/world/map/npc/009-4/torches.txt b/world/map/npc/009-4/torches.txt
index 86dd95fe..8675826b 100644
--- a/world/map/npc/009-4/torches.txt
+++ b/world/map/npc/009-4/torches.txt
@@ -1,6 +1,7 @@
//# see detailed description at orum.txt
//# see detailed description at orum.txt
-function|script|GetTorchColor|{
+function|script|GetTorchColor|
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
set @Mask, 15;
@@ -13,7 +14,8 @@ L_Error:
close;
}
-function|script|SetTorchColor|{
+function|script|SetTorchColor|
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
if (@TorchColor < 1 || @TorchColor > 12) goto L_Error2;
@@ -30,7 +32,8 @@ L_Error2:
close;
}
-function|script|GetTorchIntensity|{
+function|script|GetTorchIntensity|
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
set @Mask, 15;
@@ -43,7 +46,8 @@ L_Error:
close;
}
-function|script|SetTorchIntensity|{
+function|script|SetTorchIntensity|
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
if (@TorchIntensity < 0 || @TorchIntensity > 2) goto L_Error2;
@@ -60,7 +64,8 @@ L_Error2:
close;
}
-function|script|DoneWithTorches|{
+function|script|DoneWithTorches|
+{
if (OrumQuest < 11 && OrumQuest >= 8)
return;
@@ -80,26 +85,30 @@ L_Different:
}
// To make sure in range of torches
-function|script|InRangeTorch1|{
+function|script|InRangeTorch1|
+{
if (isin("009-4.gat",67,20,69,25))
return;
mes "You're too far away to do anything with that torch.";
close;
}
-function|script|InRangeTorch2|{
+function|script|InRangeTorch2|
+{
if (isin("009-4.gat",65,41,69,46))
return;
mes "You're too far away to do anything with that torch.";
close;
}
-function|script|InRangeTorch3|{
+function|script|InRangeTorch3|
+{
if (isin("009-4.gat",33,84,37,88))
return;
mes "You're too far away to do anything with that torch.";
close;
}
-function|script|TorchLoop|{
+function|script|TorchLoop|
+{
// Variables used here:
// @Torch - pass before calling
// @TorchColor - initialized here, updated throughout
@@ -259,7 +268,8 @@ L_Failed:
}
// First Torch
-009-4.gat,68,21,0|script|Torch|400,{
+009-4.gat,68,21,0|script|Torch|400,
+{
callfunc "InRangeTorch1";
callfunc "DoneWithTorches";
@@ -269,7 +279,8 @@ L_Failed:
}
// Second Torch
-009-4.gat,67,42,0|script|Torch|400,{
+009-4.gat,67,42,0|script|Torch|400,
+{
callfunc "InRangeTorch2";
callfunc "DoneWithTorches";
@@ -279,7 +290,8 @@ L_Failed:
}
// Third Torch
-009-4.gat,33,86,0|script|Torch|400,{
+009-4.gat,33,86,0|script|Torch|400,
+{
callfunc "InRangeTorch3";
callfunc "DoneWithTorches";
diff --git a/world/map/npc/009-4/waric.txt b/world/map/npc/009-4/waric.txt
index c373522a..9231bb94 100644
--- a/world/map/npc/009-4/waric.txt
+++ b/world/map/npc/009-4/waric.txt
@@ -1,6 +1,7 @@
//# see detailed description at orum.txt
-009-4.gat,99,33,0|script|#WizardTrap|0,2,1,{
+009-4.gat,99,33,0|script|#WizardTrap|0,2,1,
+{
set @gender$, "They're";
if (Sex == 0)
set @gender$, "She's";
@@ -18,7 +19,8 @@
close;
}
-009-4.gat,120,43,0|script|Orum|158,{
+009-4.gat,120,43,0|script|Orum|158,
+{
mes "[Orum]";
mes "\"I told you to forget about this place but you did not heed my advice!\"";
next;
@@ -26,7 +28,8 @@
close;
}
-009-4.gat,118,42,0|script|Waric|153,{
+009-4.gat,118,42,0|script|Waric|153,
+{
set @EXP_LEARNED_ALOT, 10000;
if (OrumQuest >= 13)
goto L_Behave;
diff --git a/world/map/npc/009-5/_mobs.txt b/world/map/npc/009-5/_mobs.txt
index cce523f3..bbcf3732 100644
--- a/world/map/npc/009-5/_mobs.txt
+++ b/world/map/npc/009-5/_mobs.txt
@@ -3,6 +3,7 @@
-009-5.gat,0,0,0|script|Mob009-5|-1,{
+009-5.gat,0,0,0|script|Mob009-5|-1,
+{
end;
}
diff --git a/world/map/npc/009-6/_mobs.txt b/world/map/npc/009-6/_mobs.txt
index d97492a3..c565f872 100644
--- a/world/map/npc/009-6/_mobs.txt
+++ b/world/map/npc/009-6/_mobs.txt
@@ -3,6 +3,7 @@
-009-6.gat,0,0,0|script|Mob009-6|-1,{
+009-6.gat,0,0,0|script|Mob009-6|-1,
+{
end;
}
diff --git a/world/map/npc/009-6/brodomir.txt b/world/map/npc/009-6/brodomir.txt
index 881a7b4d..ab26c081 100644
--- a/world/map/npc/009-6/brodomir.txt
+++ b/world/map/npc/009-6/brodomir.txt
@@ -18,7 +18,8 @@
// $@BRODOMIR_MONEY: Amount of money given by the sponsor
-009-6.gat,36,40,0|script|Brodomir|116,{
+009-6.gat,36,40,0|script|Brodomir|116,
+{
set @brodomir_money, 0;
set @brodomir_item_amount, 0;
set @brodomir_item$, "";
diff --git a/world/map/npc/010-1/_mobs.txt b/world/map/npc/010-1/_mobs.txt
index 6ad04c83..d9466ea3 100644
--- a/world/map/npc/010-1/_mobs.txt
+++ b/world/map/npc/010-1/_mobs.txt
@@ -16,7 +16,8 @@
010-1.gat,0,0,0,0|monster|Butterfly|1055,10,30,20,Mob010-1::On1055
-010-1.gat,0,0,0|script|Mob010-1|-1,{
+010-1.gat,0,0,0|script|Mob010-1|-1,
+{
On1003:
set @mobID, 1003;
callfunc "MobPoints";
diff --git a/world/map/npc/010-2/_mobs.txt b/world/map/npc/010-2/_mobs.txt
index 8f167635..46950616 100644
--- a/world/map/npc/010-2/_mobs.txt
+++ b/world/map/npc/010-2/_mobs.txt
@@ -3,6 +3,7 @@
-010-2.gat,0,0,0|script|Mob010-2|-1,{
+010-2.gat,0,0,0|script|Mob010-2|-1,
+{
end;
}
diff --git a/world/map/npc/010-2/chef.txt b/world/map/npc/010-2/chef.txt
index f0b391a0..6343e517 100644
--- a/world/map/npc/010-2/chef.txt
+++ b/world/map/npc/010-2/chef.txt
@@ -1,5 +1,5 @@
-010-2.gat,33,25,0|script|Chef|148,{
-
+010-2.gat,33,25,0|script|Chef|148,
+{
// lines belong to Easter 2011:
// set @month, 4;
// set @start_day, 15;
@@ -337,7 +337,8 @@ L_Close:
close;
}
-//010-2.gat,28,31,0|script|#chefproposition|32767,0,0{
+//010-2.gat,28,31,0|script|#chefproposition|32767,0,0
+//{
//OnTouch:
// if (gettime(7) != $@easter2012_year || QUEST_Easter12 != 8 || !((gettime(6) == 4 && gettime(5) >= $@easter2012_reward_start_day) && (gettime(6) == 4 && gettime(5) <= $@easter2012_reward_end_day)))
// end;
diff --git a/world/map/npc/010-2/dimonds.txt b/world/map/npc/010-2/dimonds.txt
index 97b6fe90..8fe8cbc5 100644
--- a/world/map/npc/010-2/dimonds.txt
+++ b/world/map/npc/010-2/dimonds.txt
@@ -1,6 +1,7 @@
//
-010-2.gat,34,38,0|script|Dimond|165,{
+010-2.gat,34,38,0|script|Dimond|165,
+{
mes "[Dimond]";
mes "\"Welcome to Dimond's Cove!\"";
mes "";
@@ -11,7 +12,8 @@
close;
}
-010-2.gat,40,35,0|script|Phil|157,{
+010-2.gat,40,35,0|script|Phil|157,
+{
mes "[Phil]";
mes "\"We're having problems with our equipment!\"";
next;
@@ -20,7 +22,8 @@
close;
}
-010-2.gat,40,37,0|script|Jerry|160,{
+010-2.gat,40,37,0|script|Jerry|160,
+{
mes "[Jerry]";
mes "\"I don't know what's wrong.\"";
next;
@@ -29,7 +32,8 @@
close;
}
-010-2.gat,42,36,0|script|Robert|162,{
+010-2.gat,42,36,0|script|Robert|162,
+{
mes "[Robert]";
mes "\"I hope we can figure something out!\"";
next;
@@ -38,7 +42,8 @@
close;
}
-010-2.gat,35,35,0|script|Shannon|193,{
+010-2.gat,35,35,0|script|Shannon|193,
+{
set @month, 1;
set @start_day, 24;
set @end_day, 26;
@@ -476,7 +481,8 @@ leave:
close;
}
-010-2.gat,27,30,0|script|Bar Rules|400,{
+010-2.gat,27,30,0|script|Bar Rules|400,
+{
mes "Dimonds Cove Bar Rules";
next;
mes "No excessive drinking!";
@@ -495,25 +501,29 @@ leave:
close;
}
-010-2.gat,71,38,0|script|Store Policy|400,{
+010-2.gat,71,38,0|script|Store Policy|400,
+{
mes "All sales are final.";
mes "Returns are subject to a 50% re-stocking fee.";
close;
}
-010-2.gat,77,38,0|script|Store Policy|400,{
+010-2.gat,77,38,0|script|Store Policy|400,
+{
mes "All sales are final.";
mes "Returns are subject to a 50% re-stocking fee.";
close;
}
-010-2.gat,36,30,0|script|Directions|400,{
+010-2.gat,36,30,0|script|Directions|400,
+{
mes "This way to the Dimonds Cove Inn.";
mes "Five star accommodation for the weary traveler!";
close;
}
-010-2.gat,80,32,0|script|Dimonds Cove 1|400,{
+010-2.gat,80,32,0|script|Dimonds Cove 1|400,
+{
mes "The Story of Dimonds Cove";
next;
mes "One day Dimond D. Stone dreamed of her own restaurant.";
@@ -532,14 +542,16 @@ leave:
close;
}
-010-2.gat,85,32,0|script|Dimonds Cove 2|400,{
+010-2.gat,85,32,0|script|Dimonds Cove 2|400,
+{
mes "List of Events at Dimonds Cove";
mes "January 2008 - Construction of Dimonds Cove.";
close;
}
-010-2.gat,71,30,0|script|Inn|400,{
+010-2.gat,71,30,0|script|Inn|400,
+{
mes "Welcome to the Dimonds Cove Inn";
mes "Rooms are 200 gp a night.";
mes "Plese check in with Basil.";
@@ -555,7 +567,8 @@ leave:
010-2.gat,65,41,0|shop|General Store|137,CottonShorts :-1,FancyHat :-1,SilkHeadband :-1,CottonSkirt :-1,Boots :-1,CottonBoots :-1
-010-2.gat,75,68,0|script|Basil|107,{
+010-2.gat,75,68,0|script|Basil|107,
+{
set @npcname$, "Basil the Inn Keeper";
set @cost, 200;
callfunc "Inn";
diff --git a/world/map/npc/010-2/doug.txt b/world/map/npc/010-2/doug.txt
index 1d2cf4e4..4b5598d7 100644
--- a/world/map/npc/010-2/doug.txt
+++ b/world/map/npc/010-2/doug.txt
@@ -1,7 +1,7 @@
//
-010-2.gat,68,87,0|script|Doug|113,{
-
+010-2.gat,68,87,0|script|Doug|113,
+{
mes "[Doug]";
mes "\"This room is too dark. I want to brighten it up.\"";
next;
diff --git a/world/map/npc/010-2/loratay.txt b/world/map/npc/010-2/loratay.txt
index f34d9c57..436f7f09 100644
--- a/world/map/npc/010-2/loratay.txt
+++ b/world/map/npc/010-2/loratay.txt
@@ -1,5 +1,5 @@
-010-2.gat,85,85,0|script|Lora Tay|151,{
-
+010-2.gat,85,85,0|script|Lora Tay|151,
+{
set @ROBE_COCOONS_NR, 150; // must be multiple of ten
set @ROBE_ZENY, 10000;
set @ROBE_SHEETS_NR, 6; // number of silk sheets required for the silk robe. Must be less than 10.
diff --git a/world/map/npc/010-2/workers.txt b/world/map/npc/010-2/workers.txt
index ab2e6d5d..3dc6e928 100644
--- a/world/map/npc/010-2/workers.txt
+++ b/world/map/npc/010-2/workers.txt
@@ -1,12 +1,14 @@
//
-010-2.gat,23,70,0|script|Josh|155,{
+010-2.gat,23,70,0|script|Josh|155,
+{
mes "[Josh]";
mes "\"We're working on getting the cellar pass open.\"";
close;
}
-010-2.gat,39,75,0|script|Zack|155,{
+010-2.gat,39,75,0|script|Zack|155,
+{
set @hw2011_npc_id, $@hw2011_npc_zack;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/011-1/_mobs.txt b/world/map/npc/011-1/_mobs.txt
index 8c14da07..f797a153 100644
--- a/world/map/npc/011-1/_mobs.txt
+++ b/world/map/npc/011-1/_mobs.txt
@@ -15,7 +15,8 @@
011-1.gat,0,0,0,0|monster|Mouboo|1028,5,0,10,Mob011-1::On1028
-011-1.gat,0,0,0|script|Mob011-1|-1,{
+011-1.gat,0,0,0|script|Mob011-1|-1,
+{
On1013:
set @mobID, 1013;
callfunc "MobPoints";
diff --git a/world/map/npc/011-1/alchemist.txt b/world/map/npc/011-1/alchemist.txt
index 35609063..6b47eb07 100644
--- a/world/map/npc/011-1/alchemist.txt
+++ b/world/map/npc/011-1/alchemist.txt
@@ -1,6 +1,6 @@
// This NPC makes potions and dyes
-011-1.gat,117,77,0|script|Rauk|103,{
-
+011-1.gat,117,77,0|script|Rauk|103,
+{
// Setzer quest/monster oil quest participation
set @SETZER_INITIAL, 0;
set @SETZER_KNOWS_OIL, 1;
diff --git a/world/map/npc/011-1/auldsbel.txt b/world/map/npc/011-1/auldsbel.txt
index 7f0cf685..4344b9ce 100644
--- a/world/map/npc/011-1/auldsbel.txt
+++ b/world/map/npc/011-1/auldsbel.txt
@@ -1,8 +1,8 @@
// Auldsbel the Wizard
// Transmutation Magic expert
-011-1.gat,50,68,0|script|Auldsbel#_M|168,{
-
+011-1.gat,50,68,0|script|Auldsbel#_M|168,
+{
set @mexp, MAGIC_EXPERIENCE & 65535;
set @Q_STATUS_INITIAL, 0;
diff --git a/world/map/npc/011-1/oscar.txt b/world/map/npc/011-1/oscar.txt
index d85bd67b..e10cd906 100644
--- a/world/map/npc/011-1/oscar.txt
+++ b/world/map/npc/011-1/oscar.txt
@@ -28,7 +28,8 @@
// 6: the player saved the farmer from the pumpkin invasion (all pumpkins / mobs killed)
// 10: the player failed to save the farmer from the pumpkin invasion (player left the map, died -- logging off is allowed however)
-function|script|HalloweenQuestWaterPumpkins|{
+function|script|HalloweenQuestWaterPumpkins|
+{
if (Quest_Halloween != 5 || $@HalloweenQuest_PumpkinHunter$ != "")
end;
set $@HalloweenQuest_PumpkinHunter$, strcharinfo(0);
@@ -36,7 +37,8 @@ function|script|HalloweenQuestWaterPumpkins|{
end;
}
-011-1.gat,94,38,0|script|Oscar|142,{
+011-1.gat,94,38,0|script|Oscar|142,
+{
// Check we are at the good time of the year
if (!(gettime(6) == 11 && (gettime(5) >= 4 && gettime(5) <= 30))) goto L_NoEvent;
// Check halloween quest has been done or not.
diff --git a/world/map/npc/011-3/_mobs.txt b/world/map/npc/011-3/_mobs.txt
index ef4ef58c..eb75be5c 100644
--- a/world/map/npc/011-3/_mobs.txt
+++ b/world/map/npc/011-3/_mobs.txt
@@ -5,7 +5,8 @@
011-3.gat,0,0,0,0|monster|Silkworm|1035,3,60000,30000,Mob011-3::On1035
-011-3.gat,0,0,0|script|Mob011-3|-1,{
+011-3.gat,0,0,0|script|Mob011-3|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/011-3/hermit.txt b/world/map/npc/011-3/hermit.txt
index 6276b933..eb698a3a 100644
--- a/world/map/npc/011-3/hermit.txt
+++ b/world/map/npc/011-3/hermit.txt
@@ -1,6 +1,7 @@
//
-011-3.gat,30,23,0|script|Arkim|116,{
+011-3.gat,30,23,0|script|Arkim|116,
+{
mes "[Arkim the Hermit]";
mes "\"Do you want to go back outside?\"";
if (@knowhermitstory == 1) goto L_Short_Menu;
diff --git a/world/map/npc/011-4/_mobs.txt b/world/map/npc/011-4/_mobs.txt
index 1e013fcc..a2be8c85 100644
--- a/world/map/npc/011-4/_mobs.txt
+++ b/world/map/npc/011-4/_mobs.txt
@@ -7,7 +7,8 @@
011-4.gat,0,0,0,0|monster|SpikyMushroom|1019,15,0,0,Mob011-4::On1019
-011-4.gat,0,0,0|script|Mob011-4|-1,{
+011-4.gat,0,0,0|script|Mob011-4|-1,
+{
On1019:
set @mobID, 1019;
callfunc "MobPoints";
diff --git a/world/map/npc/011-4/bl_barrier.txt b/world/map/npc/011-4/bl_barrier.txt
index 13524ee8..07cc5678 100644
--- a/world/map/npc/011-4/bl_barrier.txt
+++ b/world/map/npc/011-4/bl_barrier.txt
@@ -1,7 +1,7 @@
//bandit lord barrier
-011-4.gat,111,121,0|script|#BL_Barrier|45,0,0,{
-
+011-4.gat,111,121,0|script|#BL_Barrier|45,0,0,
+{
set @state, ((QUEST_Hurnscald & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
if (@state >= 4) goto L_Bandit_Lord_Barrier_Open;
diff --git a/world/map/npc/011-6/_mobs.txt b/world/map/npc/011-6/_mobs.txt
index 69867dee..a6574415 100644
--- a/world/map/npc/011-6/_mobs.txt
+++ b/world/map/npc/011-6/_mobs.txt
@@ -50,7 +50,8 @@
011-6.gat,263,236,16,5|monster|CaveMaggot|1056,3,30000,100000,Mob011-6::On1056
-011-6.gat,0,0,0|script|Mob011-6|-1,{
+011-6.gat,0,0,0|script|Mob011-6|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/011-6/bryant.txt b/world/map/npc/011-6/bryant.txt
index f06b2a80..9bc94df8 100644
--- a/world/map/npc/011-6/bryant.txt
+++ b/world/map/npc/011-6/bryant.txt
@@ -1,8 +1,8 @@
//NPC to set the state for killing the bandit lord.
// Variables used: nibble 0 of QUEST_Hurnscald
-011-6.gat,27,200,0|script|Bryant|126,{
-
+011-6.gat,27,200,0|script|Bryant|126,
+{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/012-1/_mobs.txt b/world/map/npc/012-1/_mobs.txt
index 1dc257ba..45eb58b9 100644
--- a/world/map/npc/012-1/_mobs.txt
+++ b/world/map/npc/012-1/_mobs.txt
@@ -14,7 +14,8 @@
012-1.gat,0,0,0,0|monster|Butterfly|1055,20,30,20,Mob012-1::On1055
-012-1.gat,0,0,0|script|Mob012-1|-1,{
+012-1.gat,0,0,0|script|Mob012-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/012-1/amrak.txt b/world/map/npc/012-1/amrak.txt
index 2a527eb0..74e6cd88 100644
--- a/world/map/npc/012-1/amrak.txt
+++ b/world/map/npc/012-1/amrak.txt
@@ -1,6 +1,7 @@
//
-012-1.gat,137,104,0|script|Amrak|103,{
+012-1.gat,137,104,0|script|Amrak|103,
+{
mes "[Amrak]";
mes "\"I'm studying this waterfall. The water seems to flow from it like magic.\"";
next;
diff --git a/world/map/npc/012-1/injured-mouboo.txt b/world/map/npc/012-1/injured-mouboo.txt
index 57117d17..3a6f0e30 100644
--- a/world/map/npc/012-1/injured-mouboo.txt
+++ b/world/map/npc/012-1/injured-mouboo.txt
@@ -1,6 +1,7 @@
// The following auxiliary function is used both by appropriate magic and within the regular script:
-function|script|QuestMoubooHeal|{
+function|script|QuestMoubooHeal|
+{
set @Q_MASK, NIBBLE_2_MASK;
set @Q_SHIFT, NIBBLE_2_SHIFT;
@@ -42,7 +43,8 @@ S_update_var:
return;
}
-012-1.gat,57,153,0|script|Mouboo|171,{
+012-1.gat,57,153,0|script|Mouboo|171,
+{
set @Q_MASK, NIBBLE_2_MASK;
set @Q_SHIFT, NIBBLE_2_SHIFT;
diff --git a/world/map/npc/012-3/_mobs.txt b/world/map/npc/012-3/_mobs.txt
index 6b3af28e..6395b3fb 100644
--- a/world/map/npc/012-3/_mobs.txt
+++ b/world/map/npc/012-3/_mobs.txt
@@ -19,7 +19,8 @@
012-3.gat,0,0,0,0|monster|CaveSnake|1021,75,0,0,Mob012-3::On1021
-012-3.gat,0,0,0|script|Mob012-3|-1,{
+012-3.gat,0,0,0|script|Mob012-3|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/012-3/mana-seed.txt b/world/map/npc/012-3/mana-seed.txt
index 199e2a34..05e27697 100644
--- a/world/map/npc/012-3/mana-seed.txt
+++ b/world/map/npc/012-3/mana-seed.txt
@@ -1,5 +1,5 @@
-012-3.gat,62,130,0|script|Mana Seed#MAGIC|166,{
-
+012-3.gat,62,130,0|script|Mana Seed#MAGIC|166,
+{
setarray @magic_exp_needed,
0, // level 0
0,
diff --git a/world/map/npc/012-3/warningsigns.txt b/world/map/npc/012-3/warningsigns.txt
index 081f8c67..4dd2336d 100644
--- a/world/map/npc/012-3/warningsigns.txt
+++ b/world/map/npc/012-3/warningsigns.txt
@@ -1,6 +1,7 @@
//warning signs at pvp entrance!
-012-3.gat,445,61,0|script|sign|187,{
+012-3.gat,445,61,0|script|sign|187,
+{
mes "You are about to enter a dangerous area!";
next;
mes "This area has a great distance to town. So the protection spell of the town is not active in that cave!";
@@ -8,7 +9,8 @@
close;
}
-012-3.gat,451,61,0|script|sign|186,{
+012-3.gat,451,61,0|script|sign|186,
+{
mes "You are about to enter a dangerous area!";
next;
mes "This area has a great distance to town. So the protection spell of the town is not active in that cave!";
diff --git a/world/map/npc/012-4/_mobs.txt b/world/map/npc/012-4/_mobs.txt
index 31dafb3a..205d722d 100644
--- a/world/map/npc/012-4/_mobs.txt
+++ b/world/map/npc/012-4/_mobs.txt
@@ -67,7 +67,8 @@
012-4.gat,91,180,23,10|monster|Spider|1012,20,100000,30000,Mob012-4::On1012
-012-4.gat,0,0,0|script|Mob012-4|-1,{
+012-4.gat,0,0,0|script|Mob012-4|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/013-1/_mobs.txt b/world/map/npc/013-1/_mobs.txt
index 07a4df90..c1d0453f 100644
--- a/world/map/npc/013-1/_mobs.txt
+++ b/world/map/npc/013-1/_mobs.txt
@@ -18,7 +18,8 @@
013-1.gat,0,0,0,0|monster|Butterfly|1055,10,30,20,Mob013-1::On1055
-013-1.gat,0,0,0|script|Mob013-1|-1,{
+013-1.gat,0,0,0|script|Mob013-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/013-1/sagatha.txt b/world/map/npc/013-1/sagatha.txt
index e157139d..e7d6a1a0 100644
--- a/world/map/npc/013-1/sagatha.txt
+++ b/world/map/npc/013-1/sagatha.txt
@@ -1,7 +1,8 @@
// Sagatha the witch, expert for nature and astral magic
//----------------------------------------
-function|script|QuestSagathaHappy|{
+function|script|QuestSagathaHappy|
+{
set @unhappiness, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT;
if (@unhappiness < @value)
goto L_zero;
@@ -18,7 +19,8 @@ L_write:
}
//----------------------------------------
-function|script|QuestSagathaAnnoy|{
+function|script|QuestSagathaAnnoy|
+{
set @unhappiness, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT;
if ((@unhappiness + @value) > 15)
goto L_max;
@@ -35,7 +37,8 @@ L_write:
}
//----------------------------------------
-function|script|SagathaStatus|{
+function|script|SagathaStatus|
+{
if (getequipid(equip_head) != 1216 && getequipid(equip_head) != 752)
goto L_next;
set @value, 15;
@@ -66,7 +69,8 @@ L_next:
}
//----------------------------------------
-013-1.gat,131,24,0|script|Sagatha#_M|167,{
+013-1.gat,131,24,0|script|Sagatha#_M|167,
+{
callfunc "SagathaStatus";
set @Q_MASK, NIBBLE_4_MASK | NIBBLE_5_MASK;
diff --git a/world/map/npc/013-2/_mobs.txt b/world/map/npc/013-2/_mobs.txt
index 75642581..6464434f 100644
--- a/world/map/npc/013-2/_mobs.txt
+++ b/world/map/npc/013-2/_mobs.txt
@@ -3,6 +3,7 @@
-013-2.gat,0,0,0|script|Mob013-2|-1,{
+013-2.gat,0,0,0|script|Mob013-2|-1,
+{
end;
}
diff --git a/world/map/npc/013-2/apprentice.txt b/world/map/npc/013-2/apprentice.txt
index 2f7fa3ee..17fd2368 100644
--- a/world/map/npc/013-2/apprentice.txt
+++ b/world/map/npc/013-2/apprentice.txt
@@ -1,4 +1,5 @@
-013-2.gat,25,37,0|script|Fabius|115,{
+013-2.gat,25,37,0|script|Fabius|115,
+{
mes "[Fabius]";
mes "\"Hey! Wanna have a drink or something? High quality, low cost. A poor fella like me needs a bit of extra cash, ye know.\"";
next;
diff --git a/world/map/npc/013-2/notes.txt b/world/map/npc/013-2/notes.txt
index 49997195..f946254f 100644
--- a/world/map/npc/013-2/notes.txt
+++ b/world/map/npc/013-2/notes.txt
@@ -1,22 +1,26 @@
//
-013-2.gat,23,32,0|script|Motto|400,{
+013-2.gat,23,32,0|script|Motto|400,
+{
mes "Mid pleasures and palaces though we may roam,";
mes "Be it ever so humble, there's no place like home.";
close;
}
-013-2.gat,30,32,0|script|Note|400,{
+013-2.gat,30,32,0|script|Note|400,
+{
mes "Please do not open.";
close;
}
-013-2.gat,38,20,0|script|Saying|400,{
+013-2.gat,38,20,0|script|Saying|400,
+{
mes "The early bird catcheth the worm.";
close;
}
-013-2.gat,27,21,0|script|Mirror|400,{
+013-2.gat,27,21,0|script|Mirror|400,
+{
mes "You say: \"Mirror mirror on the wall, who has the nicest haircut of them all?\"";
next;
mes "\"Oh fair adventurer, your hair indeed looks nice. But wouldn't it look much better, after I have rolled my dice?\"";
@@ -31,7 +35,8 @@
}
// Warp to north-eastern woods
-013-2.gat,25,23,0|script|Spell|400,{
+013-2.gat,25,23,0|script|Spell|400,
+{
mes "You read: \"I see trees of green, red roses too. I see them bloom for me and you. And I think to myself: \'What a wonderful world\'\"";
next;
mes "You think: \"Huh?\"";
@@ -43,7 +48,8 @@
}
// Warp to Indian in south-eastern desert
-013-2.gat,27,24,0|script|Spell|400,{
+013-2.gat,27,24,0|script|Spell|400,
+{
mes "You read: \"A red-coloured fellow smoking his pipe - down in the desert - that's what I like!\"";
next;
mes "You feel the floor disappear below your feet...";
@@ -63,7 +69,8 @@ L_cheat:
}
// Warp to snow area
-013-2.gat,25,27,0|script|Spell|400,{
+013-2.gat,25,27,0|script|Spell|400,
+{
mes "You read: \"Snow-white flakes and eminent frost - I'll go there, whatever the cost!\"";
next;
mes "You feel yourself getting lighter...";
@@ -93,7 +100,8 @@ L_Close:
}
// Warp to Dimond
-013-2.gat,27,27,0|script|Spell|400,{
+013-2.gat,27,27,0|script|Spell|400,
+{
mes "You read: \"People and cosiness, lively and fun - that's where I've gone!\"";
next;
mes "The world around you slowly dissolves...";
@@ -103,7 +111,8 @@ L_Close:
}
// Warp to mines level 2
-013-2.gat,26,28,0|script|Spell|400,{
+013-2.gat,26,28,0|script|Spell|400,
+{
mes "You read: \"Darkness and legs, eight of them each - I'd rather not go there, but now it's too late...\"";
next;
mes "For a moment everything turns black...";
@@ -113,7 +122,8 @@ L_Close:
}
// Death
-013-2.gat,21,29,0|script|Spell|400,{
+013-2.gat,21,29,0|script|Spell|400,
+{
mes "You read: \"Heart stops pumping, breath begone - life is stopping, death has come!\"";
next;
mes "You're losing control of your body... everything turns black... while slipping to the floor, you hear a faraway scream... suddenly, you see THE LIGHT!";
@@ -123,7 +133,8 @@ L_Close:
}
// Naked
-013-2.gat,28,29,0|script|Spell|400,{
+013-2.gat,28,29,0|script|Spell|400,
+{
mes "You read: \"Cotton, steel, leather and wool - have I ever seen a greater fool?\"";
next;
mes "You suddenly feel naked; you ARE naked!";
diff --git a/world/map/npc/013-2/wizard.txt b/world/map/npc/013-2/wizard.txt
index 73275015..9aed2593 100644
--- a/world/map/npc/013-2/wizard.txt
+++ b/world/map/npc/013-2/wizard.txt
@@ -1,4 +1,5 @@
-013-2.gat,66,39,0|script|Old Wizard#_W|116,{
+013-2.gat,66,39,0|script|Old Wizard#_W|116,
+{
set @has_magic, getskilllv(SKILL_MAGIC);
set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_KNOWS_OLD_WIZARD;
diff --git a/world/map/npc/013-3/_mobs.txt b/world/map/npc/013-3/_mobs.txt
index 574a9d54..c2b44828 100644
--- a/world/map/npc/013-3/_mobs.txt
+++ b/world/map/npc/013-3/_mobs.txt
@@ -31,7 +31,8 @@
013-3.gat,67,46,2,1|monster|FireSkull|1023,1,120000,60000,Mob013-3::On1023
-013-3.gat,0,0,0|script|Mob013-3|-1,{
+013-3.gat,0,0,0|script|Mob013-3|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/013-3/barrier.txt b/world/map/npc/013-3/barrier.txt
index 63c5eae9..a0d5ec7e 100644
--- a/world/map/npc/013-3/barrier.txt
+++ b/world/map/npc/013-3/barrier.txt
@@ -1,6 +1,7 @@
//
-013-3.gat,71,21,0|script|#DemonMineBarrier1#_M|45,1,1,{
+013-3.gat,71,21,0|script|#DemonMineBarrier1#_M|45,1,1,
+{
callfunc "ClearVariables";
set @state, ((QUEST_Hurnscald & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT);
diff --git a/world/map/npc/013-3/mask_chest.txt b/world/map/npc/013-3/mask_chest.txt
index 4a15bc0b..87b90878 100644
--- a/world/map/npc/013-3/mask_chest.txt
+++ b/world/map/npc/013-3/mask_chest.txt
@@ -1,6 +1,7 @@
//
-013-3.gat,28,27,0|script|Chest#DemonMask|111,{
+013-3.gat,28,27,0|script|Chest#DemonMask|111,
+{
callfunc "ClearVariables";
set @state, ((QUEST_Hurnscald & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT);
diff --git a/world/map/npc/013-3/misc.txt b/world/map/npc/013-3/misc.txt
index 116adef5..eadfef13 100644
--- a/world/map/npc/013-3/misc.txt
+++ b/world/map/npc/013-3/misc.txt
@@ -1,6 +1,7 @@
//
-013-3.gat,127,68,0|script|Chest|111,{
+013-3.gat,127,68,0|script|Chest|111,
+{
mes "You can't see any way to open this chest.";
close;
}
diff --git a/world/map/npc/013-3/sword_chest.txt b/world/map/npc/013-3/sword_chest.txt
index 8c89b52d..f6b9836e 100644
--- a/world/map/npc/013-3/sword_chest.txt
+++ b/world/map/npc/013-3/sword_chest.txt
@@ -1,6 +1,7 @@
//
-013-3.gat,177,22,0|script|Chest|111,{
+013-3.gat,177,22,0|script|Chest|111,
+{
callfunc "ClearVariables";
if (FLAGS & FLAG_HURNSMINE_CHEST) goto L_Finished;
diff --git a/world/map/npc/014-1/_mobs.txt b/world/map/npc/014-1/_mobs.txt
index 371dc4d1..55e7797d 100644
--- a/world/map/npc/014-1/_mobs.txt
+++ b/world/map/npc/014-1/_mobs.txt
@@ -19,7 +19,8 @@
014-1.gat,0,0,0,0|monster|Butterfly|1055,10,30,20,Mob014-1::On1055
-014-1.gat,0,0,0|script|Mob014-1|-1,{
+014-1.gat,0,0,0|script|Mob014-1|-1,
+{
On1013:
set @mobID, 1013;
callfunc "MobPoints";
diff --git a/world/map/npc/014-1/wedding-officiator.txt b/world/map/npc/014-1/wedding-officiator.txt
index 75f31015..a576fae9 100644
--- a/world/map/npc/014-1/wedding-officiator.txt
+++ b/world/map/npc/014-1/wedding-officiator.txt
@@ -1,6 +1,7 @@
// Wedding officiator: Marriages and divorces
-014-1.gat,31,31,0|script|Wedding Officiator|164,{
+014-1.gat,31,31,0|script|Wedding Officiator|164,
+{
mes "[Wedding Officiator]";
mes "A young lady in a long, green dress is overseeing the park. As she notices you looking at her, she gives you a broad and happy smile.";
mes "\"Hi there! I'm Wendy, here for all your marriage needs!\"";
diff --git a/world/map/npc/014-3/_mobs.txt b/world/map/npc/014-3/_mobs.txt
index 7e7300c3..9b1d9701 100644
--- a/world/map/npc/014-3/_mobs.txt
+++ b/world/map/npc/014-3/_mobs.txt
@@ -4,7 +4,8 @@
014-3.gat,0,0,0,0|monster|Bat|1017,50,0,0,Mob014-3::On1017
-014-3.gat,0,0,0|script|Mob014-3|-1,{
+014-3.gat,0,0,0|script|Mob014-3|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/015-1/_mobs.txt b/world/map/npc/015-1/_mobs.txt
index ba3d41d2..a1dbcfec 100644
--- a/world/map/npc/015-1/_mobs.txt
+++ b/world/map/npc/015-1/_mobs.txt
@@ -13,7 +13,8 @@
015-1.gat,0,0,0,0|monster|MauvePlant|1029,4,270000,180000,Mob015-1::On1029
-015-1.gat,0,0,0|script|Mob015-1|-1,{
+015-1.gat,0,0,0|script|Mob015-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/015-1/alice.txt b/world/map/npc/015-1/alice.txt
index 972d48b3..bf37d874 100644
--- a/world/map/npc/015-1/alice.txt
+++ b/world/map/npc/015-1/alice.txt
@@ -1,8 +1,8 @@
// A herb collector giving the players some hints about finding and brewing
// herbs.
-015-1.gat,52,53,0|script|Alice|106,{
-
+015-1.gat,52,53,0|script|Alice|106,
+{
set @cat, ((Katze & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
set @Hiss, ((Katze & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT);
diff --git a/world/map/npc/015-1/barrier.txt b/world/map/npc/015-1/barrier.txt
index 778f2d9b..0bf5d7e1 100644
--- a/world/map/npc/015-1/barrier.txt
+++ b/world/map/npc/015-1/barrier.txt
@@ -1,7 +1,8 @@
// This barrier is for checking whether the player went outside after
// progressing with the cat quest.
-015-1.gat,59,32,0|script|#CatOutsideBarrier|0,1,1,{
+015-1.gat,59,32,0|script|#CatOutsideBarrier|0,1,1,
+{
set @catNeedsAlone, 0;
end;
}
diff --git a/world/map/npc/015-1/sword.txt b/world/map/npc/015-1/sword.txt
index 55c7c65d..e68d54ef 100644
--- a/world/map/npc/015-1/sword.txt
+++ b/world/map/npc/015-1/sword.txt
@@ -1,4 +1,5 @@
-015-1.gat,97,97,0|script|#MagicSword#_M|400,{
+015-1.gat,97,97,0|script|#MagicSword#_M|400,
+{
if (getskilllv(SKILL_MAGIC))
goto L_message;
mes "It appears to be an ordinary sword.";
diff --git a/world/map/npc/015-3/_mobs.txt b/world/map/npc/015-3/_mobs.txt
index 66c28a26..8faac86c 100644
--- a/world/map/npc/015-3/_mobs.txt
+++ b/world/map/npc/015-3/_mobs.txt
@@ -7,7 +7,8 @@
015-3.gat,40,19,1,1|monster|Spider|1012,1,100000,30000,Mob015-3::On1012
-015-3.gat,0,0,0|script|Mob015-3|-1,{
+015-3.gat,0,0,0|script|Mob015-3|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/015-3/barrier.txt b/world/map/npc/015-3/barrier.txt
index e799f8af..a1393304 100644
--- a/world/map/npc/015-3/barrier.txt
+++ b/world/map/npc/015-3/barrier.txt
@@ -1,8 +1,8 @@
// You can only enter the cat cave naked, otherwise the cat's reaction scares
// you away. You can also get in while wearing the cat ears.
-015-3.gat,31,42,0|script|#CatCaveBarrier|45,1,1,{
-
+015-3.gat,31,42,0|script|#CatCaveBarrier|45,1,1,
+{
set @Hiss, ((Katze & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT);
if (getequipid(equip_head) != 1217
&& (getequipid(equip_head) > 0
diff --git a/world/map/npc/015-3/katze.txt b/world/map/npc/015-3/katze.txt
index 75e87be3..d90cd10c 100644
--- a/world/map/npc/015-3/katze.txt
+++ b/world/map/npc/015-3/katze.txt
@@ -16,8 +16,8 @@
// * 2 Hard spikes
// * 2 Tiny potions
-015-3.gat,32,25,0|script|Katze|172,{
-
+015-3.gat,32,25,0|script|Katze|172,
+{
set @cat, ((Katze & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
if (@cat == 1 && @catNeedsAlone == 0) goto L_NeedsFood;
diff --git a/world/map/npc/015-3/pot.txt b/world/map/npc/015-3/pot.txt
index 03f2b2c8..cb38b344 100644
--- a/world/map/npc/015-3/pot.txt
+++ b/world/map/npc/015-3/pot.txt
@@ -1,7 +1,7 @@
// The pot where the player can deposit stuff for the cat.
-015-3.gat,37,29,0|script|Pot|400,{
-
+015-3.gat,37,29,0|script|Pot|400,
+{
set @cat, ((Katze & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
if (@cat > 0)
diff --git a/world/map/npc/016-1/_mobs.txt b/world/map/npc/016-1/_mobs.txt
index c0f03028..b56c1f58 100644
--- a/world/map/npc/016-1/_mobs.txt
+++ b/world/map/npc/016-1/_mobs.txt
@@ -13,7 +13,8 @@
016-1.gat,0,0,0,0|monster|Silkworm|1035,7,150000,7000,Mob016-1::On1035
-016-1.gat,0,0,0|script|Mob016-1|-1,{
+016-1.gat,0,0,0|script|Mob016-1|-1,
+{
On1003:
set @mobID, 1003;
callfunc "MobPoints";
diff --git a/world/map/npc/016-1/gwendolyn.txt b/world/map/npc/016-1/gwendolyn.txt
index 47b8e463..30521be5 100644
--- a/world/map/npc/016-1/gwendolyn.txt
+++ b/world/map/npc/016-1/gwendolyn.txt
@@ -21,7 +21,8 @@
// 5, state5: you are ready to do the targeting minigame
// 6, state6: you did the minigame
-016-1.gat,33,45,0|script|Gwendolyn|182,{
+016-1.gat,33,45,0|script|Gwendolyn|182,
+{
// schoolfee in gp
set @SCHOOLFEE, 25000;
// how many eggs do you need of each kind?
diff --git a/world/map/npc/017-1/_mobs.txt b/world/map/npc/017-1/_mobs.txt
index 07fede56..781dd7d3 100644
--- a/world/map/npc/017-1/_mobs.txt
+++ b/world/map/npc/017-1/_mobs.txt
@@ -21,7 +21,8 @@
017-1.gat,0,0,0,0|monster|Squirrel|1038,30,20,10,Mob017-1::On1038
-017-1.gat,0,0,0|script|Mob017-1|-1,{
+017-1.gat,0,0,0|script|Mob017-1|-1,
+{
On1011:
set @mobID, 1011;
callfunc "MobPoints";
diff --git a/world/map/npc/017-2/_mobs.txt b/world/map/npc/017-2/_mobs.txt
index c2355097..1fa5a2ef 100644
--- a/world/map/npc/017-2/_mobs.txt
+++ b/world/map/npc/017-2/_mobs.txt
@@ -3,6 +3,7 @@
-017-2.gat,0,0,0|script|Mob017-2|-1,{
+017-2.gat,0,0,0|script|Mob017-2|-1,
+{
end;
}
diff --git a/world/map/npc/017-3/_mobs.txt b/world/map/npc/017-3/_mobs.txt
index da7b8a06..c1312235 100644
--- a/world/map/npc/017-3/_mobs.txt
+++ b/world/map/npc/017-3/_mobs.txt
@@ -3,6 +3,7 @@
-017-3.gat,0,0,0|script|Mob017-3|-1,{
+017-3.gat,0,0,0|script|Mob017-3|-1,
+{
end;
}
diff --git a/world/map/npc/017-4/_mobs.txt b/world/map/npc/017-4/_mobs.txt
index d0afa2fe..e6678f62 100644
--- a/world/map/npc/017-4/_mobs.txt
+++ b/world/map/npc/017-4/_mobs.txt
@@ -3,6 +3,7 @@
-017-4.gat,0,0,0|script|Mob017-4|-1,{
+017-4.gat,0,0,0|script|Mob017-4|-1,
+{
end;
}
diff --git a/world/map/npc/017-9/_mobs.txt b/world/map/npc/017-9/_mobs.txt
index b1a6a8d0..b43738be 100644
--- a/world/map/npc/017-9/_mobs.txt
+++ b/world/map/npc/017-9/_mobs.txt
@@ -3,6 +3,7 @@
-017-9.gat,0,0,0|script|Mob017-9|-1,{
+017-9.gat,0,0,0|script|Mob017-9|-1,
+{
end;
}
diff --git a/world/map/npc/018-1/_mobs.txt b/world/map/npc/018-1/_mobs.txt
index 78f9caec..e0665795 100644
--- a/world/map/npc/018-1/_mobs.txt
+++ b/world/map/npc/018-1/_mobs.txt
@@ -29,7 +29,8 @@
018-1.gat,0,0,0,0|monster|Butterfly|1055,20,30,20,Mob018-1::On1055
-018-1.gat,0,0,0|script|Mob018-1|-1,{
+018-1.gat,0,0,0|script|Mob018-1|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/018-1/mike.txt b/world/map/npc/018-1/mike.txt
index 33c33c52..e4c475f8 100644
--- a/world/map/npc/018-1/mike.txt
+++ b/world/map/npc/018-1/mike.txt
@@ -1,5 +1,5 @@
-018-1.gat,77,60,0|script|Mike|113,{
-
+018-1.gat,77,60,0|script|Mike|113,
+{
mes "[Mike]";
mes "\"I need black stingers to make some medicine to cure my sister.\"";
next;
diff --git a/world/map/npc/018-1/miners.txt b/world/map/npc/018-1/miners.txt
index f372b120..a83498ed 100644
--- a/world/map/npc/018-1/miners.txt
+++ b/world/map/npc/018-1/miners.txt
@@ -1,6 +1,7 @@
//
-018-1.gat,80,61,0|script|Miner|109,{
+018-1.gat,80,61,0|script|Miner|109,
+{
mes "[Miner]";
mes "\"Be careful in there.\"";
close;
diff --git a/world/map/npc/018-1/sword.txt b/world/map/npc/018-1/sword.txt
index 607c3dbf..271fc39d 100644
--- a/world/map/npc/018-1/sword.txt
+++ b/world/map/npc/018-1/sword.txt
@@ -1,4 +1,5 @@
-018-1.gat,110,43,0|script|#IceSword#_M|400,{
+018-1.gat,110,43,0|script|#IceSword#_M|400,
+{
if (getskilllv(SKILL_MAGIC))
goto L_message;
close;
diff --git a/world/map/npc/018-2/_mobs.txt b/world/map/npc/018-2/_mobs.txt
index 5e24ee51..accf49f0 100644
--- a/world/map/npc/018-2/_mobs.txt
+++ b/world/map/npc/018-2/_mobs.txt
@@ -4,7 +4,8 @@
018-2.gat,114,21,4,3|monster|YellowSlime|1007,1,100000,30000,Mob018-2::On1007
-018-2.gat,0,0,0|script|Mob018-2|-1,{
+018-2.gat,0,0,0|script|Mob018-2|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/018-2/angus.txt b/world/map/npc/018-2/angus.txt
index f44bef56..cfc11587 100644
--- a/world/map/npc/018-2/angus.txt
+++ b/world/map/npc/018-2/angus.txt
@@ -1,6 +1,7 @@
// Angus the craftsman
-018-2.gat,31,39,0|script|Angus|147,{
+018-2.gat,31,39,0|script|Angus|147,
+{
set @honorific$, "lad";
if (Sex == 0) set @honorific$, "lass";
diff --git a/world/map/npc/018-2/books.txt b/world/map/npc/018-2/books.txt
index 25bbe3fe..90c4d090 100644
--- a/world/map/npc/018-2/books.txt
+++ b/world/map/npc/018-2/books.txt
@@ -1,6 +1,7 @@
//
-018-2.gat,112,19,0|script|#Bookcase38|400,0,1{
+018-2.gat,112,19,0|script|#Bookcase38|400,0,1
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/018-2/caul.txt b/world/map/npc/018-2/caul.txt
index 3b5f771f..8da98bdc 100644
--- a/world/map/npc/018-2/caul.txt
+++ b/world/map/npc/018-2/caul.txt
@@ -7,7 +7,8 @@
//#
//#################################################################################
-018-2.gat,37,22,0|script|Caul|107,{
+018-2.gat,37,22,0|script|Caul|107,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/018-2/miners.txt b/world/map/npc/018-2/miners.txt
index 21d57957..d4397492 100644
--- a/world/map/npc/018-2/miners.txt
+++ b/world/map/npc/018-2/miners.txt
@@ -1,7 +1,8 @@
// This NPC makes gem powders out of gemstones
// Authors: Ali-G, enchilado, Jenalya
-018-2.gat,85,23,0|script|Malek|109,{
+018-2.gat,85,23,0|script|Malek|109,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/018-2/receptionist.txt b/world/map/npc/018-2/receptionist.txt
index 5f03c4b1..019e6f42 100644
--- a/world/map/npc/018-2/receptionist.txt
+++ b/world/map/npc/018-2/receptionist.txt
@@ -1,6 +1,7 @@
//
-018-2.gat,50,24,0|script|Receptionist|108,{
+018-2.gat,50,24,0|script|Receptionist|108,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
diff --git a/world/map/npc/018-3/_mobs.txt b/world/map/npc/018-3/_mobs.txt
index 51689cd4..d3fbcf92 100644
--- a/world/map/npc/018-3/_mobs.txt
+++ b/world/map/npc/018-3/_mobs.txt
@@ -28,7 +28,8 @@
018-3.gat,68,101,5,4|monster|Snake|1010,4,60000,30000,Mob018-3::On1010
-018-3.gat,0,0,0|script|Mob018-3|-1,{
+018-3.gat,0,0,0|script|Mob018-3|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/018-3/bookcase.txt b/world/map/npc/018-3/bookcase.txt
index 72716754..f30ff1da 100644
--- a/world/map/npc/018-3/bookcase.txt
+++ b/world/map/npc/018-3/bookcase.txt
@@ -1,6 +1,7 @@
//
-018-3.gat,75,123,0|script|#DemonMineBookcase1|400,{
+018-3.gat,75,123,0|script|#DemonMineBookcase1|400,
+{
callfunc "ClearVariables";
set @state, ((QUEST_Hurnscald & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT);
diff --git a/world/map/npc/018-3/evil-obelisk.txt b/world/map/npc/018-3/evil-obelisk.txt
index aec1345b..85f9ca20 100644
--- a/world/map/npc/018-3/evil-obelisk.txt
+++ b/world/map/npc/018-3/evil-obelisk.txt
@@ -1,6 +1,7 @@
//
-018-3.gat,67,28,0|script|Evil Obelisk|185,{
+018-3.gat,67,28,0|script|Evil Obelisk|185,
+{
callfunc "ClearVariables";
set @map$, "018-3.gat";
set @x0, 56;
diff --git a/world/map/npc/018-3/sword.txt b/world/map/npc/018-3/sword.txt
index 703890f3..8df51f67 100644
--- a/world/map/npc/018-3/sword.txt
+++ b/world/map/npc/018-3/sword.txt
@@ -1,4 +1,5 @@
-018-3.gat,71,127,0|script|#DemonSword#_M|400,{
+018-3.gat,71,127,0|script|#DemonSword#_M|400,
+{
if (getskilllv(SKILL_MAGIC))
goto L_message;
close;
diff --git a/world/map/npc/019-1/_mobs.txt b/world/map/npc/019-1/_mobs.txt
index fb76550e..c638f1b0 100644
--- a/world/map/npc/019-1/_mobs.txt
+++ b/world/map/npc/019-1/_mobs.txt
@@ -6,7 +6,8 @@
019-1.gat,0,0,0,0|monster|WhiteBell|1095,5,100000,30000,Mob019-1::On1095
-019-1.gat,0,0,0|script|Mob019-1|-1,{
+019-1.gat,0,0,0|script|Mob019-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/019-1/mobmanager.txt b/world/map/npc/019-1/mobmanager.txt
index ef9e0c73..b2269658 100644
--- a/world/map/npc/019-1/mobmanager.txt
+++ b/world/map/npc/019-1/mobmanager.txt
@@ -1,6 +1,7 @@
// Spawns mobs
-019-1.gat,0,0,0|script|SpawnManager|-1,{
+019-1.gat,0,0,0|script|SpawnManager|-1,
+{
end; // just to be secure
onInit:
diff --git a/world/map/npc/019-1/santa_helper.txt b/world/map/npc/019-1/santa_helper.txt
index e0b7456d..758a1b0a 100644
--- a/world/map/npc/019-1/santa_helper.txt
+++ b/world/map/npc/019-1/santa_helper.txt
@@ -1,7 +1,8 @@
// Author: accoring to git history probably Jaxad
// quest made seasonal and adapted to new scripting standards by Jenalya
-019-1.gat,74,75,0|script|Santa's Helper|105,{
+019-1.gat,74,75,0|script|Santa's Helper|105,
+{
callfunc "ClearVariables";
if (FLAGS & FLAG_SANTAS_HELPER) goto L_Done;
if ((gettime(6) == 12) || ((gettime(6) == 1) && (gettime(5) < 7))) goto L_Quest;
diff --git a/world/map/npc/019-1/snowman.txt b/world/map/npc/019-1/snowman.txt
index b2c8a67d..261336f9 100644
--- a/world/map/npc/019-1/snowman.txt
+++ b/world/map/npc/019-1/snowman.txt
@@ -1,7 +1,8 @@
// Author: accoring to git history probably Jaxad
// quest made seasonal and adapted to new scripting standards by Jenalya
-019-1.gat,77,44,0|script|Snowman|129,{
+019-1.gat,77,44,0|script|Snowman|129,
+{
callfunc "ClearVariables";
if (FLAGS & FLAG_SNOWMAN) goto L_Done;
if (gettime(6) == 12 || gettime(6) == 1 || gettime(6) == 2) goto L_Quest;
diff --git a/world/map/npc/019-3/_mobs.txt b/world/map/npc/019-3/_mobs.txt
index 1592d3dc..eca884fd 100644
--- a/world/map/npc/019-3/_mobs.txt
+++ b/world/map/npc/019-3/_mobs.txt
@@ -5,7 +5,8 @@
019-3.gat,0,0,0,0|monster|Bat|1017,50,100000,30000,Mob019-3::On1017
-019-3.gat,0,0,0|script|Mob019-3|-1,{
+019-3.gat,0,0,0|script|Mob019-3|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/019-4/_mobs.txt b/world/map/npc/019-4/_mobs.txt
index d1686d01..109df48b 100644
--- a/world/map/npc/019-4/_mobs.txt
+++ b/world/map/npc/019-4/_mobs.txt
@@ -7,7 +7,8 @@
019-4.gat,0,0,0,0|monster|BlueSlime|1091,7,45000,30000,Mob019-4::On1091
-019-4.gat,0,0,0|script|Mob019-4|-1,{
+019-4.gat,0,0,0|script|Mob019-4|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/020-1/KrickKrackKrock.txt b/world/map/npc/020-1/KrickKrackKrock.txt
index 59f02370..14a23bb9 100644
--- a/world/map/npc/020-1/KrickKrackKrock.txt
+++ b/world/map/npc/020-1/KrickKrackKrock.txt
@@ -3,8 +3,8 @@
//To enable: sed 's_^// __' -i npc/020-1/KrickKrackKrock.txt
-// 020-1.gat,82,82,0|script|Criker|192,{
-
+// 020-1.gat,82,82,0|script|Criker|192,
+// {
// L_Main:
// //Var
diff --git a/world/map/npc/020-1/_mobs.txt b/world/map/npc/020-1/_mobs.txt
index 8bba5b8b..e988ed19 100644
--- a/world/map/npc/020-1/_mobs.txt
+++ b/world/map/npc/020-1/_mobs.txt
@@ -4,7 +4,8 @@
020-1.gat,0,0,0,0|monster|WhiteBell|1095,3,100000,30000,Mob020-1::On1095
-020-1.gat,0,0,0|script|Mob020-1|-1,{
+020-1.gat,0,0,0|script|Mob020-1|-1,
+{
On1095:
set @mobID, 1095;
callfunc "MobPoints";
diff --git a/world/map/npc/020-1/rockscissor.txt b/world/map/npc/020-1/rockscissor.txt
index 9cd8b757..a4ca909e 100644
--- a/world/map/npc/020-1/rockscissor.txt
+++ b/world/map/npc/020-1/rockscissor.txt
@@ -11,7 +11,8 @@
//To enable: sed 's_^// __' -i npc/020-1/rockscissor.txt
-// 020-1.gat,74,78,0|script|Gobmel|189,{
+// 020-1.gat,74,78,0|script|Gobmel|189,
+// {
// //var
// set @NPC_name$, "[Gobmel]";
// set @NPC_point, 0;
diff --git a/world/map/npc/020-1/soul-menhir.txt b/world/map/npc/020-1/soul-menhir.txt
index cdcc05c1..75ba384a 100644
--- a/world/map/npc/020-1/soul-menhir.txt
+++ b/world/map/npc/020-1/soul-menhir.txt
@@ -1,6 +1,7 @@
//
-020-1.gat,63,89,0|script|Soul Menhir|346,{
+020-1.gat,63,89,0|script|Soul Menhir|346,
+{
callfunc "ClearVariables";
set @map$, "020-1.gat";
setarray @Xs, 62, 63, 64, 62, 64, 62, 64;
diff --git a/world/map/npc/020-1/well.txt b/world/map/npc/020-1/well.txt
index 265ce212..17b63c5c 100644
--- a/world/map/npc/020-1/well.txt
+++ b/world/map/npc/020-1/well.txt
@@ -14,8 +14,8 @@
//# used variables: QUEST_Nivalis_state Nibble4
//############################################
-020-1.gat,99,83,0|script|#Well|400,{
-
+020-1.gat,99,83,0|script|#Well|400,
+{
set @Q_MASK, NIBBLE_4_MASK;
set @Q_SHIFT, NIBBLE_4_SHIFT;
set @Q_status, ((QUEST_Nivalis_state) & @Q_MASK) >> @Q_SHIFT;
@@ -97,7 +97,8 @@ S_Update_Var:
return;
}
-020-2.gat,100,28,0|script|Miler|100,{
+020-2.gat,100,28,0|script|Miler|100,
+{
set @Q_MASK, NIBBLE_4_MASK;
set @Q_SHIFT, NIBBLE_4_SHIFT;
set @Q_status, ((QUEST_Nivalis_state) & @Q_MASK) >> @Q_SHIFT;
diff --git a/world/map/npc/020-2/_mobs.txt b/world/map/npc/020-2/_mobs.txt
index 01a67c89..8d1af8c3 100644
--- a/world/map/npc/020-2/_mobs.txt
+++ b/world/map/npc/020-2/_mobs.txt
@@ -3,6 +3,7 @@
-020-2.gat,0,0,0|script|Mob020-2|-1,{
+020-2.gat,0,0,0|script|Mob020-2|-1,
+{
end;
}
diff --git a/world/map/npc/020-2/baktar.txt b/world/map/npc/020-2/baktar.txt
index 8e88e30d..2ac3cec6 100644
--- a/world/map/npc/020-2/baktar.txt
+++ b/world/map/npc/020-2/baktar.txt
@@ -31,7 +31,8 @@
//# bit 0 knows the name/location of the opponent
//# bit 1 killed the ugly opponent
//#=========================
-020-2.gat,70,61,0|script|Baktar|191,{
+020-2.gat,70,61,0|script|Baktar|191,
+{
set @npcname$, "[Baktar]";
set @Q_MASK, BYTE_0_MASK;
diff --git a/world/map/npc/020-2/banker.txt b/world/map/npc/020-2/banker.txt
index 9bbdd86d..7fb3b511 100644
--- a/world/map/npc/020-2/banker.txt
+++ b/world/map/npc/020-2/banker.txt
@@ -1,11 +1,13 @@
-020-2.gat,122,64,0|script|Ben|193,{
+020-2.gat,122,64,0|script|Ben|193,
+{
callfunc "ClearVariables";
set @npcname$, "Ben";
callfunc "Banker";
close;
}
-020-2.gat,127,63,0|script|Maria|190,{
+020-2.gat,127,63,0|script|Maria|190,
+{
mes "[Maria]";
mes "\"Hello!";
mes "\"Isn't it great?\"";
diff --git a/world/map/npc/020-2/furquest.txt b/world/map/npc/020-2/furquest.txt
index 81bb245e..0f0b2957 100644
--- a/world/map/npc/020-2/furquest.txt
+++ b/world/map/npc/020-2/furquest.txt
@@ -3,8 +3,8 @@
//#################################################################################
// Tulimshar Crafting Workshop - Agostine, The Legendary Tailor
-020-2.gat,27,26,0|script|Agostine|137,{
-
+020-2.gat,27,26,0|script|Agostine|137,
+{
set @CUTFUR_EXP, 10;
set @FINEDRESS_COTTON_CLOTHS, 20;
set @FINEDRESS_GP, 20000;
diff --git a/world/map/npc/020-2/shops.txt b/world/map/npc/020-2/shops.txt
index 3cb03c7d..80399668 100644
--- a/world/map/npc/020-2/shops.txt
+++ b/world/map/npc/020-2/shops.txt
@@ -1,7 +1,8 @@
// Snow town shops
// About the Area NPC
-020-2.gat,75,28,0|script|Taylor|137,{
+020-2.gat,75,28,0|script|Taylor|137,
+{
mes "[Taylor]";
mes "\"While it can be dangerous up here in Kaizei, I take comfort that Nivalis is not surrounded by the Yeti like Thermin is. What a weird town.\"";
next;
@@ -18,7 +19,8 @@
020-2.gat,75,24,0|shop|Mede|103,CactusDrink :-1, CactusPotion :-1, IronPotion :-1, ConcentrationPotion :-1
// INN
-020-2.gat,111,23,0|script|Kane|120,{
+020-2.gat,111,23,0|script|Kane|120,
+{
set @npcname$, "Kane the Inn Keeper";
set @cost, 100;
diff --git a/world/map/npc/020-3/_mobs.txt b/world/map/npc/020-3/_mobs.txt
index 47d1ca5f..8611e97e 100644
--- a/world/map/npc/020-3/_mobs.txt
+++ b/world/map/npc/020-3/_mobs.txt
@@ -7,7 +7,8 @@
020-3.gat,0,0,0,0|monster|Pinkie|1018,10,0,0,Mob020-3::On1018
-020-3.gat,0,0,0|script|Mob020-3|-1,{
+020-3.gat,0,0,0|script|Mob020-3|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/021-1/_mobs.txt b/world/map/npc/021-1/_mobs.txt
index 7878ff89..fc45882c 100644
--- a/world/map/npc/021-1/_mobs.txt
+++ b/world/map/npc/021-1/_mobs.txt
@@ -8,7 +8,8 @@
021-1.gat,98,24,2,2|monster|SeaSlime|1033,1,150000,100000,Mob021-1::On1033
-021-1.gat,0,0,0|script|Mob021-1|-1,{
+021-1.gat,0,0,0|script|Mob021-1|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/021-1/bakery.txt b/world/map/npc/021-1/bakery.txt
index 5e243920..12c352bc 100644
--- a/world/map/npc/021-1/bakery.txt
+++ b/world/map/npc/021-1/bakery.txt
@@ -2,7 +2,8 @@
021-1.gat,105,104,0|shop|Ara|163,WhiteCake :-1,ChocolateCake :-1,OrangeCake :-1,AppleCake :-1,CherryCake :-1
-021-1.gat,108,102,0|script|Itka|114,{
+021-1.gat,108,102,0|script|Itka|114,
+{
mes "[Itka]";
mes "\"This bakery is the best!\"";
close;
diff --git a/world/map/npc/021-1/banu.txt b/world/map/npc/021-1/banu.txt
index 1e9d462c..2bff70e2 100644
--- a/world/map/npc/021-1/banu.txt
+++ b/world/map/npc/021-1/banu.txt
@@ -3,8 +3,8 @@
// Using bit 10 and 11 of QUEST_NorthTulimshar (second half of nibble 2)
// author: Jenalya
-021-1.gat,102,54,0|script|Banu|154,{
-
+021-1.gat,102,54,0|script|Banu|154,
+{
set @BanuNT_MASK, 0xC00;
set @BanuNT_SHIFT, 10;
set @state, ((QUEST_NorthTulimshar & @BanuNT_MASK) >> @BanuNT_SHIFT);
diff --git a/world/map/npc/021-1/eurni.txt b/world/map/npc/021-1/eurni.txt
index 16a2ea77..0170c6b6 100644
--- a/world/map/npc/021-1/eurni.txt
+++ b/world/map/npc/021-1/eurni.txt
@@ -1,6 +1,7 @@
//
-021-1.gat,141,113,0|script|Eurni|136,{
+021-1.gat,141,113,0|script|Eurni|136,
+{
set @hw2011_npc_id, $@hw2011_npc_eurni;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/021-1/gate_guards.txt b/world/map/npc/021-1/gate_guards.txt
index ad0e80b4..52fa5a4b 100644
--- a/world/map/npc/021-1/gate_guards.txt
+++ b/world/map/npc/021-1/gate_guards.txt
@@ -1,45 +1,52 @@
// Various guards at gates
// Guards by the gates to the port
-021-1.gat,70,23,0|script|Guard|104,{
+021-1.gat,70,23,0|script|Guard|104,
+{
mes "[Guard]";
mes "\"Lots of stuff happens in the port district. Those sailors can get quite rowdy.\"";
close;
}
-021-1.gat,110,23,0|script|Guard|104,{
+021-1.gat,110,23,0|script|Guard|104,
+{
mes "[Guard]";
mes "\"I'm not quite sure why I'm here, since that bridge is out.\"";
close;
}
// Guard near the magic school
-021-1.gat,46,65,0|script|Guard|104,{
+021-1.gat,46,65,0|script|Guard|104,
+{
mes "[Guard]";
mes "\"I'm just here to provide a presence for the guards at this gate. The mages here can defend themselves without problem.\"";
close;
}
// Guards by the gates to East Tulimshar
-021-1.gat,146,23,0|script|Guard|104,{
+021-1.gat,146,23,0|script|Guard|104,
+{
mes "[Guard]";
mes "\"I make sure less desirables don't enter the Noble District.\"";
close;
}
-021-1.gat,156,42,0|script|Guard|104,{
+021-1.gat,156,42,0|script|Guard|104,
+{
mes "[Guard]";
mes "\"The volcano and earthquake did a lot of damage, but the citizens of Tulimshar sure did a good job of cleaning up.\"";
close;
}
-021-1.gat,156,95,0|script|Guard|104,{
+021-1.gat,156,95,0|script|Guard|104,
+{
mes "[Guard]";
mes "\"The Palace is East of here. That is where you will find the Council of Wizards.\"";
close;
}
// Near the bazaar, outside the government building
-021-1.gat,55,136,0|script|Guard|123,{
+021-1.gat,55,136,0|script|Guard|123,
+{
mes "[Guard]";
mes "\"This is a government building. They have some clerical and tax offices in here. There is also a jail in the subbasement.\"";
close;
diff --git a/world/map/npc/021-1/hetchel.txt b/world/map/npc/021-1/hetchel.txt
index e7ca7bd9..d2ed7012 100644
--- a/world/map/npc/021-1/hetchel.txt
+++ b/world/map/npc/021-1/hetchel.txt
@@ -17,7 +17,8 @@
// @SHEET_ZENY : Money to pay per sheet: A sixth of 10000-2*500-6000
// @SheetCount Number of sheets to buy (variable).
-021-1.gat,120,39,0|script|Hetchel|376,{
+021-1.gat,120,39,0|script|Hetchel|376,
+{
set @SHEET_COCOONS_NR, 25;
set @SHEET_ZENY, 500;
set @SheetCount, 0;
diff --git a/world/map/npc/021-1/hideandseek.txt b/world/map/npc/021-1/hideandseek.txt
index 22b0c86b..fb789340 100644
--- a/world/map/npc/021-1/hideandseek.txt
+++ b/world/map/npc/021-1/hideandseek.txt
@@ -6,7 +6,8 @@
// bit 7: unused
// Author: Jenalya
--|script|#hideandseekNTconfig|-1,{
+-|script|#hideandseekNTconfig|-1,
+{
OnInit:
set $@hideandseekNT_MASK, BYTE_0_MASK;
set $@hideandseekNT_SHIFT, BYTE_0_SHIFT;
@@ -21,8 +22,8 @@ OnInit:
end;
}
-021-1.gat,87,66,0|script|Ayasha|258,{
-
+021-1.gat,87,66,0|script|Ayasha|258,
+{
set @state, ((QUEST_NorthTulimshar & $@hideandseekNT_MASK) >> $@hideandseekNT_SHIFT);
set @EXP, 75;
@@ -81,8 +82,8 @@ L_Close:
close;
}
-021-1.gat,63,107,0|script|Latif|262,{
-
+021-1.gat,63,107,0|script|Latif|262,
+{
set @state, ((QUEST_NorthTulimshar & $@hideandseekNT_MASK) >> $@hideandseekNT_SHIFT);
set @EXP, 15;
@@ -136,8 +137,8 @@ L_Close:
close;
}
-021-1.gat,123,116,0|script|Charda|260,{
-
+021-1.gat,123,116,0|script|Charda|260,
+{
set @state, ((QUEST_NorthTulimshar & $@hideandseekNT_MASK) >> $@hideandseekNT_SHIFT);
set @EXP, 15;
@@ -188,8 +189,8 @@ L_Close:
close;
}
-021-1.gat,78,87,0|script|Faris|259,{
-
+021-1.gat,78,87,0|script|Faris|259,
+{
set @state, ((QUEST_NorthTulimshar & $@hideandseekNT_MASK) >> $@hideandseekNT_SHIFT);
set @EXP, 25;
@@ -236,8 +237,8 @@ L_Close:
close;
}
-021-1.gat,98,25,0|script|Rasin|263,{
-
+021-1.gat,98,25,0|script|Rasin|263,
+{
set @state, ((QUEST_NorthTulimshar & $@hideandseekNT_MASK) >> $@hideandseekNT_SHIFT);
set @EXP, 15;
@@ -275,8 +276,8 @@ L_Close:
close;
}
-021-1.gat,155,25,0|script|Ghada|265,{
-
+021-1.gat,155,25,0|script|Ghada|265,
+{
set @state, ((QUEST_NorthTulimshar & $@hideandseekNT_MASK) >> $@hideandseekNT_SHIFT);
set @EXP, 15;
diff --git a/world/map/npc/021-1/imec.txt b/world/map/npc/021-1/imec.txt
index ac541c87..ee46d688 100644
--- a/world/map/npc/021-1/imec.txt
+++ b/world/map/npc/021-1/imec.txt
@@ -3,15 +3,16 @@
// Using bit 8 and 9 of QUEST_NorthTulimshar (first half of nibble 2)
// author: Jenalya
--|script|#ImecShopConfig|-1,{
+-|script|#ImecShopConfig|-1,
+{
OnInit:
set $@ImecShopNT_MASK, 0x300;
set $@ImecShopNT_SHIFT, 8;
end;
}
-021-1.gat,120,33,0|script|Imec|162,{
-
+021-1.gat,120,33,0|script|Imec|162,
+{
set @state, ((QUEST_NorthTulimshar & $@ImecShopNT_MASK) >> $@ImecShopNT_SHIFT);
set @money, 500;
diff --git a/world/map/npc/021-1/inac.txt b/world/map/npc/021-1/inac.txt
index 9ac054fc..b5b8fa45 100644
--- a/world/map/npc/021-1/inac.txt
+++ b/world/map/npc/021-1/inac.txt
@@ -1,6 +1,7 @@
//
-021-1.gat,53,103,0|script|Inac|156,{
+021-1.gat,53,103,0|script|Inac|156,
+{
set @hw2011_npc_id, $@hw2011_npc_inac;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/021-1/north_shops.txt b/world/map/npc/021-1/north_shops.txt
index 71b9e757..b4e03d28 100644
--- a/world/map/npc/021-1/north_shops.txt
+++ b/world/map/npc/021-1/north_shops.txt
@@ -5,12 +5,14 @@
// Some clothing
021-1.gat,135,38,0|shop|Inar|108,CottonShirt :-1,CottonShorts :-1,CottonBoots :-1,DesertShirt :-1,SilkRobe :-5,DesertHat :-4
-021-1.gat,129,40,0|script|Well|400,{
+021-1.gat,129,40,0|script|Well|400,
+{
callfunc "WaterBottle";
}
// An officer (for security)
-021-1.gat,128,36,0|script|Officer|150,{
+021-1.gat,128,36,0|script|Officer|150,
+{
mes "[Officer]";
mes "I'm here for extra security for this market.";
close;
@@ -18,8 +20,8 @@
// A snobby store that won't sell to the player
// takes part in quest given by 021-2/kylian.txt
-021-1.gat,138,29,0|script|Latoy|106,{
-
+021-1.gat,138,29,0|script|Latoy|106,
+{
set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowLatoyNT;
set @kylian, ((QUEST_NorthTulimshar & $@businessmanNT_MASK) >> $@businessmanNT_SHIFT);
diff --git a/world/map/npc/021-1/npcs.txt b/world/map/npc/021-1/npcs.txt
index 662a69e2..40b100e1 100644
--- a/world/map/npc/021-1/npcs.txt
+++ b/world/map/npc/021-1/npcs.txt
@@ -1,6 +1,7 @@
// Talk NPCs to help make trek interesting between Tutorial and Bazaar.
-021-1.gat,77,42,0|script|Jeric|214,{
+021-1.gat,77,42,0|script|Jeric|214,
+{
set @npcname$, "Jeric";
mes "[" + @npcname$ + "]";
@@ -10,7 +11,8 @@
close;
}
-021-1.gat,76,67,0|script|Silvia|207,{
+021-1.gat,76,67,0|script|Silvia|207,
+{
set @npcname$, "Silvia";
mes "[" + @npcname$ + "]";
@@ -22,7 +24,8 @@
close;
}
-021-1.gat,55,66,0|script|Pauline|208,{
+021-1.gat,55,66,0|script|Pauline|208,
+{
set @npcname$, "Pauline";
mes "[" + @npcname$ + "]";
@@ -32,7 +35,8 @@
close;
}
-021-1.gat,51,123,0|script|Michel|215,{
+021-1.gat,51,123,0|script|Michel|215,
+{
set @npcname$, "Michel";
mes "[" + @npcname$ + "]";
diff --git a/world/map/npc/021-1/sewer_east.txt b/world/map/npc/021-1/sewer_east.txt
index cda4e3f3..5dae481e 100644
--- a/world/map/npc/021-1/sewer_east.txt
+++ b/world/map/npc/021-1/sewer_east.txt
@@ -1,6 +1,7 @@
// The Sewer Grate
-021-1.gat,145,136,0|script|#tulimsharsewer2|45,0,0,{
+021-1.gat,145,136,0|script|#tulimsharsewer2|45,0,0,
+{
mes "Descend into the sewers?";
next;
menu
diff --git a/world/map/npc/021-1/sewer_north.txt b/world/map/npc/021-1/sewer_north.txt
index 02feba73..572dbb5b 100644
--- a/world/map/npc/021-1/sewer_north.txt
+++ b/world/map/npc/021-1/sewer_north.txt
@@ -1,6 +1,7 @@
// The Sewer Grate
-021-1.gat,124,41,0|script|#tulimsharsewer1|45,0,0,{
+021-1.gat,124,41,0|script|#tulimsharsewer1|45,0,0,
+{
mes "Descend into the sewers?";
next;
menu
diff --git a/world/map/npc/021-1/sewer_west.txt b/world/map/npc/021-1/sewer_west.txt
index 423aff0c..fcb3aa25 100644
--- a/world/map/npc/021-1/sewer_west.txt
+++ b/world/map/npc/021-1/sewer_west.txt
@@ -1,6 +1,7 @@
// The Sewer Grate
-021-1.gat,52,104,0|script|#tulimsharsewer3|45,0,0,{
+021-1.gat,52,104,0|script|#tulimsharsewer3|45,0,0,
+{
mes "Descend into the sewers?";
next;
menu
diff --git a/world/map/npc/021-1/weellos.txt b/world/map/npc/021-1/weellos.txt
index d86f7221..b3321eb4 100644
--- a/world/map/npc/021-1/weellos.txt
+++ b/world/map/npc/021-1/weellos.txt
@@ -1,7 +1,8 @@
// A historian
// takes part in quest given by 021-2/kylian.txt
-021-1.gat,130,125,0|script|Weellos|103,{
+021-1.gat,130,125,0|script|Weellos|103,
+{
set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowWeellosNT;
set @kylian, ((QUEST_NorthTulimshar & $@businessmanNT_MASK) >> $@businessmanNT_SHIFT);
diff --git a/world/map/npc/021-1/workers.txt b/world/map/npc/021-1/workers.txt
index fcbed396..59419da0 100644
--- a/world/map/npc/021-1/workers.txt
+++ b/world/map/npc/021-1/workers.txt
@@ -1,18 +1,21 @@
//
-021-1.gat,144,22,0|script|Construction Worker|155,{
+021-1.gat,144,22,0|script|Construction Worker|155,
+{
mes "[Construction worker]";
mes "\"I can't let you beyond this gate. The area is closed for renovation.\"";
close;
}
-021-1.gat,156,97,0|script|Construction Worker|155,{
+021-1.gat,156,97,0|script|Construction Worker|155,
+{
mes "[Construction worker]";
mes "\"East Tulimshar is closed for repairs.\"";
close;
}
-021-1.gat,156,44,0|script|Construction Worker|155,{
+021-1.gat,156,44,0|script|Construction Worker|155,
+{
mes "[Construction worker]";
mes "\"East Tulimshar is closed for repairs.\"";
close;
diff --git a/world/map/npc/021-2/_mobs.txt b/world/map/npc/021-2/_mobs.txt
index d45ca8be..5b7d3384 100644
--- a/world/map/npc/021-2/_mobs.txt
+++ b/world/map/npc/021-2/_mobs.txt
@@ -3,6 +3,7 @@
-021-2.gat,0,0,0|script|Mob021-2|-1,{
+021-2.gat,0,0,0|script|Mob021-2|-1,
+{
end;
}
diff --git a/world/map/npc/021-2/bakery.txt b/world/map/npc/021-2/bakery.txt
index bea20d9e..5239c498 100644
--- a/world/map/npc/021-2/bakery.txt
+++ b/world/map/npc/021-2/bakery.txt
@@ -1,8 +1,8 @@
// The bakery
// The chef
-021-2.gat,95,21,0|script|Riskim|148,{
-
+021-2.gat,95,21,0|script|Riskim|148,
+{
// lines belong to easter 2011:
// set @month, 4;
// set @start_day, 15;
@@ -201,7 +201,8 @@ L_SeeBunny:
}
// Server?
-021-2.gat,82,23,0|script|Sara|108,{
+021-2.gat,82,23,0|script|Sara|108,
+{
mes "[Sara]";
mes "";
mes "\"Hello!\"";
@@ -212,7 +213,8 @@ L_SeeBunny:
021-2.gat,89,21,0|shop|Drabur|112,WhiteCake :-1,ChocolateCake :-1,OrangeCake :-1,AppleCake :-1,Cake :-1,CherryCake :-1,OrangeCupcake :-3,Milk :-5,XmasCake :-1
// Stockroom boy
-021-2.gat,133,21,0|script|Iormo|160,{
+021-2.gat,133,21,0|script|Iormo|160,
+{
mes "[Iormo]";
mes "";
mes "\"This stock room can get messy.\"";
@@ -220,14 +222,16 @@ L_SeeBunny:
}
// An old couple eating at the bakery
-021-2.gat,71,22,0|script|Rynoh|159,{
+021-2.gat,71,22,0|script|Rynoh|159,
+{
mes "[Rynoh]";
mes "";
mes "\"The cakes may be expensive, but they sure are delicious!\"";
close;
}
-021-2.gat,73,22,0|script|Ontas|154,{
+021-2.gat,73,22,0|script|Ontas|154,
+{
mes "[Ontas]";
mes "";
mes "\"We come here every week. This place has some of the best bread I've ever eaten!\"";
diff --git a/world/map/npc/021-2/bank.txt b/world/map/npc/021-2/bank.txt
index 5ebbe5ea..a1fbd3c1 100644
--- a/world/map/npc/021-2/bank.txt
+++ b/world/map/npc/021-2/bank.txt
@@ -1,5 +1,6 @@
// Another banker
-021-2.gat,69,135,0|script|Hydusun|149,{
+021-2.gat,69,135,0|script|Hydusun|149,
+{
set @npcname$, "Hydusun";
callfunc "Banker";
close;
diff --git a/world/map/npc/021-2/barber.txt b/world/map/npc/021-2/barber.txt
index d0ff401e..a4075a36 100644
--- a/world/map/npc/021-2/barber.txt
+++ b/world/map/npc/021-2/barber.txt
@@ -1,5 +1,6 @@
// A barber (later we can make it so certain styles need to come from him, for a price)
-021-2.gat,72,101,0|script|Issay|156,{
+021-2.gat,72,101,0|script|Issay|156,
+{
mes "[Issay the Barber]";
mes "\"Do you need a change of style?\"";
next;
diff --git a/world/map/npc/021-2/government_building.txt b/world/map/npc/021-2/government_building.txt
index 944efd09..1422e50a 100644
--- a/world/map/npc/021-2/government_building.txt
+++ b/world/map/npc/021-2/government_building.txt
@@ -1,7 +1,8 @@
// The government builing in the south west
// A clerk
-021-2.gat,27,17,0|script|Estard|107,{
+021-2.gat,27,17,0|script|Estard|107,
+{
mes "[Estard]";
mes "\"Hello what can I do for you?\"";
next;
@@ -138,7 +139,8 @@ S_give_rings:
return;
}
-021-2.gat,36,17,0|script|Tathin|107,{
+021-2.gat,36,17,0|script|Tathin|107,
+{
set @hw2011_npc_id, $@hw2011_npc_tathin;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
@@ -225,7 +227,8 @@ L_TrickOrTreat:
}
// Guard
-021-2.gat,20,19,0|script|Guard|123,1,1,{
+021-2.gat,20,19,0|script|Guard|123,1,1,
+{
mes "[Guard]";
mes "\"You can't come back here.\"";
close;
diff --git a/world/map/npc/021-2/heathin.txt b/world/map/npc/021-2/heathin.txt
index 681f40df..c01d2fd4 100644
--- a/world/map/npc/021-2/heathin.txt
+++ b/world/map/npc/021-2/heathin.txt
@@ -1,7 +1,7 @@
//Items for NPC are incomplete. Makes "simple ring" which can be crafted into a useful ring by Inya and terranite armor.
-021-2.gat,70,129,0|script|Heathin|147,{
-
+021-2.gat,70,129,0|script|Heathin|147,
+{
set @TARROW_REQ_TERRA_ORE, 1;
set @TARROW_REQ_COAL, 5;
set @TARROW_REQ_GP, 3000;
diff --git a/world/map/npc/021-2/hotel_receptionist.txt b/world/map/npc/021-2/hotel_receptionist.txt
index 0a7fcbb2..dac560c6 100644
--- a/world/map/npc/021-2/hotel_receptionist.txt
+++ b/world/map/npc/021-2/hotel_receptionist.txt
@@ -1,7 +1,8 @@
// Tulimshar's main workshop
// The receptionist
-021-2.gat,22,63,0|script|Sonir|118,{
+021-2.gat,22,63,0|script|Sonir|118,
+{
mes "[Sonir]";
mes "\"Welcome to The Wizards's Rest!\"";
next;
diff --git a/world/map/npc/021-2/inya.txt b/world/map/npc/021-2/inya.txt
index 4a70730c..97424592 100644
--- a/world/map/npc/021-2/inya.txt
+++ b/world/map/npc/021-2/inya.txt
@@ -1,8 +1,8 @@
//Gemstones: Diamond (white) , Ruby (red), Emerald (green), Sapphire (blue), Topaz (yellow), Amethyst (purple)
//The power of the gems is important to future balance of these rings. Are they related to stats, tiers of power, schools of magic?
-021-2.gat,80,134,0|script|Inya|106,{
-
+021-2.gat,80,134,0|script|Inya|106,
+{
mes "[Inya]";
mes "\"I am Inya, a jeweler of fine rings. If you have a Simple Ring and a gem, I can make a nice ring for you for 1,000,000 gold pieces.\"";
next;
diff --git a/world/map/npc/021-2/jhedia.txt b/world/map/npc/021-2/jhedia.txt
index 1bffd0eb..dcb76d47 100644
--- a/world/map/npc/021-2/jhedia.txt
+++ b/world/map/npc/021-2/jhedia.txt
@@ -1,7 +1,7 @@
// Ingot maker takes iron ore, gives ingots for future crafting purposes.
-021-2.gat,70,124,0|script|Jhedia|160,{
-
+021-2.gat,70,124,0|script|Jhedia|160,
+{
set @Cost_Per_Ingot, 1000;
set @Iron_Ore_Per, 5;
set @Coal_Per, 10;
diff --git a/world/map/npc/021-2/kylian.txt b/world/map/npc/021-2/kylian.txt
index 737214a5..c228acba 100644
--- a/world/map/npc/021-2/kylian.txt
+++ b/world/map/npc/021-2/kylian.txt
@@ -32,7 +32,8 @@
// @KylianNTSightSeeing
// @KylianNTCasino
--|script|#businessmanNTconfig|-1,{
+-|script|#businessmanNTconfig|-1,
+{
OnInit:
// Nibble 4
set $@knowYanisNT, 0x10000;
@@ -45,15 +46,16 @@ OnInit:
end;
}
-021-2.gat,25,67,0|script|#KylianOut|32767,1,1,{
+021-2.gat,25,67,0|script|#KylianOut|32767,1,1,
+{
set @KylianNTLicense, 0;
set @KylianNTSightSeeing, 0;
set @KylianNTCasino, 0;
end;
}
-021-2.gat,32,92,0|script|Kylian|193,{
-
+021-2.gat,32,92,0|script|Kylian|193,
+{
set @state, ((QUEST_NorthTulimshar & $@businessmanNT_MASK) >> $@businessmanNT_SHIFT);
set @acorn_amount, 12;
diff --git a/world/map/npc/021-2/yanis.txt b/world/map/npc/021-2/yanis.txt
index 27e69f63..384c6d92 100644
--- a/world/map/npc/021-2/yanis.txt
+++ b/world/map/npc/021-2/yanis.txt
@@ -1,8 +1,8 @@
// Government official taking care about shop licenses
// involved in quest given by 021-1/imec.txt and 021-2/kylian.txt
-021-2.gat,33,17,0|script|Yanis|107,{
-
+021-2.gat,33,17,0|script|Yanis|107,
+{
set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowYanisNT;
set @kylian, ((QUEST_NorthTulimshar & $@businessmanNT_MASK) >> $@businessmanNT_SHIFT);
set @imec, ((QUEST_NorthTulimshar & $@ImecShopNT_MASK) >> $@ImecShopNT_SHIFT);
diff --git a/world/map/npc/021-3/_mobs.txt b/world/map/npc/021-3/_mobs.txt
index 17ddb550..368aed44 100644
--- a/world/map/npc/021-3/_mobs.txt
+++ b/world/map/npc/021-3/_mobs.txt
@@ -14,7 +14,8 @@
021-3.gat,93,31,28,22|monster|SeaSlime|1033,6,100000,30000,Mob021-3::On1033
-021-3.gat,0,0,0|script|Mob021-3|-1,{
+021-3.gat,0,0,0|script|Mob021-3|-1,
+{
On1009:
set @mobID, 1009;
callfunc "MobPoints";
diff --git a/world/map/npc/022-1/_mobs.txt b/world/map/npc/022-1/_mobs.txt
index 92b81a81..ceea5fc7 100644
--- a/world/map/npc/022-1/_mobs.txt
+++ b/world/map/npc/022-1/_mobs.txt
@@ -3,6 +3,7 @@
-022-1.gat,0,0,0|script|Mob022-1|-1,{
+022-1.gat,0,0,0|script|Mob022-1|-1,
+{
end;
}
diff --git a/world/map/npc/022-1/adrian.txt b/world/map/npc/022-1/adrian.txt
index fbae8706..dd70914d 100644
--- a/world/map/npc/022-1/adrian.txt
+++ b/world/map/npc/022-1/adrian.txt
@@ -5,8 +5,8 @@
// state 2: Adrian gave the luggage to the player
// state 3: player gave luggage to Kylian and Kylian asks who to talk to for the shop license
-022-1.gat,58,54,0|script|Adrian|213,{
-
+022-1.gat,58,54,0|script|Adrian|213,
+{
set @state, ((QUEST_NorthTulimshar & $@businessmanNT_MASK) >> $@businessmanNT_SHIFT);
mes "[Adrian]";
diff --git a/world/map/npc/022-1/anwar.txt b/world/map/npc/022-1/anwar.txt
index b53b6731..b45b5fd2 100644
--- a/world/map/npc/022-1/anwar.txt
+++ b/world/map/npc/022-1/anwar.txt
@@ -17,15 +17,16 @@
// state 14: gave present to Eomie
// state 15: reported back to Anwar and done
--|script|#magicfieldNTconfig|-1,{
+-|script|#magicfieldNTconfig|-1,
+{
OnInit:
set $@magicfieldNT_MASK, NIBBLE_3_MASK;
set $@magicfieldNT_SHIFT, NIBBLE_3_SHIFT;
end;
}
-022-1.gat,41,46,0|script|Anwar|156,{
-
+022-1.gat,41,46,0|script|Anwar|156,
+{
set @state, ((QUEST_NorthTulimshar & $@magicfieldNT_MASK) >> $@magicfieldNT_SHIFT);
set @cloth_amount, 3;
diff --git a/world/map/npc/022-1/dock.txt b/world/map/npc/022-1/dock.txt
index 654f4199..ed4c7695 100644
--- a/world/map/npc/022-1/dock.txt
+++ b/world/map/npc/022-1/dock.txt
@@ -1,6 +1,7 @@
// The ferry dock
-022-1.gat,84,72,0|script|#tulimshardock|45,6,1,{
+022-1.gat,84,72,0|script|#tulimshardock|45,6,1,
+{
set @loc, DOCK_tulimshar;
callfunc "Ferry";
}
diff --git a/world/map/npc/022-1/ferry_master.txt b/world/map/npc/022-1/ferry_master.txt
index 0622fd98..a4ad69ba 100644
--- a/world/map/npc/022-1/ferry_master.txt
+++ b/world/map/npc/022-1/ferry_master.txt
@@ -1,6 +1,7 @@
//
-022-1.gat,73,71,0|script|Ferry Master|138,{
+022-1.gat,73,71,0|script|Ferry Master|138,
+{
mes "[Ferry Master]";
mes "\"Hello! Do you need something?\"";
next;
diff --git a/world/map/npc/022-1/npcs.txt b/world/map/npc/022-1/npcs.txt
index 4bcf9dcf..a5b815d8 100644
--- a/world/map/npc/022-1/npcs.txt
+++ b/world/map/npc/022-1/npcs.txt
@@ -1,6 +1,7 @@
// Talk NPCs to help make trek interesting between Tutorial and Bazaar.
-022-1.gat,35,36,0|script|Marikel|211,{
+022-1.gat,35,36,0|script|Marikel|211,
+{
set @npcname$, "Marikel";
mes "[" + @npcname$ + "]";
@@ -27,7 +28,8 @@ L_Marikel_2:
close;
}
-022-1.gat,65,46,0|script|Joelin|212,{
+022-1.gat,65,46,0|script|Joelin|212,
+{
set @npcname$, "Joelin";
mes "[" + @npcname$ + "]";
@@ -37,7 +39,8 @@ L_Marikel_2:
close;
}
-022-1.gat,67,46,0|script|Harper|213,{
+022-1.gat,67,46,0|script|Harper|213,
+{
set @npcname$, "Harper";
mes "[" + @npcname$ + "]";
@@ -45,7 +48,8 @@ L_Marikel_2:
close;
}
-022-1.gat,75,99,0|script|Swezanne|206,{
+022-1.gat,75,99,0|script|Swezanne|206,
+{
set @npcname$, "Swezanne";
mes "[" + @npcname$ + "]";
diff --git a/world/map/npc/022-1/tutorial.txt b/world/map/npc/022-1/tutorial.txt
index 23a924f1..0d9056f6 100644
--- a/world/map/npc/022-1/tutorial.txt
+++ b/world/map/npc/022-1/tutorial.txt
@@ -2,13 +2,15 @@
// Author: Jenalya
// if you enter the tutorial area from outside, it is set to be already done
-022-1.gat,19,37,0|script|#tutorial|45,0,2{
+022-1.gat,19,37,0|script|#tutorial|45,0,2
+{
callfunc "TutorialCompleted";
warp "042-1.gat", 95, 69;
end;
}
-function|script|TutorialCompleted|{
+function|script|TutorialCompleted|
+{
set hasan, 0;
set kaan, 0;
set sorfina, 0;
diff --git a/world/map/npc/024-1/_mobs.txt b/world/map/npc/024-1/_mobs.txt
index 3e8c406e..5dac248d 100644
--- a/world/map/npc/024-1/_mobs.txt
+++ b/world/map/npc/024-1/_mobs.txt
@@ -10,7 +10,8 @@
024-1.gat,63,54,3,6|monster|Maggot|1002,1,100000,30000,Mob024-1::On1002
-024-1.gat,0,0,0|script|Mob024-1|-1,{
+024-1.gat,0,0,0|script|Mob024-1|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/024-1/ched.txt b/world/map/npc/024-1/ched.txt
index 662c6b81..2628f99a 100644
--- a/world/map/npc/024-1/ched.txt
+++ b/world/map/npc/024-1/ched.txt
@@ -1,6 +1,7 @@
// Student at Tulimshar's magic academy
-024-1.gat,69,56,0|script|Ched|113,{
+024-1.gat,69,56,0|script|Ched|113,
+{
if (isin("024-1.gat", 62, 52, 65, 57)) goto L_Garden;
if (isin("024-1.gat", 66, 43, 80, 54)) goto L_Canyon;
diff --git a/world/map/npc/024-1/david.txt b/world/map/npc/024-1/david.txt
index 6924e5ad..14b8d848 100644
--- a/world/map/npc/024-1/david.txt
+++ b/world/map/npc/024-1/david.txt
@@ -1,5 +1,5 @@
-024-1.gat,70,70,0|script|David|120,{
-
+024-1.gat,70,70,0|script|David|120,
+{
set @Potion_EXP, 2000;
if (Rossy_Quest == 17) goto L_FinalEnd;
diff --git a/world/map/npc/024-1/eomie.txt b/world/map/npc/024-1/eomie.txt
index 6999eccf..544eeaf9 100644
--- a/world/map/npc/024-1/eomie.txt
+++ b/world/map/npc/024-1/eomie.txt
@@ -18,8 +18,8 @@
// state 14: gave present to Eomie
// state 15: reported back to Anwar and done
-024-1.gat,72,94,0|script|Eomie|164,{
-
+024-1.gat,72,94,0|script|Eomie|164,
+{
// lines belong to easter 2011:
// set @month, 4;
// set @start_day, 15;
diff --git a/world/map/npc/024-1/tinris.txt b/world/map/npc/024-1/tinris.txt
index a0313b32..1dcb3ccd 100644
--- a/world/map/npc/024-1/tinris.txt
+++ b/world/map/npc/024-1/tinris.txt
@@ -17,8 +17,8 @@
// state 14: gave present to Eomie
// state 15: reported back to Anwar and done
-024-1.gat,82,64,0|script|Tinris|160,{
-
+024-1.gat,82,64,0|script|Tinris|160,
+{
set @state, ((QUEST_NorthTulimshar & $@magicfieldNT_MASK) >> $@magicfieldNT_SHIFT);
set @cake_exp, 50;
diff --git a/world/map/npc/024-1/tondar.txt b/world/map/npc/024-1/tondar.txt
index 29041e33..7252b476 100644
--- a/world/map/npc/024-1/tondar.txt
+++ b/world/map/npc/024-1/tondar.txt
@@ -1,6 +1,7 @@
// A professor at Tulimshar's magic academy
-024-1.gat,83,51,0|script|Tondar|168,{
+024-1.gat,83,51,0|script|Tondar|168,
+{
mes "[Tondar]";
mes "\"We're not accepting any new students right now.\"";
if (getskilllv(SKILL_MAGIC) > 0)
diff --git a/world/map/npc/024-2/_mobs.txt b/world/map/npc/024-2/_mobs.txt
index 92276ebf..b526b00a 100644
--- a/world/map/npc/024-2/_mobs.txt
+++ b/world/map/npc/024-2/_mobs.txt
@@ -3,6 +3,7 @@
-024-2.gat,0,0,0|script|Mob024-2|-1,{
+024-2.gat,0,0,0|script|Mob024-2|-1,
+{
end;
}
diff --git a/world/map/npc/024-2/barrier.txt b/world/map/npc/024-2/barrier.txt
index e5de5bb9..6b971d1f 100644
--- a/world/map/npc/024-2/barrier.txt
+++ b/world/map/npc/024-2/barrier.txt
@@ -1,6 +1,7 @@
// A barrier in the magic school to keep less experienced players out of the canyon
-024-2.gat,31,24,0|script|#MagicSchoolBarrier1#M|0,1,1,{
+024-2.gat,31,24,0|script|#MagicSchoolBarrier1#M|0,1,1,
+{
if (BaseLevel < 40) goto L_PushBack;
close;
diff --git a/world/map/npc/024-2/tyer.txt b/world/map/npc/024-2/tyer.txt
index bbd829cd..334c62ad 100644
--- a/world/map/npc/024-2/tyer.txt
+++ b/world/map/npc/024-2/tyer.txt
@@ -1,6 +1,7 @@
// A man in the magic school
-024-2.gat,36,21,0|script|Tyer|157,{
+024-2.gat,36,21,0|script|Tyer|157,
+{
mes "[Tyer]";
mes "\"Hello.\"";
close;
diff --git a/world/map/npc/024-2/tyer_trigger.txt b/world/map/npc/024-2/tyer_trigger.txt
index 603eb7d8..9a1a8c27 100644
--- a/world/map/npc/024-2/tyer_trigger.txt
+++ b/world/map/npc/024-2/tyer_trigger.txt
@@ -1,6 +1,7 @@
// A man in the magic school
-024-2.gat,33,24,0|script|#Tyer_Trigger|0,1,1,{
+024-2.gat,33,24,0|script|#Tyer_Trigger|0,1,1,
+{
if (BaseLevel >= 40) end;
mes "[Tyer]";
diff --git a/world/map/npc/024-3/_mobs.txt b/world/map/npc/024-3/_mobs.txt
index 5dc5d7fd..82bfa7ad 100644
--- a/world/map/npc/024-3/_mobs.txt
+++ b/world/map/npc/024-3/_mobs.txt
@@ -3,6 +3,7 @@
-024-3.gat,0,0,0|script|Mob024-3|-1,{
+024-3.gat,0,0,0|script|Mob024-3|-1,
+{
end;
}
diff --git a/world/map/npc/024-4/_mobs.txt b/world/map/npc/024-4/_mobs.txt
index c0ad131d..36b6da26 100644
--- a/world/map/npc/024-4/_mobs.txt
+++ b/world/map/npc/024-4/_mobs.txt
@@ -3,6 +3,7 @@
-024-4.gat,0,0,0|script|Mob024-4|-1,{
+024-4.gat,0,0,0|script|Mob024-4|-1,
+{
end;
}
diff --git a/world/map/npc/025-1/_mobs.txt b/world/map/npc/025-1/_mobs.txt
index 32d4ee65..b3a7ab4f 100644
--- a/world/map/npc/025-1/_mobs.txt
+++ b/world/map/npc/025-1/_mobs.txt
@@ -13,7 +13,8 @@
025-1.gat,26,61,15,85|monster|Scorpion|1003,12,100000,50000,Mob025-1::On1003
-025-1.gat,0,0,0|script|Mob025-1|-1,{
+025-1.gat,0,0,0|script|Mob025-1|-1,
+{
On1003:
set @mobID, 1003;
callfunc "MobPoints";
diff --git a/world/map/npc/025-1/barrier.txt b/world/map/npc/025-1/barrier.txt
index 3b9fbb97..619ce0d7 100644
--- a/world/map/npc/025-1/barrier.txt
+++ b/world/map/npc/025-1/barrier.txt
@@ -1,7 +1,7 @@
// Authors: alastrim, Ali-g, Dark Mage
-025-1.gat,42,79,0|script|#JuliaBarrier|45,1,1,{
-
+025-1.gat,42,79,0|script|#JuliaBarrier|45,1,1,
+{
if (Rossy_Quest > 14 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_Warp;
if (Rossy_Quest <= 13) goto L_Block;
if (Rossy_Quest == 14) message strcharinfo(0), "You hear distant screams of fear.";
diff --git a/world/map/npc/025-1/reset.txt b/world/map/npc/025-1/reset.txt
index ccfdab26..5084d905 100644
--- a/world/map/npc/025-1/reset.txt
+++ b/world/map/npc/025-1/reset.txt
@@ -1,7 +1,7 @@
//To enable: sed 's_^// __' -i npc/025-1/reset.txt
-// 025-1.gat,47,84,0|script|reset|145,{
-
+// 025-1.gat,47,84,0|script|reset|145,
+// {
// mes "Do you want to reset Rossy Quest?";
// menu
// "Reset every variable of the quest.", -,
diff --git a/world/map/npc/025-1/rossy.txt b/world/map/npc/025-1/rossy.txt
index c468503f..de3ce386 100644
--- a/world/map/npc/025-1/rossy.txt
+++ b/world/map/npc/025-1/rossy.txt
@@ -1,7 +1,7 @@
// Authors: alastrim, Ali-g, Dark Mage
-025-1.gat,80,88,0|script|Rossy|114,{
-
+025-1.gat,80,88,0|script|Rossy|114,
+{
set @Cherry_Amount, 10;
set @Cherry_EXP, 2000;
diff --git a/world/map/npc/025-3/_mobs.txt b/world/map/npc/025-3/_mobs.txt
index 73bf37fa..d849c118 100644
--- a/world/map/npc/025-3/_mobs.txt
+++ b/world/map/npc/025-3/_mobs.txt
@@ -7,7 +7,8 @@
025-3.gat,69,153,13,1|monster|Skeleton|1043,1,0,30000,Mob025-3::On1043
-025-3.gat,0,0,0|script|Mob025-3|-1,{
+025-3.gat,0,0,0|script|Mob025-3|-1,
+{
On1043:
set @mobID, 1043;
callfunc "MobPoints";
diff --git a/world/map/npc/025-3/barriers.txt b/world/map/npc/025-3/barriers.txt
index ebd27a1b..773b3571 100644
--- a/world/map/npc/025-3/barriers.txt
+++ b/world/map/npc/025-3/barriers.txt
@@ -2,7 +2,8 @@
// -----------------------------------Warp to Cave 1 ---------------------------------------
-025-3.gat,78,127,0|script|#WarpBattleCave1|45,1,1,{
+025-3.gat,78,127,0|script|#WarpBattleCave1|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 26, 63, 60, 97) >= 1 || $@battlecave1 > 0)
@@ -127,7 +128,8 @@ L_AlreadyClean:
// ---------------------------- Warp to Cave 2 ----------------------------
-025-3.gat,53,107,0|script|#WarpBattleCave2|45,1,1,{
+025-3.gat,53,107,0|script|#WarpBattleCave2|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 97, 62, 126, 96) >= 1 || $@battlecave2 > 0)
@@ -251,7 +253,8 @@ L_AlreadyClean:
// --------------------------------- Warp to Cave 3 ----------------------------------------
-025-3.gat,71,83,0|script|#WarpBattleCave3|45,1,1,{
+025-3.gat,71,83,0|script|#WarpBattleCave3|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 150, 84, 177, 117) >= 1 || $@battlecave3 > 0)
@@ -375,7 +378,8 @@ L_AlreadyClean:
// --------------------------- Warp to Cave 4 --------------------------------------
-025-3.gat,80,83,0|script|#WarpBattleCave4|45,1,1,{
+025-3.gat,80,83,0|script|#WarpBattleCave4|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 28, 124, 57, 156) >= 1 || $@battlecave4 > 0)
@@ -499,7 +503,8 @@ L_AlreadyClean:
// --------------------------- Warp to Cave 5 ----------------------------------------
-025-3.gat,71,30,0|script|#WarpBattleCave5|45,1,1,{
+025-3.gat,71,30,0|script|#WarpBattleCave5|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 91, 131, 124, 160) >= 1 || $@battlecave5 > 0)
@@ -623,7 +628,8 @@ L_AlreadyClean:
// -------------------------------- Warp to Cave 6 -----------------------------------------
-025-3.gat,128,35,0|script|#WarpBattleCave6|45,1,1,{
+025-3.gat,128,35,0|script|#WarpBattleCave6|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 153, 143, 178, 174) >= 1 || $@battlecave6 > 0)
@@ -747,7 +753,8 @@ L_AlreadyClean:
// ---------------------------- Warp to Cave 7 ------------------------------------------
-025-3.gat,70,57,0|script|#WarpBattleCave7|45,1,1,{
+025-3.gat,70,57,0|script|#WarpBattleCave7|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 27, 185, 61, 219) >= 1 || $@battlecave7 > 0)
@@ -871,7 +878,8 @@ L_AlreadyClean:
// -----------------------------------------------Warp to Cave 8-------------------------------------------------------------
-025-3.gat,138,92,0|script|#WarpBattleCave8|45,1,1,{
+025-3.gat,138,92,0|script|#WarpBattleCave8|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 90, 193, 119, 216) >= 1 || $@battlecave8 > 0)
@@ -995,8 +1003,8 @@ L_AlreadyClean:
// ------------------------------ Warp to Cave 9 ----------------------------------------
-025-3.gat,138,160,0|script|#WarpBattleCave9|45,1,1,{
-
+025-3.gat,138,160,0|script|#WarpBattleCave9|45,1,1,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED)
goto L_AlreadyHelped;
if (getareausers("025-4.gat", 144, 192, 173, 226) >= 1 || $@battlecave9 > 0)
@@ -1120,7 +1128,8 @@ L_AlreadyClean:
// ----------------------------- Warp to Boss Cave -------------------------------
-025-3.gat,77,170,0|script|#WarpBossCave|45,1,1,{
+025-3.gat,77,170,0|script|#WarpBossCave|45,1,1,
+{
if (Rossy_Quest > 16 || FLAGS & FLAG_ROSSI_COMPLETED)
end;
if (Rossy_Quest == 16)
diff --git a/world/map/npc/025-4/_mobs.txt b/world/map/npc/025-4/_mobs.txt
index e8bd7b59..9034f0b4 100644
--- a/world/map/npc/025-4/_mobs.txt
+++ b/world/map/npc/025-4/_mobs.txt
@@ -5,7 +5,8 @@
025-4.gat,94,24,20,21|monster|CaveMaggot|1056,5,0,100,Mob025-4::On1056
-025-4.gat,0,0,0|script|Mob025-4|-1,{
+025-4.gat,0,0,0|script|Mob025-4|-1,
+{
On1056:
set @mobID, 1056;
callfunc "MobPoints";
diff --git a/world/map/npc/025-4/battlecaves.txt b/world/map/npc/025-4/battlecaves.txt
index a0349847..b3d69f3b 100644
--- a/world/map/npc/025-4/battlecaves.txt
+++ b/world/map/npc/025-4/battlecaves.txt
@@ -2,7 +2,8 @@
// --------------------------------- Cave 1 -----------------------------------
-025-4.gat,41,85,0|script|#StartCaveFight1|324,{
+025-4.gat,41,85,0|script|#StartCaveFight1|324,
+{
if ($@battlecave1 == 2 && $@cave1fighter$ == strcharinfo(0))
end;
if ($@battlecave1 == 2 && $@cave1fighter$ != strcharinfo(0))
@@ -74,7 +75,8 @@ L_no_root:
// --------------------- Cave 1 Checker ----------------------------
-025-4.gat,41,97,0|script|#CheckCaveFight1|45,1,1,{
+025-4.gat,41,97,0|script|#CheckCaveFight1|45,1,1,
+{
if (cavefights & BATTLE_CAVE1 || $@battlecave1 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -88,7 +90,8 @@ L_Done:
// --------------------------------- Cave 2 ---------------------------------------
-025-4.gat,115,77,0|script|#StartCaveFight2|324,{
+025-4.gat,115,77,0|script|#StartCaveFight2|324,
+{
if ($@battlecave2 == 2 && $@cave2fighter$ == strcharinfo(0))
end;
if ($@battlecave2 == 2 && $@cave2fighter$ != strcharinfo(0))
@@ -160,7 +163,8 @@ L_no_root:
// --------------------- Cave 2 Checker ----------------------------
-025-4.gat,110,96,0|script|#CheckCaveFight2|45,1,1,{
+025-4.gat,110,96,0|script|#CheckCaveFight2|45,1,1,
+{
if (cavefights & BATTLE_CAVE2 || $@battlecave2 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -172,7 +176,8 @@ L_Done:
}
// ------------------------------------ Cave 3 --------------------------------------
-025-4.gat,164,103,0|script|#StartCaveFight3|324,{
+025-4.gat,164,103,0|script|#StartCaveFight3|324,
+{
if ($@battlecave3 == 2 && $@cave3fighter$ == strcharinfo(0))
end;
if ($@battlecave3 == 2 && $@cave3fighter$ != strcharinfo(0))
@@ -245,7 +250,8 @@ L_no_root:
// --------------------- Cave 3 Checker ----------------------------
-025-4.gat,168,117,0|script|#CheckCaveFight3|45,1,1,{
+025-4.gat,168,117,0|script|#CheckCaveFight3|45,1,1,
+{
if (cavefights & BATTLE_CAVE3 || $@battlecave3 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -257,7 +263,8 @@ L_Done:
}
// --------------------------- Cave 4 --------------------------------
-025-4.gat,39,143,0|script|#StartCaveFight4|324,{
+025-4.gat,39,143,0|script|#StartCaveFight4|324,
+{
if ($@battlecave4 == 2 && $@cave4fighter$ == strcharinfo(0))
end;
if ($@battlecave4 == 2 && $@cave4fighter$ != strcharinfo(0))
@@ -332,7 +339,8 @@ L_no_root:
// --------------------- Cave 4 Checker ----------------------------
-025-4.gat,32,156,0|script|#CheckCaveFight4|45,1,1,{
+025-4.gat,32,156,0|script|#CheckCaveFight4|45,1,1,
+{
if (cavefights & BATTLE_CAVE4 || $@battlecave4 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -345,7 +353,8 @@ L_Done:
// ---------------------------- Cave 5 ------------------------------
-025-4.gat,109,143,0|script|#StartCaveFight5|324,{
+025-4.gat,109,143,0|script|#StartCaveFight5|324,
+{
if ($@battlecave5 == 2 && $@cave5fighter$ == strcharinfo(0))
end;
if ($@battlecave5 == 2 && $@cave5fighter$ != strcharinfo(0))
@@ -420,7 +429,8 @@ L_no_root:
// --------------------- Cave 5 Checker ----------------------------
-025-4.gat,100,160,0|script|#CheckCaveFight5|45,1,1,{
+025-4.gat,100,160,0|script|#CheckCaveFight5|45,1,1,
+{
if (cavefights & BATTLE_CAVE5 || $@battlecave5 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -433,7 +443,8 @@ L_Done:
// -------------------------------- Cave 6 -----------------------------------------
-025-4.gat,162,162,0|script|#StartCaveFight6|324,{
+025-4.gat,162,162,0|script|#StartCaveFight6|324,
+{
if ($@battlecave6 == 2 && $@cave6fighter$ == strcharinfo(0))
end;
if ($@battlecave6 == 2 && $@cave6fighter$ != strcharinfo(0))
@@ -508,7 +519,8 @@ L_no_root:
// --------------------- Cave 6 Checker ----------------------------
-025-4.gat,159,174,0|script|#CheckCaveFight6|45,1,1,{
+025-4.gat,159,174,0|script|#CheckCaveFight6|45,1,1,
+{
if (cavefights & BATTLE_CAVE6 || $@battlecave6 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -521,7 +533,8 @@ L_Done:
// -------------------------------- Cave 7 -----------------------------------
-025-4.gat,44,202,0|script|#StartCaveFight7|324,{
+025-4.gat,44,202,0|script|#StartCaveFight7|324,
+{
if ($@battlecave7 == 2 && $@cave7fighter$ == strcharinfo(0))
end;
if ($@battlecave7 == 2 && $@cave7fighter$ != strcharinfo(0))
@@ -598,7 +611,8 @@ L_no_root:
// --------------------- Cave 7 Checker ----------------------------
-025-4.gat,42,219,0|script|#CheckCaveFight7|45,1,1,{
+025-4.gat,42,219,0|script|#CheckCaveFight7|45,1,1,
+{
if (cavefights & BATTLE_CAVE7 || $@battlecave7 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -611,7 +625,8 @@ L_Done:
// --------------------------- Cave 8 -------------------------------
-025-4.gat,105,210,0|script|#StartCaveFight8|324,{
+025-4.gat,105,210,0|script|#StartCaveFight8|324,
+{
if ($@battlecave8 == 2 && $@cave8fighter$ == strcharinfo(0))
end;
if ($@battlecave8 == 2 && $@cave8fighter$ != strcharinfo(0))
@@ -688,7 +703,8 @@ L_no_root:
// --------------------- Cave 8 Checker ----------------------------
-025-4.gat,105,216,0|script|#CheckCaveFight8|45,1,1,{
+025-4.gat,105,216,0|script|#CheckCaveFight8|45,1,1,
+{
if (cavefights & BATTLE_CAVE8 || $@battlecave8 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -701,7 +717,8 @@ L_Done:
// --------------------------- Cave 9 -------------------------------
-025-4.gat,157,220,0|script|#StartCaveFight9|324,{
+025-4.gat,157,220,0|script|#StartCaveFight9|324,
+{
if ($@battlecave9 == 2 && $@cave9fighter$ == strcharinfo(0))
end;
if ($@battlecave9 == 2 && $@cave9fighter$ != strcharinfo(0))
@@ -778,7 +795,8 @@ L_no_root:
// --------------------- Cave 9 Checker ----------------------------
-025-4.gat,157,226,0|script|#CheckCaveFight9|45,1,1,{
+025-4.gat,157,226,0|script|#CheckCaveFight9|45,1,1,
+{
if (cavefights & BATTLE_CAVE9 || $@battlecave9 == 1)
goto L_Done;
message strcharinfo(0), "You can't get out! Seems like a barrier was created when the energy transmuted itself into monsters.";
@@ -791,7 +809,8 @@ L_Done:
// --------------------- Boss Cave ----------------------------
-025-4.gat,157,30,0|script|#StartBossCaveFight|325,{
+025-4.gat,157,30,0|script|#StartBossCaveFight|325,
+{
if ($@battlecave10 == 2 && $@cave10fighter$ == strcharinfo(0))
end;
if (Rossy_Quest >= 16)
@@ -891,7 +910,8 @@ L_no_root:
// --------------------- Boss Cave Checker ----------------------------
-025-4.gat,157,48,0|script|#CheckCaveFightBoss|45,1,1,{
+025-4.gat,157,48,0|script|#CheckCaveFightBoss|45,1,1,
+{
if (Rossy_Quest >= 17)
goto L_Done;
if (Rossy_Quest == 16)
@@ -917,7 +937,8 @@ L_Out:
// --------------------- Julia Cave Checker Outside ----------------------------
-025-4.gat,157,24,0|script|#CheckJuliaCaveOutside|45,1,1,{
+025-4.gat,157,24,0|script|#CheckJuliaCaveOutside|45,1,1,
+{
if (Rossy_Quest > 15)
goto L_Done;
message strcharinfo(0), "As you try to walk through, you bump into a strong magical barrier.";
@@ -931,7 +952,8 @@ L_Done:
// --------------------- Julia Cave Checker Inside ----------------------------
-025-4.gat,93,35,0|script|#CheckJuliaCaveInside|45,1,1,{
+025-4.gat,93,35,0|script|#CheckJuliaCaveInside|45,1,1,
+{
if (Rossy_Quest >= 17)
goto L_Done;
if (Rossy_Quest == 16)
diff --git a/world/map/npc/025-4/clauquer.txt b/world/map/npc/025-4/clauquer.txt
index 0537a73f..71a3dd4f 100644
--- a/world/map/npc/025-4/clauquer.txt
+++ b/world/map/npc/025-4/clauquer.txt
@@ -1,7 +1,7 @@
// Authors: alastrim, Ali-g, Dark Mage
-025-4.gat,30,30,0|script|Clauquer|169,{
-
+025-4.gat,30,30,0|script|Clauquer|169,
+{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_Rescued;
if (Rossy_Quest == 15) goto L_Hmmm;
if (Rossy_Quest == 14) goto L_Help;
diff --git a/world/map/npc/025-4/julia.txt b/world/map/npc/025-4/julia.txt
index 5922a60c..1f8671b1 100644
--- a/world/map/npc/025-4/julia.txt
+++ b/world/map/npc/025-4/julia.txt
@@ -1,7 +1,7 @@
// Authors: alastrim, Ali-g, Dark Mage
-025-4.gat,89,21,0|script|Julia|114,{
-
+025-4.gat,89,21,0|script|Julia|114,
+{
set @Reward_EXP, 5000;
if (Rossy_Quest > 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_End;
diff --git a/world/map/npc/026-1/_mobs.txt b/world/map/npc/026-1/_mobs.txt
index c65da2e6..db84953c 100644
--- a/world/map/npc/026-1/_mobs.txt
+++ b/world/map/npc/026-1/_mobs.txt
@@ -11,7 +11,8 @@
026-1.gat,0,0,0,0|monster|LogHead|1025,8,300000,40000,Mob026-1::On1025
-026-1.gat,0,0,0|script|Mob026-1|-1,{
+026-1.gat,0,0,0|script|Mob026-1|-1,
+{
On1003:
set @mobID, 1003;
callfunc "MobPoints";
diff --git a/world/map/npc/026-1/sign.txt b/world/map/npc/026-1/sign.txt
index 217241b5..05a1939e 100644
--- a/world/map/npc/026-1/sign.txt
+++ b/world/map/npc/026-1/sign.txt
@@ -1,6 +1,7 @@
//
-026-1.gat,64,16,0|script|Sign|400,{
+026-1.gat,64,16,0|script|Sign|400,
+{
mes "Hurnscald's Graveyard is north of here.";
mes "BEWARE!";
close;
diff --git a/world/map/npc/027-1/_mobs.txt b/world/map/npc/027-1/_mobs.txt
index ba3024ac..4aef122d 100644
--- a/world/map/npc/027-1/_mobs.txt
+++ b/world/map/npc/027-1/_mobs.txt
@@ -21,7 +21,8 @@
027-1.gat,28,67,2,1|monster|JackO|1022,1,265000,200000,Mob027-1::On1022
-027-1.gat,0,0,0|script|Mob027-1|-1,{
+027-1.gat,0,0,0|script|Mob027-1|-1,
+{
On1022:
set @mobID, 1022;
callfunc "MobPoints";
diff --git a/world/map/npc/027-1/golbenez.txt b/world/map/npc/027-1/golbenez.txt
index bc44e850..d560f953 100644
--- a/world/map/npc/027-1/golbenez.txt
+++ b/world/map/npc/027-1/golbenez.txt
@@ -1,5 +1,5 @@
-027-1.gat,68,89,0|script|#Golbenez#_M|204,{
-
+027-1.gat,68,89,0|script|#Golbenez#_M|204,
+{
set @fee, 666;
mes "[Golbenez]";
diff --git a/world/map/npc/027-1/graves.txt b/world/map/npc/027-1/graves.txt
index 7f54d8c1..30a3ad06 100644
--- a/world/map/npc/027-1/graves.txt
+++ b/world/map/npc/027-1/graves.txt
@@ -1,90 +1,103 @@
// Easter egg graves
-function|script|GraveTooFar|{
+function|script|GraveTooFar|
+{
if (isin("027-1.gat",89,54,122,76))
return;
mes "You are too far away to read the grave.";
close;
}
-027-1.gat,89,62,0|script|Grave|400,{
+027-1.gat,89,62,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ FotherJ ~";
mes "The mad sprite making genius who made all the creepy undead monster graphics.";
close;
}
-027-1.gat,118,54,0|script|Grave|400,{
+027-1.gat,118,54,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Yosuhara ~";
mes "Contributed some of the tombstones.";
close;
}
-027-1.gat,111,62,0|script|Grave|400,{
+027-1.gat,111,62,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Feline Monstrosity ~";
mes "Made the background music you are hearing.";
close;
}
-027-1.gat,112,76,0|script|Grave|400,{
+027-1.gat,112,76,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Superkoop ~";
mes "Mapped the swamp to the south.";
close;
}
-027-1.gat,120,76,0|script|Grave|400,{
+027-1.gat,120,76,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Aroleon ~";
mes "Mapped the swamp to the southeast.";
close;
}
-027-1.gat,100,68,0|script|Grave|400,{
+027-1.gat,100,68,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ John P ~";
mes "Wrote the graveyard backstory and the dialog for the caretaker quest.";
close;
}
-027-1.gat,94,70,0|script|Grave|400,{
+027-1.gat,94,70,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Spit23 ~";
mes "Made those freakin awesome cemetery gates.";
close;
}
-027-1.gat,106,60,0|script|Grave|400,{
+027-1.gat,106,60,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Black Don ~";
mes "Contributed those cool gargoyle statues.";
close;
}
-027-1.gat,92,54,0|script|Grave|400,{
+027-1.gat,92,54,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Jaxad0127 ~";
mes "Did all the scripting work for the graveyard. Made Caretaker's house.";
close;
}
-027-1.gat,122,64,0|script|Grave|400,{
+027-1.gat,122,64,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Ces Vargavind ~";
mes "Scripted caretaker's daughter.";
close;
}
-027-1.gat,102,62,0|script|Grave|400,{
+027-1.gat,102,62,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Crush ~";
mes "Organizer of the whole graveyard project, graveyard fence graphics, mapping of the graveyard itself.";
close;
}
-027-1.gat,104,76,0|script|Grave|400,{
+027-1.gat,104,76,0|script|Grave|400,
+{
callfunc "GraveTooFar";
mes "~ Freeyorp ~";
mes "Planned out monster stats and placements.";
diff --git a/world/map/npc/027-1/monsters.txt b/world/map/npc/027-1/monsters.txt
index 9f49e673..8daed98c 100644
--- a/world/map/npc/027-1/monsters.txt
+++ b/world/map/npc/027-1/monsters.txt
@@ -6,7 +6,8 @@
027-1.gat,37,65,33,22|monster|Zombie|1036,3,140000,30000,specialMob027-1::On1036
027-1.gat,37,65,33,22|monster|Fallen|1045,3,120000,30000,specialMob027-1::On1045
-027-1.gat,0,0,0|script|specialMob027-1|-1,{
+027-1.gat,0,0,0|script|specialMob027-1|-1,
+{
On1036:
set @mobID, 1036;
callsub _MOBCOUNT_ZOMBIES;
diff --git a/world/map/npc/027-2/_mobs.txt b/world/map/npc/027-2/_mobs.txt
index b0c56143..38e0dc5d 100644
--- a/world/map/npc/027-2/_mobs.txt
+++ b/world/map/npc/027-2/_mobs.txt
@@ -9,7 +9,8 @@
027-2.gat,116,26,11,9|monster|DrunkenLadySkeleton|1079,1,100000,30000,Mob027-2::On1079
-027-2.gat,0,0,0|script|Mob027-2|-1,{
+027-2.gat,0,0,0|script|Mob027-2|-1,
+{
On1077:
set @mobID, 1077;
callfunc "MobPoints";
diff --git a/world/map/npc/027-2/alacrius.txt b/world/map/npc/027-2/alacrius.txt
index 3271986e..d8b2b513 100644
--- a/world/map/npc/027-2/alacrius.txt
+++ b/world/map/npc/027-2/alacrius.txt
@@ -2,7 +2,8 @@
//(incomplete, use alacrius2.txt instead)
//To enable: sed 's_^// __' -i npc/027-2/alacrius.txt
-//027-2.gat,107,29,0|script|Alacrius|313,{
+//027-2.gat,107,29,0|script|Alacrius|313,
+//{
// // if started, go to started
// // if fail go to failed
// // if complete go to complete
diff --git a/world/map/npc/027-2/alacrius2.txt b/world/map/npc/027-2/alacrius2.txt
index b6ed70ff..94607b2d 100644
--- a/world/map/npc/027-2/alacrius2.txt
+++ b/world/map/npc/027-2/alacrius2.txt
@@ -1,7 +1,8 @@
//Starts the reaper quest
//To enable: sed 's_^// __' -i npc/027-2/alacrius2.txt
-// 027-2.gat,107,29,0|script|Alacrius|313,{
+// 027-2.gat,107,29,0|script|Alacrius|313,
+// {
// if ($@FIGHT_ALACRIUS_STATUS != 0) goto L_Enjoy;
diff --git a/world/map/npc/027-2/barman.txt b/world/map/npc/027-2/barman.txt
index 36b20533..8fbf4867 100644
--- a/world/map/npc/027-2/barman.txt
+++ b/world/map/npc/027-2/barman.txt
@@ -1,4 +1,5 @@
-027-2.gat,103,22,0|script|Bennet|310,{
+027-2.gat,103,22,0|script|Bennet|310,
+{
mes "[Bennet]";
mes "\"Hi there, stranger! My name is Bennet, the bartender here.\"";
next;
diff --git a/world/map/npc/027-2/caretaker.txt b/world/map/npc/027-2/caretaker.txt
index c3959604..ddacf86a 100644
--- a/world/map/npc/027-2/caretaker.txt
+++ b/world/map/npc/027-2/caretaker.txt
@@ -2,7 +2,8 @@
// TODO: add dialog/code for giving more letters
// Airlia supports receiving an infinate number of letters
-027-2.gat,24,25,0|script|Caretaker|159,{
+027-2.gat,24,25,0|script|Caretaker|159,
+{
set @hw2011_npc_id, $@hw2011_npc_caretaker;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
goto L_TrickOrTreat;
diff --git a/world/map/npc/027-2/cerhan.txt b/world/map/npc/027-2/cerhan.txt
index 6f453835..ec860ca4 100644
--- a/world/map/npc/027-2/cerhan.txt
+++ b/world/map/npc/027-2/cerhan.txt
@@ -1,6 +1,7 @@
// Author: Jenalya
-027-2.gat,70,77,0|script|Cerhan|311,{
+027-2.gat,70,77,0|script|Cerhan|311,
+{
mes "[Cerhan]";
mes "\"Ah, hello! It's good to see another normal human at this strange place!\"";
next;
diff --git a/world/map/npc/027-2/crying_child.txt b/world/map/npc/027-2/crying_child.txt
index f6df816c..a2eedf80 100644
--- a/world/map/npc/027-2/crying_child.txt
+++ b/world/map/npc/027-2/crying_child.txt
@@ -2,8 +2,8 @@
// love triangle quest, involved npcs: Reid's Ghost, Hamond, Savaric, Aldred, Golbenez
// Jenalya: some changes about variables (setting to zero if only used locally, naming)
-027-2.gat,50,92,0|script|Aldred|314,{
-
+027-2.gat,50,92,0|script|Aldred|314,
+{
// Crying Child subquest
// Variable states:
// 1 = You agree to help the child to find the ring outside
diff --git a/world/map/npc/027-2/diary.txt b/world/map/npc/027-2/diary.txt
index bfef84a6..d4f4b4ab 100644
--- a/world/map/npc/027-2/diary.txt
+++ b/world/map/npc/027-2/diary.txt
@@ -1,6 +1,7 @@
// Author: Jenalya
-027-2.gat,26,97,0|script|#Diary|400, {
+027-2.gat,26,97,0|script|#Diary|400,
+{
set @Graveyard_Inn_MASK, NIBBLE_0_MASK;
set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT;
diff --git a/world/map/npc/027-2/door.txt b/world/map/npc/027-2/door.txt
index a39b21f6..8c0c54cc 100644
--- a/world/map/npc/027-2/door.txt
+++ b/world/map/npc/027-2/door.txt
@@ -1,4 +1,5 @@
-027-2.gat,25,100,0|script|#DoorIn|45,1,1,{
+027-2.gat,25,100,0|script|#DoorIn|45,1,1,
+{
set @Graveyard_Inn_MASK, NIBBLE_0_MASK;
set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT;
@@ -14,7 +15,8 @@ L_Warp:
end;
}
-027-2.gat,26,99,0|script|#DoorOut|45,1,1,{
+027-2.gat,26,99,0|script|#DoorOut|45,1,1,
+{
warp "027-2.gat", 23, 98;
end;
}
diff --git a/world/map/npc/027-2/evil_guard.txt b/world/map/npc/027-2/evil_guard.txt
index bbb349df..99175c23 100644
--- a/world/map/npc/027-2/evil_guard.txt
+++ b/world/map/npc/027-2/evil_guard.txt
@@ -1,4 +1,5 @@
-027-2.gat,100,43,0|script|Blackwin|316,{
+027-2.gat,100,43,0|script|Blackwin|316,
+{
mes "...";
next;
mes "The guard glares at you, silently daring you to try something.";
@@ -11,7 +12,8 @@
close;
}
-027-2.gat,112,37,0|script|Forwin|316,{
+027-2.gat,112,37,0|script|Forwin|316,
+{
mes "[Evil Guard]";
mes "\"" + strcharinfo(0) + "...\"";
next;
diff --git a/world/map/npc/027-2/golbenez.txt b/world/map/npc/027-2/golbenez.txt
index 75836658..ffc0206f 100644
--- a/world/map/npc/027-2/golbenez.txt
+++ b/world/map/npc/027-2/golbenez.txt
@@ -9,8 +9,8 @@
// state 6: wants jackOsouls, random chance of 1/50 to success, small amount of exp for fail
// state 7: done
-027-2.gat,39,91,0|script|Golbenez|307,{
-
+027-2.gat,39,91,0|script|Golbenez|307,
+{
set @Graveyard_Inn_MASK, NIBBLE_4_MASK;
set @Graveyard_Inn_SHIFT, NIBBLE_4_SHIFT;
diff --git a/world/map/npc/027-2/gy_inn_shops.txt b/world/map/npc/027-2/gy_inn_shops.txt
index 4298106f..15ec2292 100644
--- a/world/map/npc/027-2/gy_inn_shops.txt
+++ b/world/map/npc/027-2/gy_inn_shops.txt
@@ -12,7 +12,8 @@
027-2.gat,93,22,0|shop|Umfrey|302,BoneArrows :-1,ShockSweet :-1
027-2.gat,56,99,0|shop|Leofwin|304,CactusDrink :-1,CactusPotion :-1,BugLeg :-1,SmallMushroom :-1,IronPotion :-1,ConcentrationPotion :-1,HardSpike :-1,DarkCrystal :-1,Root :-1,WispPowder :-1,SpectrePowder :-1,PoltergeistPowder :-1
-027-2.gat,106,22,0|script|Edwin|309,{
+027-2.gat,106,22,0|script|Edwin|309,
+{
set @npcname$, "Edwin";
mes "[" + @npcname$ + "]";
@@ -23,7 +24,8 @@
}
// Inn
-027-2.gat,107,39,0|script|Barbara Grey|320,{
+027-2.gat,107,39,0|script|Barbara Grey|320,
+{
set @npcname$, "Barbara Grey";
set @cost, 1000;
@@ -35,7 +37,8 @@
}
// Bank and Storage
-027-2.gat,88,22,0|script|J.P. Morbid|321,{
+027-2.gat,88,22,0|script|J.P. Morbid|321,
+{
callfunc "ClearVariables";
set @npcname$, "J.P. Morbid";
callfunc "Banker";
diff --git a/world/map/npc/027-2/headless_man.txt b/world/map/npc/027-2/headless_man.txt
index 086856cf..e22b6442 100644
--- a/world/map/npc/027-2/headless_man.txt
+++ b/world/map/npc/027-2/headless_man.txt
@@ -5,8 +5,8 @@
// state 2: items delivered, return for reward and followup story
// state 3: quest completed
-027-2.gat,22,76,0|script|Thurstan|318,{
-
+027-2.gat,22,76,0|script|Thurstan|318,
+{
if (Sex == 0) set @madamsir$, "Madam";
if (Sex == 1) set @madamsir$, "Sir";
diff --git a/world/map/npc/027-2/husband.txt b/world/map/npc/027-2/husband.txt
index 9e1b0c04..4217d9a4 100644
--- a/world/map/npc/027-2/husband.txt
+++ b/world/map/npc/027-2/husband.txt
@@ -9,8 +9,8 @@
// state 6: is set in reid, gives as reward a special bowler hat
// state 7: done
-027-2.gat,22,84,0|script|Hamond|319,{
-
+027-2.gat,22,84,0|script|Hamond|319,
+{
set @Graveyard_Inn_MASK, NIBBLE_3_MASK;
set @Graveyard_Inn_SHIFT, NIBBLE_3_SHIFT;
diff --git a/world/map/npc/027-2/innkeeper.txt b/world/map/npc/027-2/innkeeper.txt
index e3319b76..4204d041 100644
--- a/world/map/npc/027-2/innkeeper.txt
+++ b/world/map/npc/027-2/innkeeper.txt
@@ -13,8 +13,8 @@
// state 10: she spoke with hamond and savaric, gives reward mylarin dust (needed for a crafting quest in thermin)
// state 11: done, can ask about mylarin dust again
-027-2.gat,104,39,0|script|Reid's Ghost|315,{
-
+027-2.gat,104,39,0|script|Reid's Ghost|315,
+{
set @Graveyard_Inn_MASK, NIBBLE_0_MASK;
set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT;
diff --git a/world/map/npc/027-2/lover.txt b/world/map/npc/027-2/lover.txt
index 1a544158..354362b1 100644
--- a/world/map/npc/027-2/lover.txt
+++ b/world/map/npc/027-2/lover.txt
@@ -9,8 +9,8 @@
// state 6: waiting for youl, if @golbanez >= 7 got it, giving sorcerer robe
// state 7: done
-027-2.gat,43,73,0|script|Savaric|317,{
-
+027-2.gat,43,73,0|script|Savaric|317,
+{
set @Graveyard_Inn_MASK, NIBBLE_1_MASK;
set @Graveyard_Inn_SHIFT, NIBBLE_1_SHIFT;
diff --git a/world/map/npc/027-2/testnpcs.txt b/world/map/npc/027-2/testnpcs.txt
index 48f85a95..88d762e3 100644
--- a/world/map/npc/027-2/testnpcs.txt
+++ b/world/map/npc/027-2/testnpcs.txt
@@ -1,6 +1,7 @@
//several NPCs in the Reid's Inn
-027-2.gat,80,34,0|script|Lovers|303,{
+027-2.gat,80,34,0|script|Lovers|303,
+{
mes "You see a man and a woman holding each other very tight.";
next;
mes "They are kissing and whispering things to each other you can't hear.";
@@ -11,7 +12,8 @@
close;
}
-027-2.gat,75,29,0|script|Archibald|306,{
+027-2.gat,75,29,0|script|Archibald|306,
+{
//the broken grammar is intentional
mes "[Archibald]";
mes "\"Me need to prepare the food. Me helping the chef cook.\"";
@@ -20,7 +22,8 @@
close;
}
-027-2.gat,77,40,0|script|Darnel|308,{
+027-2.gat,77,40,0|script|Darnel|308,
+{
set @drunker, rand(4);
if (@drunker == 0) goto L_0;
if (@drunker == 1) goto L_1;
@@ -49,7 +52,8 @@ L_Close:
close;
}
-027-2.gat,110,23,0|script|Nigel|312,{
+027-2.gat,110,23,0|script|Nigel|312,
+{
mes "[Nigel]";
mes "\"Ohh... My head is killing me! I have to stop "
+ "drinking too much or I will lose my job... But "
diff --git a/world/map/npc/027-2/werewolf.txt b/world/map/npc/027-2/werewolf.txt
index 9c7c4468..c3187e92 100644
--- a/world/map/npc/027-2/werewolf.txt
+++ b/world/map/npc/027-2/werewolf.txt
@@ -1,6 +1,7 @@
// author: Jenalya
-027-2.gat,118,23,0|script|Wolfgang|305,{
+027-2.gat,118,23,0|script|Wolfgang|305,
+{
set @Graveyard_Inn_MASK, NIBBLE_5_MASK;
set @Graveyard_Inn_SHIFT, NIBBLE_5_SHIFT;
diff --git a/world/map/npc/027-3/_mobs.txt b/world/map/npc/027-3/_mobs.txt
index 754846e5..35f136e0 100644
--- a/world/map/npc/027-3/_mobs.txt
+++ b/world/map/npc/027-3/_mobs.txt
@@ -3,6 +3,7 @@
-027-3.gat,0,0,0|script|Mob027-3|-1,{
+027-3.gat,0,0,0|script|Mob027-3|-1,
+{
end;
}
diff --git a/world/map/npc/027-3/caskets.txt b/world/map/npc/027-3/caskets.txt
index 3531e2ee..b941195d 100644
--- a/world/map/npc/027-3/caskets.txt
+++ b/world/map/npc/027-3/caskets.txt
@@ -1,5 +1,6 @@
// Casket monster traps and key puzzle.
-027-3.gat,40,35,0|script|#casket1|400,1,1{
+027-3.gat,40,35,0|script|#casket1|400,1,1
+{
heal 3,0;
specialeffect 301;
specialeffect 302;
diff --git a/world/map/npc/027-3/entrance.txt b/world/map/npc/027-3/entrance.txt
index 490769a1..5449a12c 100644
--- a/world/map/npc/027-3/entrance.txt
+++ b/world/map/npc/027-3/entrance.txt
@@ -1,6 +1,7 @@
// Effects for opening and closing the gate. Also set it so no new player can't be warped in once the gate is opened.
-027-3.gat,40,57,0|script|#gatecontrol|400,2,1{
+027-3.gat,40,57,0|script|#gatecontrol|400,2,1
+{
mes "Once you pass this point I cannot warp anyone else to help. "
+ "Are you sure you are ready to go?";
menu
@@ -22,17 +23,20 @@ OnTimer2000:
end;
}
-027-3.gat,40,59,0|script|#closedgate|322,{
+027-3.gat,40,59,0|script|#closedgate|322,
+{
end;
}
-027-3.gat,40,59,0|script|#opengate|323,{
+027-3.gat,40,59,0|script|#opengate|323,
+{
end;
}
// Effects for the exit.
-027-3.gat,40,78,0|script|#cryptexit2|400,3,3{
+027-3.gat,40,78,0|script|#cryptexit2|400,3,3
+{
mes "Unfortunately, once I bring you to this time pocket"
+ "you cannot leave through its normal exit."
+ "The only way to get out is to defeat the reaper"
diff --git a/world/map/npc/027-4/_mobs.txt b/world/map/npc/027-4/_mobs.txt
index 091b48ac..ae73e143 100644
--- a/world/map/npc/027-4/_mobs.txt
+++ b/world/map/npc/027-4/_mobs.txt
@@ -3,6 +3,7 @@
-027-4.gat,0,0,0|script|Mob027-4|-1,{
+027-4.gat,0,0,0|script|Mob027-4|-1,
+{
end;
}
diff --git a/world/map/npc/027-4/reaper_script.txt b/world/map/npc/027-4/reaper_script.txt
index 38ee6fc3..a67e7c75 100644
--- a/world/map/npc/027-4/reaper_script.txt
+++ b/world/map/npc/027-4/reaper_script.txt
@@ -1,6 +1,7 @@
// The scripts associated with the reaper mob summoned by Alacrius in the 027-2
-027-4.gat,0,0,0|script|Reaper|-1,{
+027-4.gat,0,0,0|script|Reaper|-1,
+{
OnDead:
mes "you won!";
mapwarp "027-4.gat", "027-2.gat",104,41;
diff --git a/world/map/npc/028-1/Portal.txt b/world/map/npc/028-1/Portal.txt
index f6598146..68826cde 100644
--- a/world/map/npc/028-1/Portal.txt
+++ b/world/map/npc/028-1/Portal.txt
@@ -1,5 +1,5 @@
-028-1.gat,69,71,0|script|Portal#_M|400,{
-
+028-1.gat,69,71,0|script|Portal#_M|400,
+{
if (isin("028-1.gat",65,67,73,73)) goto L_Main;
mes "There is something there, but you aren't quite close enough to see exactly what it is.";
close;
diff --git a/world/map/npc/028-1/_mobs.txt b/world/map/npc/028-1/_mobs.txt
index 0ca1da2c..6e056048 100644
--- a/world/map/npc/028-1/_mobs.txt
+++ b/world/map/npc/028-1/_mobs.txt
@@ -15,7 +15,8 @@
028-1.gat,60,45,1,1|monster|Fallen|1045,1,700000,300000,Mob028-1::On1045
-028-1.gat,0,0,0|script|Mob028-1|-1,{
+028-1.gat,0,0,0|script|Mob028-1|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/028-3/_mobs.txt b/world/map/npc/028-3/_mobs.txt
index 4c74a41a..79accc01 100644
--- a/world/map/npc/028-3/_mobs.txt
+++ b/world/map/npc/028-3/_mobs.txt
@@ -7,7 +7,8 @@
028-3.gat,50,49,61,60|monster|Bat|1017,10,60000,10000,Mob028-3::On1017
-028-3.gat,0,0,0|script|Mob028-3|-1,{
+028-3.gat,0,0,0|script|Mob028-3|-1,
+{
On1013:
set @mobID, 1013;
callfunc "MobPoints";
diff --git a/world/map/npc/029-1/_mobs.txt b/world/map/npc/029-1/_mobs.txt
index 50ba01a1..e0577f4e 100644
--- a/world/map/npc/029-1/_mobs.txt
+++ b/world/map/npc/029-1/_mobs.txt
@@ -9,7 +9,8 @@
029-1.gat,59,51,13,9|monster|LogHead|1025,2,25000,30000,Mob029-1::On1025
-029-1.gat,0,0,0|script|Mob029-1|-1,{
+029-1.gat,0,0,0|script|Mob029-1|-1,
+{
On1013:
set @mobID, 1013;
callfunc "MobPoints";
diff --git a/world/map/npc/029-1/barrier.txt b/world/map/npc/029-1/barrier.txt
index 54ef3878..0ed76d2d 100644
--- a/world/map/npc/029-1/barrier.txt
+++ b/world/map/npc/029-1/barrier.txt
@@ -1,4 +1,5 @@
-029-1.gat,54,37,0|script|#CandorBarrier|45,0,0,{
+029-1.gat,54,37,0|script|#CandorBarrier|45,0,0,
+{
if ($@FIGHT_CAVE_STATUS == 1) goto L_Block;
warp "029-3.gat", 46, 23;
end;
diff --git a/world/map/npc/029-1/dock.txt b/world/map/npc/029-1/dock.txt
index dbc9449d..cf5dd795 100644
--- a/world/map/npc/029-1/dock.txt
+++ b/world/map/npc/029-1/dock.txt
@@ -1,6 +1,7 @@
// The ferry dock
-029-1.gat,22,37,0|script|#candordock|45,2,1,{
+029-1.gat,22,37,0|script|#candordock|45,2,1,
+{
set @loc, DOCK_candor;
callfunc "Ferry";
}
diff --git a/world/map/npc/029-3/_mobs.txt b/world/map/npc/029-3/_mobs.txt
index f830bb2d..f321a294 100644
--- a/world/map/npc/029-3/_mobs.txt
+++ b/world/map/npc/029-3/_mobs.txt
@@ -3,6 +3,7 @@
-029-3.gat,0,0,0|script|Mob029-3|-1,{
+029-3.gat,0,0,0|script|Mob029-3|-1,
+{
end;
}
diff --git a/world/map/npc/029-3/barrier.txt b/world/map/npc/029-3/barrier.txt
index bfd4e3be..1e383ced 100644
--- a/world/map/npc/029-3/barrier.txt
+++ b/world/map/npc/029-3/barrier.txt
@@ -1,4 +1,5 @@
-029-3.gat,46,21,0|script|#FightCaveBarrier|45,0,0,{
+029-3.gat,46,21,0|script|#FightCaveBarrier|45,0,0,
+{
if ($@FIGHT_CAVE_STATUS == 1) goto L_Block;
warp "029-1.gat", 54, 39;
end;
diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt
index cf0d9e0c..75bb4878 100644
--- a/world/map/npc/029-3/parua.txt
+++ b/world/map/npc/029-3/parua.txt
@@ -1,5 +1,6 @@
// Parua's fight
-029-3.gat,50,25,0|script|Parua|183,{
+029-3.gat,50,25,0|script|Parua|183,
+{
if ($@FIGHT_CAVE_STATUS == 1) goto L_Enjoy;
if ($@FIGHT_CAVE_STATUS >= 2) goto L_Wait;
mes "[Parua]";
diff --git a/world/map/npc/030-1/_mobs.txt b/world/map/npc/030-1/_mobs.txt
index 868a9a32..62ab5d53 100644
--- a/world/map/npc/030-1/_mobs.txt
+++ b/world/map/npc/030-1/_mobs.txt
@@ -6,7 +6,8 @@
030-1.gat,0,0,0,0|monster|WhiteBell|1095,4,100000,30000,Mob030-1::On1095
-030-1.gat,0,0,0|script|Mob030-1|-1,{
+030-1.gat,0,0,0|script|Mob030-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/030-2/_mobs.txt b/world/map/npc/030-2/_mobs.txt
index 29bcc3c9..3a475565 100644
--- a/world/map/npc/030-2/_mobs.txt
+++ b/world/map/npc/030-2/_mobs.txt
@@ -3,6 +3,7 @@
-030-2.gat,0,0,0|script|Mob030-2|-1,{
+030-2.gat,0,0,0|script|Mob030-2|-1,
+{
end;
}
diff --git a/world/map/npc/031-1/_mobs.txt b/world/map/npc/031-1/_mobs.txt
index 690b0456..829254ec 100644
--- a/world/map/npc/031-1/_mobs.txt
+++ b/world/map/npc/031-1/_mobs.txt
@@ -7,7 +7,8 @@
031-1.gat,0,0,0,0|monster|WhiteBell|1095,4,100000,30000,Mob031-1::On1095
-031-1.gat,0,0,0|script|Mob031-1|-1,{
+031-1.gat,0,0,0|script|Mob031-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/031-1/angelaOutside.txt b/world/map/npc/031-1/angelaOutside.txt
index 5e7017a8..c7384dae 100644
--- a/world/map/npc/031-1/angelaOutside.txt
+++ b/world/map/npc/031-1/angelaOutside.txt
@@ -4,8 +4,8 @@
// state2 and state3: Cindy is saved Angela invites you to visit them for giving a reward
// state greater than 3: Angela invites and asks you to bring present boxes
-031-1.gat,79,24,0|script|Angela|195,{
-
+031-1.gat,79,24,0|script|Angela|195,
+{
set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;
diff --git a/world/map/npc/031-1/dock.txt b/world/map/npc/031-1/dock.txt
index c6a380d8..d566c600 100644
--- a/world/map/npc/031-1/dock.txt
+++ b/world/map/npc/031-1/dock.txt
@@ -1,6 +1,7 @@
// The ferry dock
-031-1.gat,105,109,0|script|#nivalisdock|45,6,1,{
+031-1.gat,105,109,0|script|#nivalisdock|45,6,1,
+{
set @loc, DOCK_nivalis;
callfunc "Ferry";
}
diff --git a/world/map/npc/031-1/frozenbeard.txt b/world/map/npc/031-1/frozenbeard.txt
index 2f1adaae..19ad560d 100644
--- a/world/map/npc/031-1/frozenbeard.txt
+++ b/world/map/npc/031-1/frozenbeard.txt
@@ -1,6 +1,7 @@
//
-031-1.gat,96,113,0|script|Frozenbeard|138,{
+031-1.gat,96,113,0|script|Frozenbeard|138,
+{
// if (QUEST_Easter12 == 2 && ((gettime(6) == 3 && gettime(5) >= $@easter2012_start_day) || (gettime(6) == 4 && gettime(5) < $@easter2012_reward_start_day)))
// menu
// "I need to find a way to go back home, can you help me?", L_Frozenbeard_Default,
diff --git a/world/map/npc/031-1/house.txt b/world/map/npc/031-1/house.txt
index b35d816f..3d250e4e 100644
--- a/world/map/npc/031-1/house.txt
+++ b/world/map/npc/031-1/house.txt
@@ -2,7 +2,8 @@
// player can enter, if Cindy is already saved and the player has been invited, quest status > 2
// author: Jenalya
-031-1.gat,95,80,0|script|#Door|45,0,0,{
+031-1.gat,95,80,0|script|#Door|45,0,0,
+{
set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;
diff --git a/world/map/npc/031-2/_mobs.txt b/world/map/npc/031-2/_mobs.txt
index 8cc0875e..d942f137 100644
--- a/world/map/npc/031-2/_mobs.txt
+++ b/world/map/npc/031-2/_mobs.txt
@@ -3,6 +3,7 @@
-031-2.gat,0,0,0|script|Mob031-2|-1,{
+031-2.gat,0,0,0|script|Mob031-2|-1,
+{
end;
}
diff --git a/world/map/npc/031-2/angelaHouse.txt b/world/map/npc/031-2/angelaHouse.txt
index 4960a5f1..03b1b7c7 100644
--- a/world/map/npc/031-2/angelaHouse.txt
+++ b/world/map/npc/031-2/angelaHouse.txt
@@ -3,8 +3,8 @@
// state3: it's your first visit, you can choose a reward
// state4: you can do daily quests with white and yellow presents boxes
-031-2.gat,29,28,0|script|Angela|196,{
-
+031-2.gat,29,28,0|script|Angela|196,
+{
set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;
diff --git a/world/map/npc/031-2/cindyHouse.txt b/world/map/npc/031-2/cindyHouse.txt
index 13db7106..ba8c3005 100644
--- a/world/map/npc/031-2/cindyHouse.txt
+++ b/world/map/npc/031-2/cindyHouse.txt
@@ -2,8 +2,8 @@
// state0,1,2: you shouldn't be able to reach this place
// state3 and greater: Cindy is saved, she says one of some random phrases
-031-2.gat,27,26,0|script|Cindy|197, {
-
+031-2.gat,27,26,0|script|Cindy|197,
+{
set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;
diff --git a/world/map/npc/031-3/_mobs.txt b/world/map/npc/031-3/_mobs.txt
index a73d190f..4fdd83b6 100644
--- a/world/map/npc/031-3/_mobs.txt
+++ b/world/map/npc/031-3/_mobs.txt
@@ -92,7 +92,8 @@
031-3.gat,52,285,14,9|monster|BlueSlime|1091,2,100000,30000,Mob031-3::On1091
-031-3.gat,0,0,0|script|Mob031-3|-1,{
+031-3.gat,0,0,0|script|Mob031-3|-1,
+{
On1017:
set @mobID, 1017;
callfunc "MobPoints";
diff --git a/world/map/npc/031-3/labyrinth.txt b/world/map/npc/031-3/labyrinth.txt
index 39a8ba90..ff9374b1 100644
--- a/world/map/npc/031-3/labyrinth.txt
+++ b/world/map/npc/031-3/labyrinth.txt
@@ -1,7 +1,8 @@
// Conditional warp for yeti cave
// Authors: Jenalya
-031-3.gat,46,24,0|script|#YetiBarrier|45,0,0,{
+031-3.gat,46,24,0|script|#YetiBarrier|45,0,0,
+{
if ($@FIGHT_YETI_STATUS == 1) goto L_Blocked;
warp "031-4.gat", 40, 70;
end;
diff --git a/world/map/npc/031-4/_mobs.txt b/world/map/npc/031-4/_mobs.txt
index 5bbd2f39..5bc52ad0 100644
--- a/world/map/npc/031-4/_mobs.txt
+++ b/world/map/npc/031-4/_mobs.txt
@@ -3,6 +3,7 @@
-031-4.gat,0,0,0|script|Mob031-4|-1,{
+031-4.gat,0,0,0|script|Mob031-4|-1,
+{
end;
}
diff --git a/world/map/npc/031-4/barrier.txt b/world/map/npc/031-4/barrier.txt
index 83daffd7..e8401ba8 100644
--- a/world/map/npc/031-4/barrier.txt
+++ b/world/map/npc/031-4/barrier.txt
@@ -1,4 +1,5 @@
-031-4.gat,40,71,0|script|#YetiBarrier|45,0,0,{
+031-4.gat,40,71,0|script|#YetiBarrier|45,0,0,
+{
if ($@FIGHT_YETI_STATUS == 1) goto L_Block;
warp "031-3.gat", 46, 25;
end;
diff --git a/world/map/npc/031-4/cindyCave.txt b/world/map/npc/031-4/cindyCave.txt
index ef84a33f..2534981a 100644
--- a/world/map/npc/031-4/cindyCave.txt
+++ b/world/map/npc/031-4/cindyCave.txt
@@ -4,7 +4,8 @@
// state2: Cindy is saved, she gives you a reward (wizard hat or wooden staff)
// state3: and greater: Cindy is saved, she asks you to visit them
-031-4.gat,42,42,0|script|Cindy|198, {
+031-4.gat,42,42,0|script|Cindy|198,
+{
if ($@FIGHT_YETI_STATUS != 0) goto L_Yeti;
set @KEYS_AMOUNT, 10;
diff --git a/world/map/npc/032-1/_mobs.txt b/world/map/npc/032-1/_mobs.txt
index dc68e34b..8d879b0d 100644
--- a/world/map/npc/032-1/_mobs.txt
+++ b/world/map/npc/032-1/_mobs.txt
@@ -8,7 +8,8 @@
032-1.gat,77,76,34,27|monster|Snake|1010,13,30000,100000,Mob032-1::On1010
-032-1.gat,0,0,0|script|Mob032-1|-1,{
+032-1.gat,0,0,0|script|Mob032-1|-1,
+{
On1009:
set @mobID, 1009;
callfunc "MobPoints";
diff --git a/world/map/npc/032-1/miriam.txt b/world/map/npc/032-1/miriam.txt
index 247a2a8b..f812454f 100644
--- a/world/map/npc/032-1/miriam.txt
+++ b/world/map/npc/032-1/miriam.txt
@@ -18,8 +18,8 @@
// after you gained the speed skill, all variables are reset to zero.
//#############################################
-032-1.gat,55,20,0|script|Miriam|175,{
-
+032-1.gat,55,20,0|script|Miriam|175,
+{
if (getskilllv(SKILL_SPEED)) goto L_fast;
if (getequipid(equip_torso) < 0) goto L_naked;
if (QUEST_MIRIAM == 0) goto L_intro;
diff --git a/world/map/npc/032-3/_mobs.txt b/world/map/npc/032-3/_mobs.txt
index 05ff2049..6c04eda2 100644
--- a/world/map/npc/032-3/_mobs.txt
+++ b/world/map/npc/032-3/_mobs.txt
@@ -13,7 +13,8 @@
032-3.gat,0,0,0,0|monster|Bat|1017,25,30000,100000,Mob032-3::On1017
-032-3.gat,0,0,0|script|Mob032-3|-1,{
+032-3.gat,0,0,0|script|Mob032-3|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/033-1/_mobs.txt b/world/map/npc/033-1/_mobs.txt
index 560442e6..30ad6b12 100644
--- a/world/map/npc/033-1/_mobs.txt
+++ b/world/map/npc/033-1/_mobs.txt
@@ -7,7 +7,8 @@
033-1.gat,0,0,0,0|monster|WhiteBell|1095,3,100000,30000,Mob033-1::On1095
-033-1.gat,0,0,0|script|Mob033-1|-1,{
+033-1.gat,0,0,0|script|Mob033-1|-1,
+{
On1038:
set @mobID, 1038;
callfunc "MobPoints";
diff --git a/world/map/npc/033-1/backDoor.txt b/world/map/npc/033-1/backDoor.txt
index d7f48567..9f40bb5c 100644
--- a/world/map/npc/033-1/backDoor.txt
+++ b/world/map/npc/033-1/backDoor.txt
@@ -1,4 +1,5 @@
-033-1.gat,86,28,0|script|#KimarrBackDoor|45,0,0,{
+033-1.gat,86,28,0|script|#KimarrBackDoor|45,0,0,
+{
if ($@Fluffy_Hunting == 0)
goto L_Warp;
end;
diff --git a/world/map/npc/033-1/barbarianinit.txt b/world/map/npc/033-1/barbarianinit.txt
index 3307ac0f..09c7b1f0 100644
--- a/world/map/npc/033-1/barbarianinit.txt
+++ b/world/map/npc/033-1/barbarianinit.txt
@@ -1,4 +1,5 @@
--|script|#barbarian033_1init|-1,{
+-|script|#barbarian033_1init|-1,
+{
OnInit:
set $@Q_Barbarians_MASK, NIBBLE_0_MASK;
set $@Q_Barbarians_SHIFT, NIBBLE_0_SHIFT;
diff --git a/world/map/npc/033-1/birrod.txt b/world/map/npc/033-1/birrod.txt
index 106ca056..b2af19a0 100644
--- a/world/map/npc/033-1/birrod.txt
+++ b/world/map/npc/033-1/birrod.txt
@@ -1,5 +1,5 @@
-033-1.gat,72,27,0|script|Birrod|217,{
-
+033-1.gat,72,27,0|script|Birrod|217,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
set @wolvern_level, 40; // minimum level to do the wolvern hunting
diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt
index 9365060e..6614f273 100644
--- a/world/map/npc/033-1/kimarr.txt
+++ b/world/map/npc/033-1/kimarr.txt
@@ -32,7 +32,8 @@
// that's the only reason I didn't make that one a local variable like it really is
-033-1.gat,74,32,0|script|Kimarr|218,{
+033-1.gat,74,32,0|script|Kimarr|218,
+{
if ($@Fluffy_FighterID == getcharid(3))
goto L_Attention;
diff --git a/world/map/npc/033-1/yerrnk.txt b/world/map/npc/033-1/yerrnk.txt
index 5e996bd1..c2ae904b 100644
--- a/world/map/npc/033-1/yerrnk.txt
+++ b/world/map/npc/033-1/yerrnk.txt
@@ -1,4 +1,5 @@
-033-1.gat,66,28,0|script|Yerrnk|216,{
+033-1.gat,66,28,0|script|Yerrnk|216,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
set @yeti_level, 70;
diff --git a/world/map/npc/034-1/_mobs.txt b/world/map/npc/034-1/_mobs.txt
index b6137fa8..f5b2d0ee 100644
--- a/world/map/npc/034-1/_mobs.txt
+++ b/world/map/npc/034-1/_mobs.txt
@@ -7,7 +7,8 @@
034-1.gat,0,0,0,0|monster|Squirrel|1038,50,100000,30000,Mob034-1::On1038
-034-1.gat,0,0,0|script|Mob034-1|-1,{
+034-1.gat,0,0,0|script|Mob034-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/034-1/ambushs.txt b/world/map/npc/034-1/ambushs.txt
index a1aa8a69..787e99ad 100644
--- a/world/map/npc/034-1/ambushs.txt
+++ b/world/map/npc/034-1/ambushs.txt
@@ -1,7 +1,8 @@
// This file belongs to the wolvern hunting quest given by 033-1/birrod.txt
// Author: Jenalya, cody, PjotrOrial
-034-1.gat,118,59,0|script|#Ambush0Trigger|32767,2,2,{
+034-1.gat,118,59,0|script|#Ambush0Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -20,7 +21,8 @@
end;
}
-034-1.gat,118,59,0|script|#Ambush0|32767,{
+034-1.gat,118,59,0|script|#Ambush0|32767,
+{
end;
OnAmbush:
@@ -57,7 +59,8 @@ L_Count:
}
-034-1.gat,94,91,0|script|#Ambush1Trigger|32767,2,2,{
+034-1.gat,94,91,0|script|#Ambush1Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -76,7 +79,8 @@ L_Count:
end;
}
-034-1.gat,94,91,0|script|#Ambush1|32767,{
+034-1.gat,94,91,0|script|#Ambush1|32767,
+{
end;
OnAmbush:
@@ -113,7 +117,8 @@ L_Count:
}
-034-1.gat,122,35,0|script|#Ambush2Trigger|32767,2,2,{
+034-1.gat,122,35,0|script|#Ambush2Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -132,7 +137,8 @@ L_Count:
end;
}
-034-1.gat,122,35,0|script|#Ambush2|32767,{
+034-1.gat,122,35,0|script|#Ambush2|32767,
+{
end;
OnAmbush:
@@ -169,7 +175,8 @@ L_Count:
}
-034-1.gat,83,44,0|script|#Ambush3Trigger|32767,2,2,{
+034-1.gat,83,44,0|script|#Ambush3Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -188,7 +195,8 @@ L_Count:
end;
}
-034-1.gat,83,44,0|script|#Ambush3|32767,{
+034-1.gat,83,44,0|script|#Ambush3|32767,
+{
end;
OnAmbush:
@@ -225,7 +233,8 @@ L_Count:
}
-034-1.gat,74,28,0|script|#Ambush4Trigger|32767,2,2,{
+034-1.gat,74,28,0|script|#Ambush4Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -244,7 +253,8 @@ L_Count:
end;
}
-034-1.gat,74,28,0|script|#Ambush4|32767,{
+034-1.gat,74,28,0|script|#Ambush4|32767,
+{
end;
OnAmbush:
@@ -281,7 +291,8 @@ L_Count:
}
-034-1.gat,26,44,0|script|#Ambush5Trigger|32767,2,2,{
+034-1.gat,26,44,0|script|#Ambush5Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -300,7 +311,8 @@ L_Count:
end;
}
-034-1.gat,26,44,0|script|#Ambush5|32767,{
+034-1.gat,26,44,0|script|#Ambush5|32767,
+{
end;
OnAmbush:
@@ -337,7 +349,8 @@ L_Count:
}
-034-1.gat,50,47,0|script|#Ambush6Trigger|32767,2,2,{
+034-1.gat,50,47,0|script|#Ambush6Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -356,7 +369,8 @@ L_Count:
end;
}
-034-1.gat,50,47,0|script|#Ambush6|32767,{
+034-1.gat,50,47,0|script|#Ambush6|32767,
+{
end;
OnAmbush:
@@ -393,7 +407,8 @@ L_Count:
}
-034-1.gat,36,62,0|script|#Ambush7Trigger|32767,2,2,{
+034-1.gat,36,62,0|script|#Ambush7Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -412,7 +427,8 @@ L_Count:
end;
}
-034-1.gat,36,62,0|script|#Ambush7|32767,{
+034-1.gat,36,62,0|script|#Ambush7|32767,
+{
end;
OnAmbush:
@@ -449,7 +465,8 @@ L_Count:
}
-034-1.gat,26,95,0|script|#Ambush8Trigger|32767,2,2,{
+034-1.gat,26,95,0|script|#Ambush8Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -468,7 +485,8 @@ L_Count:
end;
}
-034-1.gat,26,95,0|script|#Ambush8|32767,{
+034-1.gat,26,95,0|script|#Ambush8|32767,
+{
end;
OnAmbush:
@@ -505,7 +523,8 @@ L_Count:
}
-034-1.gat,56,91,0|script|#Ambush9Trigger|32767,2,2,{
+034-1.gat,56,91,0|script|#Ambush9Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -524,7 +543,8 @@ L_Count:
end;
}
-034-1.gat,56,91,0|script|#Ambush9|32767,{
+034-1.gat,56,91,0|script|#Ambush9|32767,
+{
end;
OnAmbush:
@@ -561,7 +581,8 @@ L_Count:
}
-034-1.gat,65,66,0|script|#Ambush10Trigger|32767,2,2,{
+034-1.gat,65,66,0|script|#Ambush10Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -580,7 +601,8 @@ L_Count:
end;
}
-034-1.gat,65,66,0|script|#Ambush10|32767,{
+034-1.gat,65,66,0|script|#Ambush10|32767,
+{
end;
OnAmbush:
@@ -617,7 +639,8 @@ L_Count:
}
-034-1.gat,86,68,0|script|#Ambush11Trigger|32767,2,2,{
+034-1.gat,86,68,0|script|#Ambush11Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -636,7 +659,8 @@ L_Count:
end;
}
-034-1.gat,86,68,0|script|#Ambush11|32767,{
+034-1.gat,86,68,0|script|#Ambush11|32767,
+{
end;
OnAmbush:
@@ -673,7 +697,8 @@ L_Count:
}
-034-1.gat,101,79,0|script|#Ambush12Trigger|32767,2,2,{
+034-1.gat,101,79,0|script|#Ambush12Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -692,7 +717,8 @@ L_Count:
end;
}
-034-1.gat,101,79,0|script|#Ambush12|32767,{
+034-1.gat,101,79,0|script|#Ambush12|32767,
+{
end;
OnAmbush:
@@ -729,7 +755,8 @@ L_Count:
}
-034-1.gat,124,88,0|script|#Ambush13Trigger|32767,2,2,{
+034-1.gat,124,88,0|script|#Ambush13Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -748,7 +775,8 @@ L_Count:
end;
}
-034-1.gat,124,88,0|script|#Ambush13|32767,{
+034-1.gat,124,88,0|script|#Ambush13|32767,
+{
end;
OnAmbush:
@@ -785,7 +813,8 @@ L_Count:
}
-034-1.gat,117,103,0|script|#Ambush14Trigger|32767,2,2,{
+034-1.gat,117,103,0|script|#Ambush14Trigger|32767,2,2,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 4)
end;
@@ -804,7 +833,8 @@ L_Count:
end;
}
-034-1.gat,117,103,0|script|#Ambush14|32767,{
+034-1.gat,117,103,0|script|#Ambush14|32767,
+{
end;
OnAmbush:
diff --git a/world/map/npc/034-1/yetiSpawn.txt b/world/map/npc/034-1/yetiSpawn.txt
index 9c1b537a..ebf7b171 100644
--- a/world/map/npc/034-1/yetiSpawn.txt
+++ b/world/map/npc/034-1/yetiSpawn.txt
@@ -1,7 +1,8 @@
// This file belongs to the yeti hunting quest given by 033-1/yerrnk.txt
// Author: Jenalya
-034-1.gat,79,98,0|script|#Yerrnk_YetiTrigger|32767,1,3,{
+034-1.gat,79,98,0|script|#Yerrnk_YetiTrigger|32767,1,3,
+{
set @state, ((QUEST_Barbarians & $@Q_Barbarians_MASK) >> $@Q_Barbarians_SHIFT);
if (@state != 7)
end;
@@ -14,7 +15,8 @@
end;
}
-034-1.gat,78,98,0|script|#Yerrnk_Yeti|32767,{
+034-1.gat,78,98,0|script|#Yerrnk_Yeti|32767,
+{
end;
OnYeti:
diff --git a/world/map/npc/034-2/_mobs.txt b/world/map/npc/034-2/_mobs.txt
index 9cabee2a..81fca6aa 100644
--- a/world/map/npc/034-2/_mobs.txt
+++ b/world/map/npc/034-2/_mobs.txt
@@ -3,6 +3,7 @@
-034-2.gat,0,0,0|script|Mob034-2|-1,{
+034-2.gat,0,0,0|script|Mob034-2|-1,
+{
end;
}
diff --git a/world/map/npc/041-1/_mobs.txt b/world/map/npc/041-1/_mobs.txt
index 9ae0a1c1..d53f9bd2 100644
--- a/world/map/npc/041-1/_mobs.txt
+++ b/world/map/npc/041-1/_mobs.txt
@@ -14,7 +14,8 @@
041-1.gat,83,64,18,9|monster|RedScorpion|1004,3,100000,30000,Mob041-1::On1004
-041-1.gat,0,0,0|script|Mob041-1|-1,{
+041-1.gat,0,0,0|script|Mob041-1|-1,
+{
On1003:
set @mobID, 1003;
callfunc "MobPoints";
diff --git a/world/map/npc/041-1/tutorial.txt b/world/map/npc/041-1/tutorial.txt
index 95a5e6e0..813df482 100644
--- a/world/map/npc/041-1/tutorial.txt
+++ b/world/map/npc/041-1/tutorial.txt
@@ -2,7 +2,8 @@
// Author: Jenalya
// if you enter the tutorial area, it is set to be already done
-041-1.gat,58,5,0|script|#tutorial|45,1,0{
+041-1.gat,58,5,0|script|#tutorial|45,1,0
+{
set FLAGS, FLAGS | FLAG_TUTORIAL_DONE;
warp "042-1.gat", 44, 143;
end;
diff --git a/world/map/npc/042-1/_mobs.txt b/world/map/npc/042-1/_mobs.txt
index 15b4d2e9..a64cf913 100644
--- a/world/map/npc/042-1/_mobs.txt
+++ b/world/map/npc/042-1/_mobs.txt
@@ -8,7 +8,8 @@
042-1.gat,62,81,42,50|monster|FireGoblin|1011,2,100000,30000,Mob042-1::On1011
-042-1.gat,0,0,0|script|Mob042-1|-1,{
+042-1.gat,0,0,0|script|Mob042-1|-1,
+{
On1002:
set @mobID, 1002;
callfunc "MobPoints";
diff --git a/world/map/npc/042-1/hasan.txt b/world/map/npc/042-1/hasan.txt
index 70b3a430..a8774166 100644
--- a/world/map/npc/042-1/hasan.txt
+++ b/world/map/npc/042-1/hasan.txt
@@ -1,8 +1,8 @@
// This file is part of the Tutorial
// Authors: Jenalya, alastrim
-042-1.gat,90,61,0|script|Hasan|189,{
-
+042-1.gat,90,61,0|script|Hasan|189,
+{
set @toll, 10000;
set @x, getx();
set @y, gety();
@@ -211,7 +211,8 @@ onScorpionDeath:
}
-042-1.gat,90,62,0|script|#Toll|32767,2,2,{
+042-1.gat,90,62,0|script|#Toll|32767,2,2,
+{
end;
OnTouch:
@@ -226,7 +227,8 @@ OnTouch:
}
-042-1.gat,96,69,0|script|#barrier|45,0,2{
+042-1.gat,96,69,0|script|#barrier|45,0,2
+{
end;
OnTouch:
diff --git a/world/map/npc/042-1/kaan.txt b/world/map/npc/042-1/kaan.txt
index ac2e6edc..027e5895 100644
--- a/world/map/npc/042-1/kaan.txt
+++ b/world/map/npc/042-1/kaan.txt
@@ -1,8 +1,8 @@
// This file is part of the Tutorial
// Author: Jenalya
-042-1.gat,84,65,0|script|Kaan|160,{
-
+042-1.gat,84,65,0|script|Kaan|160,
+{
if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done;
if (hasan == 4) goto L_Hasan_Saved;
if ($@ScorpionFighter == getcharid(3)) goto L_Run;
diff --git a/world/map/npc/042-1/npcs.txt b/world/map/npc/042-1/npcs.txt
index 9d2d6ebb..d1bb5586 100644
--- a/world/map/npc/042-1/npcs.txt
+++ b/world/map/npc/042-1/npcs.txt
@@ -1,6 +1,7 @@
// Talk NPCs to help make trek interesting between Tutorial and Bazaar.
-042-1.gat,82,96,0|script|Liana|205,{
+042-1.gat,82,96,0|script|Liana|205,
+{
set @npcname$, "Liana";
mes "[" + @npcname$ + "]";
diff --git a/world/map/npc/042-1/valon.txt b/world/map/npc/042-1/valon.txt
index 07d2ae66..63530aec 100644
--- a/world/map/npc/042-1/valon.txt
+++ b/world/map/npc/042-1/valon.txt
@@ -1,8 +1,8 @@
// This file is part of the Tutorial
// Author: Jenalya
-042-1.gat,44,144,0|script|Valon|156,1,0{
-
+042-1.gat,44,144,0|script|Valon|156,1,0
+{
if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done;
mes "[Valon]";
diff --git a/world/map/npc/042-2/_mobs.txt b/world/map/npc/042-2/_mobs.txt
index 4bebc4ec..a423b87a 100644
--- a/world/map/npc/042-2/_mobs.txt
+++ b/world/map/npc/042-2/_mobs.txt
@@ -3,6 +3,7 @@
-042-2.gat,0,0,0|script|Mob042-2|-1,{
+042-2.gat,0,0,0|script|Mob042-2|-1,
+{
end;
}
diff --git a/world/map/npc/042-2/sorfina.txt b/world/map/npc/042-2/sorfina.txt
index 7d767e3f..dd63b753 100644
--- a/world/map/npc/042-2/sorfina.txt
+++ b/world/map/npc/042-2/sorfina.txt
@@ -1,8 +1,8 @@
// This file is part of the Tutorial
// Author: Jenalya
-042-2.gat,28,26,0|script|Sorfina|154,4,4{
-
+042-2.gat,28,26,0|script|Sorfina|154,4,4
+{
if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Again;
if (sorfina == 4) goto L_Heal;
if (sorfina == 3) goto L_Clothes;
@@ -247,7 +247,8 @@ OnTouch:
goto L_Start;
}
-042-2.gat,33,27,0|script|#Carpet|32767,1,1{
+042-2.gat,33,27,0|script|#Carpet|32767,1,1
+{
end;
OnTouch:
@@ -269,8 +270,8 @@ OnTouch:
close;
}
-042-2.gat,27,23,0|script|Chest|111,{
-
+042-2.gat,27,23,0|script|Chest|111,
+{
if (sorfina > 2) goto L_Empty;
if (sorfina == 2) goto L_Shirt;
@@ -296,7 +297,8 @@ L_Empty:
close;
}
-042-2.gat,44,31,0|script|#DoorOut|45,0,0{
+042-2.gat,44,31,0|script|#DoorOut|45,0,0
+{
end;
OnTouch:
diff --git a/world/map/npc/042-2/tanisha.txt b/world/map/npc/042-2/tanisha.txt
index 9363d1b6..437099dd 100644
--- a/world/map/npc/042-2/tanisha.txt
+++ b/world/map/npc/042-2/tanisha.txt
@@ -2,7 +2,8 @@
// Authors: Jenalya, alastrim
// Cleanup: o11c
-042-2.gat,37,90,0|script|Tanisha|114,{
+042-2.gat,37,90,0|script|Tanisha|114,
+{
if (isin("042-2.gat", 30, 85, 36, 89))
goto L_Fighting;
diff --git a/world/map/npc/043-1/_mobs.txt b/world/map/npc/043-1/_mobs.txt
index 469a4dba..7d8c46b9 100644
--- a/world/map/npc/043-1/_mobs.txt
+++ b/world/map/npc/043-1/_mobs.txt
@@ -6,7 +6,8 @@
043-1.gat,0,0,0,0|monster|GreenSlime|1005,20,60000,60000,Mob043-1::On1005
-043-1.gat,0,0,0|script|Mob043-1|-1,{
+043-1.gat,0,0,0|script|Mob043-1|-1,
+{
On1005:
set @mobID, 1005;
callfunc "MobPoints";
diff --git a/world/map/npc/043-3/_mobs.txt b/world/map/npc/043-3/_mobs.txt
index 30362328..416a6e9a 100644
--- a/world/map/npc/043-3/_mobs.txt
+++ b/world/map/npc/043-3/_mobs.txt
@@ -12,7 +12,8 @@
043-3.gat,94,44,40,18|monster|GreenSlime|1005,5,30000,15000,Mob043-3::On1005
-043-3.gat,0,0,0|script|Mob043-3|-1,{
+043-3.gat,0,0,0|script|Mob043-3|-1,
+{
On1005:
set @mobID, 1005;
callfunc "MobPoints";
diff --git a/world/map/npc/044-1/_mobs.txt b/world/map/npc/044-1/_mobs.txt
index 2ae40c5b..5812314e 100644
--- a/world/map/npc/044-1/_mobs.txt
+++ b/world/map/npc/044-1/_mobs.txt
@@ -19,7 +19,8 @@
044-1.gat,0,0,0,0|monster|WhiteBell|1095,10,100000,30000,Mob044-1::On1095
-044-1.gat,0,0,0|script|Mob044-1|-1,{
+044-1.gat,0,0,0|script|Mob044-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/044-3/_mobs.txt b/world/map/npc/044-3/_mobs.txt
index 8a491d3e..93800c6f 100644
--- a/world/map/npc/044-3/_mobs.txt
+++ b/world/map/npc/044-3/_mobs.txt
@@ -24,7 +24,8 @@
044-3.gat,121,172,9,8|monster|WhiteSlime|1093,7,100000,30000,Mob044-3::On1093
-044-3.gat,0,0,0|script|Mob044-3|-1,{
+044-3.gat,0,0,0|script|Mob044-3|-1,
+{
On1058:
set @mobID, 1058;
callfunc "MobPoints";
diff --git a/world/map/npc/045-1/_mobs.txt b/world/map/npc/045-1/_mobs.txt
index c82f58f5..d0a5f473 100644
--- a/world/map/npc/045-1/_mobs.txt
+++ b/world/map/npc/045-1/_mobs.txt
@@ -15,7 +15,8 @@
045-1.gat,0,0,0,0|monster|WhiteBell|1095,5,100000,30000,Mob045-1::On1095
-045-1.gat,0,0,0|script|Mob045-1|-1,{
+045-1.gat,0,0,0|script|Mob045-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/046-1/_mobs.txt b/world/map/npc/046-1/_mobs.txt
index b2ab1634..a52f0451 100644
--- a/world/map/npc/046-1/_mobs.txt
+++ b/world/map/npc/046-1/_mobs.txt
@@ -14,7 +14,8 @@
046-1.gat,145,60,10,9|monster|Wolvern|1090,2,100000,30000,Mob046-1::On1090
-046-1.gat,0,0,0|script|Mob046-1|-1,{
+046-1.gat,0,0,0|script|Mob046-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/046-3/_mobs.txt b/world/map/npc/046-3/_mobs.txt
index 307cf285..96d59230 100644
--- a/world/map/npc/046-3/_mobs.txt
+++ b/world/map/npc/046-3/_mobs.txt
@@ -18,7 +18,8 @@
046-3.gat,113,48,12,8|monster|Yeti|1072,2,100000,30000,Mob046-3::On1072
-046-3.gat,0,0,0|script|Mob046-3|-1,{
+046-3.gat,0,0,0|script|Mob046-3|-1,
+{
On1058:
set @mobID, 1058;
callfunc "MobPoints";
diff --git a/world/map/npc/047-1/_mobs.txt b/world/map/npc/047-1/_mobs.txt
index 2151fb1e..75d39326 100644
--- a/world/map/npc/047-1/_mobs.txt
+++ b/world/map/npc/047-1/_mobs.txt
@@ -12,7 +12,8 @@
047-1.gat,61,29,23,13|monster|Wolvern|1090,4,100000,30000,Mob047-1::On1090
-047-1.gat,0,0,0|script|Mob047-1|-1,{
+047-1.gat,0,0,0|script|Mob047-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/048-1/_mobs.txt b/world/map/npc/048-1/_mobs.txt
index 953e1932..34a8731a 100644
--- a/world/map/npc/048-1/_mobs.txt
+++ b/world/map/npc/048-1/_mobs.txt
@@ -14,7 +14,8 @@
048-1.gat,42,25,2,2|monster|WhiteSlime|1093,4,100000,30000,Mob048-1::On1093
-048-1.gat,0,0,0|script|Mob048-1|-1,{
+048-1.gat,0,0,0|script|Mob048-1|-1,
+{
On1020:
set @mobID, 1020;
callfunc "MobPoints";
diff --git a/world/map/npc/048-2/_mobs.txt b/world/map/npc/048-2/_mobs.txt
index 6aa368b2..a1f6d8a3 100644
--- a/world/map/npc/048-2/_mobs.txt
+++ b/world/map/npc/048-2/_mobs.txt
@@ -3,6 +3,7 @@
-048-2.gat,0,0,0|script|Mob048-2|-1,{
+048-2.gat,0,0,0|script|Mob048-2|-1,
+{
end;
}
diff --git a/world/map/npc/048-2/bluesageConfig.txt b/world/map/npc/048-2/bluesageConfig.txt
index 6ff952bd..e0112abc 100644
--- a/world/map/npc/048-2/bluesageConfig.txt
+++ b/world/map/npc/048-2/bluesageConfig.txt
@@ -51,7 +51,8 @@
// Bit 0: started the subquest
// Bit 1 - 7: each spawn point is unique and saved with a flag
--|script|#bluesageconfig|-1,{
+-|script|#bluesageconfig|-1,
+{
OnInit:
set $@Q_BlueSageMinimumLevel, 60;
@@ -93,17 +94,20 @@ OnInit:
set $@BlueSageSlime6_Amount, 1;
}
-function|script|updateBlueSageBookPages|{
+function|script|updateBlueSageBookPages|
+{
set QUEST_BlueSage, (QUEST_BlueSage & ~($@Q_BlueSageBookPages_MASK) | (@bookpages << $@Q_BlueSageBookPages_SHIFT));
return;
}
-function|script|updateBlueSageInvestigate|{
+function|script|updateBlueSageInvestigate|
+{
set QUEST_BlueSage, (QUEST_BlueSage & ~($@Q_BlueSageInvestigate_MASK) | (@investigate << $@Q_BlueSageInvestigate_SHIFT));
return;
}
-function|script|blueSageNumberOfClearedNests|{
+function|script|blueSageNumberOfClearedNests|
+{
set @slimenests, 0;
if (QUEST_BlueSage & $@Q_BlueSageSlime0)
set @slimenests, @slimenests+1;
diff --git a/world/map/npc/048-2/helperAccused.txt b/world/map/npc/048-2/helperAccused.txt
index dd5a454e..995aa998 100644
--- a/world/map/npc/048-2/helperAccused.txt
+++ b/world/map/npc/048-2/helperAccused.txt
@@ -4,8 +4,8 @@
// Peetu is the person who caused the accident
// involved investigation subquest
-048-2.gat,25,135,0|script|Peetu|366,{
-
+048-2.gat,25,135,0|script|Peetu|366,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
if (@investigate >= 12) goto L_Thank;
diff --git a/world/map/npc/048-2/helperBookpages1.txt b/world/map/npc/048-2/helperBookpages1.txt
index 5dbdd017..1890be61 100644
--- a/world/map/npc/048-2/helperBookpages1.txt
+++ b/world/map/npc/048-2/helperBookpages1.txt
@@ -4,8 +4,8 @@
// Ensio is one of the helpers working on sorting the bookpages, can take bookpages
// can give second hint about the visitor in investigation subquest
-048-2.gat,104,86,0|script|Ensio|365,{
-
+048-2.gat,104,86,0|script|Ensio|365,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @bookpages, ((QUEST_BlueSage & $@Q_BlueSageBookPages_MASK) >> $@Q_BlueSageBookPages_SHIFT);
diff --git a/world/map/npc/048-2/helperBookpages2.txt b/world/map/npc/048-2/helperBookpages2.txt
index 172227a8..4eb44feb 100644
--- a/world/map/npc/048-2/helperBookpages2.txt
+++ b/world/map/npc/048-2/helperBookpages2.txt
@@ -4,8 +4,8 @@
// Henriikka is one of the helpers working on sorting the bookpages, sends the player to Ensio
// can be questioned as part of the investigation subquest, but doesn't give hints
-048-2.gat,94,86,0|script|Henriikka|363,{
-
+048-2.gat,94,86,0|script|Henriikka|363,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @bookpages, ((QUEST_BlueSage & $@Q_BlueSageBookPages_MASK) >> $@Q_BlueSageBookPages_SHIFT);
diff --git a/world/map/npc/048-2/helperBookpages3.txt b/world/map/npc/048-2/helperBookpages3.txt
index e0c356fc..b3591abb 100644
--- a/world/map/npc/048-2/helperBookpages3.txt
+++ b/world/map/npc/048-2/helperBookpages3.txt
@@ -4,8 +4,8 @@
// Teuvo is one of the helpers working on sorting the bookpages
// can give second hint about Peetu in investigation subquest
-048-2.gat,99,87,0|script|Teuvo|366,{
-
+048-2.gat,99,87,0|script|Teuvo|366,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @bookpages, ((QUEST_BlueSage & $@Q_BlueSageBookPages_MASK) >> $@Q_BlueSageBookPages_SHIFT);
diff --git a/world/map/npc/048-2/helperChief.txt b/world/map/npc/048-2/helperChief.txt
index 727d3d21..1f8de65f 100644
--- a/world/map/npc/048-2/helperChief.txt
+++ b/world/map/npc/048-2/helperChief.txt
@@ -4,8 +4,8 @@
// Chief of the Blue Sage helpers
// involved in investigation subquest
-048-2.gat,146,26,0|script|Oskari|365,{
-
+048-2.gat,146,26,0|script|Oskari|365,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
if (@investigate >= 11) goto L_GoodJob;
diff --git a/world/map/npc/048-2/helperCleaning1.txt b/world/map/npc/048-2/helperCleaning1.txt
index d7c989a6..2257cf49 100644
--- a/world/map/npc/048-2/helperCleaning1.txt
+++ b/world/map/npc/048-2/helperCleaning1.txt
@@ -4,8 +4,8 @@
// Pyry works on cleaning the library, can start the slime subquest
// can give second hint about helper in investigation subquest
-048-2.gat,117,106,0|script|Pyry|365,{
-
+048-2.gat,117,106,0|script|Pyry|365,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
diff --git a/world/map/npc/048-2/helperCleaning2.txt b/world/map/npc/048-2/helperCleaning2.txt
index 15fede97..7dc99811 100644
--- a/world/map/npc/048-2/helperCleaning2.txt
+++ b/world/map/npc/048-2/helperCleaning2.txt
@@ -4,8 +4,8 @@
// Nea works on cleaning the library
// can give second hint about helper in investigation subquest
-048-2.gat,123,87,0|script|Nea|363,{
-
+048-2.gat,123,87,0|script|Nea|363,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
diff --git a/world/map/npc/048-2/helperCleaning3.txt b/world/map/npc/048-2/helperCleaning3.txt
index 37f6aaf1..752a9db8 100644
--- a/world/map/npc/048-2/helperCleaning3.txt
+++ b/world/map/npc/048-2/helperCleaning3.txt
@@ -4,8 +4,8 @@
// Arvo works on cleaning the library
// can give second hint about the visitor in investigation subquest
-048-2.gat,139,99,0|script|Arvo|366,{
-
+048-2.gat,139,99,0|script|Arvo|366,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
diff --git a/world/map/npc/048-2/helperCleaning4.txt b/world/map/npc/048-2/helperCleaning4.txt
index 407ac5d2..3a4d1662 100644
--- a/world/map/npc/048-2/helperCleaning4.txt
+++ b/world/map/npc/048-2/helperCleaning4.txt
@@ -4,8 +4,8 @@
// Kristian works on cleaning the library
// can give second hint about the visitor in investigation subquest
-048-2.gat,131,119,0|script|Kristian|366,{
-
+048-2.gat,131,119,0|script|Kristian|366,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
diff --git a/world/map/npc/048-2/helperCleaning5.txt b/world/map/npc/048-2/helperCleaning5.txt
index fcea13fe..6114f1d0 100644
--- a/world/map/npc/048-2/helperCleaning5.txt
+++ b/world/map/npc/048-2/helperCleaning5.txt
@@ -4,8 +4,8 @@
// Mirjami is searching for some cleaning supplies
// can give second hint about visitor in investigation subquest
-048-2.gat,100,125,0|script|Mirjami|363,{
-
+048-2.gat,100,125,0|script|Mirjami|363,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
diff --git a/world/map/npc/048-2/helperJanitor.txt b/world/map/npc/048-2/helperJanitor.txt
index fb678af4..42141f86 100644
--- a/world/map/npc/048-2/helperJanitor.txt
+++ b/world/map/npc/048-2/helperJanitor.txt
@@ -4,8 +4,8 @@
// Elias is the janitor of the mansion
// part of investigation subquest, gives initial hint on the visitor with the mask
-048-2.gat,40,41,0|script|Elias|365,{
-
+048-2.gat,40,41,0|script|Elias|365,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
if (@investigate == 11) goto L_Thank;
diff --git a/world/map/npc/048-2/helperMInk.txt b/world/map/npc/048-2/helperMInk.txt
index 75a1a5cc..6ab6b391 100644
--- a/world/map/npc/048-2/helperMInk.txt
+++ b/world/map/npc/048-2/helperMInk.txt
@@ -4,8 +4,8 @@
// Eevert asks for material to create inks for the illustrations in the new books
// can give second hint about Peetu in investigation subquest
-048-2.gat,95,103,0|script|Eevert|365,{
-
+048-2.gat,95,103,0|script|Eevert|365,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @water_amount, 5;
set @spectre_amount, 3;
diff --git a/world/map/npc/048-2/helperMReed.txt b/world/map/npc/048-2/helperMReed.txt
index 12d6ea20..724bd463 100644
--- a/world/map/npc/048-2/helperMReed.txt
+++ b/world/map/npc/048-2/helperMReed.txt
@@ -4,8 +4,8 @@
// Kullervo asks for Reed Bundles to create paper for repairing the books
// can give second hint about both Peetu and visitor in investigation subquest
-048-2.gat,104,78,0|script|Kullervo|366,{
-
+048-2.gat,104,78,0|script|Kullervo|366,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @reed_amount, 20;
set @reed_exp, 10000;
diff --git a/world/map/npc/048-2/helperMSilk.txt b/world/map/npc/048-2/helperMSilk.txt
index 8ab0bb42..67df87cb 100644
--- a/world/map/npc/048-2/helperMSilk.txt
+++ b/world/map/npc/048-2/helperMSilk.txt
@@ -4,8 +4,8 @@
// Janika asks for Silk Cocoons for repairing the books
// can give second hint about visitor in investigation subquest
-048-2.gat,104,103,0|script|Janika|363,{
-
+048-2.gat,104,103,0|script|Janika|363,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @silk_amount, 80;
set @silk_exp, 10000;
diff --git a/world/map/npc/048-2/helperMYetiClaw.txt b/world/map/npc/048-2/helperMYetiClaw.txt
index 4881661e..59a86436 100644
--- a/world/map/npc/048-2/helperMYetiClaw.txt
+++ b/world/map/npc/048-2/helperMYetiClaw.txt
@@ -4,8 +4,8 @@
// Santeri asks for Yeti Claws to make glue for repairing the books
// can give second hint about Peetu in investigation subquest
-048-2.gat,97,78,0|script|Santeri|366,{
-
+048-2.gat,97,78,0|script|Santeri|366,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @claw_amount, 8;
set @claw_exp, 10000;
diff --git a/world/map/npc/048-2/helperResting1.txt b/world/map/npc/048-2/helperResting1.txt
index 864285e0..5ffd6f0f 100644
--- a/world/map/npc/048-2/helperResting1.txt
+++ b/world/map/npc/048-2/helperResting1.txt
@@ -4,8 +4,8 @@
// Lenita is one of the helpers working on sorting the bookpages, but is currently having a break
// can give second hint about the visitor in investigation subquest
-048-2.gat,36,26,0|script|Lenita|363,{
-
+048-2.gat,36,26,0|script|Lenita|363,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @bookpages, ((QUEST_BlueSage & $@Q_BlueSageBookPages_MASK) >> $@Q_BlueSageBookPages_SHIFT);
diff --git a/world/map/npc/048-2/helperResting2.txt b/world/map/npc/048-2/helperResting2.txt
index d5265d64..a6b4873c 100644
--- a/world/map/npc/048-2/helperResting2.txt
+++ b/world/map/npc/048-2/helperResting2.txt
@@ -4,8 +4,8 @@
// Miro is one of the helpers cleaning up the library, but it currently having a break
// can give second hint about the Peetu in investigation subquest
-048-2.gat,35,27,0|script|Miro|366,{
-
+048-2.gat,35,27,0|script|Miro|366,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
diff --git a/world/map/npc/048-2/sageNikolai.txt b/world/map/npc/048-2/sageNikolai.txt
index 9c2356cc..ed167bc1 100644
--- a/world/map/npc/048-2/sageNikolai.txt
+++ b/world/map/npc/048-2/sageNikolai.txt
@@ -3,8 +3,8 @@
// see bluesageConfig for detailed quest description
// Sage Nikolai gives hints about the different subquests and rewards
-048-2.gat,98,106,0|script|Nikolai|362,{
-
+048-2.gat,98,106,0|script|Nikolai|362,
+{
set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
set @bookpages, ((QUEST_BlueSage & $@Q_BlueSageBookPages_MASK) >> $@Q_BlueSageBookPages_SHIFT);
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
@@ -274,7 +274,8 @@ L_Close:
close;
}
-//048-2.gat,100,106,0|script|Debug|160,{
+//048-2.gat,100,106,0|script|Debug|160,
+//{
// set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
// set @bookpages, ((QUEST_BlueSage & $@Q_BlueSageBookPages_MASK) >> $@Q_BlueSageBookPages_SHIFT);
// set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
diff --git a/world/map/npc/048-2/slimes.txt b/world/map/npc/048-2/slimes.txt
index ce0b6df0..2318d1f0 100644
--- a/world/map/npc/048-2/slimes.txt
+++ b/world/map/npc/048-2/slimes.txt
@@ -13,7 +13,8 @@
// @spawnSlimeX: Number of slimes killed by the character that triggered the spawn
// white slimes
-048-2.gat,181,95,0|script|#Slime0Trigger|32767,2,2,{
+048-2.gat,181,95,0|script|#Slime0Trigger|32767,2,2,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
if (mobcount("048-2.gat", "#Slime0::OnSlimeDeath") < 0) // returns -1 if no monsters
@@ -45,7 +46,8 @@ L_End:
end;
}
-048-2.gat,181,95,0|script|#Slime0|32767,{
+048-2.gat,181,95,0|script|#Slime0|32767,
+{
end;
OnSpawn:
@@ -100,7 +102,8 @@ L_ClearedPoint:
// white slimes
-048-2.gat,164,123,0|script|#Slime1Trigger|32767,2,2,{
+048-2.gat,164,123,0|script|#Slime1Trigger|32767,2,2,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
if (mobcount("048-2.gat", "#Slime1::OnSlimeDeath") < 0) // returns -1 if no monsters
@@ -132,7 +135,8 @@ L_End:
end;
}
-048-2.gat,164,123,0|script|#Slime1|32767,{
+048-2.gat,164,123,0|script|#Slime1|32767,
+{
end;
OnSpawn:
@@ -187,7 +191,8 @@ L_ClearedPoint:
// white slimes
-048-2.gat,198,115,0|script|#Slime2Trigger|32767,2,2,{
+048-2.gat,198,115,0|script|#Slime2Trigger|32767,2,2,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
if (mobcount("048-2.gat", "#Slime2::OnSlimeDeath") < 0) // returns -1 if no monsters
@@ -219,7 +224,8 @@ L_End:
end;
}
-048-2.gat,198,115,0|script|#Slime2|32767,{
+048-2.gat,198,115,0|script|#Slime2|32767,
+{
end;
OnSpawn:
@@ -274,7 +280,8 @@ L_ClearedPoint:
// white slimes
-048-2.gat,167,79,0|script|#Slime3Trigger|32767,2,2,{
+048-2.gat,167,79,0|script|#Slime3Trigger|32767,2,2,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
if (mobcount("048-2.gat", "#Slime3::OnSlimeDeath") < 0) // returns -1 if no monsters
@@ -306,7 +313,8 @@ L_End:
end;
}
-048-2.gat,167,79,0|script|#Slime3|32767,{
+048-2.gat,167,79,0|script|#Slime3|32767,
+{
end;
OnSpawn:
@@ -361,7 +369,8 @@ L_ClearedPoint:
// blue slimes
-048-2.gat,192,86,0|script|#Slime4Trigger|32767,2,2,{
+048-2.gat,192,86,0|script|#Slime4Trigger|32767,2,2,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
if (mobcount("048-2.gat", "#Slime4::OnSlimeDeath") < 0) // returns -1 if no monsters
@@ -393,7 +402,8 @@ L_End:
end;
}
-048-2.gat,192,86,0|script|#Slime4|32767,{
+048-2.gat,192,86,0|script|#Slime4|32767,
+{
end;
OnSpawn:
@@ -448,7 +458,8 @@ L_ClearedPoint:
// blue slimes
-048-2.gat,183,110,0|script|#Slime5Trigger|32767,2,2,{
+048-2.gat,183,110,0|script|#Slime5Trigger|32767,2,2,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
if (mobcount("048-2.gat", "#Slime5::OnSlimeDeath") < 0) // returns -1 if no monsters
@@ -480,7 +491,8 @@ L_End:
end;
}
-048-2.gat,183,110,0|script|#Slime5|32767,{
+048-2.gat,183,110,0|script|#Slime5|32767,
+{
end;
OnSpawn:
@@ -535,7 +547,8 @@ L_ClearedPoint:
// blue slimes
-048-2.gat,164,102,0|script|#Slime6Trigger|32767,2,2,{
+048-2.gat,164,102,0|script|#Slime6Trigger|32767,2,2,
+{
set @slimes, ((QUEST_BlueSage & $@Q_BlueSageSlimes_MASK) >> $@Q_BlueSageSlimes_SHIFT);
if (mobcount("048-2.gat", "#Slime6::OnSlimeDeath") < 0) // returns -1 if no monsters
@@ -567,7 +580,8 @@ L_End:
end;
}
-048-2.gat,164,102,0|script|#Slime6|32767,{
+048-2.gat,164,102,0|script|#Slime6|32767,
+{
end;
OnSpawn:
diff --git a/world/map/npc/048-2/visitors.txt b/world/map/npc/048-2/visitors.txt
index 4ab9bbe0..1f0721c9 100644
--- a/world/map/npc/048-2/visitors.txt
+++ b/world/map/npc/048-2/visitors.txt
@@ -2,7 +2,8 @@
// author: Jenalya
// visitors that came to see the library and are now disappointed
-048-2.gat,46,44,0|script|Connor|150,{
+048-2.gat,46,44,0|script|Connor|150,
+{
mes "[Connor]";
mes "\"Oh, hello. There was a big accident in the library! Most of the books were damaged or destroyed!\"";
next;
@@ -16,7 +17,8 @@ L_Close:
close;
}
-048-2.gat,28,30,0|script|Parcival|153,{
+048-2.gat,28,30,0|script|Parcival|153,
+{
mes "[Parcival]";
mes "\"Hello young one. Did you also come here to see the library?\"";
menu
diff --git a/world/map/npc/051-1/_mobs.txt b/world/map/npc/051-1/_mobs.txt
index 32dc8bbb..a1caa5be 100644
--- a/world/map/npc/051-1/_mobs.txt
+++ b/world/map/npc/051-1/_mobs.txt
@@ -5,7 +5,8 @@
051-1.gat,42,35,41,22|monster|SpikyMushroom|1019,10,100000,30000,Mob051-1::On1019
-051-1.gat,0,0,0|script|Mob051-1|-1,{
+051-1.gat,0,0,0|script|Mob051-1|-1,
+{
On1019:
set @mobID, 1019;
callfunc "MobPoints";
diff --git a/world/map/npc/051-1/desert.txt b/world/map/npc/051-1/desert.txt
index c6d041af..b51cd187 100644
--- a/world/map/npc/051-1/desert.txt
+++ b/world/map/npc/051-1/desert.txt
@@ -8,7 +8,8 @@
// 2: Players collected enough souls and gave the souls to the waterfall
//-----------------------------------------------------------------------------
-051-1.gat,142,39,0|script|Bones|367,{
+051-1.gat,142,39,0|script|Bones|367,
+{
mes "You find a ruined paper next to these bones.";
mes "It says...";
next;
@@ -21,7 +22,8 @@
}
-051-1.gat,170,24,0|script|Cursed Waterfall|400,{
+051-1.gat,170,24,0|script|Cursed Waterfall|400,
+{
set $@illia_num_sealed_souls, 7;
set @step, 3;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
diff --git a/world/map/npc/051-1/desertmonsters.txt b/world/map/npc/051-1/desertmonsters.txt
index af33fefd..f46edd6f 100644
--- a/world/map/npc/051-1/desertmonsters.txt
+++ b/world/map/npc/051-1/desertmonsters.txt
@@ -1,8 +1,8 @@
051-1.gat,134,36,67,49|monster|Soul Snake|1096,12,100000,30000,IlliaDMobs051-1::On1096
// The soul snakes release a Sealed Soul at random, once the soul collecting is started
-051-1.gat,0,0,0|script|IlliaDMobs051-1|-1,{
-
+051-1.gat,0,0,0|script|IlliaDMobs051-1|-1,
+{
On1096:
if (rand(4) == 0 && $@illia_progress == 3 && $@illia_level_3_progress == 1)
getitem "SealedSoul", 1;
@@ -15,7 +15,8 @@ On1096:
// Soul eater spawns. They will eat a Sealed Soul when killed, and when the soul collecting is started.
// Spawn in the island
-051-1.gat,142,38,0|script|#SoulEaters0Trigger|32767,3,3,{
+051-1.gat,142,38,0|script|#SoulEaters0Trigger|32767,3,3,
+{
if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
end;
if ($@SoulEaters0_count > 0)
@@ -24,7 +25,8 @@ On1096:
end;
}
-051-1.gat,142,38,0|script|#SoulEaters0|32767,{
+051-1.gat,142,38,0|script|#SoulEaters0|32767,
+{
OnSpawn:
set $@SoulEaters0_count, 5;
areamonster "051-1.gat", 139, 34, 145, 41, "", 1097, $@SoulEaters0_count, "#SoulEaters0::OnSoulEaterDeath";
@@ -42,7 +44,8 @@ OnSoulEaterDeath:
}
// Spawn inside the north building
-051-1.gat,134,16,0|script|#SoulEaters1Trigger|32767,9,2,{
+051-1.gat,134,16,0|script|#SoulEaters1Trigger|32767,9,2,
+{
if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
end;
if ($@SoulEaters1_count > 0)
@@ -51,7 +54,8 @@ OnSoulEaterDeath:
end;
}
-051-1.gat,134,16,0|script|#SoulEaters1|32767,{
+051-1.gat,134,16,0|script|#SoulEaters1|32767,
+{
OnSpawn:
set $@SoulEaters1_count, 7;
areamonster "051-1.gat", 125, 14, 143, 18, "", 1097, $@SoulEaters1_count, "#SoulEaters1::OnSoulEaterDeath";
@@ -69,7 +73,8 @@ OnSoulEaterDeath:
}
// Spawn in the south grass area
-051-1.gat,137,55,0|script|#SoulEaters2Trigger|32767,5,4,{
+051-1.gat,137,55,0|script|#SoulEaters2Trigger|32767,5,4,
+{
if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
end;
if ($@SoulEaters2_count > 0)
@@ -78,7 +83,8 @@ OnSoulEaterDeath:
end;
}
-051-1.gat,137,55,0|script|#SoulEaters2|32767,{
+051-1.gat,137,55,0|script|#SoulEaters2|32767,
+{
OnSpawn:
set $@SoulEaters2_count, 4;
areamonster "051-1.gat", 134, 54, 139, 58, "", 1097, $@SoulEaters2_count, "#SoulEaters2::OnSoulEaterDeath";
@@ -96,7 +102,8 @@ OnSoulEaterDeath:
}
// Spawn near the eastern cliff
-051-1.gat,155,35,0|script|#SoulEaters3Trigger|32767,4,7,{
+051-1.gat,155,35,0|script|#SoulEaters3Trigger|32767,4,7,
+{
if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
end;
if ($@SoulEaters3_count > 0)
@@ -105,7 +112,8 @@ OnSoulEaterDeath:
end;
}
-051-1.gat,155,35,0|script|#SoulEaters3|32767,{
+051-1.gat,155,35,0|script|#SoulEaters3|32767,
+{
OnSpawn:
set $@SoulEaters3_count, 4;
areamonster "051-1.gat", 151, 29, 160, 45, "", 1097, $@SoulEaters3_count, "#SoulEaters3::OnSoulEaterDeath";
@@ -123,7 +131,8 @@ OnSoulEaterDeath:
}
// Spawn near the western cliff
-051-1.gat,120,38,0|script|#SoulEaters4Trigger|32767,6,9,{
+051-1.gat,120,38,0|script|#SoulEaters4Trigger|32767,6,9,
+{
if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
end;
if ($@SoulEaters4_count > 0)
@@ -132,7 +141,8 @@ OnSoulEaterDeath:
end;
}
-051-1.gat,120,38,0|script|#SoulEaters4|32767,{
+051-1.gat,120,38,0|script|#SoulEaters4|32767,
+{
OnSpawn:
set $@SoulEaters4_count, 4;
areamonster "051-1.gat", 116, 29, 127, 50, "", 1097, $@SoulEaters4_count, "#SoulEaters4::OnSoulEaterDeath";
diff --git a/world/map/npc/051-1/forest.txt b/world/map/npc/051-1/forest.txt
index e0f392ae..e773fb03 100644
--- a/world/map/npc/051-1/forest.txt
+++ b/world/map/npc/051-1/forest.txt
@@ -9,7 +9,8 @@
// 3: Players unlocked the door
//-----------------------------------------------------------------------------
-051-1.gat,64,46,0|script|Strange Stone|400,{
+051-1.gat,64,46,0|script|Strange Stone|400,
+{
set @step, 1;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if (isin("051-1.gat", 65,45, 67,48) == 0) end;
@@ -59,7 +60,8 @@ L_TaskComplete:
}
// Warp from the forest, to the cave
-051-1.gat,66,44,0|script|#ToCave|32767,1,1,{
+051-1.gat,66,44,0|script|#ToCave|32767,1,1,
+{
set @step, 1;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_1_progress < 2) goto L_Blocked;
diff --git a/world/map/npc/051-1/forestmonsters.txt b/world/map/npc/051-1/forestmonsters.txt
index 28d1ac50..2ede6574 100644
--- a/world/map/npc/051-1/forestmonsters.txt
+++ b/world/map/npc/051-1/forestmonsters.txt
@@ -1,7 +1,7 @@
051-1.gat,52,32,10,8|monster|Green Slime|1005,20,100000,30000,IlliaFMobs051-1::On1005
-051-1.gat,0,0,0|script|IlliaFMobs051-1|-1,{
-
+051-1.gat,0,0,0|script|IlliaFMobs051-1|-1,
+{
On1005:
if ($@illia_level_1_progress == 1)
goto L_RockFinding;
diff --git a/world/map/npc/051-1/janitor.txt b/world/map/npc/051-1/janitor.txt
index 333bb791..b2be30da 100644
--- a/world/map/npc/051-1/janitor.txt
+++ b/world/map/npc/051-1/janitor.txt
@@ -1,5 +1,6 @@
// Forest janitor
-051-1.gat,1,1,0|script|#IlliaJanitor1|127,{
+051-1.gat,1,1,0|script|#IlliaJanitor1|127,
+{
end;
OnCommandClean:
@@ -9,7 +10,8 @@ OnCommandClean:
}
// Desert janitor
-051-1.gat,1,1,0|script|#IlliaJanitor3|127,{
+051-1.gat,1,1,0|script|#IlliaJanitor3|127,
+{
end;
OnCommandClean:
diff --git a/world/map/npc/051-3/_mobs.txt b/world/map/npc/051-3/_mobs.txt
index 867b98f4..bf214d2f 100644
--- a/world/map/npc/051-3/_mobs.txt
+++ b/world/map/npc/051-3/_mobs.txt
@@ -19,7 +19,8 @@
051-3.gat,60,94,18,5|monster|CopperSlime|1098,7,100000,60000,Mob051-3::On1098
-051-3.gat,0,0,0|script|Mob051-3|-1,{
+051-3.gat,0,0,0|script|Mob051-3|-1,
+{
On1008:
set @mobID, 1008;
callfunc "MobPoints";
diff --git a/world/map/npc/051-3/ambush.txt b/world/map/npc/051-3/ambush.txt
index 74e1ced7..5d31eff5 100644
--- a/world/map/npc/051-3/ambush.txt
+++ b/world/map/npc/051-3/ambush.txt
@@ -10,12 +10,14 @@
// 4: Key of the door found, to leave the cave
//-----------------------------------------------------------------------------
-051-3.gat,40,52,0|script|#WayBlockedTrigger|32767,2,2,{
+051-3.gat,40,52,0|script|#WayBlockedTrigger|32767,2,2,
+{
message strcharinfo(0), "There is no way I can pass here. Let's find another way.";
end;
}
-051-3.gat,31,70,0|script|#AmbushReadyTrigger|32767,2,2,{
+051-3.gat,31,70,0|script|#AmbushReadyTrigger|32767,2,2,
+{
set @step, 2;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if (strcharinfo(0) == $@ILLIA_HERO$ && $@illia_level_2_progress == 0) goto L_PrepareAmbush;
@@ -32,7 +34,8 @@ L_ShouldNotBeHere:
}
-051-3.gat,31,93,0|script|#BanditAmbushTrigger|32767,3,3,{
+051-3.gat,31,93,0|script|#BanditAmbushTrigger|32767,3,3,
+{
set @step, 2;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_2_progress == 0 && strcharinfo(0) == $@ILLIA_HERO$) goto L_MakeAmbush;
@@ -49,7 +52,8 @@ L_ShouldNotBeHere:
end;
}
-051-3.gat,1,1,0|script|#BndtTl|127,{
+051-3.gat,1,1,0|script|#BndtTl|127,
+{
end;
OnCommandAmbush:
@@ -137,7 +141,8 @@ L_CaptureHelper3:
}
-051-3.gat,29,94,0|script|Sneaky Bandit|127,{
+051-3.gat,29,94,0|script|Sneaky Bandit|127,
+{
end;
OnCommandTalk:
@@ -156,7 +161,8 @@ OnTimer3600:
}
-051-3.gat,33,95,0|script|Another Sneaky Bandit|127,{
+051-3.gat,33,95,0|script|Another Sneaky Bandit|127,
+{
end;
OnCommandTalk:
diff --git a/world/map/npc/051-3/jailslimes.txt b/world/map/npc/051-3/jailslimes.txt
index a008a8fd..453704ad 100644
--- a/world/map/npc/051-3/jailslimes.txt
+++ b/world/map/npc/051-3/jailslimes.txt
@@ -4,8 +4,8 @@
051-3.gat,63,104,1,1|monster|Copper Slime|1098,1,60000,30000,IlliaCMobs051-3::On1098
051-3.gat,70,111,1,1|monster|Copper Slime|1098,1,60000,30000,IlliaCMobs051-3::On1098
-051-3.gat,0,0,0|script|IlliaCMobs051-3|-1,{
-
+051-3.gat,0,0,0|script|IlliaCMobs051-3|-1,
+{
On1098:
if (rand(100) < 80 && $@illia_progress == 2 && ($@illia_level_2_progress == 1 || $@illia_level_2_progress == 2))
goto L_LockPicks;
diff --git a/world/map/npc/051-3/janitor.txt b/world/map/npc/051-3/janitor.txt
index 5dfb1c30..32a9f22c 100644
--- a/world/map/npc/051-3/janitor.txt
+++ b/world/map/npc/051-3/janitor.txt
@@ -1,5 +1,6 @@
// Bandit cave janitor
-051-3.gat,1,1,0|script|#IlliaJanitor2|127,{
+051-3.gat,1,1,0|script|#IlliaJanitor2|127,
+{
end;
OnCommandClean:
diff --git a/world/map/npc/051-3/locks.txt b/world/map/npc/051-3/locks.txt
index 1d89bbf8..e04740af 100644
--- a/world/map/npc/051-3/locks.txt
+++ b/world/map/npc/051-3/locks.txt
@@ -1,5 +1,5 @@
-051-3.gat,69,107,0|script|Jail Lock 1|400,{
-
+051-3.gat,69,107,0|script|Jail Lock 1|400,
+{
if (isin("051-3.gat", 69, 108, 73, 111)) goto L_Do_Lock_Picking;
end;
@@ -17,8 +17,8 @@ L_OpenDoor:
close;
}
-051-3.gat,64,100,0|script|Jail Lock 2|400,{
-
+051-3.gat,64,100,0|script|Jail Lock 2|400,
+{
if (isin("051-3.gat", 64, 101, 66, 104)) goto L_Do_Lock_Picking;
end;
@@ -34,8 +34,8 @@ L_OpenDoor:
close;
}
-051-3.gat,62,100,0|script|Jail Lock 3|400,{
-
+051-3.gat,62,100,0|script|Jail Lock 3|400,
+{
if (isin("051-3.gat", 61, 101, 62, 104)) goto L_Do_Lock_Picking;
end;
@@ -51,8 +51,8 @@ L_OpenDoor:
close;
}
-051-3.gat,58,100,0|script|Jail Lock 4|400,{
-
+051-3.gat,58,100,0|script|Jail Lock 4|400,
+{
if (isin("051-3.gat", 57, 101, 58, 104)) goto L_Do_Lock_Picking;
end;
diff --git a/world/map/npc/051-3/reinforcements.txt b/world/map/npc/051-3/reinforcements.txt
index b29a072d..62e78bf6 100644
--- a/world/map/npc/051-3/reinforcements.txt
+++ b/world/map/npc/051-3/reinforcements.txt
@@ -1,5 +1,5 @@
-051-3.gat,47,30,0|script|#BndtRnfrcmtsTrigger|32767,2,3,{
-
+051-3.gat,47,30,0|script|#BndtRnfrcmtsTrigger|32767,2,3,
+{
set @step, 2;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_2_progress == 2) goto L_CallReinforcements;
@@ -14,8 +14,8 @@ L_ShouldNotBeHere:
end;
}
-051-3.gat,37,24,0|script|Door|400,{
-
+051-3.gat,37,24,0|script|Door|400,
+{
set @step, 2;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
mes "Try open the door?";
diff --git a/world/map/npc/052-1/_mobs.txt b/world/map/npc/052-1/_mobs.txt
index c955142f..a63c28de 100644
--- a/world/map/npc/052-1/_mobs.txt
+++ b/world/map/npc/052-1/_mobs.txt
@@ -4,7 +4,8 @@
052-1.gat,55,29,43,39|monster|AzulSlime|1100,18,100000,20000,Mob052-1::On1100
-052-1.gat,0,0,0|script|Mob052-1|-1,{
+052-1.gat,0,0,0|script|Mob052-1|-1,
+{
On1100:
set @mobID, 1100;
callfunc "MobPoints";
diff --git a/world/map/npc/052-1/channelling.txt b/world/map/npc/052-1/channelling.txt
index 3ea28fc9..52d71e45 100644
--- a/world/map/npc/052-1/channelling.txt
+++ b/world/map/npc/052-1/channelling.txt
@@ -8,7 +8,8 @@
// 2: Channelling completed
//-----------------------------------------------------------------------------
-052-1.gat,25,44,0|script|#EnchantDoorTrigger|32767,3,4,{
+052-1.gat,25,44,0|script|#EnchantDoorTrigger|32767,3,4,
+{
set @step, 4;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if (strcharinfo(0) == $@ILLIA_HERO$ &&
@@ -25,7 +26,8 @@ L_ShouldNotBeHere:
}
-052-1.gat,57,29,0|script|#Enchanted Door|369,1,1{
+052-1.gat,57,29,0|script|#Enchanted Door|369,1,1
+{
if ($@illia_level_4_progress != 2) goto L_PushBack;
end;
@@ -47,7 +49,8 @@ onSpawn:
}
-052-1.gat,57,29,0|script|#Enchanted Door2|400,1,1{
+052-1.gat,57,29,0|script|#Enchanted Door2|400,1,1
+{
if ($@illia_level_4_progress == 2) goto L_Warp;
end;
@@ -61,7 +64,8 @@ OnCommandDestroy:
}
-052-1.gat,51,38,0|script|Engravings|400,{
+052-1.gat,51,38,0|script|Engravings|400,
+{
mes "You can read some words engraved inside this rock, but some are erased by wind and time:";
next;
mes "\".. can use this .. power..´. . .´. . . amplify a spell ..´.";
@@ -88,7 +92,8 @@ L_SuggestChannelling:
}
-function|script|StartChannelling|{
+function|script|StartChannelling|
+{
if (isat("052-1.gat",53,38) == 0)
end;
if ($@illia_level_4_progress > 0)
@@ -125,7 +130,8 @@ function|script|StartChannelling|{
}
-052-1.gat,53,38,0|script|#Power Circle|368,{
+052-1.gat,53,38,0|script|#Power Circle|368,
+{
set @step, 4;
if ($@illia_progress < @step)
goto L_ShouldNotBeHere;
diff --git a/world/map/npc/052-1/janitor.txt b/world/map/npc/052-1/janitor.txt
index e2ca8c4f..0a3a5356 100644
--- a/world/map/npc/052-1/janitor.txt
+++ b/world/map/npc/052-1/janitor.txt
@@ -1,6 +1,7 @@
// Illia Island janitor
-052-1.gat,1,1,0|script|#IlliaJanitor4|127,{
+052-1.gat,1,1,0|script|#IlliaJanitor4|127,
+{
end;
OnCommandClean:
diff --git a/world/map/npc/052-2/_mobs.txt b/world/map/npc/052-2/_mobs.txt
index 8ce33c63..f105c44e 100644
--- a/world/map/npc/052-2/_mobs.txt
+++ b/world/map/npc/052-2/_mobs.txt
@@ -3,6 +3,7 @@
-052-2.gat,0,0,0|script|Mob052-2|-1,{
+052-2.gat,0,0,0|script|Mob052-2|-1,
+{
end;
}
diff --git a/world/map/npc/052-2/chest.txt b/world/map/npc/052-2/chest.txt
index d42cea48..11725a9a 100644
--- a/world/map/npc/052-2/chest.txt
+++ b/world/map/npc/052-2/chest.txt
@@ -12,8 +12,8 @@
// 3: player choosed to leave the room
//-----------------------------------------------------------------------------
-052-2.gat,136,73,0|script|Chest|111,{
-
+052-2.gat,136,73,0|script|Chest|111,
+{
set @step, 8;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if (@illia_got_rewards > 2) end;
diff --git a/world/map/npc/052-2/janitor.txt b/world/map/npc/052-2/janitor.txt
index 9c78d638..32ed405c 100644
--- a/world/map/npc/052-2/janitor.txt
+++ b/world/map/npc/052-2/janitor.txt
@@ -1,5 +1,6 @@
// Lobby janitor
-052-2.gat,1,1,0|script|#IlliaJanitor5|127,{
+052-2.gat,1,1,0|script|#IlliaJanitor5|127,
+{
end;
OnCommandClean:
@@ -11,7 +12,8 @@ OnCommandClean:
}
// Storage janitor
-052-2.gat,1,1,0|script|#IlliaJanitor6|127,{
+052-2.gat,1,1,0|script|#IlliaJanitor6|127,
+{
end;
OnCommandClean:
@@ -22,7 +24,8 @@ OnCommandClean:
}
// Final boss janitor
-052-2.gat,1,1,0|script|#IlliaJanitor7|127,{
+052-2.gat,1,1,0|script|#IlliaJanitor7|127,
+{
end;
OnCommandClean:
diff --git a/world/map/npc/052-2/lobby.txt b/world/map/npc/052-2/lobby.txt
index b50a0273..c651266c 100644
--- a/world/map/npc/052-2/lobby.txt
+++ b/world/map/npc/052-2/lobby.txt
@@ -14,7 +14,8 @@
// 8: Witch guards defeated. Door is open.
//-----------------------------------------------------------------------------
-052-2.gat,40,19,0|script|#InnDoorTrigger|32767,2,2,{
+052-2.gat,40,19,0|script|#InnDoorTrigger|32767,2,2,
+{
set @step, 5;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_5_progress == 8) goto L_Warp;
@@ -32,7 +33,8 @@ L_ShouldNotBeHere:
}
-052-2.gat,33,40,0|script|#EntranceTrigger|32767,4,2,{
+052-2.gat,33,40,0|script|#EntranceTrigger|32767,4,2,
+{
set @step, 5;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_5_progress == 0 && strcharinfo(0) == $@ILLIA_HERO$) goto L_StartVoices;
@@ -48,7 +50,8 @@ L_ShouldNotBeHere:
end;
}
-052-2.gat,1,1,0|script|#LuviaShadow|127,{
+052-2.gat,1,1,0|script|#LuviaShadow|127,
+{
end;
// Escape sequence
@@ -100,7 +103,8 @@ OnNN:
}
-052-2.gat,1,1,0|script|#MysteriousVoice|127,{
+052-2.gat,1,1,0|script|#MysteriousVoice|127,
+{
end;
onInit:
@@ -145,7 +149,8 @@ L_Continue:
// Dummy npc to display the mysterious voice,
// as a workaround to fakenpcname causing problems
-052-2.gat,1,1,0|script|?|127,{
+052-2.gat,1,1,0|script|?|127,
+{
end;
OnCommandTalk:
@@ -154,7 +159,8 @@ OnCommandTalk:
}
-052-2.gat,1,1,0|script|Luvia?|371,2,2{
+052-2.gat,1,1,0|script|Luvia?|371,2,2
+{
if ($@illia_level_5_progress != 3) end;
if (isin("052-2.gat", 37,36, 41,39)) goto L_HandleTalk;
// Notify too far
diff --git a/world/map/npc/052-2/partyroom.txt b/world/map/npc/052-2/partyroom.txt
index acba1fdc..fc1094f5 100644
--- a/world/map/npc/052-2/partyroom.txt
+++ b/world/map/npc/052-2/partyroom.txt
@@ -9,7 +9,8 @@
// 3: Luvia is defeated
//-----------------------------------------------------------------------------
-052-2.gat,88,19,0|script|#TriggerDialog|32767,3,2,{
+052-2.gat,88,19,0|script|#TriggerDialog|32767,3,2,
+{
set @step, 7;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_7_progress == 0 && strcharinfo(0) == $@ILLIA_HERO$) goto L_SpawnLuvia;
@@ -28,7 +29,8 @@ L_ShouldNotBeHere:
// A trigger whose only purpose is to place Luvia npcs back in place.
// (even though the Janitor 7 will have done this job)
-052-2.gat,77,48,0|script|#TriggerPlaceLuvia|32767,1,1,{
+052-2.gat,77,48,0|script|#TriggerPlaceLuvia|32767,1,1,
+{
if (strcharinfo(0) != $@ILLIA_HERO$) end;
if ($@illia_progress == 7 && $@illia_level_7_progress == 0) goto L_PlaceLuvia;
end;
@@ -40,7 +42,8 @@ L_PlaceLuvia:
}
-052-2.gat,88,15,0|script|Luvia|371,{
+052-2.gat,88,15,0|script|Luvia|371,
+{
set @step, 7;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_7_progress == 0 && strcharinfo(0) == $@ILLIA_HERO$) goto L_Start;
@@ -80,7 +83,8 @@ OnTimer15000:
}
-052-2.gat,88,15,0|script|#LuviaDaemon|127,{
+052-2.gat,88,15,0|script|#LuviaDaemon|127,
+{
end;
OnCommandInvoke:
@@ -265,7 +269,8 @@ onW00t:
}
// Warp from the party room, to the chest room
-052-2.gat,88,12,0|script|#ToLuviaRoomDoor|32767,1,2,{
+052-2.gat,88,12,0|script|#ToLuviaRoomDoor|32767,1,2,
+{
set @step, 7;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_7_progress < 4) end;
diff --git a/world/map/npc/052-2/storage.txt b/world/map/npc/052-2/storage.txt
index b52dc759..43160db8 100644
--- a/world/map/npc/052-2/storage.txt
+++ b/world/map/npc/052-2/storage.txt
@@ -8,7 +8,8 @@
// 2: All spawns are done and the players killed all mobs
//-----------------------------------------------------------------------------
-052-2.gat,23,69,0|script|#TriggerItemsInvoker|32767,1,0,{
+052-2.gat,23,69,0|script|#TriggerItemsInvoker|32767,1,0,
+{
set @step, 6;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if (strcharinfo(0) != $@ILLIA_HERO$) end;
@@ -26,7 +27,8 @@ L_StartItemInvoker:
}
-052-2.gat,1,1,0|script|#ItemsInvoker|127,{
+052-2.gat,1,1,0|script|#ItemsInvoker|127,
+{
end;
onInit:
@@ -170,7 +172,8 @@ onWow:
}
-052-2.gat,35,68,0|script|#ToPartyRoom|32767,1,1,{
+052-2.gat,35,68,0|script|#ToPartyRoom|32767,1,1,
+{
set @step, 6;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
if ($@illia_level_6_progress == 2) goto L_Warp;
diff --git a/world/map/npc/055-1/_mobs.txt b/world/map/npc/055-1/_mobs.txt
index 0c1623be..7b3e9102 100644
--- a/world/map/npc/055-1/_mobs.txt
+++ b/world/map/npc/055-1/_mobs.txt
@@ -20,7 +20,8 @@
055-1.gat,0,0,0,0|monster|SpikyMushroom|1019,7,10000,60000,Mob055-1::On1019
-055-1.gat,0,0,0|script|Mob055-1|-1,{
+055-1.gat,0,0,0|script|Mob055-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/055-1/pumpkins.txt b/world/map/npc/055-1/pumpkins.txt
index c2008c1e..53783ebf 100644
--- a/world/map/npc/055-1/pumpkins.txt
+++ b/world/map/npc/055-1/pumpkins.txt
@@ -4,7 +4,8 @@
055-1.gat,132,24,6,4|monster|Spawn Pumpkin|1063,4,10000,5000,PumpkinMob055-1::On1063
-055-1.gat,0,0,0|script|PumpkinMob055-1|-1,{
+055-1.gat,0,0,0|script|PumpkinMob055-1|-1,
+{
On1063:
if (Quest_Halloween != 1 || !(gettime(6) == 11 && (gettime(5) >= 4 && gettime(5) <= 30)))
goto L_HeavyPoison;
diff --git a/world/map/npc/055-3/_mobs.txt b/world/map/npc/055-3/_mobs.txt
index d7be296c..0710492f 100644
--- a/world/map/npc/055-3/_mobs.txt
+++ b/world/map/npc/055-3/_mobs.txt
@@ -9,7 +9,8 @@
055-3.gat,0,0,1,1|monster|Snake|1010,3,10000,20000,Mob055-3::On1010
-055-3.gat,0,0,0|script|Mob055-3|-1,{
+055-3.gat,0,0,0|script|Mob055-3|-1,
+{
On1007:
set @mobID, 1007;
callfunc "MobPoints";
diff --git a/world/map/npc/056-1/_mobs.txt b/world/map/npc/056-1/_mobs.txt
index f6ca686f..39362817 100644
--- a/world/map/npc/056-1/_mobs.txt
+++ b/world/map/npc/056-1/_mobs.txt
@@ -6,7 +6,8 @@
056-1.gat,0,0,0,0|monster|MauvePlant|1029,2,10000,85000,Mob056-1::On1029
-056-1.gat,0,0,0|script|Mob056-1|-1,{
+056-1.gat,0,0,0|script|Mob056-1|-1,
+{
On1013:
set @mobID, 1013;
callfunc "MobPoints";
diff --git a/world/map/npc/056-2/_mobs.txt b/world/map/npc/056-2/_mobs.txt
index 75c4d9f3..c893945e 100644
--- a/world/map/npc/056-2/_mobs.txt
+++ b/world/map/npc/056-2/_mobs.txt
@@ -3,6 +3,7 @@
-056-2.gat,0,0,0|script|Mob056-2|-1,{
+056-2.gat,0,0,0|script|Mob056-2|-1,
+{
end;
}
diff --git a/world/map/npc/056-2/barrier.txt b/world/map/npc/056-2/barrier.txt
index dc26dbfb..a9f12a5d 100644
--- a/world/map/npc/056-2/barrier.txt
+++ b/world/map/npc/056-2/barrier.txt
@@ -1,4 +1,5 @@
-056-2.gat,23,33,0|script|#Barrier|45,0,0,{
+056-2.gat,23,33,0|script|#Barrier|45,0,0,
+{
if (Mirak_Bantime > gettimetick(2))
goto L_Block;
if (BaseLevel < 25)
diff --git a/world/map/npc/056-2/mirak.txt b/world/map/npc/056-2/mirak.txt
index d4b8195a..65b46e39 100644
--- a/world/map/npc/056-2/mirak.txt
+++ b/world/map/npc/056-2/mirak.txt
@@ -1,4 +1,5 @@
-056-2.gat,67,24,0|script|Mirak|372,{
+056-2.gat,67,24,0|script|Mirak|372,
+{
// Variables to set:
// @dq_cost - The number of points this quest uses
// @dq_money - The money reward for doing the quest
diff --git a/world/map/npc/056-2/notes.txt b/world/map/npc/056-2/notes.txt
index acc9ef87..fb29cd68 100644
--- a/world/map/npc/056-2/notes.txt
+++ b/world/map/npc/056-2/notes.txt
@@ -1,11 +1,13 @@
-056-2.gat,77,34,0|script|Warning|400,{
+056-2.gat,77,34,0|script|Warning|400,
+{
mes "Turn around. Do not come any closer!";
mes "Go back upstairs and leave! I don't want to see anybody!";
mes "This is the last warning!";
mes "- Mirak";
close;
}
-056-2.gat,29,30,0|script|Note|400,{
+056-2.gat,29,30,0|script|Note|400,
+{
mes "DO NOT GO ANY FURTHER!";
mes "Put the supplies on the table and do not come downstairs. I don't want to be bothered.";
mes "- Mirak";
diff --git a/world/map/npc/057-1/_mobs.txt b/world/map/npc/057-1/_mobs.txt
index a51bf07a..66dedc41 100644
--- a/world/map/npc/057-1/_mobs.txt
+++ b/world/map/npc/057-1/_mobs.txt
@@ -21,7 +21,8 @@
057-1.gat,27,46,14,52|monster|Squirrel|1038,6,10000,50000,Mob057-1::On1038
-057-1.gat,0,0,0|script|Mob057-1|-1,{
+057-1.gat,0,0,0|script|Mob057-1|-1,
+{
On1014:
set @mobID, 1014;
callfunc "MobPoints";
diff --git a/world/map/npc/botcheck/_mobs.txt b/world/map/npc/botcheck/_mobs.txt
index c227a333..208ec7b1 100644
--- a/world/map/npc/botcheck/_mobs.txt
+++ b/world/map/npc/botcheck/_mobs.txt
@@ -3,6 +3,7 @@
-botcheck.gat,0,0,0|script|Mobbotcheck|-1,{
+botcheck.gat,0,0,0|script|Mobbotcheck|-1,
+{
end;
}
diff --git a/world/map/npc/botcheck/announcements.txt b/world/map/npc/botcheck/announcements.txt
index 95ca5438..b7580596 100644
--- a/world/map/npc/botcheck/announcements.txt
+++ b/world/map/npc/botcheck/announcements.txt
@@ -13,8 +13,8 @@
// $@GMSA_TICK: broadcast the message every $@GMSA_TICK hours
// $@GMSA_CURRENT_TICK: internal counter incremented every hour
-botcheck.gat,49,29,0|script|Stone Board|348,{
-
+botcheck.gat,49,29,0|script|Stone Board|348,
+{
if (getgmlevel() < 60)
goto L_Close;
diff --git a/world/map/npc/functions/banker.txt b/world/map/npc/functions/banker.txt
index 42348957..09cfdef6 100644
--- a/world/map/npc/functions/banker.txt
+++ b/world/map/npc/functions/banker.txt
@@ -1,7 +1,7 @@
//
-function|script|Banker|{
-
+function|script|Banker|
+{
if (BankAccount == 0)
goto L_Start;
callsub S_MoveAccount;
diff --git a/world/map/npc/functions/barber.txt b/world/map/npc/functions/barber.txt
index 477b4a7b..4ad5ee1f 100644
--- a/world/map/npc/functions/barber.txt
+++ b/world/map/npc/functions/barber.txt
@@ -9,7 +9,8 @@
// or using GM commands, but scripts (such as this one) can set
// any value 0-255
-function|script|Barber|{
+function|script|Barber|
+{
set @style, getlook(LOOK_HAIR_STYLE);
set @color, getlook(LOOK_HAIR_COLOR);
@@ -113,7 +114,8 @@ L_Done:
// Since this is a function, not an NPC, OnInit doesn't work
// So call this from a real NPC's OnInit (001-1/barber.txt)
-function|script|OnInitBarber|{
+function|script|OnInitBarber|
+{
setarray $@HairStyles$,
"Bald", "Flat ponytail", "Bowl cut", "Combed back", "Emo", "Mohawk",
"Pompadour", "Center parting/Short and slick", "Long and slick",
diff --git a/world/map/npc/functions/clear_vars.txt b/world/map/npc/functions/clear_vars.txt
index 6cc311fe..db94680f 100644
--- a/world/map/npc/functions/clear_vars.txt
+++ b/world/map/npc/functions/clear_vars.txt
@@ -1,6 +1,7 @@
// Clears old variables
-function|script|ClearVariables|{
+function|script|ClearVariables|
+{
set EasterQuest, 0;
// Halloween 2006
@@ -184,8 +185,8 @@ L_Fix_Full:
// The variable TMW_Quest was used to save the progress in several subquests linearly.
// The subquests are moved to different nibbles of other variables
// to make it possible to do some of the quests in parallel.
-function|script|ClearVarTMW_Quest|{
-
+function|script|ClearVarTMW_Quest|
+{
if (TMW_Quest == 0) goto L_Done;
if (TMW_Quest <= 6) goto L_Bernard_Mikhail;
if (TMW_Quest <= 8) goto L_Sarah;
@@ -231,7 +232,8 @@ L_Done:
return;
}
--|script|#ClearGlobalVars|-1,{
+-|script|#ClearGlobalVars|-1,
+{
OnInit:
// Clear some entries of the arrays which save the Fluffy Hunting highscore list
diff --git a/world/map/npc/functions/dailyquest.txt b/world/map/npc/functions/dailyquest.txt
index 69270c79..9bc84c5b 100644
--- a/world/map/npc/functions/dailyquest.txt
+++ b/world/map/npc/functions/dailyquest.txt
@@ -27,7 +27,8 @@
// (DailyQuestBonus makes a good reward from non-daily quests)
-function|script|DailyQuestPoints|{
+function|script|DailyQuestPoints|
+{
set @dq_earliest, gettimetick(2) - 86400;
if (DailyQuestTime < @dq_earliest)
set DailyQuestTime, @dq_earliest;
@@ -54,8 +55,8 @@ L_Bonus:
return;
}
-function|script|DailyQuest|{
-
+function|script|DailyQuest|
+{
callfunc "DailyQuestPoints";
if (BaseLevel < @dq_level)
diff --git a/world/map/npc/functions/debug.txt b/world/map/npc/functions/debug.txt
index 83a41060..9f9559ea 100755
--- a/world/map/npc/functions/debug.txt
+++ b/world/map/npc/functions/debug.txt
@@ -1,7 +1,7 @@
// Authors: alastrim, Jenalya, Ali-G
-function|script|Debug|{
-
+function|script|Debug|
+{
L_Begin:
set @debug_mask, 65535;
set @debug_shift, 0;
@@ -861,7 +861,8 @@ L_ResetAll:
}
-042-2.gat,30,26,0|script|Debug0|154,{
+042-2.gat,30,26,0|script|Debug0|154,
+{
callfunc "Debug";
end;
OnInit:
@@ -869,7 +870,8 @@ OnInit:
disablenpc "Debug0";
}
-001-1.gat,41,29,0|script|Debug1|154,{
+001-1.gat,41,29,0|script|Debug1|154,
+{
callfunc "Debug";
end;
OnInit:
@@ -877,7 +879,8 @@ OnInit:
disablenpc "Debug1";
}
-009-1.gat,52,33,0|script|Debug2|154,{
+009-1.gat,52,33,0|script|Debug2|154,
+{
callfunc "Debug";
end;
OnInit:
@@ -885,7 +888,8 @@ OnInit:
disablenpc "Debug2";
}
-020-1.gat,75,85,0|script|Debug3|154,{
+020-1.gat,75,85,0|script|Debug3|154,
+{
callfunc "Debug";
end;
OnInit:
@@ -893,7 +897,8 @@ OnInit:
disablenpc "Debug3";
}
-botcheck.gat,50,28,0|script|Debug4|154,{
+botcheck.gat,50,28,0|script|Debug4|154,
+{
callfunc "Debug";
end;
OnInit:
diff --git a/world/map/npc/functions/evil_obelisk.txt b/world/map/npc/functions/evil_obelisk.txt
index f1447375..e3e40f79 100644
--- a/world/map/npc/functions/evil_obelisk.txt
+++ b/world/map/npc/functions/evil_obelisk.txt
@@ -1,4 +1,5 @@
-function|script|EvilObelisk|{
+function|script|EvilObelisk|
+{
mes "[Evil Obelisk]";
mes "(A mystical aura surrounds this stone. It seems to crave money.)";
next;
diff --git a/world/map/npc/functions/ferry.txt b/world/map/npc/functions/ferry.txt
index 43412026..a28f0511 100644
--- a/world/map/npc/functions/ferry.txt
+++ b/world/map/npc/functions/ferry.txt
@@ -1,6 +1,7 @@
// The ferry system
-function|script|Ferry|{
+function|script|Ferry|
+{
if (BaseLevel < 20)
goto L_LowerCost;
set @cost_tulimshar, 500;
diff --git a/world/map/npc/functions/game_rules.txt b/world/map/npc/functions/game_rules.txt
index 7cc2bd63..f735bf4a 100644
--- a/world/map/npc/functions/game_rules.txt
+++ b/world/map/npc/functions/game_rules.txt
@@ -1,6 +1,7 @@
//
-function|script|GameRules|{
+function|script|GameRules|
+{
set @read, 0;
menu
"English", L_English,
diff --git a/world/map/npc/functions/inn.txt b/world/map/npc/functions/inn.txt
index 85df4122..aad9e6c1 100644
--- a/world/map/npc/functions/inn.txt
+++ b/world/map/npc/functions/inn.txt
@@ -1,6 +1,7 @@
// INN
-function|script|Inn|{
+function|script|Inn|
+{
mes "[" + @npcname$ + "]";
mes "\"Would you like to rest? It's only " + @cost + " gp.\"";
next;
diff --git a/world/map/npc/functions/lockpicking.txt b/world/map/npc/functions/lockpicking.txt
index 1605431d..638e3914 100644
--- a/world/map/npc/functions/lockpicking.txt
+++ b/world/map/npc/functions/lockpicking.txt
@@ -4,8 +4,8 @@
// The player has to find the good number of times to hit a pin
//-----------------------------------------------------------------------------
-function|script|LockPicking|{
-
+function|script|LockPicking|
+{
set @lock_picking_success, 0;
setarray @pins, rand(1,3), rand(1,3), rand(1,3);
goto L_StartLockPicking;
diff --git a/world/map/npc/functions/magic.txt b/world/map/npc/functions/magic.txt
index bbd242c8..9fcb5226 100644
--- a/world/map/npc/functions/magic.txt
+++ b/world/map/npc/functions/magic.txt
@@ -10,8 +10,8 @@
// ------------------------------------------------------------
// Gain initial magic skill
// ------------------------------------------------------------
-function|script|MagicGainBasic|{
-
+function|script|MagicGainBasic|
+{
set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_DRANK_POTION;
close;
@@ -20,7 +20,8 @@ function|script|MagicGainBasic|{
// ------------------------------------------------------------
// Initialise Menu for selecting a choice of things to ask about
// ------------------------------------------------------------
-function|script|MagicTalkOptionsSetup|{
+function|script|MagicTalkOptionsSetup|
+{
set @QQ_ELANORE, 1;
set @QQ_MANASEED, 2;
set @QQ_MANAPOTION, 4;
@@ -40,7 +41,8 @@ function|script|MagicTalkOptionsSetup|{
// ------------------------------------------------------------
-function|script|MagicTalkMenu|{
+function|script|MagicTalkMenu|
+{
setarray @choice$, "", "", "", "", "", "", "", "", "", "";
set @choices_nr, 0;
setarray @choice_idx, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0;
@@ -159,7 +161,8 @@ L_Q_post_astralsoul:
// @SUP_name$ name of the skill to level up
// @SUP_xp # of experience points to award if the level up succeeds
// ------------------------------------------------------------
-function|script|SkillUp|{
+function|script|SkillUp|
+{
if (getskilllv(@SUP_id) >= @SUP_lvl)
goto L_shortcut;
diff --git a/world/map/npc/functions/mob_points.txt b/world/map/npc/functions/mob_points.txt
index 2f89010e..aae10658 100644
--- a/world/map/npc/functions/mob_points.txt
+++ b/world/map/npc/functions/mob_points.txt
@@ -1,6 +1,7 @@
// Mob points
-function|script|MobPoints|{
+function|script|MobPoints|
+{
if (@mobID < 1002) return;
setarray @points,
diff --git a/world/map/npc/functions/process_equip.txt b/world/map/npc/functions/process_equip.txt
index b8da56e8..4b8e1ccd 100644
--- a/world/map/npc/functions/process_equip.txt
+++ b/world/map/npc/functions/process_equip.txt
@@ -1,6 +1,7 @@
//
-function|script|ProcessEquip|{
+function|script|ProcessEquip|
+{
set @head, getequipid(equip_head);
set @torso, getequipid(equip_torso);
set @legs, getequipid(equip_legs);
diff --git a/world/map/npc/functions/slot_machine.txt b/world/map/npc/functions/slot_machine.txt
index a8ab7224..4081adca 100644
--- a/world/map/npc/functions/slot_machine.txt
+++ b/world/map/npc/functions/slot_machine.txt
@@ -1,6 +1,7 @@
//
-function|script|SlotMachine|{
+function|script|SlotMachine|
+{
mes "Pull the lever...";
next;
menu
diff --git a/world/map/npc/functions/soul_menhir.txt b/world/map/npc/functions/soul_menhir.txt
index a8d3f909..315c89d4 100644
--- a/world/map/npc/functions/soul_menhir.txt
+++ b/world/map/npc/functions/soul_menhir.txt
@@ -1,4 +1,5 @@
-function|script|SoulMenhir|{
+function|script|SoulMenhir|
+{
mes "[Soul Menhir]";
mes "(A mystical aura surrounds this stone. You feel mysteriously attracted to it. Something tells you to touch it. What do you do?)";
next;
diff --git a/world/map/npc/functions/strangerquiz.txt b/world/map/npc/functions/strangerquiz.txt
index 4901ca81..6290dbab 100644
--- a/world/map/npc/functions/strangerquiz.txt
+++ b/world/map/npc/functions/strangerquiz.txt
@@ -1,5 +1,6 @@
-function|script|StrangerQuiz|{
+function|script|StrangerQuiz|
+{
// param @quizparam$$
// return in @quizanswer$
set @quizanswer$, getspellinvocation(@quizparam$);
diff --git a/world/map/npc/functions/time.txt b/world/map/npc/functions/time.txt
index 2527b853..a8236cb4 100644
--- a/world/map/npc/functions/time.txt
+++ b/world/map/npc/functions/time.txt
@@ -6,7 +6,8 @@
// output @ts_date$ "yyyy-mm-dd"
// output @ts_time$ "hh:mm:ss"
-function|script|time_stamp|{
+function|script|time_stamp|
+{
// local variables
// if there is reasonable demand, these might be exported
// (that is what the builtin is likely to do)
diff --git a/world/map/npc/functions/water_bottle.txt b/world/map/npc/functions/water_bottle.txt
index e88c5965..e65009da 100644
--- a/world/map/npc/functions/water_bottle.txt
+++ b/world/map/npc/functions/water_bottle.txt
@@ -1,6 +1,7 @@
// Fills empty bottles with water
-function|script|WaterBottle|{
+function|script|WaterBottle|
+{
set @COST_PER_BOTTLE, 150;
mes "How many empty bottles do you want to fill with water? It costs " + @COST_PER_BOTTLE + "gp per bottle.";
diff --git a/world/map/npc/items/magic_gm_top_hat.txt b/world/map/npc/items/magic_gm_top_hat.txt
index cd9a0302..181df1a2 100644
--- a/world/map/npc/items/magic_gm_top_hat.txt
+++ b/world/map/npc/items/magic_gm_top_hat.txt
@@ -1,4 +1,5 @@
-function|script|ActivateMagicGMTophat|{
+function|script|ActivateMagicGMTophat|
+{
if (getgmlevel() < 60) return;
getinventorylist;
if ((checkweight("MurdererCrown", 1) == 0) || (@inventorylist_count == 100))
diff --git a/world/map/npc/items/purification_potion.txt b/world/map/npc/items/purification_potion.txt
index 59c55eb1..46dd46fd 100644
--- a/world/map/npc/items/purification_potion.txt
+++ b/world/map/npc/items/purification_potion.txt
@@ -1,6 +1,7 @@
// This is the function to use the PurificationPotion
-function|script|usePurificationPotion|{
+function|script|usePurificationPotion|
+{
if (isat("011-1.gat", 88,67))
goto L_Wyara_Pond;
diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt
index 87fd9d72..df05d37c 100644
--- a/world/map/npc/items/require_stat.txt
+++ b/world/map/npc/items/require_stat.txt
@@ -5,7 +5,8 @@
// @minbStatVal The minimum stat value to accept this item.
// ------------------------------------------------------------
-function|script|RequireStat|{
+function|script|RequireStat|
+{
if (@bStat$ == "" || @minbStatVal < 0) return;
set @bStatVal, 0;
if (@bStat$ == "Str")
diff --git a/world/map/npc/items/restricted_item.txt b/world/map/npc/items/restricted_item.txt
index eddce38d..0367cf5d 100644
--- a/world/map/npc/items/restricted_item.txt
+++ b/world/map/npc/items/restricted_item.txt
@@ -6,7 +6,8 @@
// @minLvl The minimum required GM level to equip this item. When not set or set to 0, it is set to 60 as a default.
// ------------------------------------------------------------
-function|script|RestrictedItem|{
+function|script|RestrictedItem|
+{
if (!@minLvl) set @minLvl, 60;
if (debug || getgmlevel() >= @minLvl) return; // If the active character is staff, do nothing.
message strcharinfo(0), "This item repells you with extreme force. It does not seem to be meant for you.";
diff --git a/world/map/npc/items/scissors.txt b/world/map/npc/items/scissors.txt
index 7b64ce61..122254fe 100644
--- a/world/map/npc/items/scissors.txt
+++ b/world/map/npc/items/scissors.txt
@@ -1,4 +1,5 @@
-function|script|useScissors|{
+function|script|useScissors|
+{
if (rand(3))
goto L_Change;
message strcharinfo(0), "Whoops!";
diff --git a/world/map/npc/items/shock_sweet.txt b/world/map/npc/items/shock_sweet.txt
index a9226c39..a4078e5f 100644
--- a/world/map/npc/items/shock_sweet.txt
+++ b/world/map/npc/items/shock_sweet.txt
@@ -1,4 +1,5 @@
-function|script|useShockSweet|{
+function|script|useShockSweet|
+{
if (rand(5))
goto L_Change;
message strcharinfo(0), "Yuck, this tastes like earwax!";
diff --git a/world/map/npc/items/unreleased_item.txt b/world/map/npc/items/unreleased_item.txt
index 64072484..14271e1a 100644
--- a/world/map/npc/items/unreleased_item.txt
+++ b/world/map/npc/items/unreleased_item.txt
@@ -3,7 +3,8 @@
// @slotId The slot in which the item would have been equipped in. This is passed automagically when called in an equip script.
// ------------------------------------------------------------
-function|script|UnreleasedItem|{
+function|script|UnreleasedItem|
+{
if (debug || getgmlevel()) end; // If the server allows equipping unreleased items or if the active character is staff, do nothing.
message strcharinfo(0), "You have difficulties equipping this item, as if it is not yet fully in this world.";
unequipbyid @slotId;
diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt
index 3ef92ee7..cbbb462f 100644
--- a/world/map/npc/items/warpTowels.txt
+++ b/world/map/npc/items/warpTowels.txt
@@ -1,4 +1,5 @@
-function|script|useWhiteWarpTowel|{
+function|script|useWhiteWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -33,7 +34,8 @@ L_Keep:
getitem "WhiteHitchhikersTowel", 1;
end;
}
-function|script|useRedWarpTowel|{
+function|script|useRedWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -68,7 +70,8 @@ L_Keep:
getitem "RedHitchhikersTowel", 1;
end;
}
-function|script|useGreenWarpTowel|{
+function|script|useGreenWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -103,7 +106,8 @@ L_Keep:
getitem "GreenHitchhikersTowel", 1;
end;
}
-function|script|useBlueWarpTowel|{
+function|script|useBlueWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -138,7 +142,8 @@ L_Keep:
getitem "BlueHitchhikersTowel", 1;
end;
}
-function|script|useYellowWarpTowel|{
+function|script|useYellowWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -173,7 +178,8 @@ L_Keep:
getitem "YellowHitchhikersTowel", 1;
end;
}
-function|script|usePurpleWarpTowel|{
+function|script|usePurpleWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -208,7 +214,8 @@ L_Keep:
getitem "PurpleHitchhikersTowel", 1;
end;
}
-function|script|useOrangeWarpTowel|{
+function|script|useOrangeWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -243,7 +250,8 @@ L_Keep:
getitem "OrangeHitchhikersTowel", 1;
end;
}
-function|script|usePinkWarpTowel|{
+function|script|usePinkWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -278,7 +286,8 @@ L_Keep:
getitem "PinkHitchhikersTowel", 1;
end;
}
-function|script|useTealWarpTowel|{
+function|script|useTealWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))
@@ -313,7 +322,8 @@ L_Keep:
getitem "TealHitchhikersTowel", 1;
end;
}
-function|script|useLimeWarpTowel|{
+function|script|useLimeWarpTowel|
+{
if (isin("botcheck.gat",25,27,51,47))
goto L_Botcheck;
if (isin("052-1.gat",1,1,100,80) || isin("052-2.gat",1,1,150,100))