Commit graph

118 commits

Author SHA1 Message Date
Admin-Yukiko
2fe96de2fd
Change "logical" to "bitwise". (#258)
* Change name of "logical" operators AND, OR and XOR to "bitwise".

Co-authored-by: Admin-Yukiko <hopelivesproject@gmail.com>
Co-authored-by: Eric Swanson <eric.the.unicorn@gmail.com>
2020-09-05 10:58:53 +02:00
Fernando Rozenblit
4f3da669aa
Refactor suspicious activity warnings and suppress B1 overflow warnings (#249)
* Refactored the reporting of suspicious activities
* Only show warnings about B1 packet overflow if ShowWarningGump is enabled
2020-08-29 09:39:18 +02:00
Fernando Rozenblit
70b9c1305c
Add maximum cmdlevel to polsys::ListTextCommands() (#231)
The default, -1, will return all commands as before. No need for a version bump because the method checks the number of arguments.
2020-08-19 07:19:30 +02:00
Fernando Rozenblit
266bff30c2
item.hitscript and item.onhitscript will now return the full spec for the script. Added breaking-changes.txt. (#215)
* Return the full spec for item.hitscript and item.onhitscript. The relative name wasn't very helpful.

* Added breaking changes.txt. We can add more breaking changes later.

* Added ScriptDef::qualifiedname(). Returns the full spec necessary to call the script ("::scriptname" or ":pkgname:scriptname"). Returns an empty string if there is no script.
2020-08-13 11:29:07 +02:00
turleypol
fe301c82ea
Misc test preparation improvements and fixes (#196)
* uodir parameter for uoconvert tiles/landtiles/multis
limit decay sleeptime to 500ms
exit_code cannot be "fixed" with a later call
2020-08-09 15:10:52 +02:00
Fernando Rozenblit
13af52b7a7
Merge pull request #182 from AsYlum-/polcore-additional-properties
Two new members for polcore()
2020-08-04 15:16:19 +02:00
AsY!um-
a48490034d Added corechanges.xml 2020-08-04 14:48:41 +02:00
AsY!um-
673d991d8a Added two new members to polcore()
- polcore().last_character_serial returns last character serial assigned by core
- polcore().last_item_serial returns last item serial assigned by core.
2020-08-04 14:14:01 +02:00
Jonathan Morland-Barrett
fda0f1285f
Update ConfigFiles.xml (#181)
Update light.cfg to contain correct element name LightLevel
2020-08-04 19:59:58 +08:00
Kevin Eady
5bbc53ab6c
Add exit_code to uo::Shutdown() (#176)
* Add exit_code to uo::Shutdown()

Co-authored-by: Eric Swanson <eric.the.unicorn@gmail.com>
2020-08-03 20:30:27 +02:00
Eric Swanson
2ee50ffa8b Removed "verbose" boolean; check compilercfg.VerbosityLevel > 0 instead. 2020-08-03 04:17:31 -07:00
Eric Swanson
8b98737829 Move Compiler.verbosity_level_ to CompilerConfig.VerbosityLevel 2020-08-03 00:31:27 -07:00
turleypol
ece2025c57 added docs for checkskill change 2020-08-01 10:00:08 +02:00
Fernando Rozenblit
d1689476b4
Items can now be created with an assigned quality from an itemdescriptor (#161)
* Fix bug where the quality property couldn't be changed in the ItemDescriptor for Items, only for Equipment.

* Removed the distinction between Item and Equipment quality. Now every quality comes from the dynprop in Item. I haven't benchmarked memory use nor performance but it should have a minimal difference (8-16 bytes more per equipment).

* Items with different quality will no longer stack
2020-07-31 23:27:07 +02:00
Kevin Eady
c10e724ea1 Ensure textentry_uoemod is not overwritten
Fixes: #163
2020-07-28 19:08:14 +02:00
GIB
513f36a26b Fix luck mod being assigned to luck from itemdesc files
Fixed swing speed increase being printed twice when saving items.
Fixed spelling mistake in docs.
2020-07-17 21:22:16 +08:00
GIB
a7ba11cce8 - Fix up docs.
- Change modifier calculation to correctly use double.
- Change rounding calculation as per Turley's suggestion.
2020-07-16 20:13:51 +08:00
GIB
96f7546fde Update docs to include Swing Speed Increase entries. 2020-07-16 20:04:21 +08:00
GIB
9d15f3ef45 Merge conflicts for rebase 2020-07-16 20:04:11 +08:00
GIB
395b17b583 Merge branch 'Swing_Speed_Increase' of https://github.com/polserver/polserver into Swing_Speed_Increase
# Conflicts:
#	pol-core/bscript/parser.cpp
#	pol-core/doc/core-changes.txt
2020-07-16 20:01:59 +08:00
GIB
86d54f0cae Update docs to include Swing Speed Increase entries. 2020-06-06 22:03:53 +08:00
turleypol
776c5e2928 changed target link location from object header to corresponding container 2020-05-26 07:52:44 +02:00
turleypol
455595055a Changed objref overview to use a svg image generated via graphviz 2020-05-25 20:27:31 +02:00
Eric Swanson
1c3a96d2d6 Remove 'declare' keyword 2020-05-07 00:18:10 -07:00
GIB
6d575ea752 Add documented explaination of Elvis Operator to Racalacs EScript Guide. 2020-05-01 09:14:53 +08:00
Eric Swanson
714e6a5b6a Fix docs format
add a structure test
Add more details (including a real example) to docs
2020-04-29 12:03:30 -07:00
Eric Swanson
4531b8daf0 Add docs 2020-04-29 03:53:37 -07:00
GIB
9b8fe4e33a Fix change log wording so its not misleading. 2020-04-23 20:22:30 +08:00
GIB
d5b578c896 Added ShowWarningCursorSequence to pol.cfg to allow players to silence cursor out of sequence errors. - Requested by Tercio 2020-04-18 22:38:53 +08:00
Jonathan Morland-Barrett
2d3b9e18c8
Update configfiles.xml
Fixed missing </explain> cos Kevin doesn't validate his XML afterwards.
2020-03-28 21:27:42 +08:00
Kevin Eady
ae81a6fa7f fix "assign in condition" warning; formatting 2020-03-18 22:19:10 +01:00
Kevin Eady
2f0536a0c4 add EnableWorldMapPackets docs 2020-03-04 19:55:53 +01:00
Kevin Eady
12d6186d10
Script option enhancements (#118)
* Fix SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES

* Add SCRIPTOPT_SURVIVE_ATTACHED_DISCONNECT

* wip beginning work on templatization

* Use PolModule in pol-specific modules

* wip, creating PolModule with getXYZParam

* wip 1, moving getXYZ to UOExecutor

* compilable with PolObjectImp / PolApplicObj

* add type guard

* wip, change signatures

change signatures of script_method, script_method_id, and
custom_script_method

* compilable (windows)

* linux fixes

* namespace fixes

* remove uoexhelp

* formatting

* compilable

- move can_access_offline_mobiles back to uoexec
- add guildscrobj and partyscrobj sources
- move EGuildRefObjImp and EPartyRefObjImp
- wip, implement asUOExec
- formatting uoexec.cpp,.h

* finish uoexec() helper

* some cleanup
2020-02-08 09:21:35 +01:00
Kevin Eady
1b25a7cf45 Update core-changes 2020-01-20 12:04:30 +01:00
GIB
396e673c36 Remove commented out old returns.
Updated docs to reflect correct return values.
2020-01-18 20:47:10 +08:00
Kevin Eady
0b2da542a5 Modify docs 2020-01-12 20:51:05 +01:00
turleypol
c42e714524 updated docs 2020-01-04 21:25:31 +01:00
Jonathan Morland-Barrett
e66eac2b71
AddAmount returns ItemRef on success. (#114)
**BREAKING CHANGE**
Whilst the break may be minor for some its still worth checking if you evaluate the response from AddAmount anywhere in your scripts.
If you compare it to 1 (int) you need to update this as the function no longer returns an integer on success.
* Update AddAmount() function from uo.em to return the original itemref on a successful addition of amount.
2020-01-04 19:51:28 +08:00
Kevin Eady
26601f97f2 Add dummy packet handler for 0xFA and 0xFB 2019-12-29 11:42:03 +01:00
turleypol
e6edceef65 cleanup of debug prints 2019-12-28 17:56:32 +01:00
turleypol
4bd8c31a3c removed introduced tabs 2019-12-15 11:53:09 +01:00
turleypol
5a570be1f1 removed scriptparam house pats for customhousecommit. Added docs for customhouse changes 2019-12-15 09:39:39 +01:00
turleypol
c61b877caa
Healthbarfix (#105)
* fixed poison/invul pkt for newer clients

* updated corechanges
2019-12-12 16:04:02 +01:00
Admin-Yukiko
21d4921781 A typo fix and a little formatting changes. (#104)
* My first attempt at implementing 'fame' and 'karma' as character members. I am unable to assign values yet but the Core compiles without errors.

* With help from Nando I fixed the issue. I can now read and write the fame and karma members. I want to verify I entered the code in the prefered "get member" function but it WORKS!

* Commented out all my changes until I can learn how to make fame and karma store internally as a struct etc.

* Messed something up. Even the non struct fame and karma did not work. Reverting back to POL before any of my changes. No fame, no karma.

* Changed: pol.cfg settings HideWarningGump and HideWarningItem to ShowWarningGump and ShowWarningItem. This positive logic is consistent with all other console output settings.
Default is zero (0). The output will not be displayed unless set to one (1).

* Forgot to run buildcorechanges.py prior to commiting the previous commit. This rectifies that.

* Reverting my Dev branch to current polserver master.

* Attempt number 2:
Changed: pol.cfg settings HideWarningGump and HideWarningItem to ShowWarningGump and ShowWarningItem.
This positive logic is consistent with all other console output settings.
Default is zero (0). The output will not be displayed unless set to one (1).

* Set default behaviour for ShowWarningGump and ShowWarningItem to display warnings (1).

* Added ShowWarningGump and ShowWarningItem settings to pol.cfg.example.

* Fixed a typo and did minor formatting changes.
2019-11-13 09:32:55 +01:00
Admin-Yukiko
323f9f18a2
Resubit-Adding new operators and a little reformatting. 2019-11-11 08:36:49 +00:00
turleypol
d3a300aef9 added missing objreference documentation eg. complete xml objects. 2019-11-10 11:29:19 +01:00
turleypol
59c816cab1 added ecompile.cfg and cmdline flag to trigger error when include
directives use the wrong capitalization. The existing warning will now
lead to an error when warnings get treated as errors.
2019-10-07 21:01:26 +02:00
turleypol
9a43a5f045 added docs 2019-10-05 14:11:01 +02:00
turleypol
1b6594e5ad fixed min/max damage visualization in the statusbar 2019-10-03 14:41:53 +02:00
Fernando Rozenblit
818c06af96 GetProcess(-1) will now return the script pid. GetProcess(0) will not find any script, as before. For this change, script pids had to be constrained to the range of valid signed ints. Please update your .em's and recompile. 2019-09-30 23:49:31 +02:00