How to make a 'Upgrade Gem' menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    Found's Avatar Banned
    Reputation
    239
    Join Date
    Mar 2009
    Posts
    642
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make a 'Upgrade Gem'

    I have a server with many items and such that are upgradable.. and I was wondering instead of having to do the quests you can just use an Item to do it instead..

    Is this possible, if so any ideas on how to do it?

    Thanks
    -L0st!

    How to make a 'Upgrade Gem'
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,503
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You would need a lua for the item, when they use the item it should check if they have the required items and then take the items and give the new one.

  3. #3
    Found's Avatar Banned
    Reputation
    239
    Join Date
    Mar 2009
    Posts
    642
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, thanks.. I knew i could do it in Lua, I just had no clue what to make it do.

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Examples:

    Code:
    if plr:HasItem(5) then
    plr:AddItem(6, 1) -- ID, amount
    plr:RemoveItem(5, 1) -- ID amount
    end
    
    if plr:GetItemCount(5) > 4 then
    -- plr has more than 4 of item id 5
    plr:AddItem(6, plr:GetItemCount(5)) -- Add item id 6 of however many were removing of the other ID
    plr:RemoveItem(5, plr:GetItemCount(5)) -- Remove all of them
    end
    
    Mass scale:
    
    local rewards = {1, 2, 3, 4, 5}
    
    for place, items in pairs(rewards) do
    plr:AddItem(items, 1) -- Add 1 of each reward
    end

  5. #5
    Found's Avatar Banned
    Reputation
    239
    Join Date
    Mar 2009
    Posts
    642
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Examples:

    Code:
    if plr:HasItem(5) then
    plr:AddItem(6, 1) -- ID, amount
    plr:RemoveItem(5, 1) -- ID amount
    end
    
    if plr:GetItemCount(5) > 4 then
    -- plr has more than 4 of item id 5
    plr:AddItem(6, plr:GetItemCount(5)) -- Add item id 6 of however many were removing of the other ID
    plr:RemoveItem(5, plr:GetItemCount(5)) -- Remove all of them
    end
    
    Mass scale:
    
    local rewards = {1, 2, 3, 4, 5}
    
    for place, items in pairs(rewards) do
    plr:AddItem(items, 1) -- Add 1 of each reward
    end
    Ok, I see thanks for the help Stone, and GZ.

Similar Threads

  1. Replies: 10
    Last Post: 06-12-2012, 09:27 PM
  2. Eternion wow how to make +27 haste gems
    By lerocherbleu in forum WoW EMU Exploits & Bugs
    Replies: 24
    Last Post: 08-19-2009, 07:11 PM
  3. How to make custom gems??
    By fastelf in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 02-13-2008, 03:18 PM
  4. How to Make a Character with Cool Letters
    By Cyboi in forum World of Warcraft Guides
    Replies: 62
    Last Post: 08-21-2007, 01:52 PM
  5. How to make the darkmoon card: blue dragon proc without casting
    By Matt in forum World of Warcraft Guides
    Replies: 1
    Last Post: 04-17-2006, 05:17 AM
All times are GMT -5. The time now is 04:01 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