Jump to content

Question

Posted

Hello, I have this script, but I want to change the HP of the mobs. I tried to do this using setunitdata, but it didn't work. Does anyone have any advice or an example of how to change the HP of spawned mobs?

 

Quote

//===== rAthena Script =======================================
//= Bossnia Warp NPCs
//===== By: ==================================================
//= Masao
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= Bossnia MVP event.
//===== Additional Comments: =================================
//= 1.0 Converted from the official script.
//= 1.1 Optimized. [Euphy]
//= 1.2 Moved spawns and warps (by Masao) to this file. [Euphy]
//= 1.3 Added VIP features. [Euphy]
//============================================================


// Entrance NPCs
//============================================================
prontera,175,170,4    script    Cheffenia#1    908,{

    mes "[Cheffenia]";
    mes "Olá bem vindo a Cheffenia Glubro";
    mes "Selecione o modo que vc deseja entrar";
    mes "Será cobrado um valor de 20kk de zeny a cada entrada!";
    if (VIP_SCRIPT) {
        mes "a grudge against me. It'll cost you 1 Reset Stone for 5 access.";
        next;
        mes "[Cheffenia]";
        if (bossnia_event > 0) {
            set .@type,1;
            mes "Remaining access: "+bossnia_event;
        } else if (countitem(6320)) {
            set .@type,2;
            mes "Do you want to go?";
        } else {
            mes "You don't have a ticket now.....";
            mes "So come to me again with a Reset Stone later.";
            close;
        }
        next;
        if(select("Enter:Leave") == 2)
            close;
        set .@i, select("Easy:^0000FFNormal:^FF000 Hard:^6666CCModo Deus");
        switch(select("Warp 1:Warp 2:Warp 3:Warp 4")) {
            case 1: set .@x,31; set .@y,208; break;
            case 2: set .@x,31; set .@y,31; break;
            case 3: set .@x,208; set .@y,31; break;
            case 4: set .@x,208; set .@y,208; break;
        }
        if (.@type == 1)
            set bossnia_event, bossnia_event-1;
        else {
            delitem 6320,1; //Premium_Reset_Stone
            set bossnia_event,4;
        }
        specialeffect2 EF_MAXPOWER;
        warp "bossnia_0"+.@i,.@x,.@y;
        close;
    } else {
        next;
        if (Zeny > 20000000) {
            mes "[Cheffenia]";
            mes "Selecione o nivel da cheffenia, e divirta-se!";
            mes "Um mero humano nunca ira enfrentar os Deuses";
            next;
            set .@i, select("^228B22Easy:^0000FFNormal:^FD4F02Hard:^B8860BModo Deus");
            mes "[Riss]";
            mes "Take care, boy~";
            mes "Don't hold a grudge against me.";
            close2;
            set Zeny, Zeny - 20000000;
            warp "bossnia_0"+.@i,rand(202,204),rand(202,204);
            end;
        } else {
            mes "[Riss]";
            mes "You don't have enough money...";
            mes "Come back when you have at least 5,000 zeny.";
            close;
        }
    }
}
geffen,124,169,4    duplicate(Cheffenia#1)    Bossnia Staff#2    908
payon,165,150,4    duplicate(Cheffenia#1)    Bossnia Staff#3    908
morocc,142,100,4    duplicate(Cheffenia#1)    Bossnia Staff#4    908
lighthalzen,203,140,4    duplicate(Cheffenia#1)    Bossnia Staff#5    908
rachel,132,144,4    duplicate(Cheffenia#1)    Bossnia Staff#6    908

// Warp Portals
//============================================================
//bossnia_01,204,204,0    warp    bossnia01    1,1,prontera,155,180
//bossnia_02,204,204,0    warp    bossnia02    1,1,prontera,155,180
//bossnia_03,204,204,0    warp    bossnia03    1,1,prontera,155,180
//bossnia_04,204,204,0    warp    bossnia04    1,1,prontera,155,180

// Monster Spawns
//============================================================
bossnia_01,0,0    monster    Garm    1252,5,7200000
bossnia_01,0,0    monster    Gloom Under Night    1768,2,7200000
bossnia_01,0,0    monster    Dark Lord    1272,3,7200000
bossnia_01,0,0    monster    Doppelganger    1046,10,7200000
bossnia_01,0,0    monster    Dracula    1389,5,1800000
bossnia_01,0,0    monster    Drake    1112,10,1800000
bossnia_01,0,0    monster    Detale    1719,2,7200000
bossnia_01,0,0    monster    Maya    1147,10,1800000
bossnia_01,0,0    monster    Mistress    1059,1,1800000
bossnia_01,0,0    monster    Baphomet    1039,10,1800000
bossnia_01,0,0    monster    Egnigem Cenia    1658,10,1800000
bossnia_01,0,0    monster    Amon Ra    1511,1,1800000
bossnia_01,0,0    monster    Atroce    1785,10,1800000
bossnia_01,0,0    monster    Vesper    1685,2,7200000
bossnia_01,0,0    monster    Eddga    1115,1,1800000
bossnia_01,0,0    monster    Osiris    1038,10,7200000
bossnia_01,0,0    monster    Orc Lord    1190,10,7200000
bossnia_01,0,0    monster    Orc Hero    1087,2,1800000
bossnia_01,0,0    monster    Samurai Specter    1492,1,3600000
bossnia_01,0,0    monster    Moonlight Flower    1150,1,3600000
bossnia_01,0,0    monster    Lord of the Dead    1373,1,3600000
bossnia_01,0,0    monster    Ktullanux    1779,2,7200000
bossnia_01,0,0    monster    Kiel D-01    1734,2,7200000
bossnia_01,0,0    monster    Thanatos Phantom    1708,2,7200000
bossnia_01,0,0    monster    Lady Tanee    1688,1,3600000
bossnia_01,0,0    monster    Tao Gunka    1583,1,3600000
bossnia_01,0,0    monster    Turtle General    1312,10,7200000
bossnia_01,0,0    monster    Pharaoh    1157,2,3600000
bossnia_01,0,0    monster    Stormy Knight    1251,2,3600000
bossnia_01,0,0    monster    Falling Bishop    1871,5,7200000
bossnia_01,0,0    monster    Phreeoni    1159,10,7200000
bossnia_01,0,0    monster    Golden Thief Bug    1086,10,3600000
bossnia_01,0,0    monster    Evil Snake Lord    1418,10,7200000
bossnia_01,0,0    monster    RSX-0806    1623,5,7200000
bossnia_01,0,0    monster    Assassin Cross Eremes    1647,1
bossnia_01,137,118,1,1    monster    Whitesmith Howard    1648,1
bossnia_01,122,195,1,1    monster    Beelzebub    1873,1
bossnia_01,45,118,1,1    monster    Beelzebub    1873,1
bossnia_01,196,122,1,1    monster    Valkyrie Randgris    1751,1
bossnia_01,142,61,1,1    monster    Ifrit    1832,1

//----------------------------------------------------------------------------
// bossnia_02 - Bossnia
//----------------------------------------------------------------------------
bossnia_02,0,0    monster    Garm    1252,5,7200000
bossnia_02,0,0    monster    Gloom Under Night    1768,2,7200000
bossnia_02,0,0    monster    Dark Lord    1272,3,7200000
bossnia_02,0,0    monster    Doppelganger    1046,10,7200000
bossnia_02,0,0    monster    Dracula    1389,5,1800000
bossnia_02,0,0    monster    Drake    1112,10,1800000
bossnia_02,0,0    monster    Detale    1719,2,7200000
bossnia_02,0,0    monster    Maya    1147,10,1800000
bossnia_02,0,0    monster    Mistress    1059,1,1800000
bossnia_02,0,0    monster    Baphomet    1039,10,1800000
bossnia_02,0,0    monster    Egnigem Cenia    1658,10,1800000
bossnia_02,0,0    monster    Amon Ra    1511,1,1800000
bossnia_02,0,0    monster    Atroce    1785,10,1800000
bossnia_02,0,0    monster    Vesper    1685,2,7200000
bossnia_02,0,0    monster    Eddga    1115,1,1800000
bossnia_02,0,0    monster    Osiris    1038,10,7200000
bossnia_02,0,0    monster    Orc Lord    1190,10,7200000
bossnia_02,0,0    monster    Orc Hero    1087,2,1800000
bossnia_02,0,0    monster    Samurai Specter    1492,1,3600000
bossnia_02,0,0    monster    Moonlight Flower    1150,1,3600000
bossnia_02,0,0    monster    Lord of the Dead    1373,1,3600000
bossnia_02,0,0    monster    Ktullanux    1779,2,7200000
bossnia_02,0,0    monster    Kiel D-01    1734,2,7200000
bossnia_02,0,0    monster    Thanatos Phantom    1708,2,7200000
bossnia_02,0,0    monster    Lady Tanee    1688,1,3600000
bossnia_02,0,0    monster    Tao Gunka    1583,1,3600000
bossnia_02,0,0    monster    Turtle General    1312,10,7200000
bossnia_02,0,0    monster    Pharaoh    1157,2,3600000
bossnia_02,0,0    monster    Stormy Knight    1251,2,3600000
bossnia_02,0,0    monster    Falling Bishop    1871,5,7200000
bossnia_02,0,0    monster    Phreeoni    1159,10,7200000
bossnia_02,0,0    monster    Golden Thief Bug    1086,10,3600000
bossnia_02,0,0    monster    Evil Snake Lord    1418,10,7200000
bossnia_02,0,0    monster    RSX-0806    1623,5,7200000
bossnia_02,0,0    monster    Assassin Cross Eremes    1647,1
bossnia_02,137,118,1,1    monster    Whitesmith Howard    1648,1
bossnia_02,122,195,1,1    monster    Beelzebub    1873,1
bossnia_02,45,118,1,1    monster    Beelzebub    1873,1
bossnia_02,196,122,1,1    monster    Valkyrie Randgris    1751,1
bossnia_02,142,61,1,1    monster    Ifrit    1832,1

//----------------------------------------------------------------------------
// bossnia_03 - Bossnia
//----------------------------------------------------------------------------
bossnia_03,0,0    monster    Garm    1252,5,7200000
bossnia_03,0,0    monster    Gloom Under Night    1768,2,7200000
bossnia_03,0,0    monster    Dark Lord    1272,3,7200000
bossnia_03,0,0    monster    Doppelganger    1046,10,7200000
bossnia_03,0,0    monster    Dracula    1389,5,1800000
bossnia_03,0,0    monster    Drake    1112,10,1800000
bossnia_03,0,0    monster    Detale    1719,2,7200000
bossnia_03,0,0    monster    Maya    1147,10,1800000
bossnia_03,0,0    monster    Mistress    1059,1,1800000
bossnia_03,0,0    monster    Baphomet    1039,10,1800000
bossnia_03,0,0    monster    Egnigem Cenia    1658,10,1800000
bossnia_03,0,0    monster    Amon Ra    1511,1,1800000
bossnia_03,0,0    monster    Atroce    1785,10,1800000
bossnia_03,0,0    monster    Vesper    1685,2,7200000
bossnia_03,0,0    monster    Eddga    1115,1,1800000
bossnia_03,0,0    monster    Osiris    1038,10,7200000
bossnia_03,0,0    monster    Orc Lord    1190,10,7200000
bossnia_03,0,0    monster    Orc Hero    1087,2,1800000
bossnia_03,0,0    monster    Samurai Specter    1492,1,3600000
bossnia_03,0,0    monster    Moonlight Flower    1150,1,3600000
bossnia_03,0,0    monster    Lord of the Dead    1373,1,3600000
bossnia_03,0,0    monster    Ktullanux    1779,2,7200000
bossnia_03,0,0    monster    Kiel D-01    1734,2,7200000
bossnia_03,0,0    monster    Thanatos Phantom    1708,2,7200000
bossnia_03,0,0    monster    Lady Tanee    1688,1,3600000
bossnia_03,0,0    monster    Tao Gunka    1583,1,3600000
bossnia_03,0,0    monster    Turtle General    1312,10,7200000
bossnia_03,0,0    monster    Pharaoh    1157,2,3600000
bossnia_03,0,0    monster    Stormy Knight    1251,2,3600000
bossnia_03,0,0    monster    Falling Bishop    1871,5,7200000
bossnia_03,0,0    monster    Phreeoni    1159,10,7200000
bossnia_03,0,0    monster    Golden Thief Bug    1086,10,3600000
bossnia_03,0,0    monster    Evil Snake Lord    1418,10,7200000
bossnia_03,0,0    monster    RSX-0806    1623,5,7200000
bossnia_03,0,0    monster    Assassin Cross Eremes    1647,1
bossnia_03,137,118,1,1    monster    Whitesmith Howard    1648,1
bossnia_03,122,195,1,1    monster    Beelzebub    1873,1
bossnia_03,45,118,1,1    monster    Beelzebub    1873,1
bossnia_03,196,122,1,1    monster    Valkyrie Randgris    1751,1
bossnia_03,142,61,1,1    monster    Ifrit    1832,1

//----------------------------------------------------------------------------
// bossnia_04 - Bossnia
//----------------------------------------------------------------------------
bossnia_04,0,0    monster    Garm    1252,5,7200000
bossnia_04,0,0    monster    Gloom Under Night    1768,2,7200000
bossnia_04,0,0    monster    Dark Lord    1272,3,7200000
bossnia_04,0,0    monster    Doppelganger    1046,10,7200000
bossnia_04,0,0    monster    Dracula    1389,5,1800000
bossnia_04,0,0    monster    Drake    1112,10,1800000
bossnia_04,0,0    monster    Detale    1719,2,7200000
bossnia_04,0,0    monster    Maya    1147,10,1800000
bossnia_04,0,0    monster    Mistress    1059,1,1800000
bossnia_04,0,0    monster    Baphomet    1039,10,1800000
bossnia_04,0,0    monster    Egnigem Cenia    1658,10,1800000
bossnia_04,0,0    monster    Amon Ra    1511,1,1800000
bossnia_04,0,0    monster    Atroce    1785,10,1800000
bossnia_04,0,0    monster    Vesper    1685,2,7200000
bossnia_04,0,0    monster    Eddga    1115,1,1800000
bossnia_04,0,0    monster    Osiris    1038,10,7200000
bossnia_04,0,0    monster    Orc Lord    1190,10,7200000
bossnia_04,0,0    monster    Orc Hero    1087,2,1800000
bossnia_04,0,0    monster    Samurai Specter    1492,1,3600000
bossnia_04,0,0    monster    Moonlight Flower    1150,1,3600000
bossnia_04,0,0    monster    Lord of the Dead    1373,1,3600000
bossnia_04,0,0    monster    Ktullanux    1779,2,7200000
bossnia_04,0,0    monster    Kiel D-01    1734,2,7200000
bossnia_04,0,0    monster    Thanatos Phantom    1708,2,7200000
bossnia_04,0,0    monster    Lady Tanee    1688,1,3600000
bossnia_04,0,0    monster    Tao Gunka    1583,1,3600000
bossnia_04,0,0    monster    Turtle General    1312,10,7200000
bossnia_04,0,0    monster    Pharaoh    1157,2,3600000
bossnia_04,0,0    monster    Stormy Knight    1251,2,3600000
bossnia_04,0,0    monster    Falling Bishop    1871,5,7200000
bossnia_04,0,0    monster    Phreeoni    1159,10,7200000
bossnia_04,0,0    monster    Golden Thief Bug    1086,10,3600000
bossnia_04,0,0    monster    Evil Snake Lord    1418,10,7200000
bossnia_04,0,0    monster    RSX-0806    1623,5,7200000
bossnia_04,0,0    monster    Assassin Cross Eremes    1647,1
bossnia_04,137,118,1,1    monster    Whitesmith Howard    1648,1
bossnia_04,122,195,1,1    monster    Beelzebub    1873,1
bossnia_04,45,118,1,1    monster    Beelzebub    1873,1
bossnia_04,196,122,1,1    monster    Valkyrie Randgris    1751,1
bossnia_04,142,61,1,1    monster    Ifrit    1832,1
 

 

3 answers to this question

Recommended Posts

  • 0
Posted

edit it on db/pre/mob_db.yml find the id's of each monster sample

 Garm    1252,  

- Id: 1252
    AegisName: GARM
    Name: Hatii
    JapaneseName: Garm
    Level: 73
    Hp: 197000

  • 0
Posted

However, I want to change the mob's HP only in one map. I know it can be done with setunitdata, but when I add more mobs, it stops working, like this, for example:
 

Quote

OnInit:

for (.@i = 0; .@i < .amount; .@i++) {

monster "bossnia_04", 192, 99, "Beelzebub", 1873, 1;

.mid = $@mobid[.@i];

setunitdata .mid, UMOB_MAXHP, 100;

}

end;



but, like this doesn't working:
 

Quote

OnInit:

for (.@i = 0; .@i < .amount; .@i++) {

monster "bossnia_04", 192, 99, "Beelzebub", 1873, 1;

monster "bossnia_04", 192, 99, "poring", 1159, 1;

monster "bossnia_04", 192, 99, "phreooni", 1252, 1;

monster "bossnia_04", 192, 99, "garm", 1272, 1;

monster "bossnia_04", 192, 99, "ifrit", 1046, 1;

.mid = $@mobid[.@i];

setunitdata .mid, UMOB_MAXHP, 100;

}

end;


 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...