Commit Graph

1701 Commits

Author SHA1 Message Date
Eduardo Bart 9d5abb0243 Fix minor issues in item drawing
* Add some utilities functions
2013-01-08 17:40:25 -02:00
Eduardo Bart 122577a916 Just rename some files
* Fix a server ping issue
2013-01-08 16:32:05 -02:00
BeniS 8d07f8eaf6 New sexy 'move stackable item' window! 2013-01-09 06:59:03 +13:00
BeniS a1a8d28f5c Auto walker update must be done from C++ not lua due to bot protection.
* Moved the auto walk checker to the source.
* Implemented a temporary fix for findPath method (will now choose other tiles over null tiles).
2013-01-09 04:32:37 +13:00
Ben Dol 493202afcf Merge pull request #176 from Quintinon/master
Minor Tweaks to UI and Fixed an error in NPC Trade
2013-01-08 03:47:38 -08:00
Jeffrey 52f0b21ea6 Fixed error in the NPC Trade system error message
item[1] was user data, so the error message now prints out the item
name.
2013-01-08 00:30:33 -06:00
Jeffrey a1f5a88fe7 Minor Edits to UIMiniWindow
Allow for a double click on the Top Bar of a UIMiniWindow to function
the same as pessing the minimize/maximize button.
2013-01-07 23:09:00 -06:00
Jeffrey 9610106088 Merge remote-tracking branch 'upstream/master'
Conflicts:
	modules/game_viplist/viplist.lua
2013-01-07 21:23:14 -06:00
BeniS 702fce0be8 Fixed #169 Thanks Quintinon and #170! Also some other fixes:
* Fixed calling local in an if statement where it is not required (lol).
* Fixed an issue with the auto walk checker.
2013-01-08 15:55:41 +13:00
Jeffrey 5921c8e420 Fixed Exit button not being created
It will now show/hide appropriately instead of not being created and
thus throwing errors.
2013-01-07 20:22:32 -06:00
Jeffrey 4c0c6e635e Fix Vip List sorting
Fixes Vip list sorting issues for both alphabetical sorting and
online/offline sorting. Fixes Issue #169
Tested in 8.61
2013-01-07 19:38:23 -06:00
BeniS 3ed2eeb104 Oops fixing this from last commit. 2013-01-08 06:17:58 +13:00
BeniS bb139955dc More fixes and edits!
* Fixed a bug with client_exit module button appearing on full reload.
* Fixed the battle window to work properly now (left click: attack, right click: menu).
* Added auto walk checker for more accurate aut walking:
  - It will always find the path now, except in rare occasions gets stuck running back and forward
  - Re-calculates path every 10 steps and also when you hit an object that cancels your step.
  - Right now this is just a temporary method.
  - Cancels the checker when you move or press escape (has to be done client-side).
* Added a new setting to UIComboBox class 'mouse-scroll' to enable/disable mouse wheel scrolling.
* Added support for no ping in cooldowns.
* Added missing PlayerStates (hungry and bleeding).
2013-01-08 06:17:01 +13:00
BeniS fddbafebd3 Fixed #165, Fine tune fixes!
* Fixed an issue with the cooldown timing.
* Fixed issue with 'right click' using items under players.
* Some changes to the minimap control (ctrl + mouse wheel to
  change floors and tweaked the zoom/move speeds).
* Fixed some bugs in the trade module.
* Added new Spells table for spell related functions
  (Also added getSpellByName and getSpellByWords).
* Fixed an issue with follow/attack cancelling (wasn't calling
  onFollowChanged for updates in battle, etc).
2013-01-07 04:04:49 +13:00
BeniS 3fa5993177 Changed scrollbar style, and some other changes:
* Changed the scrollbar style to look a bit nicer.
* Fixed a typo in the EventDispatcher class.
* Added PlayerStates to player.lua.
* Minor tweak to console tab spacing.
* Add unbinding key 'Ctrl+Shift+D' in the options.
2013-01-05 20:57:31 +13:00
BeniS ca46b5033e More progress on cipserver login for pv973 and a few fixes.
* Fixed the "options" module hotkey (changed boost walker to Ctrl+Shift+D).
* Fixed a small issue with UIMiniWindow:setup() function (was setting parent before its pos).
* Pic signature has changed for cipsoft client.
* Fixed 'client type' byte position in the login packet.
* Changed the ping function to execute every 4 seconds rather than 2.
* Changed some protocolgame for pv973 support.
2013-01-04 11:42:02 +13:00
BeniS c47641d7e1 Merge branch 'master' of https://github.com/edubart/otclient 2013-01-03 21:25:00 +13:00
BeniS fc55c6b524 Interface edits, additions, and fixes:
* Added a new module for exiting the client (client_exit).
* Added tab spacing to the UITabBar class.
* Added tab popup menus for things like channel tabs.
* Impelemented channel tab popup menus (still need to be finished).
* Fixed UITabBar tab draging (will now change after dragged half way over the
  next tab, not 2 pixels).
