Jump to content
gerholdt

[pi] moving adding objects? [pi]

Recommended Posts

[B][/B]Hello this is my first tut so here we go difficulty 1/10

How to add or move objects
Ok search for [code]objectmanager.java[/code] in your source
Say you are making a skilling area and you want to add trees
hit ctrl and f at the same time search for


[code]public void loadCustomSpawns(Client c) {[/code]

ok under that you should start seeing this

[code]c.getPA().checkObjectSpawn(item id[/code]

here, x coords here, y coords here, way it faces, 10);

OK say you are adding a range were it says item id place the object id there then on the server do ::mypos or ::dataon
place x coords were u want the x coord to be on server same with y coords way it faces is simple this is how the object faces so you really just guess thats what i do i dont take the time to write them down u should tho like -1 faces north i think correct me if im wrong but this is very simple i explained the best way i could this is how i do it please dont be rude this is my first tut thanks billy Edited by gerholdt

Share this post


Link to post
Share on other sites
This could use some cleaning up. It needs code tags, and better spacing. Thought I'd leave some constructive criticism.

Share this post


Link to post
Share on other sites
[quote name='deadlyshot99']This could use some cleaning up. It needs code tags, and better spacing. Thought I'd leave some constructive criticism.[/QUOTE]

well i dont know how to add code tags or i would lol

Share this post


Link to post
Share on other sites
Nice, could use cleaning up though like stated above. Other than that, it will help some people :)

Share this post


Link to post
Share on other sites
thanks dude

Share this post


Link to post
Share on other sites
I cant do it lol im a bad coder could you help me ? im trying to add a funpk tele and a pk box tele

Share this post


Link to post
Share on other sites
Lol I Always thought it was global-object.cfg lol thanks for my stupidness

Share this post


Link to post
Share on other sites
Nice tut :P It should help lots of new people in making their own servers!

Share this post


Link to post
Share on other sites

×