Junior Spellweaver
- Joined
- Apr 21, 2007
- Messages
- 158
- Reaction score
- 1
HEllo~ If this was made. Sorry for posting it.
The credits go to the person who made cody teleport to the bosses, zefg.
Found the name there. lol
Features:
- See picture below. =) End of post
1. Go to your TeleportNPCs.cpp
2. Ctrl+F or go to Edit>Find type...
3. Select the code...
FROM:
TO:
4. Replace it with this.
After that build it and test it ingame! =D
To change the mesos pay (OPTIONAL):
Change the ones in red.
Have fun! =D
EDIT: I know the spelling error. =D Fixed. lol
Lazy to change picture.
The credits go to the person who made cody teleport to the bosses, zefg.
Found the name there. lol
Features:
- See picture below. =) End of post
1. Go to your TeleportNPCs.cpp
2. Ctrl+F or go to Edit>Find type...
zefg
3. Select the code...
FROM:
Code:
// Cody By zefg
void NPCsScripts::npc_9200000(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->addText("Hello, I am Cody. I can take you to almost any bosses for a small fee. Which boss do you want to go to?");
npc->addText("\r\n#L0#Mushmom(500,000 Mesos)#l");
npc->addText("\r\n#L1#Zombie Mushmom(500,000 Mesos)#l");
npc->addText("\r\n#L2#Blue Mushmom(500,000 Mesos)#l");
..................................................................
TO:
Code:
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
}
else if(state == 3){
npc->end();
}
}
4. Replace it with this.
Code:
// Cody By zefg
void NPCsScripts::npc_9200000(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->addText("Hello, I am Cody. I can take you to almost any bosses for a small fee. Which boss do you want to go to?");
npc->addText("\r\n#L0#Mushmom(500,000 Mesos)#l");
npc->addText("\r\n#L1#Zombie Mushmom(500,000 Mesos)#l");
npc->addText("\r\n#L2#Blue Mushmom(500,000 Mesos)#l");
npc->addText("\r\n#L3#Jr. Balrog(800,000 Mesos)#l");
npc->addText("\r\n#L4#Headless Horseman(500,000 Mesos)#l");
npc->addText("\r\n#L5#Griffey(1,000,000 Mesos)#l");
npc->addText("\r\n#L6#Manon(1,000,000 Mesos)#l");
npc->addText("\r\n#L7#Pianus(1,200,000 Mesos)#l");
npc->addText("\r\n#L10#Papulatus(1,500,000 Mesos)#l");
npc->addText("\r\n#L8#Zakum(2,000,000 Mesos)#l");
npc->addText("\r\n#L9#Horntail(3,000,000 Mesos)#l");
npc->sendSimple();
}
else if(state == 1){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Alright, #bMushmom#k is a great monster to hunt! Are you sure you want to go to #bMushmom#k? It will cost you 500,000 mesos.");
npc->sendYesNo();
}
if(type == 1){
npc->addText("Alright, #bZombie Mushmom#k is a great monster to hunt! Are you sure you want to go to #bZombie Mushmom#k? It will cost you 500,000 mesos.");
npc->sendYesNo();
}
if(type == 2){
npc->addText("Alright, #bBlue Mushmom#k is a great monster to hunt! Are you sure you want to go to #bBlue Mushmom#k? It will cost you 500,000 mesos.");
npc->sendYesNo();
}
if(type == 3){
npc->addText("Alright, #bJr. Balrog#k is a great monster to hunt! Are you sure you want to go to #bJr. Balrog#k? It will cost you 800,000 mesos.");
npc->sendYesNo();
}
if(type == 4){
npc->addText("Alright, #bHeadless Horseman#k is a great monster to hunt! Are you sure you want to go to #bHeadless Horseman#k? It will cost you 800,000 mesos.");
npc->sendYesNo();
}
if(type == 5){
npc->addText("Alright, #bGriffey#k is a great monster to hunt! Are you sure you want to go to #bGriffey#k? It will cost you 1,000,000 mesos.");
npc->sendYesNo();
}
if(type == 6){
npc->addText("Alright, #bManon#k is a great monster to hunt! Are you sure you want to go to #bManon#k? It will cost you 1,000,000 mesos.");
npc->sendYesNo();
}
if(type == 7){
npc->addText("Alright, #bPianus#k is a great monster to hunt! Are you sure you want to go to #bPianus#k? It will cost you 1,200,000 mesos.");
npc->sendYesNo();
}
if(type == 8){
npc->addText("Alright, #bZakum#k is a great monster to hunt! Are you sure you want to go to #bZakum#k? It will cost you 2,000,000 mesos.");
npc->sendYesNo();
}
if(type == 9){
npc->addText("Alright, #bHorntail#k is a great monster to hunt! Are you sure you want to go to #bHorntailk? It will cost you 3,000,000 mesos.");
npc->sendYesNo();
}
if(type == 10){
npc->addText("Alright, #bPapulatus#k is a great monster to hunt! Are you sure you want to go to #bPapulatusk? It will cost you 1,500,000 mesos.");
npc->sendYesNo();
}
}
else if(state == 2){
if(type == 0){//Mushmom
if(npc->getMesos() > 500000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-500000);
npc->teleport(100000005);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 1){//Zombie Mushmom
if(npc->getMesos() > 500000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-500000);
npc->teleport(105070002);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 2){//Blue Mushmom
if(npc->getMesos() > 500000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-500000);
npc->teleport(800010100);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 3){//Jr.Balrog
if(npc->getMesos() > 800000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-800000);
npc->teleport(105090900);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 4){//Headless Horseman
if(npc->getMesos() > 800000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-800000);
npc->teleport(682000001);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 5){//Griffey
if(npc->getMesos() > 1000000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-1000000);
npc->teleport(240020101);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 6){
if(npc->getMesos() > 1000000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-1000000);
npc->teleport(240020401);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 7){
if(npc->getMesos() > 1200000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-1200000);
npc->teleport(230040420);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 8){//Zakum
if(npc->getMesos() > 2000000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-2000000);
npc->teleport(280030000);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 9){//horntail
if(npc->getMesos() > 3000000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-3000000);
npc->teleport(240060200);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 10){//papulatus clock
if(npc->getMesos() > 1500000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-1500000);
npc->teleport(220080001);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
}
else if(state == 3){
npc->end();
}
}
After that build it and test it ingame! =D
To change the mesos pay (OPTIONAL):
Change the ones in red.
if(type == 8){//Zakum
if(npc->getMesos() > 2000000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-2000000);
npc->teleport(280030000);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 9){//horntail
if(npc->getMesos() > 3000000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-3000000);
npc->teleport(240060200);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
if(type == 10){//papulatus clock
if(npc->getMesos() > 1500000)
if(npc->getSelected() == YES){
npc->end();
npc->giveMesos(-1500000);
npc->teleport(220080001);
}
else{
npc->addText("No? You don't know what you're going to miss. Talk to me when you changed your mind.");
npc->sendOK();
}
else {
npc->addText("Sorry, but you do not have enough mesos.");
npc->sendOK();
npc->end();
}
}
Have fun! =D
EDIT: I know the spelling error. =D Fixed. lol
Lazy to change picture.
Last edited: