Skip to content

Conversation

@hemagx
Copy link
Contributor

@hemagx hemagx commented May 7, 2019

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

@HerculesWSAPI
Copy link
Contributor

This change is Reviewable

@4144
Copy link
Contributor

4144 commented May 7, 2019

what will happened if other script already running and rental script will be run?

@hemagx
Copy link
Contributor Author

hemagx commented May 11, 2019

@4144 Hmm, good point. we can probably set an sd->npc_id(Not sure if the variable name correct), check, since rentals on regular basis checked a few seconds extra of renting is not a problem.
The current script engine can run different scripts. but not NPCs, you can for example consume items during NPC dialog etc.

@hemagx hemagx force-pushed the dehardcoded_rentrals branch from 450104b to d35f03e Compare May 11, 2019 13:03
@4144
Copy link
Contributor

4144 commented May 11, 2019

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

@hemagx
Copy link
Contributor Author

hemagx commented May 16, 2019

@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]>
…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]>
@hemagx hemagx force-pushed the dehardcoded_rentrals branch from d35f03e to ad19056 Compare September 22, 2019 21:53
@MishimaHaruna MishimaHaruna merged commit d6dd1e7 into HerculesWS:master Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants