×

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
  • /
  • Abdeltif's scripts
« ‹ 5 / 6 › »
Abdeltif's scripts
Abdeltif
« Citoyen »
1394719320000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#81
  0
Pawgold a dit :
As from the information heard, Abdeltif has dropped the Besmart project, and now it is in my hands to make it updated and keep it going! ^.^
Besmart is now running for a short amount of time in /room *#besmart

No.
Just no.
Xinaug
1394795640000
    • Xinaug#0000
    • Profil
    • Derniers messages
    • Tribu
#82
[Modéré par Bolinboy, raison : unnecessary and offtopic]
Abdeltif
« Citoyen »
1394801640000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#83
  0
Well, She simply wants the game to be played in public :)
But for her coding level, I don't know.
Maybe she is a good coder but she don't want to show off her skills.
I don't judge people randomly :x

And thanks , my codes arean't that efficent ^^
Pawgold
1394852040000
    • Pawgold#0000
    • Profil
    • Derniers messages
    • Tribu
#84
[Modéré par Bolinboy, raison : unnecessary]
Hophipmice
« Citoyen »
1394878560000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#85
  0
Erm, excuse me.

Maybe (s)he was being rude but that doesn't give you any permission to be rude back. You can just report it and wait. Also, if you don't want to show off your skills because 'people make fun of you' how can you program the game? And I'm sure Abdel said 'No. Just no.' so yeah

Last but not least, I'm sure Abdel didn't back out because he would have said do here or he would have gave it someone else like Jordynl (basically Jordynl was the co-owner) so yeah.

Also, I mean this is the last for sure, you don't tell people to fuck off. That's basically what you're trying to say. It's Abdel's thread, not yours.

Now, please don't argue any longer.

PS : I'm not too sure of the info, but I'm sure of some.

On topic:

Amazing codes!
Fierying
« Censeur »
1394879100000
    • Fierying#0000
    • Profil
    • Derniers messages
#86
  0
Actually can oyu update your OP of all the codes you have coded?
Imean i am not sure myself but I am not too fond of going page by page ^^"
nonetheless good job with your codings! keep it up~
Hophipmice
« Citoyen »
1394883180000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#87
  0
Fierying a dit :
Actually can oyu update your OP of all the codes you have coded?
Imean i am not sure myself but I am not too fond of going page by page ^^"
nonetheless good job with your codings! keep it up~

I might be able to post them here.. one sec.
code a dit :

DEV ID:

function Devib(number)
if number and number<=500000 then
local tbl = {}
if type(number)=="number" then
if number <= 500000 then
for i=0,number do
if number%i==0 then
table.insert(tbl, i)
end
end
return tbl
else
error("Number too hight, expected less than 500000",2)
end
else
error("expected to be number",2)
end
print("{"..table.concat(tbl, " , ").."}")
else
local num = tonumber(io.read())
local tbl = {}
if type(num)=="number" then
if num <= 500000 then
for i=0,num do
if num%i==0 then
table.insert(tbl, i)
end
end
return tbl
else
error("Number too hight, expected less than 500000",2)
end
else
error("expected to be number",2)
end
end
end

Simply , to use devib, follow these instructions :
devib(number) return the devitions of the number
If number is higher than 500000 or it's not a number, it gives our an error
Note : devib(number) will return as a table, so doing devib(9) will return {1, 3, 9}
You can do print(devib(9)[#devib(9)-1]) if you want to print the divition befor the last one for example.

code a dit :

RATA:

--[[Config]]--
PTA = 1
PBD = 1
DOD = 3000
--[[ ]]

--[[Tables]]--
pressed = {}
force = {}
id = {}
--[[ ]]

--[[TConfig]]
function eventNewPlayer(i)
tfm.exec.bindKeyboard(i, 32, true, true)
tfm.exec.bindKeyboard(i, 32, false, true)
force = PBD
end
for k,v in pairs(tfm.get.room.playerList) do
eventNewPlayer(k)
end
--[[ ]]
--[[GamePlay]]--
function eventKeyboard(playerName, keyCode, down, x, y)
if keyCode == 32 then
if down then
pressed[playerName] = true
else
if tfm.get.room.playerList[playerName].isFacingRight then
table.insert(id, {tfm.exec.addShamanObject(10, x, y, 0, force[playerName], 1, false), os.time()} )
else
table.insert(id, {tfm.exec.addShamanObject(10, x, y, 0, -(force[playerName]), 1, false), os.time()} )
end
pressed[playerName] = false
end
end
end

function eventLoop()
for k,v in pairs(pressed) do
if v then
force[k] = force[k] + PTA
else
force[k] = PBD
end
end
for i,n in pairs(id) do
if n[2] <= os.time()-DOD then
tfm.exec.removeObject(n[1])
end
end
end
--[[ ]]


A small version of ratapult
Hold space then relase it to shoot the canon.
PTA = Power To Add, you can change this for the powerful the shot become per 1/2 second.
PBD = Power By Default, you may want your shot to be powerful/low just by pressing the space bar
1 by default
DOD = Delay Of Despawn, you may want the canon to despawn after 3000 milliseconds, you have it ! It works by milliseconds, not seconds.

code a dit :

menupad :

see = [[<b><VP><a href="event:pad1">Menu Pad!</a></b>]]
Fly = {}
Info = [[
<V> Hello and welcome to <VP>MenuPad<V> ! Here, you can use communly known commands but it A <VP>Pad<V> :)
You can access this help menu when ever you want by writing <BL>!help<V> and for the Pad use <BL><a href="event:pad1">!pad</a><V>.
<p align="right"><a href="event:close"><R>Close</a></p>
]]
pad1 = [[
<BL><a href="event:sham">Set Shaman</a> :<V> sets the specific mouse as a shaman.
<BL><a href="event:snow">Snow</a> :<V> sets snow to the map.
<BL><a href="event:map">Map</a> :<V> plays youre map.
<BL><a href="event:vamp">Vampire</a> :<V> sets the specific mouse as a vampire.
<BL><a href="event:fly">Fly</a> :<V> Gives the ability to fly for the following mouse.
<BL><a href="event:unfly">Unfly</a> :<V> Disable the ability to fly for the following mouse.
<R><p align="center"><a href="event:close">Close</a></p>

]]
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name, 32, true, true)
ui.addTextArea(0 , see, name, nil, nil, nil, nil, nil, nil, 0.92, true)
Fly[name]=false
end

for p, player in pairs(tfm.get.room.playerList) do
eventNewPlayer(p)
end

function eventTextAreaCallback(id, name, event)
if event=="sham" then
ui.addPopup(0, 2,[[<font size="16"><J><b>Player Name</b>:</font>]], name, nil, nil, nil, true)
elseif event=="snow" then
tfm.exec.snow()
elseif event=="map" then
ui.addPopup(1, 2, [[<font size="16"><J><b>Map code</b>:</font>]], name, nil, nil, nil, true)
elseif event=="vamp" then
ui.addPopup(2, 2, [[<font size="16"<J>><b>Player Name</b>:</font>]], name, nil, nil, nil, true)
elseif event=="pad1" then
ui.removeTextArea(see,name)
ui.addTextArea(1001, pad1, name, nil, nil, nil, nil, nil, nil, 0.92, true)
elseif event=="close" then
ui.removeTextArea(id,name)
ui.addTextArea(0,'<b><VP><a href="event:pad1">Menu Pad!</a></b>',name,nil,nil,nil,nil,nil, nil, 0.92, true)
elseif event=="fly" then
tfm.exec.bindKeyboard(name, 32, true, true)
ui.addPopup(3, 2,[[<font size="16"><J><b>Player Name</b>:</font>]], name, nil, nil, nil, true)
elseif event=="unfly" then
ui.addPopup(4, 2,[[<font size="16"><J><b>Player Name</b>:</font>]], name, nil, nil, nil, true)
end
end


function eventKeyboard(name,key,down,x,y)
if Fly[name] then
if key==32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end
end

function eventPopupAnswer(id,name,answer)
if id==0 then
if answer==nil then
tfm.exec.setShaman(name)
elseif answer=="all" then
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(name)
end
else
tfm.exec.setShaman(answer)
end
elseif id==1 then
if answer~=nil then
tfm.exec.newGame(answer)
else
tfm.exec.newGame(math.random(0,210))
end
elseif id==2 then
if answer~=nil then
tfm.exec.setVampirePlayer(answer)
else
tfm.exec.setVampirePlayer(name)
end
elseif id==3 then
if answer~=nil then
Fly[answer]=true
else
Fly[name]=true
end
elseif id==4 then
if answer~=nil then
Fly[answer]=false
else
Fly[name]=true
end
end
end

