EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Code for npc_profile support (and npc procs) for 3.12 (https://www.eqemulator.org/forums/showthread.php?t=4079)

quester 11-27-2002 12:16 PM

Code for npc_profile support (and npc procs) for 3.12
 
Uggg.. well I had all this typed out, diffs added and everything.. but its too big to allow me to post it.

So give me a few to figure out how to get it out to you all.

quester 11-27-2002 12:39 PM

*NOTE*: These changes are made against 3.12.. I havent had the chance to upgrade to 3.13 yet, so be aware of this when applying them!

Ok attached below are the diffs for this.. I hope.

DATABASE CHANGES:
This entails a fairly in depth change to your database. If you are uncomfortable making these changes, then wait for the converter to be finished.

Create a new table named "npc_profiles":
Code:

                                        MakeAnyLenString(&query, "CREATE TABLE npc_profiles ("
                                        // start columns               
                                        "id MEDIUMINT(6) NOT NULL,"
                                        "name VARCHAR(255) NOT NULL,"
                                        "str VARCHAR(15) NOT NULL,"
                                        "sta VARCHAR(15) NOT NULL,"
                                        "agi VARCHAR(15) NOT NULL,"
                                        "dex VARCHAR(15) NOT NULL,"
                                        "int VARCHAR(15) NOT NULL,"
                                        "wis VARCHAR(15) NOT NULL,"
                                        "cha VARCHAR(15) NOT NULL,"
                                        "mr VARCHAR(15) NOT NULL,"
                                        "fr VARCHAR(15) NOT NULL,"
                                        "cr VARCHAR(15) NOT NULL,"
                                        "pr VARCHAR(15) NOT NULL,"
                                        "dr VARCHAR(15) NOT NULL,"
                                        "hp VARCHAR(15) NOT NULL,"
                                        "ac VARCHAR(15) NOT NULL,"
                                        "hp_regen TINYINT UNSIGNED NOT NULL,"
                                        "mana_regen TINYINT UNSIGNED NOT NULL,"
                                        "walk_speed TINYINT UNSIGNED NOT NULL,"
                                        "run_speed TINYINT UNSIGNED NOT NULL,"
                                        "proc SMALLINT UNSIGNED,"
                                        "spells VARCHAR(100)"
                                        // end columns
                                        ")");

In your npc_types table, add the column "npc_profile", MEDIUMINT(6) NOT NULL

In your npc_types table, you can remove any overlapping columns.

quester 11-27-2002 12:40 PM

What is the point of all this?!

http://forums.eqemu.net/showthread.p...;threadid=3980


All times are GMT -4. The time now is 03:21 AM.

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