[Tut] [317] Release deleting objects

Results 1 to 1 of 1
  1. #1
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    [Tut] [317] Release deleting objects

    Purpose: To Delete some objects

    Difficulty: 3

    Assumed Knowledge: you should know how to add voids

    Server Base: cheeazscape 78 (works on all sources)

    Classes Modified: client.java




    ok drunk on java attempted this followed by danieB but really that didnt work... so now this is my attempt that works lol ;)
    ok it deletes all objects including walls

    ok here goes :
    100% mines ;)
    lol.... 5% credits to flamed fury1 for keeping me company on msn... :D

    first of all you must and i say must have my object spawnign void allready in your server:
    direct link: Making Global Objects

    procedure
    step 1

    ok first add this void
    (for buildings)
    Code:
    public void deletethatobject(int objectX, int objectY) { 
    	ReplaceObject2(objectX, objectY, 6951, -1, 10);
    	}
    (for walls)
    Code:
    public void deletethatwall(int objectX, int objectY) {
    ReplaceObject2(objectX, objectY, 6951, -1, 0);
    }

    step 2
    (for buildings)
    and then make a new void called
    Code:
    public void Deleteobjects() {
    or something like that be imaginitive :D

    now in that void add these ...
    Code:
    public void Deleteobjects() {
                                                deletethatobject(3238, 3434); //delete varrock fountain
                                                }
    (or for walls)

    make a new void called
    Code:
    public void Deletewalls() {
    or something like that :P

    now in that void add this

    Code:
    public void Deletewalls() {
    deletethatwall(x coords, y coords); // add the coords in the x and y coords spot's
    }

    step 3
    (for buildings)
    now look for case 121: and below that add
    Code:
    Deleteobjects();
    now you will have deleted the object on the coords specified ;)

    deletethatobject(int objectX, int objectY)
    ^ ^ ^
    name of void x coord of y coord
    object of object

    (for walls)
    now look for case 121: and below that add
    Code:
    Deletewalls();
    now you will have deleted the wall on the coords specified ;)

    deletethatwall(int objectX, int objectY)
    ^ ^ ^
    name of void x coord of y coord
    object of object

    easy peasy lemon squeezy
    post if u have errors....

    after:



    credits: -fedexer- (myself)




Advertisement