Give another class's spell to a character?
So say I am a Mage and I want to give myself Snare, is that hard to do? I can edit the db and I can find character_spells, but not sure what to do from there.
|
It is pretty easily, actually.
First of all, I'd recommend trying to edit it in EOC (on the homepage under resources). It gives a nice GUI that makes editing basically everything much easier. If you want to modify it in the database yourself, find the spell id that you want to modify in spells_new and set the classes column for the class you want to give the spell to the level you want them to obtain it. So, if you want to give a mage a spell at level 5, set classes13 to 5 in spells_new for that spell id. That will allow mages to use that spell on the server. You will likely have to update your client's spells_us file as well so that the client is aware of the change. I believe there are scripts to export that already. Finally, if you're planning on using scrolls to learn spells, I believe you may have to edit the scroll to allow it to be usable by mages as well. |
Thanks that helps a lot! Never even heard of that EOC, sounds promising. I would like to do more than just add a spell, I'd like to add more spell gems and make a custom class basically, but this is the first step :)
|
auto giving players mnemonic retention on their first login on event connect is a good way to do your spell gem idea
|
Thanks! I was trying to work out how to do that so went the mnemonic retention route too. I just couldn't figure out how to give it for free :D I tried to copy Origin but it wasn't working. I managed to give myself a new spell though :D Editting the DB was easy, but I had to trial and error the spells_us file which took a while. Also once I finally got it in the book, then memmed, and finally able to be cast, it crashed the game :D But I'll figure it out, I am gonna set up that EOC because it sounds far better. This is fun!
|
I'll post the code for you when I get off work in a few hours
|
Hi, GreenManalishi.
I was playing around with this idea as well. Check out this post. http://www.eqemulator.org/forums/showthread.php?t=40603 It will set the classes() to have the spell set for all to the level that a class can first get the spell. For example cleric cHeal at 39 would be available to all classes at 39. I was unable to get to to work but was unaware about modifying the spell_us file. I will try again with that information. Splose, I am also interesting in that code for the extra spell slot, thanks in advance. |
Depending on how many spell gems you want to give.
quests/global/global_player.pl Code:
sub EVENT_CONNECT { |
Thanks, Splose.
I think I get the first part, what does this $client->SetGlobal("SpellGem", 1, 5, "F"); do? at level 1, 5 and 15? |
Quote:
|
Thanks! That helps a lot.
|
Quote:
Code:
sub EVENT_CONNECT { |
This should be fine. Another thing to note is that anything with a "#" before it is commented out. So you will have to comment out the other 3 ranks if you want to give all 4 before any character is hit by this code.
Once it is hit once by this code it won't be hit again by it due to the flag. You will have to go into your quest_globals db table and delete the specific global for your charid if you need it to be ran multiple times. Code:
sub EVENT_CONNECT { |
Thank you :) <3
|
All times are GMT -4. The time now is 11:21 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.