Couple of Commands[Updates : 6]

Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 72
  1. #46
    Enthusiast koldoleboy is offline
    MemberRank
    Jul 2008 Join Date
    36Posts

    Re: Couple of Commands[Updates : 5]

    I get this error for the !pmob command
    PHP Code:
    init:
    deps-jar:
    Compiling 4 source files to C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\build\classes
    C
    :\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:53illegal start of type
    ]
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:53';' expected
    ]
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54illegal start of type
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54: <identifierexpected
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54']' expected
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54')' expected
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54';' expected
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54invalid method declaration; return type required
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54illegal start of type
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:54';' expected
    } else if (splitted[0].equals("!pmob")) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\AbstractMapleMapObject.java:83reached end of file while parsing
                
    }
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:1308warningunmappable character for encoding UTF-8
                            
    // k find that many monsters that need respawning and respawn them ??o
                                                                                               
    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:1332: class, interface, or enum expected
    public void addMonsterSpawn(MapleMonster monsterint mobTime) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:1334: class, interface, or enum expected
                    newpos
    .-= 1;
                    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:1335: class, interface, or enum expected
                    SpawnPoint sp 
    = new SpawnPoint(monsternewposmobTime);
                    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:1337: class, interface, or enum expected
                    monsterSpawn
    .add(sp);
                    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:1338: class, interface, or enum expected
                    
    if (sp.shouldSpawn() || mobTime == -1) { // -1 does not respawn and should not either but force ONE spawn
                    
    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMap.java:1340: class, interface, or enum expected
                    
    }
                    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMapFactory.java:335: class, interface, or enum expected
    public void addMonsterSpawn(MapleMonster monsterint mobTime) {
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMapFactory.java:337: class, interface, or enum expected
                    newpos
    .-= 1;
                    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMapFactory.java:338: class, interface, or enum expected
                    SpawnPoint sp 
    = new SpawnPoint(monsternewposmobTime);
                    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMapFactory.java:340: class, interface, or enum expected
                    monsterSpawn
    .add(sp);
                    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMapFactory.java:341: class, interface, or enum expected
                    
    if (sp.shouldSpawn() || mobTime == -1) { // -1 does not respawn and should not either but force ONE spawn
                    
    ^
    C:\Users\iunno\Desktop\SeanPack V.5.9 Beta\SeanSource V.5.9\src\net\sf\odinms\server\maps\MapleMapFactory.java:343: class, interface, or enum expected
                    
    }
                    ^
    23 errors
    1 warning
    BUILD FAILED 
    (total time2 seconds
    Last edited by koldoleboy; 04-05-09 at 04:06 PM.

  2. #47
    Valued Member IDEEKAY is offline
    MemberRank
    May 2008 Join Date
    137Posts

    Re: Couple of Commands[Updates : 5]

    What server has their spawn in the db :|

  3. #48
    Account Upgraded | Title Enabled! Popozow1012 is offline
    MemberRank
    Jul 2008 Join Date
    Where it's nine in the afternoonLocation
    549Posts

    Re: Couple of Commands[Updates : 5]

    Oh! very nice commands

  4. #49
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Couple of Commands[Updates : 5]

    Quote Originally Posted by Cardell View Post
    Xerixe, Will this be added in CardellsStory?
    It would if you want it added

    Quote Originally Posted by Sokas99 View Post
    Code:
    } else if (splitted[0].equalsIgnoreCase("!silver")) { 
                for (int amnt = getOptionalIntArg(splitted, 5, 5); amnt > 0; amnt--) { 
                    player.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(9400203), player.getPosition()); 
                }
    Funnier one to confuse players (Not tested)

    Code:
    } else if (splitted[0].equalsIgnoreCase("!silver1")) { 
                for (int amnt = getOptionalIntArg(splitted, 5, 5); amnt > 0; amnt--) { 
                    player.getMap().spawnMonsterOnGroudAbove(MapleLifeFactory.getMonster(9400203) 
                }
    Add this near the bottom underneath

    Code:
    New CommandDefinition("nxslimes", 3),
    Code:
    new CommandDefinition("silver", 3),
                        new CommandDefinition("silver1", 3),
    If anyone want's it lol it spawns 5 silver slimes for events ^^;

    But, can you also make a command that gives a virety of buffs to the entire map? Like, Haste, Bless, Holy symble, Hyperbody, Sharp eyes, etc ^^
    Who says it will spawn?
    getOptionalIntArg(splitted, 5, 5)
    That means you must type !silver a a a <amount>
    I dont see the ; for
    player.getMap().spawnMonsterOnGroudAbove(MapleLifeFactory.getMonster(9400203)
    as well as the amount.

  5. #50
    Account Upgraded | Title Enabled! godxcheeze is offline
    MemberRank
    Mar 2009 Join Date
    Sentosa IslandLocation
    440Posts

    Re: Couple of Commands[Updates : 5]

    how about !killmap?

  6. #51
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Couple of Commands[Updates : 6]

    !killmap added =)

  7. #52
    Account Upgraded | Title Enabled! CharlieBoy is offline
    MemberRank
    Mar 2009 Join Date
    SwedenLocation
    471Posts

    Re: Couple of Commands[Updates : 6]

    wow :)
    Nice updates while i were sleeping =p
    Specially the !pmon ''id'' exp hp
    Thats freaking awesome for events (;

  8. #53
    Account Upgraded | Title Enabled! Gibberish is offline
    MemberRank
    Apr 2009 Join Date
    312Posts

    Re: Couple of Commands[Updates : 6]

    can you put the actual cm.spawnmonster ;D because it has the exp and x and y and hp and everything you needs ;D summonmob doesn't work well for zakum summoning

  9. #54
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Couple of Commands[Updates : 6]

    Quote Originally Posted by Gibberish View Post
    can you put the actual cm.spawnmonster ;D because it has the exp and x and y and hp and everything you needs ;D summonmob doesn't work well for zakum summoning
    There was already a NPC for spawning zakum released.

  10. #55
    Member magixdx is offline
    MemberRank
    May 2009 Join Date
    80Posts

    Re: Couple of Commands[Updates : 6]

    Quote Originally Posted by Gibberish View Post
    can you put the actual cm.spawnmonster ;D because it has the exp and x and y and hp and everything you needs ;D summonmob doesn't work well for zakum summoning
    Er, spoon feeding :P
    Code:
    public void spawnMonster(int mobid, int HP, int MP, int level, int EXP, int boss, int undead, int amount, int x, int y) {
            MapleMonsterStats newStats = new MapleMonsterStats();
            Point spawnPos = new Point(x, y);
            if (HP != 0) {
                newStats.setHp(HP);
            }
            if (MP != 0) {
                newStats.setMp(MP);
            }
            if (level != 0) {
                newStats.setLevel(level);
            }
            if (EXP != 0) {
                newStats.setExp(EXP);
            }
            if (boss == 1) {
                newStats.setBoss(true);
            }
            if (undead == 1) {
                newStats.setUndead(true);
            }
            for (int i = 0; i < amount; i++) {
                MapleMonster npcmob = MapleLifeFactory.getMonster(mobid);
                npcmob.setOverrideStats(newStats);
                npcmob.setHp(npcmob.getMaxHp());
                npcmob.setMp(npcmob.getMaxMp());
                getPlayer().getMap().spawnMonsterOnGroundBelow(npcmob, spawnPos);
            }
        }

  11. #56
    Enthusiast Sokas99 is offline
    MemberRank
    Apr 2008 Join Date
    45Posts

    Re: Couple of Commands[Updates : 5]

    Quote Originally Posted by Xerixe View Post
    It would if you want it added



    Who says it will spawn?
    getOptionalIntArg(splitted, 5, 5)
    That means you must type !silver a a a <amount>
    I dont see the ; for
    player.getMap().spawnMonsterOnGroudAbove(MapleLifeFactory.getMonster(9400203)
    as well as the amount.
    Sorry I novice coder ^^;

  12. #57
    Account Upgraded | Title Enabled! Gibberish is offline
    MemberRank
    Apr 2009 Join Date
    312Posts

    Re: Couple of Commands[Updates : 6]

    hmm?

    init:
    deps-jar:
    Compiling 2 source files to C:\Users\Peter\xotic\build\classes
    C:\Users\Peter\Desktop\sd\XoticStory\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:277: cannot find symbol
    symbol : class Point
    location: class net.sf.odinms.scripting.npc.NPCConversationManager
    Point spawnPos = new Point(x, y);
    C:\Users\Peter\Desktop\sd\XoticStory\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:277: cannot find symbol
    symbol : class Point
    location: class net.sf.odinms.scripting.npc.NPCConversationManager
    Point spawnPos = new Point(x, y);
    2 errors
    BUILD FAILED (total time: 22 seconds)


    EDIT: nvm fixed i couldnt get the script to work anyways

  13. #58
    Enthusiast johnnycartoon is offline
    MemberRank
    May 2009 Join Date
    28Posts

    Re: Couple of Commands[Updates : 6]

    wher to save the code for the !spawnmob??? Sori i m still a beginner or u can say noob...

  14. #59
    Account Upgraded | Title Enabled! ItzMe is offline
    MemberRank
    Apr 2009 Join Date
    412Posts

    Re: Couple of Commands[Updates : 6]

    Usage : !spawnmob <mobid> <hp> <exp> <amount (optional)>

    is that permanent?
    no right

  15. #60
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Couple of Commands[Updates : 6]

    Quote Originally Posted by ItzMe View Post
    Usage : !spawnmob <mobid> <hp> <exp> <amount (optional)>

    is that permanent?
    no right
    Nope. Only !pmob is perma

    Quote Originally Posted by johnnycartoon View Post
    wher to save the code for the !spawnmob??? Sori i m still a beginner or u can say noob...
    Commands goes in your command files.
    For other stuff, i already said where.



Page 4 of 5 FirstFirst 12345 LastLast

Advertisement