Commit Graph

1357 Commits

Author SHA1 Message Date
Eduardo Bart 7c48a98b67 Minor fixes
* Fix auto openning channels with id 0 (guild chats)
* Minor fix in print
* Fix use of items behind creatures with classic control
* Fix teleports of 1sqm
2012-12-08 16:08:54 -02:00
Eduardo Bart 5de031fb8b Workaround for issue #146 2012-12-03 21:26:58 -02:00
Eduardo Bart f5b3bfda11 Lights minor fixes 2012-12-03 21:18:39 -02:00
BeniS dc6d2bb078 8bit color shouldn't be higher than 216, by mistake. 2012-12-03 16:47:21 +13:00
BeniS 617e6b302b Fix for creature lights.
* Will now load the dat values for creature lights (ed if you know a more conventional way for this please let me know).
* No need to draw light for the outfit the creature draw will handle it.
Note: not sure if the from8bit method should limit at 256 or not, but tibia dat contains colors 216+.
2012-12-03 13:17:41 +13:00
Eduardo Bart 6d6f600c44 Fix creatures light 2012-12-01 14:04:10 -02:00
Eduardo Bart ce6423320e Add ambient light in graphics options 2012-11-30 14:47:53 -02:00
Eduardo Bart 5fed08b17e Bind functions for minimum ambient light 2012-11-30 14:31:19 -02:00
Eduardo Bart f851bb7777 Minor fixes in lights 2012-11-30 09:03:42 -02:00
Eduardo Bart 6e154f6b2c Lights now are looking really good
* Draw lights beneath holes
* Improve light particle
* Light intensityvaries inversely with the square of the distance
* Local player always have a minimum light in complete darkness
* Creature names are behind lights now
2012-11-29 19:38:39 -02:00
Eduardo Bart d7a45311ed Fix issue #145, #29 and #39 2012-11-29 00:52:10 -02:00
Eduardo Bart 81068f820d Implement lights, thanks @Tarjei400
Now otclient have lights! This code was originally made
by @Tarjei400, I have improved it and merged into otclient
master. Many thanks for tarjei for the contribution.

Warning, this still experimental, fixes may come in the next days.
2012-11-28 23:47:36 -02:00
Samuel eb979ef7cd Modal Dialogs / Support for 9.70
OTC now supports showing and answering modal dialogs.

addDialog(modaldialog, dialogId, cid, callback)

TODO:
-find out what the "popup" value does.. (Maybe someone knows)
2012-11-27 14:48:48 +01:00
Eduardo Bart d4370e7c5d Fix issue #127 2012-10-24 18:51:57 -02:00
Eduardo Bart 8bb115d6d4 Fix issue #134 2012-10-24 18:03:15 -02:00
Eduardo Bart c7890e7a49 Fix issue #124 2012-10-23 18:16:14 -02:00
Eduardo Bart a6424f3022 Fix issue #118 2012-10-23 17:32:04 -02:00
Eduardo Bart 5f72488eba Fix issue #121 2012-10-23 17:09:39 -02:00
Eduardo Bart 6acdb0fd64 Fix issue #132 2012-10-23 16:00:12 -02:00
Samuel 3990ee76e7 Minimap Icons
Now server can call:
doPlayerAddMapMark(cid, pos, icon, description)
and it will be parsed.

TODO:
Adding map icons by rightclick on minimap menu.
Removing icons.

Needs to be tested when switching between different versions.
2012-10-11 17:36:00 +02:00
otfallen f26b359ae5 The smallest change of 2012 2012-10-08 01:04:14 +00:00
Eduardo Bart 5756f20026 Fix orange text bug for protocol >861 2012-10-05 19:18:16 -03:00
Eduardo Bart fa8b77f0c8 Fix issue #109 2012-10-05 16:14:05 -03:00
otfallen ced5c035b9 optimize otb/xml a bit.
m_itemTypes was being resized too much than expected so is allocin
new itemtype each time it was not being found (which is fake).

otb loader is slow, not sure if it's because of the binary reader
or just the file format is stupid
2012-10-05 20:31:05 +00:00
Eduardo Bart 526885f70d Fix issue #14 2012-10-05 15:17:10 -03:00
Samuel 6c2539bbd4 Added support for curly braces in NPC chat
-Added overlay to the default consoleBuffer for highlighting
-Char 127 now is used as spacer (Width 1)
-Supports default font "verdana-11px-antialised"

