×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Benbirkralm's Scripts
Benbirkralm's Scripts
Benbirkralm
« Citoyen »
1403200440000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  1
Hi All, I'm Benbirkralm and I show my some scripts to you!

Simple Respawner System (with pCall) v1.0.1

-- Simple Respawner System (with pCall) v1.0.1
-- by Benbirkralm

function eventPlayerDied(n)
pcall(tfm.exec.respawnPlayer,n)
end

function eventNewPlayer(n)
eventPlayerDied(n)
end


Simple Shop System v6.6.6

-- Simple Shop System v6.6.6
-- by Benbirkralm
devs={Benbirkralm=9e9}
players={}

function eventNewPlayer(n)
players[n]={money=0, moneyPlus=1}
end

for n in pairs (tfm.get.room.playerList) do
eventNewPlayer(n)
end

function eventPlayerWon(n)
if players[n].moneyPlus==1 then
players[n].money=players[n].money+1
elseif players[n].moneyPlus==2 then
players[n].money=players[n].money+3
elseif players[n].moneyPlus==3 then
players[n].money=players[n].money+5
elseif players[n].moneyPlus=="<R>MAX" then
players[n].money=players[n].money+10
end
end

function shop(n,c)
if c=="shop" then
if players[n].moneyPlus=="<r>MAX" then
ui.addTextArea(666,"+Money:"..players[n].moneyPlus)
else
ui.addTextArea(666,"+Money:"..players[n].moneyPlus.."<br><R><a href='event:moneyplus'>UPGRADE to level "..players[n].moneyPlus+1.."")
end
end

function eventChatCommand(n,c)
shop(n,c)
end

function eventTextAreaCallback(n, id, cb)
if cb=="moneyplus" then
if players[n].moneyPlus==1 then
if players[n].money>=3 then
players[n].moneyPlus=2
players[n].money=players[n].money-3
else
print("You can't afford that!")
elseif players[n].moneyPlus==2 then
if players[n].money>=10 then
players[n].moneyPlus=3
players[n].money=players[n].money-10
else
print("You can't afford that!")
elseif players[n].moneyPlus==3 then
if players[n].money>25 then
players[n].moneyPlus="<r>MAX"
players[n].money=players[n].money-25
else
print("You can't afford that!")
end
end


Simple Map Testing Script v1.1.8b

