View Full Version : Making Npc's tele?
0r4nge ownz
July 9th, 2010, 14:14
Ok, so basiclly i want to make my npc tele in combat.
so im going to do a combat for giant mole, and if he does this anim (the dig emote)
i would like him to tele to these coords, these coords or these. ( so he dont just tele to the same one )
could someone tell me how to tele a npc? and also in java whats the "or" code? =S
is it ||?
Break
July 9th, 2010, 14:17
n.teleportTo(COORDS X, COORDS Y, 0, 4, 0, 8939, 8941, 569, 0, 568, 0);
Almost sure.
0r4nge ownz
July 9th, 2010, 14:25
ok, thanks buddy il try that ;)
Break
July 9th, 2010, 14:26
No problem bro.
0r4nge ownz
July 9th, 2010, 14:43
fail, didnt work for me =S
anyone want to help me lol?
my code, by the way i just guessed this, iv only been programming for like 6 month's.
case 3340:
n.requestAnim(getAttackAnim(), 0);
} else {
n.teleportTo(2714, 5343, 0, 4, 0, 133, 134, 569, 0, 568, 0);
break;
}
i got 100 error =S
David
July 9th, 2010, 15:06
fail, didnt work for me =S
anyone want to help me lol?
my code, by the way i just guessed this, iv only been programming for like 6 month's.
case 3340:
n.requestAnim(getAttackAnim(), 0);
} else {
n.teleportTo(2714, 5343, 0, 4, 0, 133, 134, 569, 0, 568, 0);
break;
}
i got 100 error =S
Not weird that that didn't worked.
It need to recognice that the npc is dead, and THEN teleport you.
The only thing your doing now is requesting the attack emote and if it doesn't requests it it teleports you. And I assume thats not your idea.
0r4nge ownz
July 9th, 2010, 15:08
nope ROFL, ok you can read java X.X lmfao..
i was trying to command my npc so sometime's at does the attackanim (with the attack)
then on the odd occation tele to them coord's (just for test) cus i will add more coord for it to tele to..
basiclly im a screw up rofl.
Break
July 9th, 2010, 15:10
This code is screw up.
Atleast tell us what the arrows are? Might be a missed bracket tho.
Try change it like this:
case 3340:
n.requestAnim(getAttackAnim(), 0);
} else {
n.teleportTo(2714, 5343, 0, 4, 0, 133, 134, 569, 0, 568, 0);
}
break;
0r4nge ownz
July 9th, 2010, 15:37
yes i did lol, i tryed that way too.. but tbh i dont really know where to put it in the npccombat. =S
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.