[Tut] Remove Items [DODIAN]
Purpose: Removing certain items from your server.
Difficulty: 1/10
Assumed Knowledge: Copy & Paste & Basic Searching.
Server Base: Dodian/Devolution
Classes Modified: Client.Java
Procedure
Step 1: Open client.java & search for
Code:
//openWelcomeScreen(201, false, 3, ((IPPart1 << 24)+(IPPart2 << 16)+(IPPart3 << 8)+IPPart4), lastlogintime);
OR
And below your welcome messages put the following in.
Code:
removeItem(####);
removeItem(####);
removeItem(####);
removeItem(####);
Replace all the #### with the Item you'd like to remove
Step 2: In client.java & search for
Code:
public void openUpBank() {
[i]and under[I]
PUT...
Code:
removeItem(####);
removeItem(####);
removeItem(####);
removeItem(####);
Replace all the #### with the Item you'd like to remove
Step 3: In client.java & search for
Code:
public void deleteItem
and under
Code:
playerItemsN[slot] = 0;
playerItems[slot] = 0;
}
PUT...
Code:
removeItem(####);
removeItem(####);
removeItem(####);
removeItem(####);
Replace all the #### with the Item you'd like to remove
What this actually does is. If the player has any item you set to be removed in their inventory when logging it. It gets removed.
When the player opens up their bank it gets removed from their inventory.
When a player switches their equipment from say 1048 (white partyhat) to a Dragon Med (1149) The Dragon Med is wielded but the Party Hat is removed.
Only thing is this DOES NOT remove items from players bank. Although if you're smart enough you'll know how to do this yourself! =]
Credits: Myself
Although I'm not sure if anyone else has released something like this. Just thought I'd give the word out. I removed all rares off my server. Makes life a little more easy than dealing with duping/scamming newbies.