* Fixes to the client_options module.
* Edited some UI settings.
* Changed game_cooldown and game_spelllist menu button icons.
* Fixed some typos.
2013-01-03 21:24:07 +13:00
Henrique Santiago 2aeec22ef8 Fix items draw inside uiitem 2013-01-03 04:24:07 -02:00
BeniS 644241badb Fixed issue #160 and an issue with entergame module. 2013-01-01 05:34:15 +13:00
BeniS 8cdab5c814 Tested and fixed #155
* Also fixed a typo in the game_tibiafiles module.
2012-12-31 00:32:09 +13:00
BeniS fcdf2286b6 Fix issue #155 (only tested on pv973)
Please let me know if pv870+ works now.
Note:
 * pv = protocol version,
 * cv = client version
For people wondering.
2012-12-30 20:53:24 +13:00
BeniS abf0ee4303 More walk control optimization and fixes:
* Finished off the walking control optimization! (Should be smooth controlling now).
* Fixed issue #151
* Fixed an issue with the character list.
* Fixed a bug in the g_keyboard.isKeySetPressed function.
2012-12-30 19:14:49 +13:00
BeniS 1782de7336 Game control precision edits and many other fixes:
* Updated the walking(mouse/keys) control to be a lot more responsive/smooth!
* Updated creature diagonal steps to animate faster (due to demand).
* Added a warning popup for boost walker option in cipsoft servers.
* Added KeyUp event controls in the g_keyboard class.
* Fixed an issue with the minimap not reconfiguring.
* Fixed a bug with creature lights drawing properly.
* Fixed refreshContainer method.
* Some layout edits.
* Some minor typo fixes.

TODO:
* Add walk event stack.
* Test new walking edits extensively.
* Finish pending state feature.
2012-12-30 06:41:14 +13:00
BeniS 8961f4dfd4 Some fixes and design tweaks:
* Fixed the game_viplist module to work with the latest vip protocols.
* Fixed a referencing error in the game_cooldown module
* Started editing the design of the popupmenu (needs more work).
2012-12-29 05:15:57 +13:00
BeniS 034c768994 Compatibility fix to cv981 new speed law.
* Also a minor fix to setting client version.
2012-12-29 02:34:36 +13:00
BeniS 44e428bccb Progress updating to cv981/pv973:
* Implemented the new client AND protocol version methods.
* Implemented the new speed laws added in cv980 (http://www.tibia.com/news/?subtopic=newsarchive&id=2251).
* Added more missing bytea to login packets (client version/type and some unknown bytes).
* Fixed the InputMessage::getDouble method.
* Cleaned up some of the const values.
* Started on the pending state features.

TODO:
* Pending game state feature.
* Ensure version compatibility hasn't been compromised.
2012-12-29 00:05:45 +13:00
BeniS 619285069c Started updating to 9.8+ features, not yet finished (unsafe version).
Need to finish:
* Pending login state
* New creature speed changes
* Vip state displays

Fixed:
* Creature light
* Missing lua constants

If someone can finish this off that would be good,
I will be busy for a while :)
2012-12-27 02:56:06 +13:00
Samuel a86449dea9 Fix to minimap navigating
Navigating now uses left mouse button (right mouse button for map mark
menu)
2012-12-15 13:26:27 +01:00
Eduardo Bart ec8d50497b Fix http://otland.net/f494/otclient-error-171679/ 2012-12-08 16:14:10 -02:00
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 b806b57628 Fix issue #143 2012-12-01 20:15:22 -02: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 bce8e90ede Next version will be 0.5.6 2012-10-24 19:07:52 -02: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 7114946278 Fix issue #112 2012-10-23 17:15:59 -02:00