Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adm = {Bolodefchoco = true,Bolodefchocoa = true}
- forca_das_bombas = 70
- cmd = {
- a = 'mago',
- b = 'arqueiro',
- c = 'start',
- }
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.newGame('4529148')
- Power = {}
- canSelect = false
- function eventChatCommand(n,c)
- if c==string.lower(cmd.a) then
- if canSelect==true then
- if Power[n]~=cmd.a and Power[n]~=cmd.b then
- tfm.exec.bindKeyboard(n,32,true)
- tfm.exec.movePlayer(n,173,185,false)
- ui.addPopup(0,0,"Agora você é um "..cmd.a.."! Clique para soltar uma bomba!",n,300,150,200)
- Power[n] = cmd.a
- else
- ui.addPopup(0,0,"Você já tem uma classificação ("..Power[n]..")! Não pode ser "..Power[n].." e "..cmd.a.." ao mesmo tempo!",n,300,150,200)
- end
- end
- end
- if c==string.lower(cmd.b) then
- if canSelect==true then
- if Power[n]~=cmd.a and Power[n]~=cmd.b then
- tfm.exec.bindKeyboard(n,32,true)
- tfm.exec.movePlayer(n,631,186,0,0,0,0)
- ui.addPopup(6679, 0, "Agora você é um "..cmd.b.."! Clique para soltar uma bomba!",n,300,150,200)
- Power[n] = cmd.a
- else
- ui.addPopup(0,0,"Você já tem uma classificação ("..Power[n]..")! Não pode ser "..Power[n].." e "..cmd.b.." ao mesmo tempo!",n,300,150,200)
- end
- end
- end
- if c==string.lower(cmd.c) and adm[n] then
- if canSelect==true then canSelect=false else canSelect=true ui.addPopup(0,0,"Para ser um "..cmd.a.." digite !"..cmd.a.."\nPara ser um "..cmd.b.." digite !"..cmd.b,n,300,150,200) end
- end
- end
- k = forca_da_bomba
- function eventKeyboard(n,k,d,x,y)
- if k==32 then
- if Power[n]==cmd.a or Power[n]==cmd.b then
- if tfm.get.room.playerList[n].isFacingRight then
- tfm.exec.addShamanObject(23,tfm.get.room.playerList[n].x-10,y,0,k)
- else
- tfm.exec.addShamanObject(23,tfm.get.room.playerList[n].x+10,y,0,-k)
- end
- else
- ui.addPopup(0,0,"Para ser um "..cmd.a.." digite !"..cmd.a.."\nPara ser um "..cmd.b.." digite !"..cmd.b,n,300,150,200)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement