Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2008, 02:57 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

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 {
	quest::scribespells();
}
The hard part about learning skills is easily finding out what the values should be set to. You could probably pull the skill levels from the database into an array, then do a foreach to change all of the skills. I think this would, as a result, give you the skills that you have to normally train, but I'm not 100% sure. On top of that, I'm not sure how/if you can directly query the DB like that with Perl without modifying the source.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #2  
Old 04-24-2008, 01:26 PM
arkinia
Fire Beetle
 
Join Date: Apr 2008
Location: California, USA
Posts: 27
Default

The problem seems...that scribe() puts the spells in a random, jumbled order (maybe by spell ID?)..............
Reply With Quote
  #3  
Old 04-24-2008, 02:14 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Quote:
Originally Posted by arkinia View Post
The problem seems...that scribe() puts the spells in a random, jumbled order (maybe by spell ID?)..............
That is correct. This is a partial dump from one character's spells list (from the profile blob) after using scribespells():
Code:
    [spell_book] => Array
        (
            [1] => 9
            [2] => 12
            [3] => 15
            [4] => 17
            [5] => 31
            [6] => 32
            [7] => 35
            [8] => 36
            [9] => 39
            [10] => 40
            [11] => 42
            [12] => 46
            [13] => 48
            [14] => 49
            [15] => 50
            [16] => 60
            [17] => 61
            [18] => 62
            [19] => 63
            [20] => 64
            [21] => 75
            [22] => 79
            [23] => 86
            [24] => 93
            [25] => 95
            [26] => 96
            [27] => 98
            [28] => 110
            [29] => 111
            [30] => 112
            [31] => 131
            [32] => 132
            [33] => 133
            [34] => 134
            [35] => 144
            [36] => 145
            [37] => 146
            [38] => 147
            [39] => 148
            [40] => 149
            [41] => 150
            [42] => 151
            [43] => 152
            [44] => 153
            [45] => 154
            [46] => 155
            [47] => 156
            [48] => 157
            [49] => 158
            [50] => 159
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #4  
Old 06-29-2008, 06:10 PM
jimbox114
Hill Giant
 
Join Date: Jun 2004
Posts: 231
Default

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?
Reply With Quote
  #5  
Old 06-30-2008, 04:40 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

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.
Reply With Quote
  #6  
Old 06-30-2008, 07:50 PM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

Quote:
Originally Posted by AndMetal View Post
The hard part about learning skills is easily finding out what the values should be set to. You could probably pull the skill levels from the database into an array, then do a foreach to change all of the skills. I think this would, as a result, give you the skills that you have to normally train, but I'm not 100% sure. On top of that, I'm not sure how/if you can directly query the DB like that with Perl without modifying the source.
Yeah, that is pretty much the easiest method I found even if it isn't most optimal. I added this as a quest command as quest::setallskillstomax() for automatically training skills to max available for the given level. Which brings me to my question. Would any of you have a need for that really? I had a skill training npc on my server. If anyone finds it needed, I'll post it.
Reply With Quote
  #7  
Old 06-30-2008, 08:14 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:52 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3