1500x \\ 1000x \\ 2 \\ v62
 
HomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Vending machine attack D:

Go down 
AuthorMessage
Daniel

avatar

Posts : 20
Join date : 2010-03-27

PostSubject: Vending machine attack D:   Sat 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
View user profile
 
Vending machine attack D:
Back to top 
Page 1 of 1
 Similar topics
-
» Vending Machine Thread Game
» Hot Toys War Machine Revealed Update Heaps o pics in post 2.
» Sideshow Republic Clone Trooper - 212th Attack Battalion: Utapau
» Understanding the Marshall Attack (2010)
» Where in England should we attack?

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