Your choise of Announcmenting.. check this out.

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Proficient Member king321123 is offline
    MemberRank
    Jun 2008 Join Date
    175Posts

    Your choise of Announcmenting.. check this out.

    Ok first of all.. what's that?

    You can choose what message it will show on the notice.

    First, open NPCCoversationmanager.java,
    and add this.
    Code:
    public void broadcastMessage(int type, String message) {
            try {
                getPlayer().getClient().getChannelServer().getWorldInterface().broadcastMessage(null, MaplePacketCreator.serverNotice(type, message).getBytes());
            } catch (RemoteException e) {
                c.getChannelServer().reconnectWorld();
            }
        }
    after that, save and compile.

    now choose a npc and add it into it.
    Code:
    // Made by king321123 / istories.
    
    importPackage(net.sf.odinms.client);
    
    var status = 0;
    
    function start() {
        status = -1;
        action(1, 0, 0);
    }
    
    function action(mode, type, selection) {
        if (mode == -1) {
            cm.dispose();
        } else {
            if (mode == 0) {
    		cm.dispose();
                return;
            }
            if (mode == 1)
                status++;
            else
                status--;
            if (status == 0) {
    	cm.sendGetText("Hey, #h #. #bAdmin GiL#k has made a function that you can make an announcment with what YOU choose. please enter your following annoucment.\r\n\r\n");
    	} else if (status == 1) {
    		cm.broadcastMessage(6, "[Announcment] " + cm.getText() + "");
                   cm.sendOk("There you go... #h #.");
    		cm.dispose();
    		}
    		}
    	}
    }
    save and run your server, have fun.
    :).


  2. #2
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    Re: Your choise of Announcmenting.. check this out.

    is this meant for everyone to use or just admin, because if its just for admins throw in a job check

  3. #3
    Proficient Member king321123 is offline
    MemberRank
    Jun 2008 Join Date
    175Posts

    Re: Your choise of Announcmenting.. check this out.

    It's for everyone..
    you can add a GM check if you want.

  4. #4
    return null; mertjuh is offline
    MemberRank
    Dec 2008 Join Date
    The NetherlandsLocation
    1,269Posts

    Re: Your choise of Announcmenting.. check this out.

    erhmm sorry but i don't get it So u typ something in it and what happens than?

  5. #5
    Account Upgraded | Title Enabled! xcelinex33 is offline
    MemberRank
    Apr 2008 Join Date
    spooksLocation
    859Posts

    Re: Your choise of Announcmenting.. check this out.

    Announcmenting? or Announcing? o_O

  6. #6
    Proficient Member king321123 is offline
    MemberRank
    Jun 2008 Join Date
    175Posts

    Re: Your choise of Announcmenting.. check this out.

    Yeah you type something then what you have typed
    is showen to the world as a notice.

  7. #7
    Member HeyitzStan is offline
    MemberRank
    Apr 2008 Join Date
    91Posts

    Re: Your choise of Announcmenting.. check this out.

    why would u do that? you can just place it as a command for players to use...well i guess u can put a price for them to do it in npc scripting

  8. #8
    Account Upgraded | Title Enabled! <XENON> is offline
    MemberRank
    Feb 2009 Join Date
    Titti TownLocation
    223Posts

    Re: Your choise of Announcmenting.. check this out.

    nice. but you could do it oldschool and simple use smegas :D
    Anyway , nice Release !

  9. #9
    Account Upgraded | Title Enabled! Mgssidley is offline
    MemberRank
    Apr 2008 Join Date
    443Posts

    Re: Your choise of Announcmenting.. check this out.

    Lol at fail title. How about this [Release]Your choice of announcements?

  10. #10
    Member ScalloT is offline
    MemberRank
    Apr 2009 Join Date
    81Posts

    Re: Your choise of Announcmenting.. check this out.

    Good release,
    but not really useful o.o

  11. #11
    Valued Member DanceToNight is offline
    MemberRank
    Dec 2008 Join Date
    BluepieXD is a failure.Location
    101Posts

    Re: Your choise of Announcmenting.. check this out.

    I would hate walking to a NPC just to say a message, I mean this will work, but it lacks purpose for its existance, if you know what I mean, but at least your better than half 80% of the noobs here who can't make their own crap (Ex. X-Tasis)

  12. #12
    Valued Member Shogi is offline
    MemberRank
    Apr 2008 Join Date
    134Posts

    Re: Your choise of Announcmenting.. check this out.

    not useful, since were using basic commands and stuff :)

  13. #13
    Alpha Member watzmename is offline
    MemberRank
    Aug 2008 Join Date
    2,835Posts

    Re: Your choise of Announcmenting.. check this out.

    !notice b [Announcement] Lalallalaa

  14. #14
    Valued Member DanceToNight is offline
    MemberRank
    Dec 2008 Join Date
    BluepieXD is a failure.Location
    101Posts

    Re: Your choise of Announcmenting.. check this out.

    Go to NPC -- Type "Fuck you, this Ownz."

  15. #15
    projectNano LightRyuzaki is offline
    MemberRank
    Sep 2008 Join Date
    TexasLocation
    338Posts

    Re: Your choise of Announcmenting.. check this out.

    lol you spelled announcement wrong o-o



Page 1 of 2 12 LastLast

Advertisement