-
Notifications
You must be signed in to change notification settings - Fork 772
Dehardcode Rental Expire/Renting item checks #2462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
what will happened if other script already running and rental script will be run? |
|
@4144 |
450104b to
d35f03e
Compare
|
i mean if you do attach to player, it will terminate previous script. but i not sure is you attaching script to player or run in deattached |
|
@4144 Item scripts works in attached mode, yet it can still be used while talking/executing NPC perfectly fine. |
…nges - OnRentalStartScript triggered when a rental item is added to inventory - OnRentalEndScript triggered when a rental period end/expire of the item Related HerculesWS#140 Signed-off-by: Ibrahim Zidan <[email protected]>
…font Signed-off-by: Ibrahim Zidan <[email protected]>
…ript field in item database for those items instead Fixes HerculesWS#140 Signed-off-by: Ibrahim Zidan <[email protected]>
Signed-off-by: Ibrahim Zidan <[email protected]>
d35f03e to
ad19056
Compare
Pull Request Prelude
Changes Proposed
Implemented new script fields in item db executes when item is rented and when item rent expires
Implemented a new script command getfont() gets the current player font id
Fixed hardcoded checks for rental items in source
Issues addressed:
#140