[Mod] Time2PWN [time2pwn]

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

[Mod] Time2PWN [time2pwn]

by LorenzoVulcan » Sun Dec 09, 2012 09:28

Time2pwn is a mod that place player's inventory on the ground when a player dies.

Download: http://hidemyass.com/files/iZRNP/

Source code: http://paste.forkforge.net/source/?id=3981l&s=si&l=LUA

This is a simple and performable mod that makes griefing/PVP more fun!
Last edited by LorenzoVulcan on Sun Dec 09, 2012 09:30, edited 1 time in total.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Sun Dec 09, 2012 12:01

Inventory is not guaranteed to have 32 items (same for craft grid), you should use get_size("name").
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Sun Dec 09, 2012 12:21

xyz wrote:Inventory is not guaranteed to have 32 items (same for craft grid), you should use get_size("name").

Thanks for the tip,anyway,that was scripted for minetest original core inventory.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Time2PWN [time2pwn]

by Napiophelios » Sun Jan 18, 2015 19:44

Does any one have a copy of this they can share?
None of the links work for me.
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: [Mod] Time2PWN [time2pwn]

by ExeterDad » Sun Jan 18, 2015 20:45

The source code link doesn't work for you?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
--  _______          _     _______
-- (_______)        | |   (_______)                                  _
--  _____ ___   ____| |  _ _____ ___   ____ ____  ____   ____   ____| |_
-- |  ___) _ \ / ___) | / )  ___) _ \ / ___) _  |/ _  ) |  _ \ / _  )  _)
-- | |  | |_| | |   | |< (| |  | |_| | |  ( ( | ( (/ / _| | | ( (/ /| |__
-- |_|   \___/|_|   |_| \_)_|   \___/|_|   \_|| |\____|_)_| |_|\____)\___)
--                                        (_____|
--
-- ######################################################################
--                        LULZPACK | BLOCKFORGE 2#
-- ######################################################################
--
--
-- This project is granted under the zlib license.
-- You can modify or redistribute it under the zlib conditions.
 
pwned=function(player, drops)
     pos=player:getpos()
     itempos={x=pos.x,y=pos.y+1,z=pos.z}
     local inv=player:get_inventory()
     for i=1,32 do
        local item=inv:get_stack("main", i)
        for i=1,item:get_count() do
        minetest.env:add_item(itempos,item:get_name()) end
        inv:set_stack("main", i, nil)
        for i=1,9 do inv:set_stack("craft", i,nil) end
        inv:set_stack("craftpreview", 1,nil)
     end
end
 
 
minetest.register_on_dieplayer(pwned)

I don't know how to hide text in a spoiler. Sorry :)
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Time2PWN [time2pwn]

by Napiophelios » Sun Jan 18, 2015 20:52

No, I dont know why either
Down For Everyone Or Just Me? says... "ITS JUST YOU!!" to me quite alot.
I think Comcast knows about those episodes of The Blacklist I downloaded last year.

Thanks man!
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] Time2PWN [time2pwn]

by Hybrid Dog » Sat Jan 24, 2015 20:14

Napiophelios wrote:http://downforeveryoneorjustme.com/

this website uses google analytics
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 7 guests

cron