EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Spell scriber.. (https://www.eqemulator.org/forums/showthread.php?t=36917)

Nerdgasm 06-04-2013 06:30 PM

Spell scriber..
 
We have custom spells on the server, I looked over this link, and did a search couldn't find exactly what I was looking for, sadly... So I'll explain it, it's probably something simple. :P...

So, instead of changing all the spells in the database I don't want to use to level 255, I want the NPC to scribe certain spells... Example;


Code:

sub EVENT_ITEM
{

        if($platinum == 1)
        {
                quest::scribespell(14);
        }
}

Said script, doesn't work. (14 was changed from Burst of Fire(flame?) to Poison Dart, and since you only get two spells at level 1 on the server and there are actually 9 spells you ACTUALLY obtain at level 1 as a Shaman, doing quest::scribespells(1,1) won't work either... Any information//help on this?

Nerdgasm 06-04-2013 06:36 PM

I guess I could make a scroll, and when you hand him X amount of plat he gives you the scroll for you to memorize, I spose that could be a thing... I just wanted to take the easy way out of things... Lol.

Kingly_Krab 06-04-2013 07:48 PM

Nerdgasm, take a look in the spell_globals table, you can set a required qglobal for certain spells that you don't want to get scribed, it also requires you to set the value in which is required, the name is also nice to put in there so you can modify it later.
Code:

mysql> select * from spell_globals;
+---------+------------+-------------+-------+
| spellid | spell_name | qglobal    | value |
+---------+------------+-------------+-------+
|      1 | Test      | TestQGlobal | 1    |
+---------+------------+-------------+-------+
1 row in set (0.00 sec)


Nerdgasm 06-05-2013 03:42 AM

I hate messing with Globals, I feel like I'm going to break the darn things, I'll stay with scrolls. :).

Thanks though! :D

orionsun6 06-05-2013 01:27 PM

Your server is going to be so epic!! Don't do anything moderately complex because you are scared... if only there was a way to save and restore digital files.

Kingly_Krab 06-05-2013 03:41 PM

There is! You can use Google Drive, click here.

lerxst2112 06-05-2013 05:33 PM

Quote:

Originally Posted by Kingly_Krab (Post 221453)
There is! You can use Google Drive, click here.

Your skill in recognizing sarcasm has been reduced (-1000).

Kingly_Krab 06-05-2013 06:02 PM

Quote:

Originally Posted by Kingly_Krab (Post 221453)
There is! You can use Google Drive, click here.

Quote:

Originally Posted by lerxst2112 (Post 221456)
Your skill in recognizing sarcasm has been reduced (-1000).

Your skill in recognizing sarcasm has been revoked.

lerxst2112 06-05-2013 10:02 PM

Quote:

Originally Posted by Kingly_Krab (Post 221458)
Your skill in recognizing sarcasm has been revoked.

Luckily I backed it up on Google Drive. ;)

Kingly_Krab 06-05-2013 10:37 PM

That's great, haha.


All times are GMT -4. The time now is 08:01 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.