• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SHARE] Permanent Morph & Scale System

Tommy

Founder
nice :D , can you provide me please the name or the teleport in that zone used in your video ?

It is in Ahn'Qiraj (AQ) in Silithus. It isn't in the raid dungeon, but around it. I used to have a leveling place there when I had my server 4 years ago. XD

Teleport location is in this screenshot below:

inrt.png
 

Tommy

Founder

JoshCarter

Respected Member
I was just pointing it out, couldn't care about what is updated now considering it isn't that hard at all to do this. :p

I can agree with that, now that I know how to do it. Was a learning process for me though... so it's kinda ugly. Nice to see someone thought enough of it to post it on other sights and share it about.
 

gurch

Enthusiast
i've added this to my server, everything looks to be working fine, i morph to another creature, then my worldserver crashes and says
Code:
(worldserver-daemon) ready...
[1146] Table 'characters.character_morph' doesn't exist
Your database structure is not up to date. Please make sure you've executed all queries in the sql/updates folders.
I updated these 2-3 months ago when i setup my server and havnt had any issues like this before. I copied everything from my server to my laptop, tried to recreate the issue and got the same thing.. I done all of the updates in the sql/updates folder and now the worldserver doesnt even start?
Im using TDB_full_335.52_2013_07_17.7z (from trinitycore > downloads)
I just used the 2 files on the github link npc_morpher.cpp & npc_morpher.sql NOT the PermaMorphScale.patch.. Does this need to be done aswel as the other 2?
 
Last edited:

Tommy

Founder
i've added this to my server, everything looks to be working fine, i morph to another creature, then my worldserver crashes and says
Code:
(worldserver-daemon) ready...
[1146] Table 'characters.character_morph' doesn't exist
Your database structure is not up to date. Please make sure you've executed all queries in the sql/updates folders.
I updated these 2-3 months ago when i setup my server and havnt had any issues like this before. I copied everything from my server to my laptop, tried to recreate the issue and got the same thing.. I done all of the updates in the sql/updates folder and now the worldserver doesnt even start?
Im using TDB_full_335.52_2013_07_17.7z (from trinitycore > downloads)
I just used the 2 files on the github link npc_morpher.cpp & npc_morpher.sql NOT the PermaMorphScale.patch.. Does this need to be done aswel as the other 2?

That table error doesn't relate to the default TC tables. If you go to the github link for this Permanent Morph & Scale system, you will see that there is a .patch file that creates the needed SQL files you need to query through your character database (https://github.com/Watcher187/Permanent-Morph---Scale/blob/master/PermaMorphScale.patch#L24-L44). I will admit though, the queries could've been supplied outside of the patch, along with most of the content in the patch file.

Here are the queries you need to run:

Code:
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for character_morph
-- ----------------------------
CREATE TABLE `character_morph` (
`guid` int(11) NOT NULL DEFAULT '0',
`morph` int(11) DEFAULT NULL,
PRIMARY KEY (`guid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for character_scale
-- ----------------------------
CREATE TABLE `character_scale` (
`guid` int(11) NOT NULL,
`scale` float NOT NULL,
`comment` text,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 

blackmetal

Exalted Member
I'm going to create a topic related to this but i try to search first and found this. Thanks for share :D
 
Last edited:

blackmetal

Exalted Member
Onething about this system.

Code:
SetNativeDisplayId(fields2[0].GetUInt32());

if apply this, character will lost equipment from ModelID.

But without apply this. If player get poly from mage, player will stuck at sheep form.

How i can get all default equipment of model? :D

And if player get in mount, player scale will restore to original :playball::playball::playball:

it will make some morph too large :(
 
Last edited:

callmephil

Respected Member
I do not recommend that original scripts. it can be reduced to few lines and without using database queries.
this is a simple of how it should be implemented in the core.
*player will lose their morph if server restart.

Screen Shot 2016-12-04 at 7.57.44 AM.jpg

I will make a simple patchs in the next few days.
 
Top