Teleporter lua - HELP! menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    mike1097's Avatar Private
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Teleporter lua - HELP!

    Hey Guys,

    ive downloaded an Teleport Item based on Lua, but i cant configure it in the way i want.
    So ich hope someone can help me and create one.
    I Need a Teleporteritem-Script.
    The Item Entry is: 6948 (Hearthstone)
    I Need 2 Options (In Screenshot Events&Levelarena)
    If you click on this Menupoint, then should open a new page.
    On Events there should be 4 Menupoints left, and on Levelarena 6.
    The rest should be a direct Port (4 Menupoints)

    I Only need the Blank script please, i will add the coords then.

    I would be honored if someone create such a Script for me and he will got Credits on my Server!

    This Screenshot is from my Server, but this TeleporterStone is bugged so i need a new one.


    Teleporter lua - HELP!
  2. #2
    SpellEffects's Avatar Sergeant
    Reputation
    64
    Join Date
    Apr 2011
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My Lua skills are a little rusty.

    Tell me if it doesnt work.

    Code:
    function Item_OnClick(Item, Event, player)
    	Item:GossipCreateMenu(100, player, 0)
    	Item:GossipMenuAddItem(0, "Playertreff, 0, 0)
    	Item:GossipMenuAddItem(0, "Klassenlehrer, 1, 0)
    	Item:GossipMenuAddItem(0, "Frigor (Boss), 2, 0)
    	Item:GossipMenuAddItem(0, "Berufe, 3, 0)
    	Item:GossipMenuAddItem(0, "Events", 4, 0)
    	Item:GossipMenuAddItem(0, "LevelArena", 5, 0)
    	Item:GossipSendMenu(player)
    end
    
    function OnSubMenu(Item, Event, player, id, intid, code)
    	if (intid == 0) then
    		player:Teleport(mapid, x, y, z)
    	end
    
    	if (intid == 1) then
    		player:Teleport(mapid, x, y, z)
    	end
    	
    	if (intid == 2) then
    		player:Teleport(mapid, x, y, z)
    	end
    	
    	if (intid == 3) then
    		player:Teleport(mapid, x, y, z)
    	end
    	
    	if (intid == 4) then
    		Item:GossipCreateMenu(200, player, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 1, 10, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 2, 11, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 3, 12, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 4, 13, 0)
    		Item:GossipSendMenu(player)
    	end
    	
    	if (intid == 5) then
    		Item:GossipCreateMenu(300, player, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 1, 20, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 2, 21, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 3, 22, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 4, 23, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 5, 24, 0)
    		Item:GossipMenuAddItem(0, "Menupoint 6, 25, 0)
    		Item:GossipSendMenu(player)	
    	end
    end
    
    RegisterItemGossipEvent(6948, 1, "Item_OnClick")
    RegisterItemGossipEvent(6948, 2, "OnSelect")
    uint32 = -1;
    I guess some people just find it hard to input their question into a field and press enter.

    Check out my blog here on the forums

  3. #3
    mike1097's Avatar Private
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey thanks thanks thanks!!!!!!!
    But it seems there is no Teleport script if you click on the Menupoints, or im wrong?
    Cant test it right now, because im re-installed my PC system.
    But thanks.. youre the best!!!!

  4. #4
    SpellEffects's Avatar Sergeant
    Reputation
    64
    Join Date
    Apr 2011
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mike1097 View Post
    Hey thanks thanks thanks!!!!!!!
    But it seems there is no Teleport script if you click on the Menupoints, or im wrong?
    Cant test it right now, because im re-installed my PC system.
    But thanks.. youre the best!!!!
    I do not quite understand what you are getting at.
    uint32 = -1;
    I guess some people just find it hard to input their question into a field and press enter.

    Check out my blog here on the forums

  5. #5
    mike1097's Avatar Private
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry.
    I mean the Menupoints in Events and Levelarena. I dont know if the Menupoints can teleport the player to the Location ill add.



    EDIT:
    I added it on my server now, but i cant open it if i right click on the item.
    Last edited by mike1097; 04-27-2011 at 06:09 AM.

  6. #6
    SpellEffects's Avatar Sergeant
    Reputation
    64
    Join Date
    Apr 2011
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mike1097 View Post
    sorry.
    I mean the Menupoints in Events and Levelarena. I dont know if the Menupoints can teleport the player to the Location ill add.



    EDIT:
    I added it on my server now, but i cant open it if i right click on the item.
    Check your world.exe console for error codes.
    uint32 = -1;
    I guess some people just find it hard to input their question into a field and press enter.

    Check out my blog here on the forums

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. [LUA] Help with Teleporter.
    By iRyuzaki in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 06-12-2009, 07:43 PM
  3. Lua help
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-18-2008, 07:03 PM
  4. Lua help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-04-2008, 12:17 PM
  5. Teleport NPC help!
    By Daxo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 09-22-2007, 01:24 PM
All times are GMT -5. The time now is 09:44 AM. 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