• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[MOD] Rush Event / Team Battle with scores

TUTORIAL SET AS FOLLOW IN THE EVENT HERE:
q - message that will be displayed when the event starts
d_1 - position of the red time to start event
d_2 - Blue time position to start event
x - message that will be displayed when the event does not start
w - position of the waiting room, where the players will get before starting
lvl - Minimum level to attend the event
v - the amount of frags that will be necessary for the team to win
min - minimum amount of players to start the event
m - maximum of players within the event
the - message displayed when the red team win
y - message displayed when the blue team win
i_1 - id of the prize (it's now crystal coin = 2160)
i_2 - amount of the prize (now this 10 crystal coins)
t - time to start the event (now this is 5 minutes)
r - time in which the outcome of the battle will be shown to players (now this 3 minutes)

-------------------------------------------------------------------------------------------------------------------


Hope you understand it now :D Rep please _:D
 
This work in tfs 1.0?
Someone has already tested?

Might work, you would have to test.
But im planning on releasing it as a tfs 1.0 script, with meta tags functions.
I just have to fix a couple of things that diden't go as expected when I changed all variables via the find and replace function :p
Once I have time to fix that I will be uploading it.
 
@chiitus - Was a link to hard to post, it's nearly impossible to find your post with that information.
 
Code:
[31/10/2014 10:28:16] [Error - CreatureScript Interface]
[31/10/2014 10:28:16] buffer:onPrepareDeath
[31/10/2014 10:28:16] Description:
[31/10/2014 10:28:16] [string "function giveReward(cid)..."]:14: attempt to index global 'rewards_random' (a nil value)
[31/10/2014 10:28:16] stack traceback:
[31/10/2014 10:28:16] [string "function giveReward(cid)..."]:14: in function 'giveReward'
[31/10/2014 10:28:16] [string "loadBuffer"]:82: in function <[string "loadBuffer"]:3>
[31/10/2014 10:28:16] > Broadcasted message: "Rush event acabou, o time vermelho ganhou!".

help pleace1!!
 
why dont you guys try to fix it by yourselves? i mean all info u need is in github tfs project and orts project
 
Code:
[31/10/2014 10:28:16] [Error - CreatureScript Interface]
[31/10/2014 10:28:16] buffer:onPrepareDeath
[31/10/2014 10:28:16] Description:
[31/10/2014 10:28:16] [string "function giveReward(cid)..."]:14: attempt to index global 'rewards_random' (a nil value)
[31/10/2014 10:28:16] stack traceback:
[31/10/2014 10:28:16] [string "function giveReward(cid)..."]:14: in function 'giveReward'
[31/10/2014 10:28:16] [string "loadBuffer"]:82: in function <[string "loadBuffer"]:3>
[31/10/2014 10:28:16] > Broadcasted message: "Rush event acabou, o time vermelho ganhou!".

help pleace1!!

Fourth: The reward now is based on chance, edit this part:

Code:
function giveReward(cid)
        local hkz = math.random(1,100)
        if hkz <= 30 then
            doPlayerAddItem(cid,2160,10)
            doPlayerSendTextMessage(cid,25,"Nunca vá em um cassino: voce ganhou 100k.")
    
        elseif hkz > 30 and hkz <= 90 then
            doPlayerAddItem(cid,2160,30)
            doPlayerSendTextMessage(cid,25,"Joga na quina: voce ganhou 300k.")
     
        elseif hkz > 90 then
            doPlayerAddItem(cid,2640,1)
            doPlayerSendTextMessage(cid,25,"Cagou: voce ganhou uma soft boots.")
        end
        return true
    end
CREDITS:
ChaitoSoft
Chiitus
 
why dont you guys try to fix it by yourselves? i mean all info u need is in github tfs project and orts project
its not easy to fix it as you know its semi hard for new ppl and please explain more what you mean with githup etc
and i'm not guy :p
 
Back
Top