- Joined
- Apr 20, 2008
- Messages
- 578
- Reaction score
- 76
But what if i want it to summon at where the charac is standing at ?
cm.getPlayer().getPosition().x
cm.getPlayer().getPosition().y
But what if i want it to summon at where the charac is standing at ?
/* Heena
*/
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Would you like to summon any monsters? It costs 500 Million Mesos. Only the Special Snail Which has 50 mil HP is 2bil. \r\n#L0#1 Loki Box#l\r\n#L1#1 Snowman#l\r\n#L2#1 Griffey#l\r\n#L3#1 Manon#l\r\n#L4#2 Giant Centipedes#l\r\n#L5#2 Snack Bars#l\r\n#L6#1 Pianus#l\r\n#L7#6 NX slimes#l\r\n#L8#1 1gMS special snail(Gives 6Mil Exp)#l");
} else if (status == 1) {
if (selection == 0) {
cm.gainMeso(-500000000);
cm.spawnMonster(9400566,1000000,5000,100,500,1,1,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 1) {
cm.gainMeso(-500000000)
cm.spawnMonster(9400708,100000,5000,10,200,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 2) {
cm.gainMeso(-500000000)
cm.spawnMonster(8180001,3700000,1500,105,13500,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 3) {
cm.gainMeso(-500000000)
cm.spawnMonster(8180000,3700000,1500,105,13500,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 4) {
cm.gainMeso(-500000000)
cm.spawnMonster(9500177,1000000,200,70,5000,1,0,2,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 5) {
cm.gainMeso(-500000000)
cm.spawnMonster(9410015,1500000,1000,98,6500,1,0,2,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 6) {
cm.gainMeso(-500000000)
cm.spawnMonster(8510000,40000000,3000000,110,1300000,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 7) {
cm.gainMeso(-500000000)
cm.spawnMonster(9400202,20000,500,5,10,1,0,6,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 8) {
cm.gainMeso(-2000000000)
cm.spawnMonster(100100,100000000,3000000,1,6000000,1,1,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
}
}
}
put it into npcconversationmanager.java
it spawns monsters .
can someone help me with this script i made .
could someone help me to put in if the person has enough mesos for each selection respectively and if i click no or end chat i wont get bugged ( cant click any other npcs)PHP:/* Heena */ var status = 0; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { if (mode == -1) { cm.dispose(); } else { if (mode == 1) status++; else status--; if (status == 0) { cm.sendSimple("Would you like to summon any monsters? It costs 500 Million Mesos. Only the Special Snail Which has 50 mil HP is 2bil. \r\n#L0#1 Loki Box#l\r\n#L1#1 Snowman#l\r\n#L2#1 Griffey#l\r\n#L3#1 Manon#l\r\n#L4#2 Giant Centipedes#l\r\n#L5#2 Snack Bars#l\r\n#L6#1 Pianus#l\r\n#L7#6 NX slimes#l\r\n#L8#1 1gMS special snail(Gives 6Mil Exp)#l"); } else if (status == 1) { if (selection == 0) { cm.gainMeso(-500000000); cm.spawnMonster(9400566,1000000,5000,100,500,1,1,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 1) { cm.gainMeso(-500000000) cm.spawnMonster(9400708,100000,5000,10,200,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 2) { cm.gainMeso(-500000000) cm.spawnMonster(8180001,3700000,1500,105,13500,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 3) { cm.gainMeso(-500000000) cm.spawnMonster(8180000,3700000,1500,105,13500,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 4) { cm.gainMeso(-500000000) cm.spawnMonster(9500177,1000000,200,70,5000,1,0,2,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 5) { cm.gainMeso(-500000000) cm.spawnMonster(9410015,1500000,1000,98,6500,1,0,2,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 6) { cm.gainMeso(-500000000) cm.spawnMonster(8510000,40000000,3000000,110,1300000,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 7) { cm.gainMeso(-500000000) cm.spawnMonster(9400202,20000,500,5,10,1,0,6,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 8) { cm.gainMeso(-2000000000) cm.spawnMonster(100100,100000000,3000000,1,6000000,1,1,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } } } }
/* Heena
*/
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else
if (status >= 0 && mode == 0)
cm.dispose();
else
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Would you like to summon any monsters? It costs 500 Million Mesos. Only the Special Snail Which has 50 mil HP is 2bil. \r\n#L0#1 Loki Box#l\r\n#L1#1 Snowman#l\r\n#L2#1 Griffey#l\r\n#L3#1 Manon#l\r\n#L4#2 Giant Centipedes#l\r\n#L5#2 Snack Bars#l\r\n#L6#1 Pianus#l\r\n#L7#6 NX slimes#l\r\n#L8#1 1gMS special snail(Gives 6Mil Exp)#l");
} else if (status == 1) {
if (cm.getMeso() >= 500000000)
cm.sendNext("You don't have #b500,000,000#k mesos.");
cm.dispose();
else
if (selection == 0) {
cm.gainMeso(-500000000);
cm.spawnMonster(9400566,1000000,5000,100,500,1,1,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 1) {
cm.gainMeso(-500000000)
cm.spawnMonster(9400708,100000,5000,10,200,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 2) {
cm.gainMeso(-500000000)
cm.spawnMonster(8180001,3700000,1500,105,13500,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 3) {
cm.gainMeso(-500000000)
cm.spawnMonster(8180000,3700000,1500,105,13500,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 4) {
cm.gainMeso(-500000000)
cm.spawnMonster(9500177,1000000,200,70,5000,1,0,2,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 5) {
cm.gainMeso(-500000000)
cm.spawnMonster(9410015,1500000,1000,98,6500,1,0,2,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 6) {
cm.gainMeso(-500000000)
cm.spawnMonster(8510000,40000000,3000000,110,1300000,1,0,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 7) {
cm.gainMeso(-500000000)
cm.spawnMonster(9400202,20000,500,5,10,1,0,6,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
if (selection == 8) {
cm.gainMeso(-2000000000)
cm.spawnMonster(100100,100000000,3000000,1,6000000,1,1,1,347,-17);
cm.sendOk("Its on the barrel next to Amos. Happy Killing!!");
cm.dispose()
}
}
}
put it into npcconversationmanager.java
it spawns monsters .
can someone help me with this script i made .
PHP:/* Heena */ var status = 0; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { if (mode == -1) { cm.dispose(); } else { if (mode == 1) status++; else status--; if (status == 0) { cm.sendSimple("Would you like to summon any monsters? It costs 500 Million Mesos. Only the Special Snail Which has 50 mil HP is 2bil. \r\n#L0#1 Loki Box#l\r\n#L1#1 Snowman#l\r\n#L2#1 Griffey#l\r\n#L3#1 Manon#l\r\n#L4#2 Giant Centipedes#l\r\n#L5#2 Snack Bars#l\r\n#L6#1 Pianus#l\r\n#L7#6 NX slimes#l\r\n#L8#1 1gMS special snail(Gives 6Mil Exp)#l"); } else if (status == 1) { if (selection == 0) { cm.gainMeso(-500000000); cm.spawnMonster(9400566,1000000,5000,100,500,1,1,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 1) { cm.gainMeso(-500000000) cm.spawnMonster(9400708,100000,5000,10,200,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 2) { cm.gainMeso(-500000000) cm.spawnMonster(8180001,3700000,1500,105,13500,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 3) { cm.gainMeso(-500000000) cm.spawnMonster(8180000,3700000,1500,105,13500,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 4) { cm.gainMeso(-500000000) cm.spawnMonster(9500177,1000000,200,70,5000,1,0,2,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 5) { cm.gainMeso(-500000000) cm.spawnMonster(9410015,1500000,1000,98,6500,1,0,2,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 6) { cm.gainMeso(-500000000) cm.spawnMonster(8510000,40000000,3000000,110,1300000,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 7) { cm.gainMeso(-500000000) cm.spawnMonster(9400202,20000,500,5,10,1,0,6,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 8) { cm.gainMeso(-2000000000) cm.spawnMonster(100100,100000000,3000000,1,6000000,1,1,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } } } }
could someone help me to put in if the person has enough mesos for each selection respectively and if i click no or end chat i wont get bugged ( cant click any other npcs)
if (selection == # && cm.getMeso()>=10000000) {
has enough mesos action;
} else {
doesnt have enough mesos action;
}
Just put the meso checks before all of the selection checks and you'll save time since it all costs the same amount anyway.There's the layout. D;PHP:if (selection == # && cm.getMeso()>=10000000) { has enough mesos action; } else { doesnt have enough mesos action; }
Well, yeah, that too.Just put the meso checks before all of the selection checks and you'll save time since it all costs the same amount anyway.
PHP:/* Heena */ var status = 0; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { if (mode == -1) { cm.dispose(); } else if (status >= 0 && mode == 0) cm.dispose(); else if (mode == 1) status++; else status--; if (status == 0) { cm.sendSimple("Would you like to summon any monsters? It costs 500 Million Mesos. Only the Special Snail Which has 50 mil HP is 2bil. \r\n#L0#1 Loki Box#l\r\n#L1#1 Snowman#l\r\n#L2#1 Griffey#l\r\n#L3#1 Manon#l\r\n#L4#2 Giant Centipedes#l\r\n#L5#2 Snack Bars#l\r\n#L6#1 Pianus#l\r\n#L7#6 NX slimes#l\r\n#L8#1 1gMS special snail(Gives 6Mil Exp)#l"); } else if (status == 1) { if (cm.getMeso() >= 500000000) cm.sendNext("You don't have #b500,000,000#k mesos."); cm.dispose(); else if (selection == 0) { cm.gainMeso(-500000000); cm.spawnMonster(9400566,1000000,5000,100,500,1,1,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 1) { cm.gainMeso(-500000000) cm.spawnMonster(9400708,100000,5000,10,200,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 2) { cm.gainMeso(-500000000) cm.spawnMonster(8180001,3700000,1500,105,13500,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 3) { cm.gainMeso(-500000000) cm.spawnMonster(8180000,3700000,1500,105,13500,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 4) { cm.gainMeso(-500000000) cm.spawnMonster(9500177,1000000,200,70,5000,1,0,2,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 5) { cm.gainMeso(-500000000) cm.spawnMonster(9410015,1500000,1000,98,6500,1,0,2,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 6) { cm.gainMeso(-500000000) cm.spawnMonster(8510000,40000000,3000000,110,1300000,1,0,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 7) { cm.gainMeso(-500000000) cm.spawnMonster(9400202,20000,500,5,10,1,0,6,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } if (selection == 8) { cm.gainMeso(-2000000000) <---------- cm.spawnMonster(100100,100000000,3000000,1,6000000,1,1,1,347,-17); cm.sendOk("Its on the barrel next to Amos. Happy Killing!!"); cm.dispose() } } }
Meh.Not all have the same price. there one for 2 bil
so change it before you test it.
How ironic.blue u fking spammer