http://i.imgur.com/8drWH.png
2012-10-05 17:50:54 +02:00
Eduardo Bart 58d3a2ec72 Fix issue #99 2012-10-04 19:58:22 -03:00
Eduardo Bart 7b38e44382 Fix issue #105 2012-10-04 19:44:48 -03:00
Eduardo Bart 68f9af376f Fix issue #103 2012-10-04 19:18:48 -03:00
Eduardo Bart 393f8c7a9b Fix glitch in battle when creatures walk 2012-10-04 18:42:10 -03:00
Eduardo Bart 31efe0a82d Fix crash when closing otclient in debug mode 2012-10-03 12:49:57 -03:00
otfallen 9650179ae8 More Mac OS X progress.
Tested-by: Christopher Eklund <eklundchristopher@gmail.com>
Signed-off-by: otfallen <f.fallen45@gmail.com>
Signed-off-by: Christopher Eklund <eklundchristopher@gmail.com>
2012-09-29 23:08:10 +00:00
otfallen f0e85e21b3 Mac OS X port progress
Tested-by: Christopher Eklund <eklundchristopher@gmail.com>
Signed-off-by: otfallen <f.fallen45@gmail.com>
Signed-off-by: Christopher Eklund <eklundchristopher@gmail.com>
2012-09-29 22:57:14 +00:00
otfallen 3b7ad41740 Spare a call yeye 2012-09-29 16:48:01 +00:00
otfallen e1900bdf9a binarytree: type fix 2012-09-28 07:24:49 +00:00
otfallen 3902490d6b Minor changes 2012-09-24 13:59:23 +00:00
otfallen 4d6057ffbe Yet another set of fixes 2012-09-24 12:11:01 +00:00
otfallen 7f6b204ded tiny perf fix 2012-09-23 01:19:12 +00:00
Eduardo Bart 8f9d7593d6 Merge map branch 2012-09-20 18:45:43 -03:00
otfallen fe3a751ffa Fixes to creatures 2012-09-20 23:23:10 +00:00
otfallen baceba74b9 Minor changes 2012-09-19 07:13:45 +00:00
otfallen 4d0725e876 Fix creature outfit
typeex wasn't being treated right; the outfit category was supposed
to be an itemid and the aux id should be set to the item id of the
outfit.

