Would you like to react to this message? Create an account in a few clicks or log in to continue.


1500x \\ 1000x \\ 2 \\ v62
 
HomeGalleryLatest imagesSearchRegisterLog in

 

 Vending machine attack D:

Go down 
AuthorMessage
Daniel

Daniel


Posts : 20
Join date : 2010-03-27

Vending machine attack D: Empty
PostSubject: Vending machine attack D:   Vending machine attack D: Icon_minitimeSat Mar 27, 2010 7:27 pm

*/

/**
-- Odin JavaScript --------------------------------------------------------------------------------
Vending Machine Spawner
-- By --------------------------------------------------------------------------------------------------
xQuasar (Based on Santa/Purple's destinyTips, with help from Groat & MrMysterious)
-- Version Info -------------------------------------------------------------------------------------
1.0 First version by xQuasar
**/

importPackage(net.sf.odinms.client);
importPackage(net.sf.odinms.tools);

function init() {
scheduleNew();
}

function scheduleNew() {
em.schedule("start", 60*60*1000); //every hour
}

function start() {
scheduleNew();
var hotSand = em.getChannelServer().getMapFactory().getMap(100000000, false, false);
var kingClang = net.sf.odinms.server.life.MapleLifeFactory.getMonster(9410013);
var current = em.getChannelServer().getMapFactory().getMap(100000000).countMobOnMap(9410013);
if (current == 0) {
var posX;
var posY;
posX = 460;
posY = 4;
hotSand.spawnMonsterOnGroundBelow(kingClang, new java.awt.Point(posX, posY));
// hotSand.broadcastMessage(net.sf.odinms.tools.MaplePacketCreator.serverNotice(6, "[Event] The Vending machine is attacking Henesys!"));
// em.worldMessage("[Event] The Vending machine is attacking Henesys!");
em.getChannelServer().broadcastPacket(net.sf.odinms.tools.MaplePacketCreator.serverNotice(5, "[Event] The Vending Machine is attacking Henesys!"));
}
scheduleNew();
}
Back to top Go down
 
Vending machine attack D:
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: Guides-
Jump to: