Solved, thanks QuietCrystal
Printable View
Solved, thanks QuietCrystal
Under your SQL, find the table containing drop_data. Add a new row with
itemId: Mark of Evil ID
dropperId: Jr. Gargoyle ID
chance: The highest value you can find for chance on your table (Basically 100%)
In my "ReactorDrops" table, only have:
Reactordropid | reactorid | itemid | chance | quest.
Ah then you could've been clearer :P Because "nothing happens" doesn't tell me what supposed to happen.
Do you know how to compile the server source? Because you'll need that.
yes, I have knowledge of that ... (compilation)
Ok, go to "getMap" function in MapleMapFactory. I don't know if your source has the same format as mine, but look for a line that says "MapleMonster" in the getMap function.
Mine looks like:
Below that line, add:Code:final MapleMonster mob = (MapleMonster) myLife;
If you're not using a Lithium-based source then you would probably have to change some function names around.Code:if (mob.getId() == 9300025 && map.getId() == 990000630) {
final MapleMap gargoyleMap = map;
mob.addListener(new MonsterListener() {
@Override
public void monsterKilled() {
for (int i = 0; i < 8; i++) {
gargoyleMap.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300026), new Point(-81, 151));
}
}
});
}
LOL, i use bubblesdev source.
See the line "MapleMonster monster = (MapleMonster) myLife;" in your MapleMapFactory? If you "look for a line that says "MapleMonster" in the getMap function" you'd have found it.
Okay i will add... the Netbeans show me 3 errors
Change mob to monster.
import server.life.MonsterListener
Are you even trying?
not working.
mob = monster
Show me your MonsterListener.java
Okay.
Change
toCode:if (mob.getId() == 9300025 && map.getId() == 990000630) {
final MapleMap gargoyleMap = map;
mob.addListener(new MonsterListener() {
@Override
public void monsterKilled() {
for (int i = 0; i < 8; i++) {
gargoyleMap.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300026), new Point(-81, 151));
}
}
});
}
Code:if (mob.getId() == 9300025 && map.getId() == 990000630) {
final MapleMap gargoyleMap = map;
mob.addListener(new MonsterListener() {
@Override
public void monsterKilled(MapleMonster monster, MapleCharacter highestDamageChar) {
for (int i = 0; i < 8; i++) {
gargoyleMap.spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(9300026), new Point(-81, 151));
}
}
});
}
Working