[Lua] Jesus NPC for Entertainment value menu

User Tag List

Results 1 to 14 of 14
  1. #1
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Jesus NPC for Entertainment value

    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:
    Code:
    --[[
    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")
    Have fun and thanks

    Credits: Me and Mager for the idea and Hellgawd for looking over it

    Last edited by slade1000; 12-29-2009 at 05:51 PM.

    [Lua] Jesus NPC for Entertainment value
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You only have one of the two functions registered there, you forgot:

    Code:
    RegisterUnitGossipEvent(NPC_ID, 2, "jesusGossipOnSelect")
    
    Apart from that it looks good, I'm not religious but I do find this amusing being able to relate to it. You just need to move onto some more advanced things now using the same original ideas you demonstrated here.

  3. #3
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^ What Stoneharry said;
    It's a nice first script for you, try experimenting with some more advanced things now that you've got it down.
    Theres a few guides in the guides section that explain some more advanced Lua techniques as well, you might want to check those out.
    Glad to see you implemented my little Lua fix in there; I didn't catch the missing function register though. :P
    -hellgawd
    Last edited by Hellgawd; 12-29-2009 at 05:50 PM.

  4. #4
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    You only have one of the two functions registered there, you forgot:

    Code:
    RegisterUnitGossipEvent(NPC_ID, 2, "jesusGossipOnSelect")
    
    Apart from that it looks good, I'm not religious but I do find this amusing being able to relate to it. You just need to move onto some more advanced things now using the same original ideas you demonstrated here.
    thanks I will just go to think of more

    and thanks Hellgawd

  5. #5
    Link_S's Avatar Member
    Reputation
    125
    Join Date
    Dec 2008
    Posts
    293
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, how'd I find a displayid that looks like Jesus? Nobody knows what he looks like..

    And yes I'm atheist.
    Why do I need a signature?

  6. #6
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Link_S View Post
    Hmm, how'd I find a displayid that looks like Jesus? Nobody knows what he looks like..

    And yes I'm atheist.
    He probably just used a display ID that looks similar to what most generic pictures of Jesus looks like, the ones you find in bible stories and whatnot - guy with a beard and robe ect ect. Didn't really see a point in bringing that up aside from trying to start a nice little religious debate.

    +Repx2 for the quirky script.

  7. #7
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha thanks

  8. #8
    Link_S's Avatar Member
    Reputation
    125
    Join Date
    Dec 2008
    Posts
    293
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Vision1000 View Post
    He probably just used a display ID that looks similar to what most generic pictures of Jesus looks like, the ones you find in bible stories and whatnot - guy with a beard and robe ect ect. Didn't really see a point in bringing that up aside from trying to start a nice little religious debate.

    +Repx2 for the quirky script.
    Wasn't my intention to start a debate, I just pointed out a flaw in the idea. Bringin' this script to your server can cause a religious debate between players why the heck Jesus looks like that ingame. I know there are some really religious players out there. "/
    Why do I need a signature?

  9. #9
    Dj-Dejan's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice !!!

  10. #10
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why thank you

  11. #11
    Warriar's Avatar Active Member
    Reputation
    31
    Join Date
    May 2009
    Posts
    149
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice one slade

  12. #12
    zade749's Avatar Member
    Reputation
    20
    Join Date
    Sep 2009
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, not all that useful, but still nice.
    Last edited by zade749; 01-09-2010 at 04:09 PM.

  13. #13
    MEC's Avatar Banned
    Reputation
    5
    Join Date
    Sep 2007
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not even going to comment on the jesus thing, but nice scripting anyways

  14. #14
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha thanks and ye you dont have to

Similar Threads

  1. [help] Looking for trainers and npcs for 2.4
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-17-2008, 02:52 PM
  2. [Help] Global NPC for Rev 4263 somewhere?
    By Victawr in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 03-24-2008, 12:13 AM
  3. [RELEASE] Insanely Useful Quest NPC For PvP/Fun Servers
    By Xeneth in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 01-11-2008, 01:48 PM
  4. [INFO] Insanely Useful Quest NPC For PvP/Fun Servers
    By Xeneth in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 01-11-2008, 12:17 AM
  5. [Release]City Teleport NPC for Antrix
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-18-2007, 08:38 AM
All times are GMT -5. The time now is 01:50 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search