diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-08-05 21:59:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-08-05 21:59:08 -0300 |
commit | 01f04ef692dfefecbdd0b1391c83026cf16924ee (patch) | |
tree | 78189bdb0d90a81b2f8c5e881264d72ee105663e | |
parent | 798a973c49468895ed9529e6d0a879e2f981f3ac (diff) | |
download | serverdata-01f04ef692dfefecbdd0b1391c83026cf16924ee.tar.gz serverdata-01f04ef692dfefecbdd0b1391c83026cf16924ee.tar.bz2 serverdata-01f04ef692dfefecbdd0b1391c83026cf16924ee.tar.xz serverdata-01f04ef692dfefecbdd0b1391c83026cf16924ee.zip |
Fix issues on Heroes Hold
-rw-r--r-- | npc/018-2-2/main.txt | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt index 55629fd3e..ff970865c 100644 --- a/npc/018-2-2/main.txt +++ b/npc/018-2-2/main.txt @@ -126,7 +126,7 @@ OnInit: 30, 30, 25, 10, 35, 10, 15, 45, 7, 2, 2; - // Intermiary + // Intermediary setarray .Interm_Mobs, RedSlime,AngryRedScorpion,Bandit,Skeleton,GreenSlime, BlueSlime,LavaSlime,RedMushroom,RobinBandit,Bif, AngryYellowSlime,OldSnake,GrassSnake,BlackSlime,Wolvern,DarkLizard,BlackScorpion,DustRevolver,MagicBif,SilverChest; setarray .Interm_Ammo, 80, 50, 50, 10, 90, 30, 60, 35, 20, 5, @@ -573,6 +573,12 @@ OnAdvanc17: fix_mobkill(.Advanc_Mobs[17]); } areamonster "018-2-2@Ad", 20, 20, 220, 220, strmobinfo(1, .Advanc_Mobs[17]), .Advanc_Mobs[17], 1, "#HH_CONTROLLER01::OnAdvanc17"; end; +OnAdvanc18: + if (playerattached()) { + if (rand2(0, 2000) <= readparam2(bLuk)+(strmobinfo(3,.Advanc_Mobs[18])*4)+strmobinfo(7,.Advanc_Mobs[18])) {getmapxy(.@m$, .@x, .@y, 0); makeitem(HeroCoin, 4, .@m$, .@x, .@y);} + fix_mobkill(.Advanc_Mobs[18]); + } + areamonster "018-2-2@Ad", 20, 20, 220, 220, strmobinfo(1, .Advanc_Mobs[18]), .Advanc_Mobs[18], 1, "#HH_CONTROLLER01::OnAdvanc18"; end; OnExpert0: @@ -757,6 +763,30 @@ OnMaster14: fix_mobkill(.Master_Mobs[14]); } areamonster "018-2-5@Ma", 20, 20, 220, 220, strmobinfo(1, .Master_Mobs[14]), .Master_Mobs[14], 1, "#HH_CONTROLLER01::OnMaster14"; end; +OnMaster15: + if (playerattached()) { + if (rand2(0, 2000) <= readparam2(bLuk)+(strmobinfo(3,.Master_Mobs[15])*4)+strmobinfo(7,.Master_Mobs[15])) {getmapxy(.@m$, .@x, .@y, 0); makeitem(HeroCoin, 16, .@m$, .@x, .@y);} + fix_mobkill(.Master_Mobs[15]); + } + areamonster "018-2-5@Ma", 20, 20, 220, 220, strmobinfo(1, .Master_Mobs[15]), .Master_Mobs[15], 1, "#HH_CONTROLLER01::OnMaster15"; end; +OnMaster16: + if (playerattached()) { + if (rand2(0, 2000) <= readparam2(bLuk)+(strmobinfo(3,.Master_Mobs[16])*4)+strmobinfo(7,.Master_Mobs[16])) {getmapxy(.@m$, .@x, .@y, 0); makeitem(HeroCoin, 16, .@m$, .@x, .@y);} + fix_mobkill(.Master_Mobs[16]); + } + areamonster "018-2-5@Ma", 20, 20, 220, 220, strmobinfo(1, .Master_Mobs[16]), .Master_Mobs[16], 1, "#HH_CONTROLLER01::OnMaster16"; end; +OnMaster17: + if (playerattached()) { + if (rand2(0, 2000) <= readparam2(bLuk)+(strmobinfo(3,.Master_Mobs[17])*4)+strmobinfo(7,.Master_Mobs[17])) {getmapxy(.@m$, .@x, .@y, 0); makeitem(HeroCoin, 16, .@m$, .@x, .@y);} + fix_mobkill(.Master_Mobs[17]); + } + areamonster "018-2-5@Ma", 20, 20, 220, 220, strmobinfo(1, .Master_Mobs[17]), .Master_Mobs[17], 1, "#HH_CONTROLLER01::OnMaster17"; end; +OnMaster18: + if (playerattached()) { + if (rand2(0, 2000) <= readparam2(bLuk)+(strmobinfo(3,.Master_Mobs[18])*4)+strmobinfo(7,.Master_Mobs[18])) {getmapxy(.@m$, .@x, .@y, 0); makeitem(HeroCoin, 16, .@m$, .@x, .@y);} + fix_mobkill(.Master_Mobs[18]); + } + areamonster "018-2-5@Ma", 20, 20, 220, 220, strmobinfo(1, .Master_Mobs[18]), .Master_Mobs[18], 1, "#HH_CONTROLLER01::OnMaster18"; end; } @@ -764,9 +794,9 @@ OnMaster14: # df (name, mobs, reward, mapid) df=[('Novice', 21, 1, 2), ('Interm', 20, 2, 3), - ('Advanc', 18, 4, 2), + ('Advanc', 19, 4, 2), ('Expert', 15, 8, 3), - ('Master', 15, 16,5)] + ('Master', 19, 16,5)] for a in df: print("\n") |