Use startTeleport
|
hey ppl of rune-server i tried adding this in my clickobject.java on my pi server:
i want my spirit tree to teleport me there... i got the gfx and i got the location but all i need is timers so that it uses gfx 1228 and then after tele 1229 i don't have the 1229 added tho... i am looking for some help i also looked at my mage and how it worked but got no success... i know this is a fail but i cant find a tut ether...Code:case 1317: int timer = 3; c.objectDistance = 2; if (timer == 3) { c.gfx0(1228); c.stopMovement(); } else if (timer == 3) { c.sendMessage("The spirit tree is awesome."); c.getPA().movePlayer(2859, 3431, 0); } break;
any help? thanks
Use startTeleport
so i made it look like
and i got this errorCode:case 1294: c.objectDistance = 2; c.gfx0(1228); c.stopMovement(); c.sendMessage("The spirit tree is awesome."); c.getPA().startTeleport(2859, 3431, 0); c.gfx0(1229); break;
i also removed the timer thing cuz it looks messed up to me...Code:src\server\model\players\packets\ClickObject.java:103: error: method startTelepo rt in class PlayerAssistant cannot be applied to given types; c.getPA().startTeleport(2859, 3431, 0); ^ required: int,int,int,String found: int,int,int reason: actual and formal argument lists differ in length Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .
Make it c.getPA().startTeleport(2859, 3431, 0, "modern");
i wana use the gfx tho and that will make it do the modern tele gfx...
correct me if im wrong...
Make a new type instead of "modern"
ya i would if i knew how tho... spoon feed me a bit?
Go to your startTeleport method, and find the if statement for the modern option. And just add another if statement for whatever one you make. If you can't figure it out, post your startTeleport method.
where is it located at? i got like 10 places...
playerassistant look for "modern" try to copy it and change the teletimer gfx and anims
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |