do u think u can make it so the losing team gets say like 1 token and the winning gets 3?
This, or just see where the variable "RewardID" is used and change it so that it adds 3 and add one on the else condition.
Here, I've done it for you: [Lua] ------------------- -- By Stoneharry -- ------------------- -- Configuratio - Pastebin.com
weird lol first match was good but the losing team for some reason got the tokens. the second match again the losing team got the tokens and Also each team got x2 so winning to 6..and losing got 2. 3rd time teams got random amounts of 1 and 3..like 4 or 6 times each lol
[Lua] ------------------- -- By Stoneharry -- ------------------- -- Configuratio - Pastebin.com
^
There, fixed.
Because I got the amounts mixed around and, I think, because I used the same variables in the same function so they conflicted. Should work now.
Great work Harry![]()
Can you explain how to deal with the "plugin" for your script?
I tried putting this on to my server, but it comes back and says;
Even though I'm using LuaHypArc.(string "scripts\BattleGround.lua"):28 attempt to call global 'GetLuaEngine' (a nil value)
What plugin?
https://arcemu.svn.sourceforge.net/s...balFunctions.h
^
It's still there, however this won't work with LuaBridge. LuaBridge now compiles by default with ArcEmu.
Late post is late but this is truly amazing, another great release from my idol.
+3 rep and I love you, its amazing, its like CoD team deathmatch. fun yet simple
Awesome, I would just add a really small contribution :
At l.274 (in [Lua] ------------------- -- By Stoneharry -- ------------------- -- Configuratio - Pastebin.com) and l.256, you only check if a player has been killed and if a team has 1 life left. But if the team who has 1 life left did the kill, she would loose. You should add a check for the player team (the one that has been killed) so it should looks like :
(Thanks to my mate, Magmort, who saw this first)Code:l.256 : if plr:GetFaction() == 0 and HordeLives == 2 then l.274 : elseif plr:GetFaction() == 1 and AllianceLives == 1 then
It's really a good script, thanks for the share.
Last edited by Selenashtwo; 09-04-2011 at 06:26 PM.
amm..Hello,I am a newer.This lua is very cool.But I want to ask that can I use it in SkyfireEMU?And how to do or where put it if I can?
Last edited by liekkas; 11-27-2011 at 12:32 PM.
Unfortunately, Skyfire only allows the use of C++ Scripts.
What this means is unlike the other servers, you can't just drop a lua script into Skyfire. You have to have the source for your server core, add the script into it, and then compile it into a .exe again.
For newbies, it's a bit hard to do without watching a few tutorials.
All in all, I think you're screwed on this one though. The script would have to be redone in C++ to work.