This is a simple lua script for your own person Jesus for your server. It takes water and turns it into wine for you this is just fun. I ran the lua and it ran without any problems but i did not test it ingame.
Code:
Have fun and thanksCode:--[[ Jesus Npc Created by: Slade1000 ]] -- Variables local NPC_ID = 4535345 local item1 = 38429 local amount1 = 1 local item_B = 30499 local amount_B = 1 -- On Triggers function jesusGossipOnTalk(Unit, Event, player) Unit:GossipCreateMenu(100, player, 0) Unit:GossipMenuAddItem(0, "Turn Water Into Wine.", 1, 0) Unit:GossipSendMenu(player) end function jesusGossipOnSelect(Unit, Event, player, id, intid, code, pMisc) if (intid == 1) then if (player:GetItemCount(item1) <= amount1) then player:RemoveItem(item1, amount1) player:AddItem(item_B, amount_B) player:SendAreaTriggerMessage("May God Bless You") end player:GossipComplete() end end -- RegisterUnitEvents RegisterUnitGossipEvent(NPC_ID, 1, "jesusGossipOnTalk") RegisterUnitGossipEvent(NPC_ID, 2, "jesusGossipOnSelect")
Credits: Me and Mager for the idea and Hellgawd for looking over it