Author Topic: The EXP Script some of u guys were askin me about  (Read 5469 times)

0 Members and 1 Guest are viewing this topic.

l33tnewbie

  • Goblin Pup
  • *
  • Posts: 33
  • Reputation: +0/-0
The EXP Script some of u guys were askin me about
« on: August 10, 2004 10:02 am CDT »
Event::Attach (eventClientMessage, PCRPG::onClientMessage, %client, %msg);
function PCRPG::onClientMessage (%client, %msg){
if(String::findSubStr(%msg, "has died")!=-1)
      {GetRegEXP(%msg);}
if(String::findSubStr(%msg, "party experience!")!=-1)
      {SayPartyEXP(%msg);}
}
function GetRegEXP(%msg){
   $deadguy=getword(%msg, 0);
   $regexp=getword(%msg, 6);
echo($deadguy);
echo($regexp);
schedule("say(0, \"#savecharacter\");" ,2);
         }
function SayPartyEXP(%msg){
   %partyexp = getword(%msg, 3);
   %totalexp = $regexp+%partyexp;
   %LvL = DeusRPG::FetchData("LVL");
   %EXP = DeusRPG::FetchData("EXP");
   %Bottom = %LvL * (200 + 50 * (%LvL - 1));
   %TNL = Floor(%Bottom) - Floor(%EXP);
   %newtnl = (%tnl - %totalexp);
   EZAnimate::Animation(2);
   say(1, $deadguy @" died and I gained " @ $regexp @" and " @ %partyexp @ " exp for a total of "@ %totalexp @"...(" @ %newtnl @ " tnl)");
         }
$QuickSay::Team2 = "false";
$QuickSay::Sound2 = "0";
$EZAnimate::Sound2 = "88";
$EZAnimate::Animation2 = "9";
^ requires OMEGA thing
« Last Edit: December 31, 1969 06:00 pm CST by l33tnewbie »

WolfTones

  • Centurian Lord
  • ********
  • Posts: 2,501
  • Reputation: +0/-0
    • http://www.imafaggot!.com
(No subject)
« Reply #1 on: August 10, 2004 10:08 am CDT »
Stop posting your stupid scripts here...go post this crap in Assistance!!!!
« Last Edit: December 31, 1969 06:00 pm CST by WolfTones »
Lookieme!  I am a no-talent ass clown!

l33tnewbie

  • Goblin Pup
  • *
  • Posts: 33
  • Reputation: +0/-0
(No subject)
« Reply #2 on: August 10, 2004 10:09 am CDT »
post comments on what ya think about it
« Last Edit: December 31, 1969 06:00 pm CST by l33tnewbie »

WolfTones

  • Centurian Lord
  • ********
  • Posts: 2,501
  • Reputation: +0/-0
    • http://www.imafaggot!.com
(No subject)
« Reply #3 on: August 10, 2004 10:10 am CDT »
Quote from: "l33tnewbie"
post comments on what ya think about it


I think you should "Stop posting your stupid scripts here...go post this crap in Assistance!!!!"
« Last Edit: December 31, 1969 06:00 pm CST by WolfTones »
Lookieme!  I am a no-talent ass clown!

Corona

  • Elvin Legion
  • *****
  • Posts: 486
  • Reputation: +6/-1
    • http://www.Linneberg.com
(No subject)
« Reply #4 on: August 10, 2004 10:17 am CDT »
Quote from: "l33tnewbie"
post comments on what ya think about it


I think it requires Deus Pack =\
« Last Edit: December 31, 1969 06:00 pm CST by Corona »

l33tnewbie

  • Goblin Pup
  • *
  • Posts: 33
  • Reputation: +0/-0
(No subject)
« Reply #5 on: August 10, 2004 10:18 am CDT »
meh ill edit it lol
« Last Edit: December 31, 1969 06:00 pm CST by l33tnewbie »

l33tnewbie

  • Goblin Pup
  • *
  • Posts: 33
  • Reputation: +0/-0
(No subject)
« Reply #6 on: August 10, 2004 10:22 am CDT »
Event::Attach (eventClientMessage, PCRPG::onClientMessage, %client, %msg);
function PCRPG::onClientMessage (%client, %msg){
if(String::findSubStr(%msg, "has died")!=-1)
{GetRegEXP(%msg);}
if(String::findSubStr(%msg, "party experience!")!=-1)
{SayPartyEXP(%msg);}
}
function PCRPG::FetchData(%dataname) {
   rpgfetchdata(%dataname);
   return $rpgdata[%dataname];
}
function GetRegEXP(%msg){
$deadguy=getword(%msg, 0);
$regexp=getword(%msg, 6);
echo($deadguy);
echo($regexp);
schedule("say(0, \"#savecharacter\");" ,2);
}
function SayPartyEXP(%msg){
%partyexp = getword(%msg, 3);
%totalexp = $regexp+%partyexp;
%LvL = PCRPG::FetchData("LVL");
%EXP = PCRPG::FetchData("EXP");
%Bottom = %LvL * (200 + 50 * (%LvL - 1));
%TNL = Floor(%Bottom) - Floor(%EXP);
%newtnl = (%tnl - %totalexp);
EZAnimate::Animation(2);
say(1, $deadguy @" died and I gained " @ $regexp @" and " @ %partyexp @ " exp for a total of "@ %totalexp @"...(" @ %newtnl @ " tnl)");
}
$QuickSay::Team2 = "false";
$QuickSay::Sound2 = "0";
$EZAnimate::Sound2 = "88";
$EZAnimate::Animation2 = "9";
^ requires OMEGA thing
}
« Last Edit: December 31, 1969 06:00 pm CST by l33tnewbie »

Corona

  • Elvin Legion
  • *****
  • Posts: 486
  • Reputation: +6/-1
    • http://www.Linneberg.com
(No subject)
« Reply #7 on: August 10, 2004 10:35 am CDT »
That still won't work without Deus Pack... :(

rpgfetchdata() is an unknown command


*edit* Ah, it's probably because I don't run Tribes with -mod RPG. To my credit though, many people who don't use Deus Pack also don't use -mod RPG. lol
« Last Edit: December 31, 1969 06:00 pm CST by Corona »

l33tnewbie

  • Goblin Pup
  • *
  • Posts: 33
  • Reputation: +0/-0
(No subject)
« Reply #8 on: August 10, 2004 10:51 am CDT »
wut idiots :P
« Last Edit: December 31, 1969 06:00 pm CST by l33tnewbie »

Corona

  • Elvin Legion
  • *****
  • Posts: 486
  • Reputation: +6/-1
    • http://www.Linneberg.com
(No subject)
« Reply #9 on: August 10, 2004 11:17 am CDT »
Bah. Tribes RPG works just fine without -mod RPG. About the only difference is you don't see the red skull or the custom "Loading" screen. :P
« Last Edit: December 31, 1969 06:00 pm CST by Corona »

LastWish

  • What's Yours?
  • Uber Menace
  • *******
  • Posts: 1,743
  • Reputation: +0/-0
(No subject)
« Reply #10 on: August 10, 2004 11:47 am CDT »
I do it for the nifty sword cursor in tribes =)
« Last Edit: December 31, 1969 06:00 pm CST by LastWish »

Kendril

  • Minotaur Rager
  • ******
  • Posts: 759
  • Reputation: +0/-0
(No subject)
« Reply #11 on: August 10, 2004 12:43 pm CDT »
This thread does need to be in assistance or Documentation!
« Last Edit: December 31, 1969 06:00 pm CST by Kendril »

"Mini-Me, would you like a Hot-Pocket? An Eggo?"

Sinister

  • Uber Menace
  • *******
  • Posts: 1,125
  • Reputation: +0/-0
    • http://www.stormpages.com/snowmann69
(No subject)
« Reply #12 on: August 10, 2004 02:04 pm CDT »
Quote from: "Corona"
Bah. Tribes RPG works just fine without -mod RPG. About the only difference is you don't see the red skull or the custom "Loading" screen. :P


true, true.......
« Last Edit: December 31, 1969 06:00 pm CST by Sinister »

Hollywood

  • Orb Member
  • Elvin Legion
  • ***
  • Posts: 418
  • Reputation: +0/-0
(No subject)
« Reply #13 on: August 10, 2004 05:43 pm CDT »
And if you have a sexy ass replacement the dumb rpg one makes your eyes miss it.
« Last Edit: December 31, 1969 06:00 pm CST by Hollywood »