65x EXP 100x Meso 3x Drop


    Daniel's coder app ( I know this is in the wrong section could'nt find coder section) =)

    Share

    Daniel
    LV 1 LOL
    LV 1 LOL

    Posts : 1
    Join date : 2010-04-04

    Daniel's coder app ( I know this is in the wrong section could'nt find coder section) =)

    Post  Daniel on Sun Apr 04, 2010 11:44 pm

    Ok well my name is Daniel.
    I am a various language coder for example i code cc+ commands I can also code java and I wz edit and I create custom maps etc... with my Hacreator and HarePacker source.

    MSN : rulsovechkin@hotmail.com
    Examples of work : */

    /**
    -- Odin JavaScript --------------------------------------------------------------------------------
    Ludibirum Maze PQ
    -- By ---------------------------------------------------------------------------------------------
    Daniel
    -- Version Info -----------------------------------------------------------------------------------
    1.1 - fixed minor problems
    1.0 - First Version by Daniel
    ---------------------------------------------------------------------------------------------------
    **/

    /*
    INSERT monsterdrops (monsterid,itemid,chance) VALUES (9300001,4001007,5);
    INSERT monsterdrops (monsterid,itemid,chance) VALUES (9300000,4001008,1);
    INSERT monsterdrops (monsterid,itemid,chance) VALUES (9300002,4001008,1);
    INSERT monsterdrops (monsterid,itemid,chance) VALUES (9300003,4001008,1);
    INSERT monsterdrops (monsterid,itemid,chance) VALUES (9300004,4001008,5);
    */

    importPackage(net.sf.odinms.world);

    var exitMap;
    var minPlayers = 3;

    function init() { // Initial loading.
    exitMap = em.getChannelServer().getMapFactory().getMap(910000001);
    em.setProperty("KPQOpen", "true"); // allows entrance.
    em.setProperty("shuffleReactors", "true");
    instanceId = 1;
    }

    function monsterValue(eim, mobId) { // Killed monster.
    return 1; // returns an amount to add onto kill count.
    }

    function setup() { // Invoked from "EventManager.startInstance()"
    var eim = em.newInstance("KerningPQ"); // adds a new instance and returns EventInstanceManager.
    var eventTime = 30 * (1000 * 60); // 30 mins.
    var firstPortal = eim.getMapInstance(103000800).getPortal("next00");
    firstPortal.setScriptName("kpq0");
    em.schedule("timeOut", eim, eventTime); // invokes "timeOut" in how ever many seconds.
    eim.startEventTimer(eventTime); // Sends a clock packet and tags a timer to the players.
    return eim; // returns the new instance.
    }

    function playerEntry(eim, player) { // this gets looped for every player in the party.
    var map = eim.getMapInstance(103000800);
    player.changeMap(map, map.getPortal(0)); // TeenStory kerning pq by Daniel and Alex : D
    }

    function playerDead(eim, player) { // player dies.
    // Whoosh..
    }

    function playerRevive(eim, player) { // player presses ok on the death pop up.
    if (eim.isLeader(player) || party.size() <= minPlayers) { // Check for party leader
    var party = eim.getPlayers();
    for (var i = 0; i < party.size(); i++) {
    playerExit(eim, party.get(i));
    }
    eim.dispose();
    } else
    playerExit(eim, player);
    }

    function playerDisconnected(eim, player) {
    var party = eim.getPlayers();
    if (eim.isLeader(player) || party.size() < minPlayers) { // Check for party leader or party size less than minimum players.
    // Boot whole party and end
    var party = eim.getPlayers();
    for (var i = 0; i < party.size(); i++) {
    if (party.get(i).equals(player)) {
    removePlayer(eim, player); // Sets map only. Cant possible changeMap because player is offline.
    } else {
    playerExit(eim, party.get(i)); // Removes all other characters from the instance.
    }
    }
    eim.dispose();
    } else { // non leader.
    removePlayer(eim, player); // Sets map only. Cant possible changeMap because player is offline.
    }
    }

    function leftParty(eim, player) {
    var party = eim.getPlayers();
    if (party.size() < minPlayers) {
    for (var i = 0; i < party.size(); i++) {
    playerExit(eim,party.get(i));
    }
    eim.dispose();
    } else
    playerExit(eim, player);
    }

    function disbandParty(eim) {
    var party = eim.getPlayers();
    for (var i = 0; i < party.size(); i++) {
    playerExit(eim, party.get(i));
    }
    eim.dispose();
    }

    function playerExit(eim, player) {
    eim.unregisterPlayer(player);
    player.changeMap(exitMap, exitMap.getPortal(0));
    }

    function removePlayer(eim, player) {
    eim.unregisterPlayer(player);
    player.getMap().removePlayer(player);
    player.setMap(exitMap);
    }

    function clearPQ(eim) {
    // KPQ does nothing special with winners
    var party = eim.getPlayers();
    for (var i = 0; i < party.size(); i++) {
    playerExit(eim, party.get(i));
    }
    eim.dispose();
    }

    function allMonstersDead(eim) {
    }

    function cancelSchedule() {
    }

    function dispose() {
    em.schedule("OpenKPQ", 5000); // 5 seconds ?
    }

    function OpenKPQ() {
    em.setProperty("KPQOpen", "true");
    }

    function timeOut(eim) {
    if (eim != null) {
    if (eim.getPlayerCount() > 0) {
    var pIter = eim.getPlayers().iterator();
    while (pIter.hasNext()) {
    playerExit(eim, pIter.next());
    }
    }
    eim.dispose();
    }
    }


    This is an example of 1 of my FM's I also have an underwater one.
    avatar
    Lyrical
    LV 100 BEAST
    LV 100 BEAST

    Posts : 194
    Join date : 2009-12-04
    Age : 23
    Location : In the closet

    Re: Daniel's coder app ( I know this is in the wrong section could'nt find coder section) =)

    Post  Lyrical on Mon Apr 05, 2010 4:08 pm

    Oh YAY! A coder! Smile
    Yeah, wrong section, but good luck anyways.
    avatar
    iPoke
    Moderator
    Moderator

    Posts : 487
    Join date : 2010-01-10
    Age : 20
    Location : Conroe , Texas(:

    Re: Daniel's coder app ( I know this is in the wrong section could'nt find coder section) =)

    Post  iPoke on Mon Apr 05, 2010 9:58 pm

    i Love your Work (: Hope you get coder job(:
    avatar
    CremeBrulee
    LV 5 SNAIL
    LV 5 SNAIL

    Posts : 17
    Join date : 2010-03-28
    Age : 19
    Location : Under your bed. o_o

    Re: Daniel's coder app ( I know this is in the wrong section could'nt find coder section) =)

    Post  CremeBrulee on Sun Apr 11, 2010 5:20 pm

    LOL, fuckk, more wz edits? D:
    avatar
    Annie
    Donator
    Donator

    Posts : 324
    Join date : 2010-01-16
    Age : 21
    Location : Sorrento Florida

    Re: Daniel's coder app ( I know this is in the wrong section could'nt find coder section) =)

    Post  Annie on Sun Apr 11, 2010 7:51 pm

    That looks confusing o.o lol Very Happy

    Sponsored content

    Re: Daniel's coder app ( I know this is in the wrong section could'nt find coder section) =)

    Post  Sponsored content


      Current date/time is Wed Oct 18, 2017 11:10 am