Bag with random loot Script menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Scapee's Avatar Member
    Reputation
    5
    Join Date
    Oct 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bag with random loot Script

    I want to create a bag when opened you have 20% chance to get one item and 5% chance to get a different item, and you can only get one item, which is why i cant use itemloot table.

    Bag with random loot Script
  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)
    On use -> add loot depending on certain conditions -> send loot to player.

    A simple script, you can look at the ArcEmu wiki to find the methods you would need to use.

  3. #3
    Scapee's Avatar Member
    Reputation
    5
    Join Date
    Oct 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I looked in the wiki... Theres no tutorial that will help me write that item script, thats why i am asking for help

  4. #4
    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)
    I'm giving help by telling you how to do it, not actually going to do it for you as that would be spoon feeding.

    LuaHypArc:
    Unit Commands - ArcEmu-Wiki
    :AddLoot(id, mincount, maxcount, freeforall) : Adds the specified item to the Unit's loot table. This will drop in amounts of mincount to maxcount, and if freeforall is set to true, anyone can use it.
    :SendLootWindow(guid, loottype) : Sends a loot window to the Unit with the specified loottype. 1 (creature), 2 (skinning), 3 (pickpocket), 4 (fishing), 5 (herb/mining), 6 (disenchanting/prospecting/milling, etc).

    RegisterItemGossipEvent(itemid, 1, "")

    Should be all the information you need to construct a basic script.

Similar Threads

  1. Whats wrong with creature loot and my LUA Scripts
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 05-06-2008, 01:48 PM
  2. {question} Alil help with the .M2 script for 3DS max
    By BH5432 in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 01-17-2008, 07:55 PM
  3. [Question] Getting Random Loot Out Of A Bag...
    By Bumbo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-16-2007, 11:28 PM
  4. how to make a chest with custom loot
    By bjorn11 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 11-22-2007, 03:26 AM
  5. Ultra Bags, 36 slot bags with stat bonuses
    By mismatchedsocls in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 11-01-2007, 01:37 PM
All times are GMT -5. The time now is 10:42 AM. 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