Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _addon = {}
- _addon.name = 'packetstun'
- _addon.version = '1.000'
- require 'tablehelper'
- local config = require 'config'
- local files = require 'filehelper'
- windower.register_event('load',function ()
- notice('Version '.._addon.version..' loaded.')
- jatable = S{
- --trex path
- --'1897', --regurgitation
- --'1896', --aqua fortis
- --'1898', --delta thrusta
- '1899',--torpefying charge
- --'1900', --grim glower
- '1901', --Calcifying Mist
- --'2136', --oppressive glare
- --'260','1339', --geist wall
- '2787', --whirling inferno
- --'263','1342', --cyclotail
- --'120','1428', --foul breath
- --'118','1426', --ripper fang
- --'123','1431', --chomp rush
- --'124','1432', --scythe tail
- '2680', --Tarichutoxin
- '548', --tortoise song
- '791', --tortoise song
- --'550', --tortoise stomp
- --'793', --tortoise stomp
- '2329', --testudo tremor
- '2764', --blistering roar
- '2765', --searing serration
- '2766', --volcanic stasis
- '2767', --tyrannical blow
- '2768', --batholithic shell
- '2769', --pyroclastic surge
- '2770', --incinerating lahar
- --shark
- '2755', --Protolithic Puncture
- '2756', --Aquatic Lance
- '2757', --Pelagic Cleaver
- '2758', --Carcharian Verve
- '2759', --Tidal Guillotine
- '2760', --Marine Mayhem
- --craklaw
- '2701', --Impenetrable Carapace
- '2702', --Rending Deluge
- '2703', --Sundering Snip
- '2704', --Viscid Spindrift
- '2705', --Riptide Eupnea
- --Uragnite
- --'250','1317', --Palsynyxis
- '251','1318', --Painful Whip
- '2437', --Virulent Haze
- --'1315', --Gas Shell
- --'1316', --Venom Shell
- '1319', --Suctorial Tentacle
- --jagil
- '1614', --Recoil Dive
- --orobon
- '2383', --mayhem lantern
- '1441', --seaspray
- '1439', --hypnic lamp
- '1438', --Vile Belch
- '1439', --Hypnic Lamp
- '1440', --Seismic Tail
- '1442', --Leeching Current
- --crab
- '2256', --venom shower
- --'186','1333', --Bubble Shower
- --'187','1334' --Bubble Curtain
- --'188','1335', --Big Scissors
- --'189','1336', --Scissor Guard
- --bee path
- --butterfly
- --'2694', --Tempestuous Upheaval
- --'2695', --Slice N Dice
- '2696', --Blackout
- --'2697', --Smouldering Swarm"
- --Chapuli
- '2689', --Nature's Meditation
- '2690', --Sensilla Blades
- '2691', --Tegmina Buffet
- '2692', --Sanguinary Slash
- '2693', --Orthopterror
- --Scorpion
- --'464', --Venom Sting
- --'465', --Stasis
- --'466', --Venom Storm
- --'467', --Earthbreaker
- --'97', --Death Scissors
- --'98', --Wild Rage
- --'99', --Earth Pounder
- --'100', --Sharp Strike
- --gnat
- '2514', --Booming Bombination
- --'1902', --Insipid Nip
- --'1903', --Pandemic Nip
- --'1904', --Bombination
- '1905', --Cimicine Discharge
- --'1906', --Emetic Discharge
- --wamoura
- '1695', --Magma Fan
- --'1696', --Erratic Flutter
- --'1697', --Proboscis
- --'1698', --Erosion Dust
- --'1699', --Exuviation
- '1700', --Fire Break
- '2788', --Benumbing Blaze
- --bee
- '2746', --Mandibular Lashing
- '2747', --Vespine Hurricane
- '2748', --Stinger Volley
- '2749', --Droning Whirlwind
- '2750', --Incisive Denouement
- '2751', --Incisive Apotheosis
- --legion
- --hall of an
- '2273','2274', --dark star
- '2265', --choas blast
- '2267','2268', --dancing tail
- '2269','2270', --chilling roar
- '2469', --rending talons
- '2472', --wings of agony
- '2470', --shreiking gale
- '2471', --wings of woe
- '2473', --thpheosomthing rage
- '2474', --ravenous wail
- '2271','2272', --douse something
- --hall of Ki
- '1530', --sulfurious breathe
- '1534', --gates of hades
- '1529', --lava spit
- '2445', --acheron flame
- '1531', --scorching lash
- '1772', --fulmination
- '1768', --tourbillion
- '1769', --dreadstorm
- '1767', --thunderstrike
- '1766', --tenberous mist
- '1771', --plauge swipe
- '1580', --nerve gas
- '2500', --death profit
- '2495', --slicing sickle
- '2497', --phlem explosion
- '2496', --raptoral claw
- '2498', --masercating bile
- '2499', --preying posture
- --hall of im
- '274', --memento mori
- '275', --silece seal
- '276', --envoutment
- '277', --danse macabre
- '1070', --final retribution
- '1073', --gala macabre
- '2382', --hadal summons
- '1857', --hellsnap
- '1858', --hellclap
- '1859', --cackle
- '1860', --necrobane
- '1861', --necropurge
- '1862', --bligestorm
- '1863', --thunderous shreik
- '1850', --bloodrake
- '1851', --decolation
- '1852', --nefouris kiss
- '1853', --heliosomething
- '1854', --wings of ghenna
- '1855', --eternal damnation
- '1856', --nocturnal servitude
- '2132', --dirty breath
- '2278', --minax glare
- '2458', --yaksha stance
- '2459', --damnation
- '2460', --bliss
- '2461', --oblivion
- --'2462', --rakasha stance
- '2463', --judgment
- '2464', --illusion
- '2465', --vengence
- --hall of muru
- '2176', --storm wing
- '2175', --reaving wind
- '2173', --feral peck
- '2172', --bloody beak
- '2174', --warped wail
- '2177', --calmous wind
- '1933', --aolian void
- '1935', --dessication
- '1934', --extreme purgetation
- '1932', --salverous gale
- '1931', --dustvoid
- '2348', --gorge
- '2349', --disgorge
- '2363', --turbine cyclone
- '2364', --seismic impact
- '2365', --incenerator
- '2366', --arm cannon
- '2367','2477', --balistic kick
- '2553', --claw
- '2555', --quill
- '2368', --scapula beam
- --hall of mul
- '2554', --yama's judgement
- '2501', --sakra storm
- '2369', --eradicator
- '2528', --diluval wake
- '2529', --kurnugi collapse
- '2530', --searing hiatus
- '2531', --deivesatong gale
- '2532', --bolt of purdition
- '2533', --cripling rime
- '2534', --oblivion's mantle
- '2542', --gnash n guttle
- '2543', --slutty spectum
- '2544', --chalmus reak
- '2545', --rancid reflux
- '2546', --crowning flatus
- '2547', --slimy propsal
- '2548', --just desserts
- --new shit
- '2735', --sairain slide
- '2736', --jungle wallop
- '2741', --saurian swamp
- '2742', --jungle hoodoo
- '2734', --velk pygammaachi
- '2740', --velk
- '2827', --coming through
- '2825', --velk ambush
- '2828', --merciless mauling
- '2826', --galumph
- '2829', --crocasomethin
- --'2831', --battle trance
- --'2733', --death spin
- --'2739', --death spin
- '1', --foot kick
- '1311', --foot kick
- '3', --whirl
- '1313', --whirl
- }
- matable = S{
- '505', --meteor
- '502', --kaustra
- '357', --slowga
- '503',
- '367',
- '365', --breakga
- }
- end)
- --This event happens when an action packet is received.
- windower.register_event('action', function(act)
- --Category 7 is weapon skill readying for players and npcs. The following
- --gets the ability id of the tp move being used and (after subtracting 256
- --due to it being offset, compares it against the abilities table. Then checks
- --it against your danger words and the user against your moblist.
- --if act['category'] == 7 and isMob(tonumber(act['actor_id'])) then
- if act['category'] == 7 then
- local num = tonumber(act['targets'][1]['actions'][1]['param']) - 256
- if num < 1 then return end
- if jatable[tostring(num)] ~= nil then
- windower.send_command('input /ma Stun <t>')
- windower.send_command('input /echo '..num)
- end
- end
- --Category 8 is spell casting
- if act['category'] == 8 and tonumber(act['targets'][1]['actions'][1]['message']) ~= 16 and isMob(tonumber(act['actor_id'])) and act['param'] ~= 28787 then
- --if act['category'] == 8 and tonumber(act['targets'][1]['actions'][1]['message']) ~= 16 and isMob(tonumber(act['actor_id'])) then
- local num = tonumber(act['targets'][1]['actions'][1]['param'])
- if num <= 0 then return end
- if matable[tostring(num)] ~= nil then
- windower.send_command('input /ma Stun <t>')
- end
- end
- end)
- --Check if the actor is actually an npc rather than a player
- function isMob(id)
- return windower.ffxi.get_mob_by_id(id)['is_npc']
- end
- windower.register_event('incoming text',function (original, modified, color)
- if (string.find(original,'The spring has returned')) then
- windower.send_command('input /ma Stun <t>')
- end
- return modified,color
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement