|
kkriehn@wi.rr.com Newbie
Joined: 05 Oct 2006 Posts: 5
|
Posted: Fri Nov 03, 2006 9:57 pm
help me please |
anyone know how to make a script that can scan in xp needed to level, and keep track of xp gained, and then tell you when you get to a pre determined amount away from leveling?
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
|
_________________ Asati di tempari! |
|
|
|
kkriehn@wi.rr.com Newbie
Joined: 05 Oct 2006 Posts: 5
|
Posted: Sat Nov 04, 2006 2:13 am sample |
here is a sample f the lines that tell me xp.
Level - Experience Required - Title
64 - 166284320
65 - 172902080
66 - 179718368
You - 181571447
67 - 186739136
68 - 193970528
69 - 201418864
70 - 209090656
You need 5167689 experience points to gain a level.
You receive 137108 experience points.
You hear A gypsy child's death cry.
You get everything from corpse of A gypsy child.
The Gods gives you 1 gold coins for corpse of A gypsy child. |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Sat Nov 04, 2006 7:12 am |
#tr {You need &tnl experience points to gain a level.}
#tr {You receive &xpreceived experience points.} {#var tnl %eval(@tnl-@xpreceived);#loop %numitems(@lvllist) {#if (@tnl > %item(@lvllist,%i)) {#var clvl %item(@lvllist,%i);#abort;#var xptogo %eval(@clvl-@tnl);#show @xptogo exp needed until level %item(@lvllist,%i)}}}
to work this you have to set up a variable, lvllist(level list)
this trigger will autopopulate this variable, however first you want to type #var lvllist {} to create it
#tr {&nn~ ~-~ &lvlxp} {#additem lvllist %2}
#tr {You ~- &lvlxp} {#additem lvllist %2}
then do the level screen from lvl 1-You and |
|
|
|
kkriehn@wi.rr.com Newbie
Joined: 05 Oct 2006 Posts: 5
|
Posted: Sat Nov 04, 2006 10:50 am |
ok I see how this tracks it...but how do I get it so one of my chars tells the other when I am within 500k xp of leveling?
|
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Sun Nov 05, 2006 1:13 am |
#if (@xptogo < 500000) {tell blah you are within 500k of level}, add that where want to tell him, perhaps on death trigger.
|
|
|
|
|
|