Newbie Spellweaver
- Joined
- Jun 12, 2011
- Messages
- 73
- Reaction score
- 5
Hello guys I'm kinda new here and I just made this boss spawner and I like it I hope you will like it too.
BTW: this is my first release so please i would very much like it that you would not flag.
Add this into NPCConversationManager ("YourRepack"/src/net/sf/odinms/scripting/npc/NPCConversationManager.java
^^ Its Prolly gonna give you errors at mapleMapObject so click the light bulb and press what ever its telling you to do and it should work^^
And add this aswell
Now this is the NPC script I have it into a PlayerNPC I named MobSpawner but if you do not have PlayerNPC add this into 1012103.js witch is Natalie and its found in ("YourRepack"/script/npc/1012103.js
Well... it works for me. Hope it works for you
PS: If you have any questions please email me at KevinSoccer55@hotmail.com tt1:
** EDIT **
This is for people who want a boss spawner that spawns moonsters with a limit of 10 at a time for free (I just got my computer back and alot of my players were not enjoying the fact that it costed money so i set it back to a limit for free) anyways here is is
BTW: this is my first release so please i would very much like it that you would not flag.
Add this into NPCConversationManager ("YourRepack"/src/net/sf/odinms/scripting/npc/NPCConversationManager.java
PHP:
public void killAllMobs() {
MapleMap map = getPlayer().getMap();
double range = Double.POSITIVE_INFINITY;
List<MapleMapObject> monsters = map.getMapObjectsInRange(getPlayer().getPosition(), range, Arrays.asList(MapleMapObjectType.MONSTER));
for (MapleMapObject monstermo : monsters) {
MapleMonster monster = (MapleMonster) monstermo;
map.killMonster(monster, getPlayer(), false);
}
}
And add this aswell
PHP:
public void summonMob(int mobid, int customHP, int customEXP, int amount) {
MapleMonsterStats newStats = new MapleMonsterStats();
if (customHP > 0) {
newStats.setHp(customHP);
}
if (customEXP >= 0) {
newStats.setExp(customEXP);
}
if (amount <= 1) {
MapleMonster npcmob = MapleLifeFactory.getMonster(mobid);
npcmob.setOverrideStats(newStats);
npcmob.setHp(npcmob.getMaxHp());
getPlayer().getMap().spawnMonsterOnGroudBelow(npcmob, getPlayer().getPosition());
} else {
for (int i = 0; i < amount; i++) {
MapleMonster npcmob = MapleLifeFactory.getMonster(mobid);
npcmob.setOverrideStats(newStats);
npcmob.setHp(npcmob.getMaxHp());
getPlayer().getMap().spawnMonsterOnGroudBelow(npcmob, getPlayer().getPosition());
}
}
}
Now this is the NPC script I have it into a PlayerNPC I named MobSpawner but if you do not have PlayerNPC add this into 1012103.js witch is Natalie and its found in ("YourRepack"/script/npc/1012103.js
PHP:
//Made By Kevin of DigitalStory
//This is Natalie
//Posted in RaGEZoNE
var status = -1;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.sendOk("Are you sure? Scaredy cat :<");
cm.dispose();
} else {
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
cm.sendNext("I'm #rDigitalStory#k's boss spawner I will summon any boss listed below for 15million mesos!");
} else if (status == 1) {
cm.sendSimple("Please choose: #b\r\n#L4#Rooster#l\r\n#L12#Moss Snail#l\r\n#L11#Moss Mushroom#l\r\n#L6#MushMom#l\r\n#L7#Jr.Balrog#l\r\n#L9#Male Boss#l\r\n#L1#Headless Horseman#l\r\n#L2#Black Crow#l#b\r\n#L0#Papulatus clock#l\r\n#L8#Pianus#l\r\n#L5#BigFoot#l\r\n#L3#Anego#l\r\n#L10#Body Guard A#l\r\n#L13#Kill Monsters");
} else {
if (selection == 0) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(8500001, 23000000, 596000, 1); // Pap Clock
cm.dispose();
}
} else if (selection == 1) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9400549, 500000, 300000, 1); // HeadLess HorseMan
cm.dispose();
}
} else if (selection == 2) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9400014, 35000000, 2000000, 1); // Black Crow
cm.dispose();
}
} else if (selection == 3) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9400121, 75000000, 5000000, 1); // Anego
cm.dispose();
}
} else if (selection == 4) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9600001, 1000, 500, 1); // Rooster
cm.dispose();
}
} else if (selection == 5) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9400575, 5000000, 5000000, 1); // BigFoot
cm.dispose();
}
} else if (selection == 6) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9500124, 25000, 50000, 1); // Mushmom
cm.dispose();
}
} else if (selection == 7) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(8130100, 100000, 100000, 1); // Jr. Balrog
cm.dispose();
}
} else if (selection == 8) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(8510000, 5000000, 1000000, 1); // Pianus
cm.dispose();
}
} else if (selection == 9) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9400120, 2500000, 500000, 1); // Male Boss
cm.dispose();
}
} else if (selection == 10) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(9400112, 50000000, 8000000, 1); // Body Guard A
cm.dispose();
}
} else if (selection == 11) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(5250000, 50000, 10000, 1); // Moss Mushroom
cm.dispose();
}
} else if (selection == 12) {
if (cm.getMeso() < 15000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-15000000);
cm.summonMob(4250000, 25000, 5000, 1); // Moss Snail
cm.dispose();
}
} else if (selection == 13) {
if (cm.countMonster() >= 1) {
cm.killAllMobs();
cm.dispose();
} else {
cm.sendOk("Theres no Monsters on the map");
}
} else {
cm.dispose();
}
}
}
}
Well... it works for me. Hope it works for you
PS: If you have any questions please email me at KevinSoccer55@hotmail.com tt1:
**Screen Shots**
** EDIT **
This is for people who want a boss spawner that spawns moonsters with a limit of 10 at a time for free (I just got my computer back and alot of my players were not enjoying the fact that it costed money so i set it back to a limit for free) anyways here is is
PHP:
//Made By Kevin of DigitalStory
//This is PlayerNPC MobSpawner
var status = -1;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.sendOk("Well come back soon!");
cm.dispose();
} else {
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
cm.sendNext("I'm #rDigitalStory#k's boss spawner I will summon any boss listed below for #rFREE");
} else if (status == 1) {
cm.sendSimple("Please choose: #b\r\n#L4#Rooster#l\r\n#L12#Moss Snail#l\r\n#L11#Moss Mushroom#l\r\n#L6#MushMom#l\r\n#L7#Jr.Balrog#l\r\n#L9#Male Boss#l\r\n#L1#Headless Horseman#l\r\n#L2#Black Crow#l#b\r\n#L0#Papulatus clock#l\r\n#L8#Pianus#l\r\n#L5#BigFoot#l\r\n#L3#Anego#l\r\n#L10#Body Guard A#l\r\n#L13##rKill Monsters");
} else {
if (selection == 0) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(8500001, 23000000, 596000, 10); // Pap Clock
cm.dispose();
}
} else if (selection == 1) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9400549, 500000, 300000, 10); // HeadLess HorseMan
cm.dispose();
}
} else if (selection == 2) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9400014, 35000000, 2000000, 10); // Black Crow
cm.dispose();
}
} else if (selection == 3) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9400121, 75000000, 5000000, 10); // Anego
cm.dispose();
}
} else if (selection == 4) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9600001, 1000, 500, 10); // Rooster
cm.dispose();
}
} else if (selection == 5) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9400575, 5000000, 5000000, 10); // BigFoot
cm.dispose();
}
} else if (selection == 6) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9500124, 25000, 50000, 10); // Mushmom
cm.dispose();
}
} else if (selection == 7) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(8130100, 100000, 100000, 10); // Jr. Balrog
cm.dispose();
}
} else if (selection == 8) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(8510000, 5000000, 1000000, 10); // Pianus
cm.dispose();
}
} else if (selection == 9) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9400120, 2500000, 500000, 10); // Male Boss
cm.dispose();
}
} else if (selection == 10) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(9400112, 50000000, 8000000, 10); // Body Guard A
cm.dispose();
}
} else if (selection == 11) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(5250000, 50000, 10000, 10); // Moss Mushroom
cm.dispose();
}
} else if (selection == 12) {
if (cm.countMonster() >= 1) {
cm.sendOk("Sorry but there is still monsters on the map.");
cm.dispose();
return;
} else {
cm.summonMob(4250000, 25000, 5000, 10); // Moss Snail
cm.dispose();
}
} else if (selection == 13) {
if (cm.countMonster() >= 1) {
cm.killAllMobs();
cm.dispose();
} else {
cm.sendOk("Theres no Monsters on the map");
}
} else {
cm.dispose();
}
}
}
}
Last edited: