Sign in to follow this  
Wulfrock

Christmas Lights.

Recommended Posts

Hello,

 

We know how to spawn Christmas Lights with #xmaslights

 

But how do you get rid of them please ? :)

 

Thanks.

 

Valiance and Kaylie.

Share this post


Link to post
Share on other sites

How do we get them to stick between relogs is a more intresting question.

Share this post


Link to post
Share on other sites

@DelightfulDee

 

Make sure your GM is level 5, activate your wand and simply type #xmaslights

 

Have fun

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites

ok are you on a private server or are you on a public server

private server I mean have you downloaded the dedicated server software? if not you can get that through steam

 

next once you download it, you have to choose between offline and online, on the last tab there is thing called "players" select that, and then look down to "player game management" type in 5, and then save, start your game and you should have what's known as an "ebony wand" it gives you ultimate power over everything, but be warned by using this you will not be able to mine for ores without wiping out your resource, so I would recommend having a second character for that,

 

hope this helps, ask as many questions as you need and we'll answer them.

Share this post


Link to post
Share on other sites
21 hours ago, Jukken said:

How do we get them to stick between relogs is a more intresting question.

 

You will need a mod for that.

Share this post


Link to post
Share on other sites

So for a server a bit ago I was asked to make it so when champ slots where open it would place white lights over these statues where you had to champ up with a timer and death tabs telling people some one was champing up.  Anyways, here was how I modified the lights if it saves anyone a few mins it's not pretty by any means but it defiantly works.

 

    private long[] ItemIDList = { 3413445860866L, 3413462638082L, 3413479415298L, 3413496192514L, 3413512969730L, 14422789217794L, 14422805995010L, 14422822772226L, 14422839549442L, 14422856326658L, 14422873103874L};

    //This was for updating new logins to the current light setup, and is called by the loop to update everyone also
    public void HandleChampLightsAction(Creature HoldPlayer){
        boolean ShowLight = true;
        for (int i = 0; i < ItemIDList.length; i++) {
            ShowLight = true;
            try {
                Item HoldItem = Items.getItem(ItemIDList[i]);
                //ID 8
                if(HoldItem.getTemplateId() == 736 && HoldItem.getAuxData() == 9){
                    if (!Deities.acceptsNewChampions(103)) {
                        ShowLight = false;
                    }
                    if (Players.getChampionsFromKingdom((byte)8) >= 3) {
                        ShowLight = false;
                    }
                    if(ShowLight){
                        HoldPlayer.getCommunicator().sendRemoveEffect(HoldItem.getWurmId());
                        HoldPlayer.getCommunicator().sendAddEffect(HoldItem.getWurmId(), (short)2, HoldItem.getPosX(), HoldItem.getPosY(), HoldItem.getPosZ(), (byte)0);
                    } else {
                        HoldPlayer.getCommunicator().sendRemoveEffect(HoldItem.getWurmId());
                    }
                }
            } catch (NoSuchItemException nsi) {
                logger.log(Level.WARNING,"Not found:" + nsi.getMessage() + ".");
            }
        }
    }
    //Send champ light updates to all online players can be used to start and stop it for everyone
    public void UpdateAllChampLights(){
        Player[] p = Players.getInstance().getPlayers();
        for (Player lPlayer : p){
            try {
                Creature PlayerToCreature = Server.getInstance().getCreature(lPlayer.getWurmId());
                HandleChampLightsAction(PlayerToCreature);
            } catch (Exception e) {}
        }
    }

 

Call HandleChampLightAction with something like this from one of the on login functions, I used com.wurmonline.server.Players sendAltarsToPlayer just because I found the example there and was to lazy to find another onlogin call at the time since this worked fine.

 

Player HoldPlayer = (Player) args[0];
try {
	Creature PlayerToCreature = Server.getInstance().getCreature(HoldPlayer.getWurmId());
	ChampOption.getInstance().HandleChampLightsAction(PlayerToCreature);
} catch (Exception localException) {
	logger.log(Level.INFO, "Could not find player on login checks!");
}

 

 

Share this post


Link to post
Share on other sites

how do you turn them off, I have 2 of them out of the seas that I didn't turn on, and now I cant get rid of them, help?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this