[Lua+SQL] Multi-NPC
+5
FailZorD
Lewis
Broken.
bajas2
Blachex
9 posters
Twist Gaming :: Gaming and Server Development :: MMORPGs Emulation & Chat :: World of Warcraft :: Emulation :: Releases
Page 1 of 1
[Lua+SQL] Multi-NPC
Multi-NPC
========================================================================
Features
-Horde/Alliance Mall Locations
-Main Citys-
-Leveling Road-
-VIP Lounge - Requires VIP Key-
-World Locations-
-Buff Up-
-Change the Weather (clientside)-
-Max All Skills-
-Reset Talent Points-
-Remove Rez Sickness
========================================================================
Screenshoot
========================================================================
How To Setup
Step 1 : Get the lua script from here ----> [You must be registered and logged in to see this link.]
Copy it in notepad then save it as .lua then add it in scripts folder found in your server repack.
Step 2 : Copy again the next .sql script in notepad and save it as .sql . Then run your server and execute this sql file (using HeidiSQL : Double click on the .sql file , login to database then press F9 to execute the file)
========================================================================
Features
-Horde/Alliance Mall Locations
-Main Citys-
-Leveling Road-
-VIP Lounge - Requires VIP Key-
-World Locations-
-Buff Up-
-Change the Weather (clientside)-
-Max All Skills-
-Reset Talent Points-
-Remove Rez Sickness
========================================================================
Screenshoot
========================================================================
How To Setup
Step 1 : Get the lua script from here ----> [You must be registered and logged in to see this link.]
Copy it in notepad then save it as .lua then add it in scripts folder found in your server repack.
Step 2 : Copy again the next .sql script in notepad and save it as .sql . Then run your server and execute this sql file (using HeidiSQL : Double click on the .sql file , login to database then press F9 to execute the file)
- Code:
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `killcredit1`, `killcredit2`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `leader`)
values ('99099', "Multi NPC", "", '', '0', '10', '0', '3', '0', '0', ' 5488', '0', '0', '0', '1', '1', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`, `summonguard`)
values ('99099', '255', '255', '7', '20000000', '30000000', '10000000', '1', '1', '1999', '0', '222222', '222222', '0', '0', '0', '0', '600000', '1000000', '0', '0', '0', '0', '0', '0', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0', '1');
Execute this SQL for the VIP Location Key (Only with this key you will can go to VIP Location)
- Code:
INSERT INTO `items` VALUES (70016, 13, 0, -1, 'V.I.P. Lounge Key', 22477, 5, 64, 0, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 3366, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Grants entrance into the V.I.P. Lounge. Don't get too hammered.', 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0);
Step 3 : Restart your server, login in game and spawn the NPC using the next command in chat .npc spawn 99099
NOTE : The lua is not mine , only the sql and the tutorial .
Last edited by Blachex on Tue Aug 03, 2010 1:42 am; edited 2 times in total
bajas2- Power User (Special)
- Posts : 184
Location : Norway
Reputation : 29
Warning :
Re: [Lua+SQL] Multi-NPC
Thanks for posting this BHX, I will use this.
+rep
+rep
Broken.- Member
- Posts : 37
Location : Sweden
Reputation : 3
Re: [Lua+SQL] Multi-NPC
Ok, I'm guessing this is for Arcemu?
I'm looking one for Mangos - Scriptdev2. I've been on the forums, but I need a unique one
Nice job again blach.
I'm looking one for Mangos - Scriptdev2. I've been on the forums, but I need a unique one
Nice job again blach.
bajas2- Power User (Special)
- Posts : 184
Location : Norway
Reputation : 29
Warning :
Re: [Lua+SQL] Multi-NPC
I get an error when I go to execute "INSERT INTO `items` VALUES (70016, 13, 0, -1, 'V.I.P. Lounge Key', 22477, 5, 64, 0, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 3366, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Grants entrance into the V.I.P. Lounge. Don't get too hammered.', 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0);" The error reads "SQL error (1064): You have an error in you SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't get too hammered.', 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0' at line one. Please help
axelminion- Member
- Posts : 6
Reputation : 0
Re: [Lua+SQL] Multi-NPC
Did you click the world database before you executed?
bajas2- Power User (Special)
- Posts : 184
Location : Norway
Reputation : 29
Warning :
Re: [Lua+SQL] Multi-NPC
Your database is either outdated or has a newer vesion which is why it does not allow you to execute it. - You will need to update your database - If you do not know how to update a database, do not attempt as it can mess up your server - or enter the item values in manually or re-create the item.
Re: [Lua+SQL] Multi-NPC
I´m from sweden and not the best on english but can somone please show me how to execute the stuff and whats the HeidiSQL ?
zainudini- Member
- Posts : 26
Reputation : 0
Re: [Lua+SQL] Multi-NPC
zainudini wrote:I´m from sweden and not the best on english but can somone please show me how to execute the stuff and whats the HeidiSQL ?
HeidiSQL is a program that you can control the database of your server on it , you can make accounts , and fix alot of things. About stuff what exalcy you wanna know?
Last edited by giorgos on Sun Aug 22, 2010 5:47 pm; edited 1 time in total
Re: [Lua+SQL] Multi-NPC
if somone can make a video how I execute don´t under stand what he means
zainudini- Member
- Posts : 26
Reputation : 0
Re: [Lua+SQL] Multi-NPC
Fixed!
Last edited by erikhelenius on Sun Aug 22, 2010 10:38 pm; edited 1 time in total
erikhelenius- Member
- Posts : 7
Reputation : 0
Warning :
Twist Gaming :: Gaming and Server Development :: MMORPGs Emulation & Chat :: World of Warcraft :: Emulation :: Releases
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum