[Release] Doofus - Negative exp fixer (SIMPLE)

Newbie Spellweaver
Joined
Jul 20, 2008
Messages
73
Reaction score
0
Here's an EXP Fixer, it will reset your EXP to zero, regardless said player having negative exp or not.
It's set to Doofus (1012004), you can change this if you want.

Code:
// Made by Kenny of the EverlongMS Staff

var status = 0;

function start() {
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (status == 0) {
		cm.sendYesNo("Hello, want me to fix your exp thing? I will reset your exp regardless if you're at negative exp or not!");
		status++;
	} else {
		if ((status == 1 && type == 1 && selection == -1 && mode == 0) || mode == -1) {
			cm.dispose();
		} else {
			if (status == 1) {
					cm.sendNext ("Your negative experiance is now fixed!");
					status++
			} else if (status == 2) {
					cm.setExp(0);
					cm.dispose();
			}
		}
	}
}

Screenshots:
TeamCanada - [Release] Doofus - Negative exp fixer (SIMPLE) - RaGEZONE Forums

TeamCanada - [Release] Doofus - Negative exp fixer (SIMPLE) - RaGEZONE Forums


Enjoy.
 
during the yes, no selection, what if i chose no?
u should add like erm
Code:
}else {
cm.sendOK("okay nvm, talk to me later.");
cm.dispose();

If you where to hit No, nothing happens, and it just ends the conversation with Doofus because of cm.dispose(); after status 2.
If you were to click Doofus again after hitting No, it'll just send you back to the first chat (look at 1st screenshot), because it auto returns it.

I guess you could add that after player were to hit No.. This is just a shorter version.
 
Lols this does't check if exp negative and din't help level up..
Here mine.
Code:
/*
	Negative EXP Fix
	Written by Emokids a.k.a Evilsinxd
*/

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {

			if(cm.getChar().getLevel() >= [COLOR="red"]200[/COLOR]) {
			cm.sendOk("I can only help players below Level [COLOR="red"]200[/COLOR]");
			cm.dispose();
				
			}else if(cm.c.getPlayer().getExp() > -1){
				cm.sendOk("Sorry, I can only help out people with negative exp.");
				cm.dispose();
			} else {
			cm.sendYesNo("Would you like me to repair your negative exp?");
			}
		} else if (status == 1) {
				cm.getChar().levelUp();
				cm.c.getPlayer().gainExp(-cm.c.getPlayer().getExp(), false, false);
				
				cm.sendOk("Okay, your negative exp has been brought back up to 0.");
				cm.dispose();
		}
	}
}
Change the red colour Number to your server MAX LEVEL number
tell me weather work or don't
 
Lols this does't check if exp negative and din't help level up..
Here mine.
Code:
/*
	Negative EXP Fix
	Written by Emokids a.k.a Evilsinxd
*/

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {

			if(cm.getChar().getLevel() >= [COLOR="red"]200[/COLOR]) {
			cm.sendOk("I can only help players below Level [COLOR="red"]200[/COLOR]");
			cm.dispose();
				
			}else if(cm.c.getPlayer().getExp() > -1){
				cm.sendOk("Sorry, I can only help out people with negative exp.");
				cm.dispose();
			} else {
			cm.sendYesNo("Would you like me to repair your negative exp?");
			}
		} else if (status == 1) {
				cm.getChar().levelUp();
				cm.c.getPlayer().gainExp(-cm.c.getPlayer().getExp(), false, false);
				
				cm.sendOk("Okay, your negative exp has been brought back up to 0.");
				cm.dispose();
		}
	}
}
Change the red colour Number to your server MAX LEVEL number
tell me weather work or don't


Please read the description..
It sets your exp to 0 no matter what. It doesn't matter your level, exp, or anything.
Yes it works, look at the damn screenshots please..

Mine is a quick and fast way to reset exp back to zero.
&Wtf does leveling up have to do with it?
 
Ok then i bet got 90% of server with multi-level

You don't make any sense to me, I'm just gonna stop responding to you.
Seriously, if you don't like my clean script, leave this thread.
I don't care about yours, I just posted mine because MAYBE someone might have wanted to use it.
 
Support that theory please. :]

AT evilsinxd:
I don`t need your help. kthx
Never asked for it ;D


Look at this :
PHP:
if ((status == 1 && type == 1 && selection == -1 && mode == 0) || mode == -1) {
			cm.dispose();

It will dispose even without reaching the words when you dispose status 1 with that statement..
And you're having an extra } behind i think .. not sure about this.
 
Look at this :
PHP:
if ((status == 1 && type == 1 && selection == -1 && mode == 0) || mode == -1) {
			cm.dispose();

It will dispose even without reaching the words when you dispose status 1 with that statement..
And you're having an extra } behind i think .. not sure about this.

Try testing it :]
This actually does work in-game. The first chat (status 0) doesn't go away until the player had made a selection of either yes (reset exp to zero), or no (closes chat).

I also know that you never asked .. but i post just helping other and NOT FOR YOU..

Once again, make your own thread then.
 
Back