31
Endless Nights' Script Library / Re: ENs - Character ToolBox (Multi Shard/Account)
« on: November 10, 2019, 09:54:55 AM »Version 7.03
Custom Code Now Supported.
You can add your own custom code to be run during each of the scripts functions, gift_pickup, inventory_characters etc. Edit the MyCustom_?? subs at top of the script and place your custom code inside. Be warned you can break the script if your code does not function correctly, the custom code is run right before moving on eg right before character logout. You can easily add additional reporting lines, see the notes in the script on how to.
Usage Example
If for example you wanted the gift pickup report to include each characters weight and alert you if overweight you could add this code inside the sub MyCustom_Gift_PickupCode: [Select]
Thanks yet again for the update - how do you customize the name of the toon created by the script?
sub MyCustom_Gift_Pickup
set !Temp #Weight , / , #MaxWeight ; No spaces between values
gosub EN_AppendToStringList Report LAST Weight: !temp
if #Weight > #MaxWeight
gosub EN_AppendToStringList Report LAST **** CHARACTER OVERWEIGHT ****
Return
The Gift Pickup report when then look similar to below:Code: [Select]Gift Pickup 11/05/19 10:51:40
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++++++++++++++++++++++++++++++++++++++++++++++++++++++
Account: Ghosts_Secret_Account
++++++++++++++++++++++++++++++++++++++++++++++++++++++
Account: 1 Shard: Atlantic Character: 1 of 7 - A Ghost Weight: 153/477
Account: 1 Shard: LakeSuperior Character: 1 of 7 - The Ghost Weight: 114/260
Account: 1 Shard: GreatLakes Character: 1 of 7 - A Fat Ghost Weight: 400/376 *** CHARACTER OVERWEIGHT ***
- Also added weight/MaxWeight to character inventory report.
Enjoy..
how do you set up the script to name the created characters something i choose?