PDA

View Full Version : #recover


ZeroDegrez
02-23-2002, 10:15 AM
Ok, got tired of my 100 monk always killing his stamina wasting monstas, so I have taking bits and pieces and some of my own ideas to create a new command. I looked at the #mana command and saw it wasnt always refilling mana all the way, but i kept looking and found there is already an alg. to calc how much your max mana is, so i inserted it into the set mana command, that way you always get your max mana returned to you. the #heal command is now blended in, and i added a line of code to cast invigor on yourself thus refilling your stamina. All of this in one easy to use command :)


else if (strcasecmp(sep.arg[0], "#recover") == 0 && (admin >=10))
{
if (target == 0)
{
this->SetMana(CalcMaxMana());
this->Heal();
SpellFinished(222, 0, 10, 0);
}
else
{
target->SetMana(CalcMaxMana());
target->Heal();
SpellFinished(222, target->GetID(), 10, 0);
}
}

Baron Sprite
02-24-2002, 08:57 AM
cool :D

Yodason
02-24-2002, 10:00 AM
this will most likely not be merged

ZeroDegrez
02-24-2002, 10:53 AM
oh ok :(

Baron Sprite
02-24-2002, 11:32 AM
can always compile it in yourself though :cool:

Yodason
02-24-2002, 11:59 AM
not meant to be harsh, but I think image has already decided when luc tried to get in #buff that there will not be a general BUFF to god like command =p

Baron Sprite
02-24-2002, 01:23 PM
Once I have completed my spdat editor there will be no need for a command, could create the spell, guahaha! ;)

Nada
02-24-2002, 02:09 PM
Lol sounds great Baron!!!

Yodason
02-25-2002, 08:38 AM
YOU WILL be banned on the spot if you distrubte spdat FILES. editor is fine.

Nada
02-25-2002, 08:45 AM
Thanks for the information Yoda. :cool:

ZeroDegrez
02-25-2002, 08:56 AM
hehehe, hurry up with that spdat editor!

*creates 50000 HP/AC BUFF*

hmm GM Spell events in which you can give out special spells for winning, like summon 2x mage pets if a mage were to win an event.

ZeroDegrez
02-25-2002, 08:58 AM
Yoda, My code isnt a god-like command, it just takes all of your commands + the invigorate spell and just makes a HP/Mana/Sta refiller. It doesnt buff your stats up super high.

DeletedUser
02-25-2002, 09:43 AM
The real reason is more for gm's, its nice to be able to have seperate commands so if someone were to have their mana restored, the gm can do just that and not more... If your too lazy to type them seperately, too bad...

Baron Sprite
02-25-2002, 10:31 AM
can always make ingame socials with them :D

ZeroDegrez
02-25-2002, 12:04 PM
ah true