Autoscribe spells/skills?
I played on a server that auto-scribed spells and learned skills for you. I find this takes part of the "job" out of the game. Any idea on how I can do this? I tried searched the forums and browsed through 100's of posts...Any advice would be appreciated.
|
These are probably what you're looking for:
Source: Wiki Quote:
|
We do this on Jest Server and the code is still considered "in testing" which is why we have yet to release it to the community.
We also have code to auto-train discs when you level but currently have it turned off in our compiled binaries. We will probably leave the autotrain of discs off and (if the autotrain code for spells passes muster) leave spells training on, because on our server, we want to help casters a bit more since melee in the emu is way out of whack in terms of power compared to casters. Our users like it when spells are just given to them where they stand, when they level, automatically. We on Jest do not want our players hunting down spells. To me, the difficulty of getting level 65+ spells made EQ Live unplayable for casual players, as only those in raid guilds had a chance for many group spells and such. On Jest, we have players chasing down other goodies instead ;) |
gern: would you mind sharing, or divulging more of where to edit the source code? I looked a bit and didn't see what code gets called on level. You can PM me if you don't want to post the code publicly. Any help would be greatly appreciated!
|
One way might be to look into Player Quests and use the EVENT_LEVEL_UP event to trigger some spell additions.
From the changelog announcing player quests: KLS: Added player quests, player quests are quests designed to be attached to player processes such as zoning and clicking objects. KLS: Player quests are loaded as either 'quests/zonename/player.pl' or as a template in 'quests/template/player.pl' KLS: Player quests will export qglobals the client should be able to see and the following events are available for player quests: EVENT_TIMER with var $timer EVENT_CLICKDOOR with var $doorid EVENT_LOOT with vars $looted_id and $looted_charges EVENT_ZONE with var $target_zone_id EVENT_ENTERZONE with no special var EVENT_LEVEL_UP with no special var And here is the best Wiki documentation on the topic: Link Given the player quest feature and the functions that AndMetal pointed out, you should be able to get close to the functionality you're describing. |
Just as an example, I would assume this would scribe all of your spells to the current level when you level up:
quests/template/player.pl Code:
sub EVENT_LEVEL_UP { |
The problem seems...that scribe() puts the spells in a random, jumbled order (maybe by spell ID?)..............
|
Quote:
Code:
[spell_book] => Array |
Would it be possible to use a quest such as this but still limit what spells the player gets? Reason I ask is on my server I would like to disable the use of the druid/wizard ports for the time being that go to Odus, Kunark, Velious, etc.
Only thing I can think of would be to either somehow edit the spells themselves to not port there, or perhaps have the quest unscribe the spell id's after it scribes all quests? |
Might be easier just to limit zone-ins to those zones to those with GM status. Let 'em scribe the spells, just not be able to use them until you open the zones up.
|
Quote:
|
I try to urge anyone who creates custom or new code to post it in the custom or server code submission threads.
Any code, no matter how small, could be very useful to people when they need it :D |
All times are GMT -4. The time now is 07:54 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.