-- Simple Map Testing Script v1.1.8b
-- by Benbirkralm
p={}
m={0}
tfm.exec.newGame(m[math.random(#m)])

function eventNewPlayer(n)
p[n]={queue=false, s={}}
end

for b in pairs (tfm.get.room.playerList) do
eventNewPlayer(b)
end

function eventChatCommand(n,c) --- !666666
if players[n].queue==true
print("You already have a map in queue.")
else
table.insert(players[n].s,n)
table.insert(maps,c)
players[n].queue=true
end
if c=="queuelist" then
pcall(maps, print)
end

function eventNewGame()
for n in pairs (players[n].s) do
players[n].s={}
local m=tfm.get.room.currentMap
table.remove(maps,m)
end


Simple Respawner System (with OOP) v1.0.2

-- Simple Respawner System (with OOP) v1.0.2
-- by Benbirkralm

framework={
r=function(a)tfm.exec.respawnPlayer(a)end
}



function eventPlayerDied(n)
framework.r(n)
end

function eventNewPlayer(n)
eventPlayerDied(n)
end


Log Book v1.1.2

feed={text=""}
x=0
y=x+1
dead=true
won=true
left=true
new=true
cheese=true

function eventChatCommand(n, cmd)
if cmd=="log" then
ui.addPopup(2,3,feed.text,n,320,200,200)
end
end

function eventPlayerDied(name)
x=x+1
feed.text=""..feed.text.."<font color='#6D4A2D'>"..x..".</font><font color='#EE6353'>"..name.." </font><font color='#ffffff'>dead! <br>"
end

function eventPlayerWon(name)
x=x+1
feed.text=""..feed.text.."<font color='#6D4A2D'>"..x..".</font><font color='#F0C019'>"..name.." </font><font color='#ffffff'has >won! <br>"
end

function eventPlayerLeft(name)
x=x+1
feed.text=""..feed.text.."<font color='#6D4A2D'>"..x..".</font><font color='#4EB84A'>"..name.." </font><font color='#ffffff'>has left the room! <br>"
end

function eventNewPlayer(name)
x=x+1
feed.text=""..feed.text.."<font color='#6D4A2D'>"..x..".</font><font color='#1AEDFF'>"..name.." </font><font color='#ffffff'>has joined to the room! <br>"
end

function eventPlayerRespawn(name)
x=x+1
feed.text=""..feed.text.."<font color='#6D4A2D'>"..x..".</font><font color='#326EE9'>"..name.." </font><font color='#ffffff'>respawned! <br>"
end

function eventPlayerGetCheese(name)
x=x+1
feed.text=""..feed.text.."<font color='#6D4A2D'>"..x..".</font><font color='#8080FF'>"..name.." </font><font color='#ffffff'>got cheese! <br>"
end

--[[
Script by Benbirkralm~~
LogBook v1.1.2
]]



Simple add time command v1.0.0
-- Simple add time command v1.0.0
-- by Benbirkralm

i=120

function eventLoop(t, r)
i=i-0.5
end

function eventNewGame()
tfm.exec.setGameTime(i)
end

function addTime(n,c)
i=i+c
end

function eventChatCommand(n,c)
addTime(n,c)
print("You added<v>"..c.." <n>seconds!")
end

Dernière modification le 1403376960000
Benbirkralm
« Citoyen »
1403200500000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Follow the news here!

~ Added LogBook
~ Added Simple add_time command

Dernière modification le 1403201700000
Cheetahkitty
« Citoyen »
1403376420000
    • Cheetahkitty#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
none of it works for me nothing is happening
Benbirkralm
« Citoyen »
1403377140000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
cheetahkitty a dit :
none of it works for me nothing is happening

All working.
Ttrabzonlee
1404426720000
    • Ttrabzonlee#0000
    • Profil
    • Derniers messages
#5
[Modéré par Whiskypickle, raison : Lütfen İngiliz forumunda Türkçe konuşmayın]
Daryan
« Citoyen »
1405790280000
    • Daryan#8539
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Benbirkralm a dit :
cheetahkitty a dit :
none of it works for me nothing is happening

All working.

he's right! none of them working
Berkcankoc
« Citoyen »
1406104740000
    • Berkcankoc#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Thanks Berbirkralm :)
Good job :)
Başarılarının devamın dilerim.(İngilizcesini unuttum)
Eernsntrk
« Citoyen »
1406217960000
    • Eernsntrk#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Simple Shop System Error :(
Hybinkunduz
« Citoyen »
1406218980000
    • Hybinkunduz#0000
    • Profil
    • Derniers messages
#9
  0
So nub *-*
Hydroperhy
« Citoyen »
1406380800000
    • Hydroperhy#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
GJ!!!!
Wolfythecat
« Citoyen »
1407079680000
    • Wolfythecat#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Shop system doesn't seem to work for me either, I keep getting an error message

Lua System a dit :
[11:27] [Lua] # [*The Screwed Crew] Init Error : multiple points
Benbirkralm
« Citoyen »
1407083460000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
wolfythecat a dit :
Shop system doesn't seem to work for me either, I keep getting an error message

Lua System a dit :
[11:27] [Lua] # [*The Screwed Crew] Init Error : multiple points


I know, but I'm not in home. I made it from phone. When I come, I'll fix, thanks for your feedback.
Carludd
« Citoyen »
1410534780000
    • Carludd#0000
    • Profil
    • Derniers messages
#13
  0
Good job!
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Benbirkralm's Scripts
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27