FindXP; Find's any XP of any item!
Abyssal
2007-04-28 09:38:46
Finally, after much hard work on this amazing project, the following people have created this function:
Abyssal
bobarkinator
Smartzkid
I thank both of them for their hard work on this, we have all put in a lot of time.
~
The function works like this:
Writeln(FloatToStr(FindXP('fishing', 'lobster')));
That would return the XP for catching a lobster if you are fishing. This works with ALL skills except construction, because there are no construction scripts yet.
It is over 1000 lines of goodness :)
Download it and take a look for yourself, you'll like it :D!
~Abyssal, bobarkinator & Smartzkid
Note: Renamed because there is already a function named GetXP in SRL. It is now FindXP :)
Bobarkinator
2007-04-28 09:41:45
Woot I'm glad you released. Also people post mistakes as, with this type of script, there are bound to be some(or maybe we are perfect?:D ). Also if we missed anything you want added post that also.
nielsie95
2007-04-28 10:01:34
Nice! :)
Should be integrated into SRL? *Hint* :D
Abyssal
2007-04-28 12:20:53
Yea it should, but I just realized that there is another function called GetXP. So I'll modify the name quickly…
n3ss3s
2007-04-28 12:24:45
I dont know how uber the functions need to be, I vote yes.
Boreas
2007-04-28 23:45:14
Changed title.
var
t,i:integer;
tmp:extended;
begin
t:=getsystemtime;
for i:=0 to 1000 do
tmp:=FindXP('cooking', 'summer pie');
writeln(inttostr(getsystemtime-t));
end.
Successfully compiled
187
Successfully executed
Good work
Rune Hacker
2007-04-28 23:48:47
Wow, all of you must have had WAY too much time rofl. Good job though and thsi should be an SRL function of its not already. Good work putting all this together
Abyssal
2007-04-28 23:48:53
Most definitely, I am glad it works so fast ^_^!
Thanks for the responses guys.
Smartzkid
2007-05-04 19:46:56
*wonders if this is the longest function ever*
Lorax
2007-05-05 09:13:15
Oh My Freaking GOD!
Wizzup?
2007-05-05 09:57:23
Now, if you would have spend that time making a script… ;)
Starblaster100
2007-05-05 10:05:28
From: Wizzup?
Now, if you would have spend that time making a script… ;)
actually i think this is much better
Excellent job, this should definately go into SRL
Bobarkinator
2007-05-05 10:27:37
Thanks for comment Star.
That would be awesome to have a function in SRL.
Edit: Woot 300 posts:spot: :spot:
Abyssal
2007-05-05 17:40:52
Yea thanks for the positive responses guys!
Bam Bam
2007-05-05 18:45:26
I voted that I like it, however I think that we may find this hard to maintain.
bullzeye95
2007-05-05 19:04:15
From: Lorax
Oh My Freaking GOD!
You know what, that was weird… That's EXACTLY what I was going to post… to the case! :p
I rarely give out rep, but this deserves it!
Mjordan
2007-05-05 19:07:49
Wow truly amazing, good job guys! I can't even imagine how much time this took you.
~alex~
2007-05-05 19:37:27
Wow…. just wow…
Bobarkinator
2007-05-05 19:59:22
From: Mjordan
Wow truly amazing, good job guys! I can't even imagine how much time this took you.
I put a few days into it but I think Abyssal put a lot of work in it. Smartkidz did the cooking one which was a lot of work.
Abyssal
2007-05-06 18:31:45
Heh, yea this took a while.
Why would it be hard to maintain? I don't see a huge skill coming anytime soon, and even with new stuff it would only take 30 minutes - 1 hour max.
AMazing for progress reports imo.
WT-Fakawi
2007-05-07 05:51:49
Good Work. A lot of it!
Abyssal: May we add this to SRL?
Abyssal
2007-05-07 08:06:21
Oh, yes. Please do :) That's the reason we made this.
:D
~Abyssal
WT-Fakawi
2007-05-07 08:48:17
Is there a dev in the house that can add it to the SVN? I gather its place is in misc.
The Un-Named
2007-05-11 13:21:10
Wouldn't it be easier to host the list of items and the xp to say,
srl-forums.com/misc/items.txt then just use GetPage? It would be a little slower but it could be drastically reduced in size. :P
~alex~
2007-05-11 18:15:15
The string would be pretty damn massive and maybe even laggy? I dunno just a thought.
Abyssal
2007-05-11 21:14:42
Why would size matter? It's good nuff now imo.
Smartzkid
2007-05-12 00:19:30
it probably would be easier to update if everything was in an online textfile, but, frankly, I'd rather speed than updateibility…mainly (as Abyssal stated) because I doubt there's going to be many large xp/skill changes in the near future.
Abyssal
2007-05-12 20:53:51
Yea, I'd rather not wait like 20+ seconds just for a report to print. Wasted time adds up.
Added to SRL.
Nice work Abyssal, bobarkinator, and Smartzkid :)
Abyssal
2007-05-12 21:05:59
From: Bebemycat2
Added to SRL.
Nice work Abyssal, bobarkinator, and Smartzkid :)
Hey, thanks a lot Bebe :) Can't wait for it to be live!
Smartzkid
2007-05-12 21:27:28
:) Thanks, Bebe
<3 SRL
Boreas
2007-05-19 15:03:05
Bobarkinator
2007-05-19 15:19:59
From: Boreas
Lol could have saved some time.
http://www.villavu.com/forum/showthread.php?t=6764?t=7815
I believe ours is a little more in depth? I don't think TOB's includes all skills.
Boreas
2007-05-19 15:22:26
Yup, which is why I said 'saved some time'.
grindisbest
2007-05-26 01:13:44
From: ~alex~
Wow…. just wow…
Beat me to saying that.
Abyssal
2007-05-28 19:18:27
I'm glad people still like it!
Bobarkinator
2007-05-28 20:45:45
From: Abyssal
I'm glad people still like it!
How can you lose interest?
R0b0t1
2007-05-30 20:21:19
I wish I had good ideas like that. But, I guess I don't. But that IS big.