Signed-off-by: otfallen <f.fallen45@gmail.com>
2012-09-18 09:14:55 +00:00
otfallen 1156059af1 Bind missing C++ functions into lua
Signed-off-by: otfallen <f.fallen45@gmail.com>
2012-09-18 05:23:31 +00:00
otfallen 68d2347ee5 Fix creatures not being cleared at exit (caused a segfault).
Signed-off-by: otfallen <f.fallen45@gmail.com>
2012-09-17 02:29:54 +00:00
otfallen a40594752d Fix segfault on exit cause by creatures not being cleared. 2012-09-17 02:15:46 +00:00
otfallen bfa0844de1 TiXmlElement can already Set integer attribs. 2012-09-15 05:05:45 +00:00
otfallen b7721f6856 Tiny fix to UICreature 2012-09-15 05:00:56 +00:00
otfallen eb7a11158a XML saving and minor fixes + code refactoring.
Signed-off-by: otfallen <f.fallen45@gmail.com>
2012-09-14 21:39:10 +00:00
otfallen d429e385bb Remove old useless functions. 2012-09-02 19:31:50 +00:00
Henrique Santiago 23097980a3 Fix scrollbar slider move, outfit exact size, charlist focus 2012-08-31 20:33:51 -03:00
Henrique Santiago 18a0d7ab94 Fixes to horizontal scrollarea, improve charlist flexibility 2012-08-31 01:56:10 -03:00
Henrique Santiago c517f7b745 Add/get table functions implemented on ext charlist 2012-08-30 02:59:27 -03:00
Eduardo Bart d98f6f7673 New version 0.5.3 2012-08-29 19:09:32 -03:00
Eduardo Bart 79102f2275 Add extended opcode patch for tfs under tools/ 2012-08-29 16:29:18 -03:00
Eduardo Bart 91237e82d5 Fix issue #82 2012-08-29 12:43:50 -03:00
Eduardo Bart 9bd983ab51 Fix silly for 963 and improve walk 2012-08-29 12:41:04 -03:00
Eduardo Bart 97e1c9d5a9 Support for protocol 963 2012-08-29 12:09:16 -03:00
Henrique Santiago 0c5479b031 Spinbox changes 2012-08-27 18:56:05 -03:00
niczkx e5df872600 Move load creatures functions from map and bind them to singleton class g_creatures 2012-08-26 18:44:46 +00:00
Eduardo Bart 4bac36d3bc Implement new cool features
* Implement walk booster (dash) as an option in settings menu
* Dash is smarter (can pre-animate)
* Implement smart walking (walk in diagonal when holding two arrow keys)
* Implement ping meter for all protocols
* Ping meter uses uses real ping packet for 9.6 and walk for others
2012-08-25 16:11:54 -03:00
BeniS 0763b266d5 Some more UI updates and fixes.
* Added UICreatureButton class for handling/replacing "battle buttons" (can now be used in other modules).
* Added the ability to use items on creatures via the battle window.
* Some minor cosmetics.
2012-08-26 04:05:33 +12:00
Eduardo Bart 143121b77d Fix getDisplayHeight 2012-08-25 00:07:43 -03:00
Eduardo Bart 2525940e49 Fix chamaleon offset 2012-08-24 20:06:45 -03:00
Henrique Santiago beb04d8d8e Fix container bug, miniwindow pos, creature skulls outsite map bound 2012-08-24 19:59:46 -03:00
Henrique Santiago f97fa65d37 Many UI fixes. 2012-08-24 05:18:15 -03:00
Henrique Santiago 0c18e4ff28 Add some extra inventory slots, fixed ext protocol bug 2012-08-23 20:29:05 -03:00
Eduardo Bart e25bd7fe54 Fix OpenGL ES compilation 2012-08-23 12:37:26 -03:00
Eduardo Bart 949cfd5d31 update version 2012-08-23 12:22:49 -03:00
Henrique Santiago a306027cec Fixed skins path 2012-08-23 04:17:38 -03:00
Eduardo Bart bdbce01c97 Add uid param to stats module 2012-08-22 22:50:42 -03:00
BeniS ecd1ec5c0d Some overall fixes:
* Fix to market constraints.
* Fixed bug with skill percent not rounding.
* Dereference textEdit variable properly.
* Fix to the outfit window regarding mounts.
* Added enableResize to UIMiniWindow.
* Some minor edits.
2012-08-23 02:21:02 +12:00
Henrique Santiago 05fcf740b4 Stats module 2012-08-22 05:51:31 -03:00
Eduardo Bart 64d607b59e Fix issue #77 and improve findPath 2012-08-21 23:10:56 -03:00
Eduardo Bart 3d7e80ea7a Improve creature attack click 2012-08-21 21:27:57 -03:00
Eduardo Bart ea4dd2f8e6 Support for compressed textures 2012-08-21 08:09:48 -03:00
Henrique Santiago 2142ee765d Fix issue #21, but miniwindows can be a lot smarter 2012-08-21 02:35:20 -03:00
Eduardo Bart c185e709b3 Fix regressions 2012-08-21 00:36:14 -03:00
Eduardo Bart 66760656e9 Fix rare stackpos bug caused by chameleon rune 2012-08-20 22:02:55 -03:00
Henrique Santiago b39623d437 UIGameMap allow clicking in black 2012-08-20 22:03:30 -03:00
Eduardo Bart ddd3f84ad7 Many fixes in win32 platform 2012-08-20 18:53:38 -03:00
Henrique Santiago d1d8b79edc Fix issue #73 2012-08-20 19:50:18 -03:00
Henrique Santiago ac8d6891ca Polish interface, pt translations 2012-08-20 18:58:43 -03:00
BeniS 1d20cc9e4b Finalized the mount system and the recently new skills/stats.
* Added mount options to the thing menu.
* Reworked the mounting/dismounting.
* Fixed up some skill module bugs.
* Added alerts to stats like health, mana, capacity, and regeneration time (need to revise this one as it currently has no maximum).
2012-08-21 00:28:19 +12:00
Eduardo Bart f4cc942c85 Fix some graphics issues with old drivers 2012-08-19 22:38:43 -03:00
Eduardo Bart b349ff2620 Implement reverse otb items table 2012-08-19 18:49:24 -03:00
niczkx 0af783b5cf Fix OTBM saving 2012-08-19 22:30:49 +00:00
Eduardo Bart 1c69379b8d Fix compilation with OpenGL ES 2.0 2012-08-19 11:48:09 -03:00
niczkx 6d039ade67 revert last change (better fix) 2012-08-19 17:27:48 +00:00
niczkx a9fad4751f Fix segfault on exit 2012-08-19 17:20:20 +00:00
niczkx 1ed95b6120 More work on OTBM/OTB/XML 2012-08-19 15:41:03 +00:00
BeniS 8cd8829048 Some more on new skills/stats.
* Fixed updating issue.
* Fixed refreshing issue.
2012-08-19 23:03:44 +12:00
Eduardo Bart fdffa365b9 Oops 2012-08-19 06:51:16 -03:00
Eduardo Bart ad0ed2b1a9 Bind spell functions 2012-08-19 06:46:24 -03:00
BeniS 367955615e Minor fix for recent skill changes. 2012-08-19 20:08:20 +12:00
BeniS 4ce9c921c1 Previous commit and this commit should finish #58 2012-08-19 13:40:04 +12:00
BeniS d237087718 Added new stats to the skills module, fixed minor market error.
* Added Offline Training information.
* Added Regeneration Time information.
* Added Speed information.
* Added base stats/skills information (will show the players increase in a skill e.g. magic level 43 = 40 + 3 bonus from an item).
* Fixed the game feature constants in const.lua.
* Fixed a market error when logging out.
* Added removeTooltip function.
2012-08-19 13:19:43 +12:00
Eduardo Bart 73acc68e50 Fix compilation for ubuntu 2012-08-18 15:53:04 -03:00
Eduardo Bart 31da6dc611 Force usage of boost 1.50.0 2012-08-18 14:53:40 -03:00
Eduardo Bart 5e3882f87a Add libgit2 library, new mingw32 libraries will be uploaded soon 2012-08-18 14:08:05 -03:00
Eduardo Bart 356368ddae Restore minimap saving 2012-08-18 07:34:15 -03:00