LUA command that makes players pay ? menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA command that makes players pay ?

    Does this exsist ?

    I know it's possible in C++ but what about in lua.. what i wanted to create is when you are using a teleporter you'd need to pay up to teleport.

    LUA command that makes players pay ?
  2. #2
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. It does exist

  3. #3
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well.. what is it ? :P

  4. #4
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you didn't ask that :P

    DealGoldCost(amount)
    Returns true if the amount of copper was successfully taken from the player (If the player has not enough silver it will return false, else it will take the money from him and return true)

    NOTE:
    You must have LuAppArc compiled into your core.

  5. #5
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And how do i exactly use it..

    Wouldn't it look something like this?

    playerealGoldCost(10000)
    if (something == 10000) then

    or..

  6. #6
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unit:DealGoldCost(10000)

    Code:
    If (something == something) then
    Unit:DealGoldCost(10000)  --if unit is the player selected
    Else
    something
    end
    svn:
    Revision 317: /

    List with LuAppArc commands is in here:
    http://svn.burning-azzinoth.de/LUApp...tionTables.cpp

    and here:
    http://svn.burning-azzinoth.de/LUApp..._Functions.txt

Similar Threads

  1. [Request] A SQL That makes players start with maxskills
    By spectre123 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 02-17-2009, 05:08 AM
  2. Lua problem that makes no sence
    By dragonowner in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-28-2008, 12:31 PM
  3. [HELP] makeing players have commands(ascent)
    By jackdaripper in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 06-12-2008, 06:32 AM
  4. Funny WoW Site With Convos That Make Yee Giggle.
    By Bane. in forum World of Warcraft General
    Replies: 10
    Last Post: 09-25-2007, 03:59 PM
  5. Give people rep that make you models
    By xlAnonym0uslx in forum Suggestions
    Replies: 4
    Last Post: 08-18-2006, 02:57 PM
All times are GMT -5. The time now is 04:33 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