Teleport item with a LUA file menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    husku's Avatar Member
    Reputation
    10
    Join Date
    Jul 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Teleport item with a LUA file

    Hello everyone

    My Nick is Kim and im working on the private server KimybaWoW
    I'm the starter of this server, and i was bored, so i changed some stuff in some LUA files and Woopsi, it actually worked, i want to share this with all of you so you can use it on your own server


    function Item_Trigger(item, event, player)
    item:GossipCreateMenu(100, player, 0)
    item:GossipMenuAddItem(0,"Name of Head Menu", 0, 0)
    item:GossipSendMenu(player)
    end

    function Gossip_Submenus(item, event, player, id, intid, code)
    if(intid == 0) then
    item:GossipCreateMenu(101, player, 0)
    item:GossipMenuAddItem(0,"Location 1", 50, 0)
    item:GossipMenuAddItem(0,"Location 2", 51, 0)
    item:GossipMenuAddItem(0,"Location 3", 52, 0)
    item:GossipMenuAddItem(0,"Location 4", 53, 0)
    item:GossipMenuAddItem(0,"Location 5", 54, 0)
    item:GossipMenuAddItem(0,"Location 6", 55, 0)
    item:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(Map ID of Location 1, X-Coordinates , Y-Coordinates, Z-Coordinates)
    end
    if(intid == 51) then
    player:Teleport(Map ID of Location 2, X-Coordinates , Y-Coordinates, Z-Coordinates)
    end
    if(intid == 52) then
    player:Teleport(Map ID of Location 3, X-Coordinates , Y-Coordinates, Z-Coordinates)
    end
    if(intid == 53) then
    player:Teleport(Map ID of Location 4, X-Coordinates , Y-Coordinates, Z-Coordinates)
    end
    if(intid == 54) then
    player:Teleport(Map ID of Location 5, X-Coordinates , Y-Coordinates, Z-Coordinates)
    end
    if(intid == 55) then
    player:Teleport(Map ID of Location 6, X-Coordinates , Y-Coordinates, Z-Coordinates)
    end
    end

    RegisterItemGossipEvent(Item ENTRY ID, 1, "Item_Trigger")
    RegisterItemGossipEvent(Item ENTRY ID, 2, "Gossip_Submenus")
    As you see i've made it very easy for you, just open a new notepad copy this into it change what you need to change and then go to file, save as then write: whatevername.lua
    then just under here you see Textfile(.txt) and then an arrow pointing down click that and then choose all files, then save it where you want.


    function Gossip_Submenus(item, event, player, id, intid, code)
    if(intid == 0) then
    item:GossipCreateMenu(101, player, 0)
    item:GossipMenuAddItem(0,"Location 1", 50, 0)
    item:GossipMenuAddItem(0,"Location 2", 51, 0)
    item:GossipMenuAddItem(0,"Location 3", 52, 0)
    item:GossipMenuAddItem(0,"Location 4", 53, 0)
    item:GossipMenuAddItem(0,"Location 5", 54, 0)
    item:GossipMenuAddItem(0,"Location 6", 55, 0)
    item:GossipSendMenu(player)
    end
    As you see there are 6 location, you can add more or remove some just copy one of the rows
    item:GossipMenuAddItem(0,"Location 6", 55, 0)
    Change 55 to another number which is not used of the other 6 locations. When this is done..

    if(intid == 55) then
    player:Teleport(Map ID of Location 6, X-Coordinates , Y-Coordinates, Z-Coordinates)
    end
    Change if(intid == 55 to the number you chose before and then change the map id and X, Y and Z coordinates to where you want it to port.

    For the Item ID i recommend you to use this ID 28452 that item is already in the database and you can't use it while running, so thats good.

    After you have saved the file as a LUA file go to the file where you saved it right click it and click Preferences and check up that it is a LUA-File if it is go to your server folder find the folder "Scripts" and drop the file in there.
    Restart server and log in.


    I hope this helped you (: Oh and by the way, i could use some rep

    Kim
    Last edited by husku; 10-15-2008 at 04:48 AM. Reason: Typing mistake :-/

    Teleport item with a LUA file
  2. #2
    husku's Avatar Member
    Reputation
    10
    Join Date
    Jul 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    35 views and no replies yet? Hmm i thought this was an useful guide

  3. #3
    TheNlghtmare's Avatar Member
    Reputation
    12
    Join Date
    Sep 2008
    Posts
    142
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome work! Thanks brother!

  4. #4
    sinofevil's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good job =D + Rep for u but can i learn more from u? can u add me in msn at [email protected]? =D

  5. #5
    Appled's Avatar Contributor
    Reputation
    105
    Join Date
    Apr 2007
    Posts
    568
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome guide REP

  6. #6
    dontblink438's Avatar Active Member
    Reputation
    22
    Join Date
    Aug 2008
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide! +rep to help get you out of leeching....like me

  7. #7
    *Icy*'s Avatar Member
    Reputation
    6
    Join Date
    Sep 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its a ok guide..
    ¨°º¤ø„¸ IcyThePwnz ¸„ø¤º°¨
    ¸„ø¤º°¨ ROCK ON! `°º¤ø„¸

  8. #8
    Namor's Avatar Active Member
    Reputation
    27
    Join Date
    Jul 2008
    Posts
    311
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wouldn't this take less time using C++?
    either way, it's still great. Nice job man.

  9. #9
    bijan588's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AWSOME

    thanks

    Make it more simple soo ppl dont nag

  10. #10
    lilbdiablo12's Avatar Active Member
    Reputation
    40
    Join Date
    Feb 2008
    Posts
    535
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its very simple if you ask me, this is about as imple as it gets, lol...

    But i do have one question... How do i do a MENU?

    EX:

    Alliance Places
    ~Alliance Mall
    ~Stormwind
    ~blah blah blah etc etc


    Do you know how to do that?

  11. #11
    husku's Avatar Member
    Reputation
    10
    Join Date
    Jul 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bijan588

    It's as simple as it can get is my opinion lol

    Lildiablo12

    function Item_Trigger(item, event, player)
    item:GossipCreateMenu(100, player, 0)
    item:GossipMenuAddItem(0,"Name of Head Menu", 0, 0)
    item:GossipSendMenu(player)

    "Name of Head Menu is in your example going to be Alliance Places
    and then the Alliance Mall, Stormwind, bla bla are the location 1,2,3,4,5... and so on.

  12. #12
    netherc's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The script dont work if I use sunplusplus scrips, anyone knows why?
    Sorry for my english

  13. #13
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice release! +Rep

  14. #14
    Oggranarr's Avatar Member
    Reputation
    13
    Join Date
    Sep 2007
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    same as above.
    verry nice release +Rep

  15. #15
    infected77's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for my english..but i need help with this..
    That's the situation..I've TRIED configuring lua file like you said..then i've searched for "Script" folder..not found..i've find a "script_bin" folder..i said "OK!Maybe is this!"..i've put the file in there..NOTHING HAPPENS..
    And..where the ITEM ID number should be putted?

    Anyway..good job man!

Page 1 of 2 12 LastLast

Similar Threads

  1. swapping an item with multiple skin files?
    By skoopa in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 08-28-2010, 09:38 PM
  2. i need help with a LUA teleport item and buff item...
    By trujillo in forum WoW EMU Questions & Requests
    Replies: 17
    Last Post: 09-16-2009, 02:05 AM
  3. Teleport item without CD with cast timer
    By llamafood in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-29-2008, 06:38 PM
  4. Teleport item with lua?
    By Iluox in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 06-04-2008, 02:05 PM
  5. [Request] Making Item Sets with C++ / LUA?
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-18-2008, 08:10 AM
All times are GMT -5. The time now is 08:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search