Cosmetic Change: Storage Log

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

PCManiac
Noob
Noob
Posts: 4
Joined: 20 Jun 2008, 10:21
Noob?: No

Cosmetic Change: Storage Log

#1 Post by PCManiac »

First of all, wile doing this change, i found out that the item type for armour and weapon are switched so, i changed it to work properly:

Old "itemtypes.txt":

Code: Select all

4 Armour
5 Weapon
New "itemtypes.txt":

Code: Select all

4 Weapon
5 Armour
-------

Now, the modification:

I got annoyed in when i wanted to see what items i had in storage, through the log file, it was all sorted by IDs numbers so, i went to check the "storage" command listing code, basically copy/pasted-it with some changes so it would work in and voilá, something like this:
---------- Storage ~Date~ -----------
-- Equipment --
...
219 Undershirt (Armour)
220 Undershirt (Armour)
...
245 Ring [1] (Armour)
...
-- Non-Usable --
33 Empty Bottle x 5
...
-- Usable --
0 Red Herb x 58
...
Capacity: 265/300
-------------------------------
This modifications were done in OK R6451.
You do not have the required permissions to view the files attached to this post.
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Cosmetic Change: Storage Log

#2 Post by sli »

lern2diff
cs : ee : realist
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: Cosmetic Change: Storage Log

#3 Post by Bibian »

diff those files against the latest svn
PCManiac
Noob
Noob
Posts: 4
Joined: 20 Jun 2008, 10:21
Noob?: No

Re: Cosmetic Change: Storage Log

#4 Post by PCManiac »

sli wrote:lern2diff
blame wiki, gnu tools and "diff -c" ;)

Bibian, Attached a patch file for the latest SVN.

sidenote: i can't upload files with .patch or .diff extensions
You do not have the required permissions to view the files attached to this post.
Click
Human
Human
Posts: 39
Joined: 15 Apr 2008, 06:08
Noob?: Yes
Location: Russia, Velikiy Novgorod

Re: Cosmetic Change: Storage Log

#5 Post by Click »

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Cosmetic Change: Storage Log

#6 Post by sli »

I was wondering when someone was gonna point that out.
cs : ee : realist
Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: Cosmetic Change: Storage Log

#7 Post by Cozzie »

why is there a reverse item type ID anyway in the first place =x
Make Openkore Awesome. Join the team.