[Lua] Item Bank menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Item Bank

    -=[Item Bank]=-


    Description
    Hi all. I maked these small Lua file for them that wants a quick and easy Banker.

    How to work
    Copy this code down change ItemID put it in scripts save as Itembank.lua and restart the server
    Remember you need to make item...



    Code:
    -=[LunarSCR-Onlykl]=-
    
    
    local itemid = ITEMID
    function Lunar_Item_Trigger(item, event, player)
       Item_menu(item, player)
    end
    
    function item_menu(item, player)
    
    
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("You are in combat!")
    else
    item:GossipCreateMenu(5555,player,0)
    player:SendAreaTriggerMessage("Welcome to the bank service!")
    item:GossipMenuAddItem(1, "<Bank>", 1, 0)
    end
    end
    
    
    if (intid == 1) then
    local x =player:GetX ()
    local y =player:GetY ()
    local z =player:GetZ ()
    local o =player:GetO ()
    player:SpawnCreature (8124, x, y+3, z, o, 35, 90000)
    player:GossipComplete()
    end  
    end
    
    RegisterItemGossipEvent(ITEMID,1,"Lunar_Item_Trigger")
    RegisterItemGossipEvent(ITEMID,2,"Lunar_OnSelect")


    [Lua] Item Bank
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, Sorta like WoW Trances personal vendor spawners for banks, I like the concept. +Rep

    (Welcome to the Shoutbox)

    The problem with this script is that people could use it for spam spawning NPCs, why not add a check to make sure one isn't already spawned, and make them automatically despawn after 2 mins or so.
    Last edited by Ground Zero; 12-19-2009 at 07:21 PM.

  3. #3
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isnt there a command to just open a bank screen?




  4. #4
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @ Flake: yes there is command plr:SendBankWindow(unit) but this is more funny
    @ Ground Zero: He automatic dessapire in 90000mseconds( 1min and 30 secs )
    NO there is no need for check because you can spawn just once that npc...
    Thanks you guys for support.


  5. #5
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well +Rep+Rep for the work




  6. #6
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Trle94 View Post
    @ Flake: yes there is command plr:SendBankWindow(unit) but this is more funny
    @ Ground Zero: He automatic dessapire in 90000mseconds( 1min and 30 secs )
    NO there is no need for check because you can spawn just once that npc...
    Thanks you guys for support.
    Oh yea, Skim read it, didn't see it. Good job.

  7. #7
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks you both so much for reading post and comments


Similar Threads

  1. [Lua Script] LUA item gossip help
    By naturaunglosar in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 05-26-2010, 02:14 AM
  2. [Request or Help] Simple LUA Item
    By freeride474 in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 04-11-2010, 10:06 AM
  3. [Lua] Item Adder & Logging System
    By Ground Zero in forum WoW EMU General Releases
    Replies: 12
    Last Post: 03-22-2010, 05:23 PM
  4. [Request] Lua Item
    By Tikki100 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 12-02-2009, 12:58 PM
  5. [FrostTeam] LUA Item Teleporter
    By Edude in forum WoW EMU General Releases
    Replies: 45
    Last Post: 02-17-2009, 03:00 AM
All times are GMT -5. The time now is 10:35 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