×

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
  • /
  • Script Requests
« ‹ 12 / 160 › »
Script Requests
Doneky
« Citoyen »
1382319480000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#221
  0
Nevermind.
I already have the script
Ziomacka
« Citoyen »
1382363520000
    • Ziomacka#0000
    • Profil
    • Derniers messages
#222
  0
Someone make script for tribe house. That only spiritual chief can make someone vampire that can fly pressing on space.
Shamousey
« Consul »
1382365140000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#223
  0
Ziomacka a dit :
only spiritual chief

A heads up - the Module API can't detect what rank someone is in a tribe, so that part is impossible.
Jordy
« Consul »
1382366160000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#224
  0
Shamousey a dit :
A heads up - the Module API can't detect what rank someone is in a tribe, so that part is impossible.

It is possible but it won't be synced to the tribe ranks just hardcode a table in the script which contains who got what rank. ;)
Ziomacka
« Citoyen »
1382368980000
    • Ziomacka#0000
    • Profil
    • Derniers messages
#225
  0
then i need a script where are flying vampires and i could choose who will be a vampire
Sandermr
1382379480000
    • Sandermr#0000
    • Profil
    • Derniers messages
    • Tribu
#226
[Modéré par Takumisyn]
Jordy
« Consul »
1382382420000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#227
  0
Ziomacka a dit :
then i need a script where are flying vampires and i could choose who will be a
vampire

a dit :

--[[
Script description: Vampire managment and fly
Script by: Jordynl for: Ziomacka
]]

adminDB = {}
vampDB = {}
password = nil

function genPass()
math.randomseed(os.time())
map = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "@", "#", "$", "%", "&", "?"}
password = {}
for i=1, 20, 1 do
t = math.random(1,2)
if t == 1 then
ch = string.upper(map[math.random(table.getn(map))])
else
ch = string.lower(map[math.random(table.getn(map))])
table.insert(password, ch)
end
end
return table.concat(password)
end

function main()
password = genPass()
print("<BL>Type the next command to become module admin.")
print("<ROSE>!login ".. password)
for p,_ in pairs(tfm.get.room.playerList) do
eventNewPlayer(p)
end
end

function eventNewPlayer(playerName)
tfm.exec.bindKeyboard(playerName,32,true)
end

function eventNewGame()
vampDB = {}
end

function eventKeyboard(playerName, code, down, x, y)
if vampDB[playerName] == true then
tfm.exec.movePlayer(playerName, playerName.x, playerName.y, false, 0, -50, false)
end
end

function eventChatCommand(playerName, line)
local split=string.find(line," ") or #line+1
local cmd=string.sub(line,1,split-1)
local args=string.sub(line,split+1)
local arg={}
for argument in args:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if cmd == "login" then
if arg[1] and not adminDB[1] then
if arg[1] == password then
print("You are now a module admin!")
adminDB[playerName] = true
else
print("<ROSE>Error:<BL> Incorrect password!")
end
end
end
if cmd == "vampire" and adminDB[playerName] == true then
if arg[1] then
tfm.exec.setVampirePlayer(arg[1])
vampDB[playerName] = true
end
end
end

main()

Maybe this. Not sure if works as you want it.
Ziomacka
« Citoyen »
1382434560000
    • Ziomacka#0000
    • Profil
    • Derniers messages
#228
  0
How to use it .0.
Leafileaf
1382435040000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#229
[Modéré par Bolinboy, raison : offtopic.]
Jordy
« Consul »
1382437740000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#230
  0
Ziomacka a dit :
How to use it .0.

When you load the script it tells you a "!login <random characters>" type that in the chat.
Then use !vampire <playerName>
Derpysoul
« Citoyen »
1382449380000
    • Derpysoul#0000
    • Profil
    • Derniers messages
    • Tribu
#231
  0
Derpysoul a dit :
function eventChatCommand(playerName,command)
if command=="help" then
tfm.exec.chatMessage("Here's some help for you,"..playerName.."! The object of this game is to run away from werewolfs or bunnies. If you are chosen to be a werewolf or bunny, you have to turn as much mice as you can into a werewolf or bunny by catching them. The group with the most number of mice wins.Submit your maps here: (Forum Link)Derpysoul’s Forum: (Forum Link)")
end
end

Someone help me fix this? it says: [•] You don't have the right to use this function (tfm.exec.chatMessage).
Jordy
« Consul »
1382449620000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#232
  0
Derpysoul a dit :
Someone help me fix this? it says: [•] You don't have the right to use this function (tfm.exec.chatMessage).

Yeah.. You can't use that function.
You can put the text in a textArea thoug.
Khkrian
« Citoyen »
1382451540000
    • Khkrian#0000
    • Profil
    • Derniers messages
#233
  0
Is it possible to spawn conjuction ?
Jordy
« Consul »
1382451960000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#234
  0
Khkrian a dit :
Is it possible to spawn conjuction ?

a dit :
Tigrounette said:
tfm.exec.addConjuration(Int xPosition, Int yPosition, Int timeInMillis)
• Add conjuration to the map.

Derpysoul
« Citoyen »
1382452320000
    • Derpysoul#0000
    • Profil
    • Derniers messages
    • Tribu
#235
  0
how do i do this?

If there is less than 3 mice in the room appears in chat:
There is less than 3 mice in the room. The games needs 3 mice or more to start. Please invite more mice to start the game.
Jordy
« Consul »
1382453220000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#236
  0
Derpysoul a dit :
how do i do this?

If there is less than 3 mice in the room appears in chat:
There is less than 3 mice in the room. The games needs 3 mice or more to start. Please invite more mice to start the game.

Like so?

a dit :
function main()
if #tfm.get.room.playerList <= 3 then
print("We need atleast 3 players!")
end
end

main()

Unfortunately you can't use chatMessages.
Derpysoul
« Citoyen »
1382453220000
    • Derpysoul#0000
    • Profil
    • Derniers messages
    • Tribu
#237
  0
And how do i turn someone into a vampire randomly? like normal vampire survivor.
Jordy
« Consul »
1382454360000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#238
  0
Derpysoul a dit :
And how do i turn someone into a vampire randomly? like normal vampire survivor.

Hmm try this...
a dit :

function main()
print(#tfm.get.room.playerList)
if #tfm.get.room.playerList <= 3 then
print("We need atleast 3 players!")
system.exit()
end
end

function tfm.get.room.randomPlayer()
if #tfm.get.room.playerList == 0 then
for player,_ in pairs(tfm.get.room.playerList) do
randomPlayer = player
end
else
randomPlayer = tfm.get.room.playerList[math.random(#tfm.get.room.playerList)]
end
return(randomPlayer)
end

function eventNewGame()
vampire = tfm.get.room.randomPlayer()
tfm.exec.setVampirePlayer(vampire)
end

main()

In case you encounter a bug please whisper me.
Tomiek
« Citoyen »
1382461140000
    • Tomiek#0000
    • Profil
    • Derniers messages
#239
  0
How to made double jump? :O
Ethanrockz
« Citoyen »
1382464500000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#240
  0
A portal game.
It would be the shaman can spawn portals in a certain area but he has to get the mice to the cheese and back to the hole
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 12 / 160 › »
© Atelier801 2018

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

Version 1.27