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.
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.
Yes. It does exist![]()
well.. what is it ? :P
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.
And how do i exactly use it..
Wouldn't it look something like this?
playerealGoldCost(10000)
if (something == 10000) then
or..
Unit:DealGoldCost(10000)
svn:Code:If (something == something) then Unit:DealGoldCost(10000) --if unit is the player selected Else something end
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