Toggle shoutbox Lastest Announcements
![]() |
[lua] Transmogrification
#1
Posted 17 August 2012 - 05:29 PM
So I decided to stop by with my latest script I finished up today, lua transmogrification.
Lua, save to scripts folder:
http://pastebin.com/VFTUmPTm
Run to characters database:
http://pastebin.com/08NXuUAj
To transmogrify an item you need to have the item equipped you want to change.
Then you need to have an item of the same type (inventory type to be exact) somewhere in your inventory (doesnt matter where, just in some bag).
When talking to the NPC you get to select the slot.
After selecting you see a menu with item names of the items which's displays you can use. (max 13 by default)
Select one and you are done :3
The script looks about the same as this one here:
http://www.youtube.c...channel&list=UL
Difference to video:
There are no costs.
There are no item restrictions or limitations, except that the items must have the same inventory type.
Transmogrifications are applied by a timed event, not on equip (no hook)
Display source item wont be affected in any way (not made soulbound etc.)
#4
Posted 19 August 2012 - 05:44 PM
Roller, on 18 August 2012 - 05:48 AM, said:
I got a problem with this... Trasmogrification failed.(could not run)
lua 214 bad argument #1 to RegisterUnitGossipEvent (number expected, got nil)


#5
Posted 20 August 2012 - 05:18 AM
Loken, on 19 August 2012 - 05:44 PM, said:
lua 214 bad argument #1 to RegisterUnitGossipEvent (number expected, got nil)
Oh, thanks.
I tested it with an item (hearthstone) since it is really easy to set that up instead of NPCs, so I named the NPCENTRY variable to item.
When changing it to NPCENTRY I forgot to change the variable name in the registers at the bottom of the script :3
Fixed it.
#6
Posted 20 August 2012 - 11:22 AM
Roller, on 20 August 2012 - 05:18 AM, said:
I tested it with an item (hearthstone) since it is really easy to set that up instead of NPCs, so I named the NPCENTRY variable to item.
When changing it to NPCENTRY I forgot to change the variable name in the registers at the bottom of the script :3
Fixed it.
Thanks, it work now, but there are a lot of sql query failed... need some database table for this?


#8
Posted 20 August 2012 - 11:43 AM
Roller, on 20 August 2012 - 11:27 AM, said:
Forgot to include it.
.. Now I think everything should be there

Nearly...


Uploaded with ImageShack.us


#9
Posted 20 August 2012 - 11:53 AM
Apparently not, but fortunately guids seem to be the same always.
Using string guids in database solves the issue, but this means you cant do cleanup : /
See main post lua and SQL again.
#10
Posted 20 August 2012 - 01:54 PM
Roller, on 20 August 2012 - 11:53 AM, said:
Apparently not, but fortunately guids seem to be the same always.
Using string guids in database solves the issue, but this means you cant do cleanup : /
See main post lua and SQL again.
Seems to work fine now. Lovely script. Thank you.



#11
Posted 15 September 2012 - 04:05 PM
Tom
#12
Posted 30 September 2012 - 01:34 AM

#13
Posted 30 September 2012 - 07:50 AM
In fact many new features that even Blizzard doesn't have could be added like this