code a dit :

Tribe house manager:

--[[Fun part]]--
List = {"Abdeltif", "Pawgold"}
Admins = {}
Banned = {}
for k,name in pairs(List) do
Admins[name]=true
end
function eventChatCommand(name, cmd)
local cmd_arg={}
for argument in cmd:gmatch("[^%s]+") do
table.insert(cmd_arg, argument)
end
if Admins[name] then
if cmd_arg[1]=="ban" then -- That is dump .è.
if cmd_arg[2] then
Banned[cmd_arg[2]]=true
end
elseif cmd_arg[1]=="unban" then
if cmd_arg[2] then
Banned[cmd_arg[2]]=false
end
elseif cmd_arg[1]=="admin" then
if cmd_arg[2] then
Admins[cmd_arg[2]]=true
end
end
end
if not Banned[name]==true then
if cmd=="cheese" then
tfm.exec.giveCheese(name)
elseif cmd=="vampire" then
tfm.exec.setVampirePlayer(name)
elseif cmd=="sham" then
tfm.exec.setShaman(name)
elseif cmd=="mort" then
tfm.exec.killPlayer(name)
elseif cmd=="win" then
tfm.exec.giveCheese(name)
tfm.exec.playerVictory(name)
elseif cmd_arg[1]=="spawn" then
if cmd_arg[2] and cmd_arg[3] and cmd_arg[4] then
tfm.exec.addShamanObject(cmd_arg[2], cmd_arg[3], cmd_arg[4])
else
tfm.exec.addShamanObject(0, 0, 0)
end
elseif cmd_arg[1]=="map" then
if cmd_arg[2] then
tfm.exec.newGame(cmd_arg[2])
else
tfm.exec.newGame(math.random(0,210))
end
end
end
end

for k,v in pairs({"ban", "unban", "map", "sham", "vampire", "mort", "win", "spawn"}) do
system.disableChatCommandDisplay(v, true)
end

code a dit :

BESMART :

--[[ Tables and config ]]--

x = {5, 6, 80, 40, 100, 96, 140, 132, 175, 150, 200, 215, 264, 320, 340, 390, 400}
time=0
Life = {}
Admin = {}
Winner = {}
players={}
score = {}
help={
[[<j>Jump on the cannon to help you get to the <B>cheese</B>.<br/>
When you die, your life counter will go down by <r>1<j>.<br/>
When you win, your life counter will go up by <r>3<j><br/>
more info at page 2]],
[[<j>When you reach 50 points you will be a winner, you can fly by presing space, and so on<br/>
When your points reach <r>1<j> you will be disqualafied<br/>]],
[[<j>Minigame moderators will have a pink name and can set your score in case of bugs and so on<br/>
if you misbehave! Then abdeltif will visite you.<br/>
Also winners have a blue name, Enjoy the game :p<br/>]]
}
for k,v in pairs({"set","help","respawn","reset"}) do
system.disableChatCommandDisplay(v, true)
end

function score.set(name, points)
tfm.exec.setPlayerScore(name, points)
end
function score.reset(name)
tfm.exec.setPlayerScore(name, 0)
end
function score.update(name)
tfm.exec.setPlayerScore(name, Life[name])
end

tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
Map = tonumber(tfm.get.room.currentMap)
tfm.exec.newGame(0)
tfm.exec.setUIMapName("<r><B>Tig is watching you...</b>")


--[[Start config]]--
function eventNewPlayer(name)
tfm.exec.respawnPlayer(name)
tfm.exec.movePlayer(name, 500, 330)
Life[name] = 20
score.update(name)
Admin[name]=false
tfm.exec.bindKeyboard(name, 32, true, true)
score.reset(name)
players[name]={helpid=1}
ui.addTextArea(0,"<p align='center'><a href='event:help'><b>?</b></a></p>",name,780,25,16,16,nil,0x324650,nil,true)
for k,v in pairs({"Abdeltif", "Shamousey", "Jordynl", "Pawgold"}) do
Admin[v]=true
tfm.exec.setNameColor(v, 0xFD00FF)
end
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

