PDA

View Full Version : Devolution v7 Dupe Problem


Respected22
08-31-2009, 04:02 AM
Hey, theres a dupe in my server where you duel and stake an item and after you accept and all that you push report abuse and leave name blank and pick a random report thing and it gives you the item the other person staked and it gives them it to. Anyone know a Devolution that has premium and non dupe? Or can someone tell me how to disable duel?

tr1ll sk1ll
09-01-2009, 01:11 AM
There is a way to remove, I had this kids MSN that use to help me with my Dodian base, but than i just gave up. Ill try to find it for you, if I still have him added.

cscscs
09-01-2009, 01:26 AM
Oh, the server in the banner in my sig used to have that udpe, until the owner fixed it. Just make it so you can't upen up report abuse while in duel.

Zaga
09-01-2009, 02:58 AM
Oh, the server in the banner in my sig used to have that udpe, until the owner fixed it. Just make it so you can't upen up report abuse while in duel.

It's not as easy as it sounds, the report abuse interface opens through the client.

The best way to fix this dupe is to go into the void that gives the victors items to him, and and an "if" statement like this...


Start of my void... NOT COMPLETE SO DON'T USE IT.
public void DuelVictory() {
client other = getClient(duel_with);
if (validClient(duel_with) && WonDuel = true) {
sendMessage("You have defeated " + other.playerName + "!");
sendQuest("" + other.combat, 6839);
sendQuest(other.playerName, 6840);
}
currentHealth = playerLevel[playerHitpoints];
server.PrayerHandler.resetPrayer(playerId);
ResetAttack();
teleportToY = 3274 + misc.random(3);
teleportToX = 3372 + misc.random(3);
boolean stake = false;
for (GameItem item : offeredItems) {
if ((item.id > 0) && (item.amount > 0)) {
stake = true;
}
That part in the red is what keeps the items from being given early.

Just go into the process and find something like this

if (validClient(duel_with) && duelFight) {
getClient(duel_with).DuelVictory();
And edit it to be something like this...


if (validClient(duel_with) && duelFight) {
getClient(duel_with).WonDuel = true;
getClient(duel_with).DuelVictory();
Basically this way items won't be awarded to the winner without the other player dieing first, therefore preventing the dupe.

Scyth
09-01-2009, 05:19 AM
Mhmmmmm

http://img.4chan.org/b/src/1251769991683.jpg

I post here after I find my Devo tuts I stored.