Reactor

Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Reactor

    Solved, thanks QuietCrystal
    Last edited by MuOnlineVe; 20-10-13 at 01:02 AM.


  2. #2
    Wut. QuietCrystal is offline
    MemberRank
    Aug 2010 Join Date
    SingaporeLocation
    346Posts

    Re: Reactor

    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%)

  3. #3
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Re: Reactor

    In my "ReactorDrops" table, only have:

    Reactordropid | reactorid | itemid | chance | quest.
    Last edited by MuOnlineVe; 20-10-13 at 01:02 AM.

  4. #4
    Wut. QuietCrystal is offline
    MemberRank
    Aug 2010 Join Date
    SingaporeLocation
    346Posts

    Re: Reactor

    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.

  5. #5
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Re: Reactor

    yes, I have knowledge of that ... (compilation)

  6. #6
    Wut. QuietCrystal is offline
    MemberRank
    Aug 2010 Join Date
    SingaporeLocation
    346Posts

    Re: Reactor

    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:
    Code:
    final MapleMonster mob = (MapleMonster) myLife;
    Below that line, add:
    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));
    			}
    		}
    	});
    }
    If you're not using a Lithium-based source then you would probably have to change some function names around.

  7. #7
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Re: Reactor

    LOL, i use bubblesdev source.
    Last edited by MuOnlineVe; 20-10-13 at 01:03 AM.

  8. #8
    Wut. QuietCrystal is offline
    MemberRank
    Aug 2010 Join Date
    SingaporeLocation
    346Posts

    Re: Reactor

    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.

  9. #9
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Re: Reactor

    Okay i will add... the Netbeans show me 3 errors
    Last edited by MuOnlineVe; 20-10-13 at 01:05 AM.

  10. #10
    Wut. QuietCrystal is offline
    MemberRank
    Aug 2010 Join Date
    SingaporeLocation
    346Posts

    Re: Reactor

    Change mob to monster.
    import server.life.MonsterListener

    Are you even trying?

  11. #11
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Re: Reactor

    not working.

    mob = monster
    Last edited by MuOnlineVe; 20-10-13 at 01:05 AM.

  12. #12
    Wut. QuietCrystal is offline
    MemberRank
    Aug 2010 Join Date
    SingaporeLocation
    346Posts

    Re: Reactor

    Show me your MonsterListener.java

  13. #13
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Re: Reactor

    Okay.
    Last edited by MuOnlineVe; 20-10-13 at 01:05 AM.

  14. #14
    Wut. QuietCrystal is offline
    MemberRank
    Aug 2010 Join Date
    SingaporeLocation
    346Posts

    Re: Reactor

    Change
    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));
    			}
    		}
    	});
    }
    to

    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));
    			}
    		}
    	});
    }

  15. #15
    Member MuOnlineVe is offline
    MemberRank
    Jan 2013 Join Date
    VenezuelaLocation
    77Posts

    Re: Reactor

    Working
    Last edited by MuOnlineVe; 20-10-13 at 01:05 AM.



Page 1 of 3 123 LastLast

Advertisement