--[[Winnning rawards]]--
function eventPlayerWon(name)
ui.addTextArea(9, "<ROSE>[~Moderation]Good job "..name, nil, 400)
Life[name] = Life[name] + 3
score.update(name)
tfm.exec.respawnPlayer(name)
tfm.exec.movePlayer(name, 500, 330)
if Life[name]>=50 then
if not Admin[name] then
ui.addTextArea(11,"<ROSE>[~Moderation]Wow you made it "..name.." !\nYou are now considered as a winner.\nYou can fly ! C:",nil,500, 260, nil, nil, nil, nil, 0.5, true)
ui.removeTextArea(9)
tfm.exec.setNameColor(name, 0x002EFF)
Winner[name]=true
end
end
end
--[[Help]]--
function eventTextAreaCallback(id,name,callback)
if callback=="help" then
eventChatCommand(name,callback)
elseif callback=="close" then
players[name].helpid=1
for id=1,5 do
ui.removeTextArea(id,name)
end
elseif callback=="next" and players[name].helpid<#help then
players[name].helpid=(players[name].helpid)+1
ui.updateTextArea(1,help[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#help.."</p>",name)
elseif callback=="previous" and players[name].helpid>1 then
players[name].helpid=players[name].helpid-1
ui.updateTextArea(1,help[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#help.."</p>",name)
end
end

--[[Death's config]]--
function eventPlayerDied(name)
if Life[name]<50 then
tfm.exec.respawnPlayer(name)
tfm.exec.movePlayer(name, 500, 330)
Life[name] = Life[name] - 1
score.update(name)
elseif Life[name]>=50 then
if not Admin[name] then
ui.addTextArea(11,"<ROSE>[~Moderation]Wow you made it "..name.." !\nYou are now considered as a winner.\nYou can fly ! C:",nil,500, 260, nil, nil, nil, nil, 0.5, true)
ui.removeTextArea(9)
tfm.exec.setNameColor(name, 0x002EFF)
Winner[name]=true
tfm.exec.respawnPlayer(name)
tfm.exec.movePlayer(name, 520, 120)
end
end
end

--[[The Game]]--
function eventLoop(timer,remaining)
if timer <= 3000 and not started then
ui.addTextArea(505, "Get ready !")
started=true
end
if started then
if time<7 then
time=time+1
else
ui.updateTextArea(505, "Go go go !")
for i=1, 10, 1 do
local t={0,1,2.4,9,11.13,25,28}
end
tfm.exec.addShamanObject(20, 500, 330)
tfm.exec.addShamanObject(1, x[math.random(#x)], 1)
end
end
end

--[[Stuff for admins//normals]]--
function eventChatCommand(name, 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=="set" and Admin[name] then
if arg[2] then
Life[arg[1]] = tonumber(arg[2])
score.update(arg[1])
else
Life[name] = tonumber(arg[1])
score.update(name)
end
elseif cmd=="setAll" and Admin[name] then
for namE,player in pairs(tfm.get.room.playerList) do
Life[namE] = tonumber(arg[1])
score.update(namE)
end
elseif cmd == "respawn" and Admin[name] then
if arg[1] then
tfm.exec.respawnPlayer(arg[1])
else
tfm.exec.respawnPlayer(name)
end
elseif cmd == "reset" and Admin[name] then
if arg[1] then
score.reset(arg[1])
else
score.reset(name)
end
elseif cmd=="help" then
ui.addTextArea(1 ,help[players[name].helpid] ,name ,100 ,260 ,600 ,100 ,nil ,0x324650 ,0.8 , true)
ui.addTextArea(2,"<p align='center'><a href='event:previous'><b>&lt;</b></a></p>",name,110,200,16,16,nil,0x324650,0.8,true)
ui.addTextArea(3,"<p align='center'><a href='event:next'><b>&gt;</b></a></p>",name,150,200,16,16,nil,0x324650,0.8,true)
ui.addTextArea(4,"<p align='center'><a href='event:close'><b>Close</b></a></p>",name,200,200,42,16,nil,0x324650,0.8,true)
ui.addTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#help.."</p>",name,300,200,42,16,nil,0x324650, 0.8,true)
end
end


function eventKeyboard(name, keycode)
if Admin[name] or Winner[name] then
if keycode==32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end
end

function table.random(t, associative)
associative = associative or false
if associative then
local t2 = {}
for k in pairs(t) do
t2[#t2 + 1] = k
end
return t[table.random(t2)]
else
return t[math.random(1,#t)]
end
end

code a dit :

Small particle show :

Particle = {3, 30}


numbers=10
emote={}

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

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventKeyboard(playerName,key,down,x,y)
if key==32 then
if tfm.get.room.playerList[playerName].isFacingRight then
for i=1,4 do
if emote[playerName] then
tfm.exec.displayParticle(emote[playerName], x, y+(i*10), 5, 0.05, 0.05, 0, nil)
else
tfm.exec.displayParticle(5, x, y+(i*10), 5, 0.05, 0.05, 0, nil)
end

end
else
for i=1,4 do
if emote[playerName] then
tfm.exec.displayParticle(emote[playerName], x, y+(i*10), -5, 0.05, -0.05, 0, nil)
else
tfm.exec.displayParticle(5, x, y+(i*10), -5, 0.05, -0.05, 0, nil)
end

end
end
end
end

function eventChatCommand(playerName, cmd)
if cmd:sub(0,4) == "part" then
emote[playerName]=cmd:sub(6)
end
end

function eventLoop()
for i=1,numbers do
tfm.exec.displayParticle(math.random(3, 4), math.random(50,100), math.random(20, 250), 1, 0, 0, 0, nil)
end
end

system.disableChatCommandDisplay("part", true)

code a dit :

Talking pane :

ui.addTextArea(0, "thing", nil, nil, nil, nil, nil, nil, nil, 0.5, true)

string = {}


function eventChatCommand(playerName, cmd)
if cmd:sub(0,1)=="p" then
table.insert(string, "<font color='#0880fe' size='16'><b>"..playerName.."</b></font> : <font size='16'>"..cmd:sub(3).."</font>")
elseif cmd=="reset" then
for i=0,#string do
table.remove(string, i)
end
table.insert(string, "<font size='18' color='#008000f'>Updated for the longest</font>")
elseif cmd=="input" then
ui.addPopup(0, 2, "<font color='#00800f' size='15.4'>Input</font>", playerName, 400, 50)
end
end

function eventLoop()
ui.updateTextArea(0, table.concat(string, "\n"))
end

function eventPopupAnswer(iD, playerName, ans)
if iD==0 then
table.insert(string, "<font color='#0880fe' size='16'><b>"..playerName.."</b></font> : <font size='16'>"..ans.."</font>")
end
end


system.disableChatCommandDisplay("p", true)
system.disableChatCommandDisplay("input", true)
system.disableChatCommandDisplay("reset", true)

done
Abdeltif
« Citoyen »
1394890440000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#88
  0
Hophipmice a dit :

I might be able to post them here.. one sec.


done

Thank you hop ;)

# Pawgold
Enough paw,
I might said I'll drop it, but at the end, the co-owner is Jordy as hophip said to you.
And you know that very well.
Abdeltif
« Citoyen »
1395676020000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#89
  0
Hi guys, I want to introduce you to a game I made, well 2 games but I'll only show one.
StayInTheBox!
The goal of the game is to stay in the box and not to die , until everyone else die and you win.
It's hard and difficult, the box goes < and >.
And it size is changable.

http://i.imgur.com/5QDiA8z.png
This may be run sometimes in a specefic room.
Code : sorry, it's private.
Credits :
Fireyone : Ideas.
Abdeltif : the whole coding
Fireyone
« Citoyen »
1395677040000
    • Fireyone#0000
    • Profil
    • Derniers messages
    • Tribu
#90
  0
Nice game it's not bad at all.
Abdeltif
« Citoyen »
1401978240000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#91
  0
a dit :
stop = false
map = 5097614
tfm.exec.newGame(5097614)
for k,v in pairs({"AutoNewGame"}) do
tfm.exec["disable"..v](true)
end
function killPlayers()
if stop then return true end
local num = 0
local pname
for name,v in pairs(tfm.get.room.playerList) do
if (v.x>=1800 or v.x<=0) or v.y<=0 then
tfm.exec.killPlayer(name)
end
end
for k,v in pairs(tfm.get.room.playerList) do
if not v.isDead then
num = num + 1
pname = k
end
end
if num == 1 then
ui.addTextArea(0, "<font face='soopafresh' size='20' color='#FE0402'"..string.upper(pname).."WON ! restarting in 10".."</font>", nil, 50, 50, nil, nil, nil, nil,1, true)
stop = true
tfm.exec.setGameTime(10)
return true
end
end
function eventLoop(t, tr)
if killPlayers() then
ui.addTextArea(0, "<font face='soopafresh' size='20' color='#FE0402'"..string.upper(pname).."WON ! restarting in "..tr.."</font>",nil)
end
if tr <=0 then
tfm.exec.newGame(map)
stop = false
end
end --no

I made this on a request.
Frenklimeka
1401991140000
    • Frenklimeka#0000
    • Profil
    • Derniers messages
#92
[Modéré par Icewolfbob, raison : Please don't Adb personally to discuss this ^^]
Cutylilian
« Citoyen »
1402090440000
    • Cutylilian#0000
    • Profil
    • Derniers messages
#93
  0
I love partical 12 because it looks like a twilight magic boom.Which matches my twilight hair ^^. I like 26 as well
Abdeltif
« Citoyen »
1402137960000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#94
  0
Cutylilian a dit :
I love partical 12 because it looks like a twilight magic boom.Which matches my twilight hair ^^. I like 26 as well

The full list of particals by atelier801 is in here : click
Scroll down ↓ until you find Particles.


Just asking : 12 is the spirit's animation how can u love it o.O

Dernière modification le 1403436060000
Frenklimeka
« Citoyen »
1402147800000
    • Frenklimeka#0000
    • Profil
    • Derniers messages
#95
  0
Abd I found ur script of Stay in the box ^^

[Sentinel] Feel free to discuss Stay in the box here: Topic-670893 :)
Abdeltif
1403436300000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#96
[Modéré par Katburger, raison : Requested]

Dernière modification le 1403436840000
Shamousey
« Consul »
1403437800000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#97
  0
Abdeltif a dit :
I made a function, similar to pythag but it's for circles :)

That's what a pythag function does in the first place '-'
Abdeltif
« Citoyen »
1403441460000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#98
  0
Shamousey a dit :
Abdeltif a dit :
I made a function, similar to pythag but it's for circles :)

That's what a pythag function does in the first place '-'

I thought pythag is used for rectangles ,
but you're right
I reported my post /-/
E : at least it was a good math lesson for me *yay*

Dernière modification le 1403441640000
Masteerrproo
« Citoyen »
1404061380000
    • Masteerrproo#0000
    • Profil
    • Derniers messages
    • Tribu
#99
  0
nice scripts

Dernière modification le 1404062400000
Firestonnne
« Citoyen »
1404082020000
    • Firestonnne#0000
    • Profil
    • Derniers messages
    • Tribu
#100
  0
Abdeltif a dit :

Yus but diffirecnt places and deacted ids , impossible

Not even close to being impossible:
t = 0

function eventChatCommand(playerName, cmd)
local ppX = tfm.get.room.playerList[playerName].x
local ppY = tfm.get.room.playerList[playerName].y
if cmd:sub(0,4) == "part" then
if tfm.get.room.playerList[playerName].isFacingRight then
for i=0,3,1 do
tfm.exec.displayParticle(cmd:sub(6), ppX, ppY + 10 * i, 5, 0.05, 0, 0, nil)
end
else
for i=0,3,1 do
tfm.exec.displayParticle(cmd:sub(6), ppX, ppY + i * 10, -5, 0.05, 0, 0, nil)
end
end
end
end

system.disableChatCommandDisplay("part", true)
function eventLoop()
for i=0,14,1 do
if i % 2 == 0 then
tfm.exec.displayParticle(math.random(0,37), 50, 50 + 10 * i, 1 + 0.2 * i, 0, 0.01 * i, 0, nil)
else
tfm.exec.displayParticle(math.random(0,37), 50, 50 + 10 * i, 1 + 0.2 * i, 0, 0, 0, nil)
end
end
end
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Abdeltif's scripts
« ‹ 5 / 6 › »
© Atelier801 2018

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

Version 1.27