Share your scripts!!

  • MassacreLand
    31st Jan 2012 Member 0 Permalink
    Share your scripts for others to edit, add to, fix, or use!!

    Post them If you need help with them, If you want them to be known, Want to see what others can do with them, Or just feel like sharing the darned things!

    Obviously if you post the scripts in this thread you are allowing others to copy, use, and edit your scripts.
    Which is why I am posting this thread. So that you can share your scripts for others to have fun with, learn from, and build and or create from.

    TPT Related please.. xD

    Also please add somewhere a small descript of what your script is/does. :]
  • ForumTroll
    31st Jan 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • MassacreLand
    31st Jan 2012 Member 0 Permalink
    @ForumTroll (View Post)
    Shut up >.< xD
  • ForumTroll
    31st Jan 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • MassacreLand
    31st Jan 2012 Member 0 Permalink
    @ForumTroll (View Post)
    Lol :P Oh and I changed the description x] thanks to you :P
  • ForumTroll
    31st Jan 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • MassacreLand
    31st Jan 2012 Member 0 Permalink
    There lol.

    Element EWAT

    tpt.el.star.name='EWAT'
    tpt.el.star.description='Angry water.'
    tpt.el.star.color=0x84BFD5
    tpt.el.star.menusection=4
    tpt.el.star.menu=1
    tpt.el.star.enabled=1
    tpt.el.star.weight=-1
    types={'hygn','oxyg'}
    math.randomseed(os.time())
    function ewat(i,x,y,s,n)
    for n=1,2 do
    tpt.parts[i].x=tpt.get_property('x',i)+math.random(-6,6)
    tpt.parts[i].y=tpt.get_property('y',i)+math.random(-6,6)
    for x2=-7,7 do
    for y2=-math.sqrt((49)-(x2^2)),math.sqrt((49)-(x2^2)) do
    tpt.create(x+x2,y+y2,types[math.random(1,2)])
    tpt.set_property('life',4,x+x2,y+y2)
    tpt.set_property('temp',-10000+273.15,x+x2,y+y2)
    if tpt.get_property('type',x+x2,y+y2)~=0 and tpt.get_property('type',x+x2,y+y2)~=tpt.el.oxyg.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.hygn.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.star.id then
    tpt.create(x+x2,y+y2,'watr')
    tpt.set_property('life',10,x+x2,y+y2)
    end
    end
    end
    end
    end

    tpt.element_func(ewat,tpt.el.star.id)


    Element RAGE

    tpt.el.wind.name='RAGE'
    tpt.el.wind.description='Rage?'
    tpt.el.wind.color=0x800080
    tpt.el.wind.menusection=3
    tpt.el.wind.menu=1
    tpt.el.wind.enabled=1
    tpt.el.wind.weight=-1
    types={'fire','thrm'}
    math.randomseed(os.time())
    function rage(i,x,y,s,n)
    for n=1,2 do
    tpt.parts[i].x=tpt.get_property('x',i)+math.random(-6,6)
    tpt.parts[i].y=tpt.get_property('y',i)+math.random(-6,6)
    for x2=-7,7 do
    for y2=-math.sqrt((49)-(x2^2)),math.sqrt((49)-(x2^2)) do
    tpt.create(x+x2,y+y2,types[math.random(1,2)])
    tpt.set_property('life',4,x+x2,y+y2)
    tpt.set_property('temp',10000+273.15,x+x2,y+y2)
    if tpt.get_property('type',x+x2,y+y2)~=0 and tpt.get_property('type',x+x2,y+y2)~=tpt.el.thrm.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.fire.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.wind.id then
    tpt.create(x+x2,y+y2,'rage')
    tpt.set_property('life',10,x+x2,y+y2)
    end
    end
    end
    end
    end

    tpt.element_func(rage,tpt.el.wind.id)

  • ForumTroll
    31st Jan 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • MassacreLand
    31st Jan 2012 Member 0 Permalink
    @ForumTroll (View Post)
    Shh :P And to my last post.

    Credit to the element's orriginal script goes to
    ArtMaster
  • mniip
    31st Jan 2012 Developer 0 Permalink
    http://pastebin.com/BHMyfgkC

    upload(filename,params,newname) to upload a file

    download() to downlaod a file
    make sure you dont unpause it.