L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Thread Closed 
 
Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nifty Thing
Author Message
NaoJogoMais Offline
I'm Watching You!
**

Posts: 922
Joined: Oct 2012
Reputation: 194
Version: 1.4.2.132
Post: #1
Thumbs Up Nifty Thing

So

I discovered something interesting and would like to pass the idea to yours.
Maybe it is possible to do this in the next Tower update or by script, plugin.

Here we go:

There a way in zRanger that calculates how much experience and money you're gaining every 1 hour (works 100%) and the absence (not 100%)(in hours) for you to move to the next level. All this in a widget.

I'll pass the code:

WIDGET

    LUA Programming
<widget name = "vertical">
 <widget name = "separator">
 <width>128</width>
 <titleAlign>center</titleAlign>
 <titleEx>"EXP/h : "..(exp-env("sexp"))*60*60/(now - env("snow")).."k"</titleEx>
 </widget>
 <widget name = "separator">
 <width>128</width>
 <titleAlign>center</titleAlign>
 <titleEx>"SP/h : "..(sp-env("ssp"))*60*60/(now - env("snow")).."k"</titleEx>
 </widget>
 <widget name="separator">
 <width>128</width>
 <titleAlign>center</titleAlign>
 <titleEx>((((exp-env("sexp"))*60*60*10*1000*100)/(env("nextlevel")-env("nowlevel")))/(now-env
 
("snow"))).." % per 10 hour"</titleEx>
 </widget>
	<widget name="separator">
 <width>128</width>
 <titleAlign>center</titleAlign>
 <titleEx>((((env("nextlevel")-exp)*((now-env("snow"))/60000))/(exp-env("sexp")))/60).." hour to levelup"</titleEx>
	</widget>
 <widget name = "separator">
 <width>128</width>
 <titleAlign>center</titleAlign>
 <titleColor>yellow</titleColor>
 <titleEx>"Adena/h : "..(itemCount(57)-env("nmoney"))*60*60/(now - env("snow")).."k"</titleEx>
 </widget>
 </widget>
 </widget> 
</widget>



Ps: I put it in "Lua" to show all code. With
Code:
they dont show all.

SCRIPT

[code]S Assign sexp = exp
S Assign ssp = sp
S Assign nmoney = itemCount(57)
S Assign lvl1 = 0; Assign lvl2 = 68; Assign lvl3 = 295; Assign lvl4 = 805; Assign lvl5 = 1716; Assign lvl6 = 3154; Assign lvl7 = 5292; Assign lvl8 = 8136; Assign lvl9 = 11955; Assign lvl10 = 16851; Assign lvl11 = 22973; Assign lvl12 = 30475; Assign lvl13 = 39516; Assign lvl14 = 50261; Assign lvl15 = 62876; Assign lvl16 = 77537; Assign lvl17 = 94421; Assign lvl18 = 113712; Assign lvl19 = 135596; Assign lvl20 = 160266; Assign lvl21 = 84495; Assign lvl22 = 95074; Assign lvl23 = 107905; Assign lvl24 = 123472; Assign lvl25 = 142427; Assign lvl26 = 165669; Assign lvl27 = 194509; Assign lvl28 = 231086; Assign lvl29 = 279822; Assign lvl30 = 374430; Assign lvl31 = 209536; Assign lvl32 = 248781; Assign lvl33 = 296428; Assign lvl34 = 354546; Assign lvl35 = 425860; Assign lvl36 = 514086; Assign lvl37 = 624568; Assign lvl38 = 765820; Assign lvl39 = 954872; Assign lvl40 = 1312934; Assign lvl41 = 376794; Assign lvl42 = 570584; Assign lvl43 = 702247; Assign lvl44 = 864268; Assign lvl45 = 1064437; Assign lvl46 = 1313189; Assign lvl47 = 1625260; Assign lvl48 = 2023672; Assign lvl49 = 2553793; Assign lvl50 = 3540654; Assign lvl51 = 1628580; Assign lvl52 = 2030288; Assign lvl53 = 2525315; Assign lvl54 = 3136966; Assign lvl55 = 3895327; Assign lvl56 = 4840361; Assign lvl57 = 6059118; Assign lvl58 = 7618511; Assign lvl59 = 9695807; Assign lvl60 = 13539939; Assign lvl61 = 7827912; Assign lvl62 = 9820182; Assign lvl63 = 12274327; Assign lvl64 = 15304458; Assign lvl65 = 19055275; Assign lvl66 = 23715366; Assign lvl67 = 29732457; Assign lvl68 = 37394453; Assign lvl69 = 47531372; Assign lvl70 = 55129381; Assign lvl71 = 47864070; Assign lvl72 = 59155067; Assign lvl73 = 73265903; Assign lvl74 = 90895887; Assign lvl75 = 112918193; Assign lvl76 = 140457133; Assign lvl77 = 175038441; Assign lvl78 = 224130847; Assign lvl79 = 275229537; Assign lvl80 = 374922035; Assign lvl81 = 433175886; Assign lvl82 = 519071722; Assign lvl83 = 616520968; Assign lvl84 = 732660914; Assign lvl85 = 867504463; Assign lvl86 = 5906525385; Assign lvl87 = 8207524971; Assign lvl88 = 14341344002; Assign lvl89 = 9969088216; Assign lvl90 = 18392059298; Assign lvl91 = 22570174524; Assign lvl92 = 27893873314; Assign lvl93 = 34494700219; Assign lvl94 = 42704220933; Assign lvl95 = 52959289091; Assign lvl96 = 100973118145; Assign lvl97 = 195410550016; Assign lvl98 = 384956596063; Assign lvl99 = 777809067883; Assign lvlcount = 0
T(30) exp >= env("lvl"..env("lvlcount").."") : Assign lvlcount = env("lvlcount") + 1; Assign nowlevel = env("lvl"..env("lvlcount")-1..""); Assign nextlevel = env("lvl"..env("lvlcount").."")
+L Assign sexp = exp ; Assign ssp = sp ; Assign snow = now ; Assign nmoney = itemCount(57)

OR

Code:
S Assign sexp = exp
S Assign ssp = sp
S Assign nmoney = itemCount(57)
?lvl T(60000) Assign nowlevel = levelBegin; Assign nextlevel = levelend
+R Assign sexp = exp ; Assign ssp = sp ; Assign snow = now ; Assign nmoney = itemCount(57)

.


[ RETIRED ]
...from retail!



[Image: 201628.png]
02-06-2013 15:59 PM
Find all posts by this user
 Reputed by : medofan(+1)
amiroooo Offline
Beta Tester

Posts: 1,270
Joined: Sep 2011
Reputation: 412
Version: 1.4.2.142
Post: #2
RE: Nifty Thing

you haven't used search first!
already there is way better one in l2tower
http://forum.l2tower.eu/thread-statistics-loger
the only thing that is missing is how many hours left for level up and its not there simply because I dont have any real values for how much xp needed for each level.
when you check fourth line you will find:
    LUA Programming
--GodExpTable = {


fill there the exact values and send me it and then the hours needed for level up can be added aswell in no time..
(This post was last modified: 02-06-2013 19:34 PM by amiroooo.)
02-06-2013 19:30 PM
Find all posts by this user
 Reputed by : NaoJogoMais(+2)
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Strange thing on the boards lovehart 0 1,627 12-03-2012 10:19 AM
Last Post: lovehart
  Official, strange thing doncaster 10 7,079 08-14-2012 09:33 AM
Last Post: arturok_320



User(s) browsing this thread: 1 Guest(s)