Lua Procent Chance? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Sandile's Avatar Member
    Reputation
    32
    Join Date
    Aug 2008
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Procent Chance?

    I am making a lua gossip script where I want the players to get an item at a percent of chance when they use it.
    "i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"

    Lua Procent Chance?
  2. #2
    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)
    In theory, a 50/50 chance would be:

    Code:
    Choice=math.random(1, 2)
    if Choice==1 then
    player:AddItem(55555)
    pUnit:Despawn(1,0)
     end
    if Choice==2 then
    pUnit:Despawn(1,0)
    end
    end
    
    Last edited by stoneharry; 03-12-2009 at 01:20 PM.

  3. #3
    Sandile's Avatar Member
    Reputation
    32
    Join Date
    Aug 2008
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tyvm Stoneharry. +rep When I can
    "i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"

Similar Threads

  1. seconed chance (waterform)
    By Ark in forum World of Warcraft General
    Replies: 0
    Last Post: 10-25-2006, 10:38 AM
  2. Replies: 4
    Last Post: 10-17-2006, 06:30 PM
  3. whats the chance you get banned
    By pandapindakaas in forum World of Warcraft General
    Replies: 2
    Last Post: 09-04-2006, 12:56 PM
  4. Chances of getting caught?
    By 1ns4n1ty in forum World of Warcraft General
    Replies: 7
    Last Post: 08-20-2006, 11:52 AM
All times are GMT -5. The time now is 02:05 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