aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/prayersystem/prayers/notdarkrp.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-08-24 20:32:34 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-08-24 20:32:34 -0400
commit233e478e40d72a091f70f18dc6846066a4f52016 (patch)
treecf34be714088889731736c81bd44e198c792625a /gamemode/shared/prayersystem/prayers/notdarkrp.lua
parent61bc16dae5a1b61bcd237d9f0be36125829d95b1 (diff)
downloadartery-233e478e40d72a091f70f18dc6846066a4f52016.tar.gz
artery-233e478e40d72a091f70f18dc6846066a4f52016.tar.bz2
artery-233e478e40d72a091f70f18dc6846066a4f52016.zip
Fix all linter warnings
Diffstat (limited to 'gamemode/shared/prayersystem/prayers/notdarkrp.lua')
-rw-r--r--gamemode/shared/prayersystem/prayers/notdarkrp.lua154
1 files changed, 77 insertions, 77 deletions
diff --git a/gamemode/shared/prayersystem/prayers/notdarkrp.lua b/gamemode/shared/prayersystem/prayers/notdarkrp.lua
index 426500b..a7a5761 100644
--- a/gamemode/shared/prayersystem/prayers/notdarkrp.lua
+++ b/gamemode/shared/prayersystem/prayers/notdarkrp.lua
@@ -1,77 +1,77 @@
-do return end
---[[
- A default prayer given to new players who try to press f4
-]]
-local prayer = {}
-
---Required, a name, all prayer names must be unique
-prayer.Name = "Noob Help"
-
---Optional, a tooltip to display when hovered over
-prayer.Tooltip = "Hello, and welcome to Artery, Enjoy your stay"
-
---Optional, when the player clicks this item, a menu will show up, if the menu item is clicked, the function is ran. This is all run client side, so if you want it to do something server side, you'll need to use the net library. Remember that items are in the shared domain, so you can define what it does in the same file!
-
-local lastpray = CurTime()
-
-function prayer.Pray(self)
- if SERVER then return end
- if CurTime() > lastpray + 5 then
- local helppanel = vgui.Create("DFrame")
- helppanel:SetSize(ScrW()/3,ScrH())
- helppanel:Center()
- helppanel:MakePopup()
- helppanel:SetText("Help")
-
- lastpray = CurTime()
- end
-end
-
-if SERVER then
- util.AddNetworkString( "art_prayer_darkrphelp" )
-
- net.Receive( "art_prayer_darkrphelp", function(ln,ply)
- print("Prayer received")
- if ply:HasPrayer("Noob Help") then
- ply:RemovePrayer("Noob Help")
- ply:SetCredits(ply:GetCredits() + 100)
- else
- print("You don't have that prayer!")
- end
- end)
-end
-
-function prayer.DisplayHelp(panel)
- print("Help displayed")
- local dll = vgui.Create( "DListLayout", panel)
- dll:Dock(FILL)
- local helptxt = vgui.Create("DLabel")
- helptxt:SetWrap(true)
- helptxt:SetText("Welcome to Artery! Since you don't really need this help anymore, you can click below to redeem it for 100 credits!")
- helptxt:SetSize(ScrW()/4,ScrH()/8)
- helptxt:SetDark(true)
- dll:Add(helptxt)
- local redeembutton = vgui.Create("DButton")
- dll:Add(redeembutton)
- redeembutton:Dock(BOTTOM)
- --helptxt:Dock(TOP)
- redeembutton:SetText("Redeem")
- redeembutton.DoClick = function(self)
- print("You clicked redeem!")
- net.Start("art_prayer_darkrphelp")
- net.SendToServer()
- end
-end
-
---Optional. Something run once when this item is drawn in a backpack
-function prayer.DoOnPanel(dimagebutton)
- dimagebutton:SetImage( "weapons/rustyaxe/rustyaxe.png")
-end
-
---Optional. Called continuously, use if you need the item to display different stuff at different tiems
-function prayer.Paint(self,width,height)
- draw.RoundedBox(4, 0,0,width,height,Color(0,100,0))
-end
-
-print("Hello from prayersystem/prayers/lesserevasion.lua")
-ART.RegisterPrayer(prayer)
+-- do return end
+-- --[[
+-- A default prayer given to new players who try to press f4
+-- ]]
+-- local prayer = {}
+--
+-- --Required, a name, all prayer names must be unique
+-- prayer.Name = "Noob Help"
+--
+-- --Optional, a tooltip to display when hovered over
+-- prayer.Tooltip = "Hello, and welcome to Artery, Enjoy your stay"
+--
+-- --Optional, when the player clicks this item, a menu will show up, if the menu item is clicked, the function is ran. This is all run client side, so if you want it to do something server side, you'll need to use the net library. Remember that items are in the shared domain, so you can define what it does in the same file!
+--
+-- local lastpray = CurTime()
+--
+-- function prayer.Pray(self)
+-- if SERVER then return end
+-- if CurTime() > lastpray + 5 then
+-- local helppanel = vgui.Create("DFrame")
+-- helppanel:SetSize(ScrW()/3,ScrH())
+-- helppanel:Center()
+-- helppanel:MakePopup()
+-- helppanel:SetText("Help")
+--
+-- lastpray = CurTime()
+-- end
+-- end
+--
+-- if SERVER then
+-- util.AddNetworkString( "art_prayer_darkrphelp" )
+--
+-- net.Receive( "art_prayer_darkrphelp", function(ln,ply)
+-- print("Prayer received")
+-- if ply:HasPrayer("Noob Help") then
+-- ply:RemovePrayer("Noob Help")
+-- ply:SetCredits(ply:GetCredits() + 100)
+-- else
+-- print("You don't have that prayer!")
+-- end
+-- end)
+-- end
+--
+-- function prayer.DisplayHelp(panel)
+-- print("Help displayed")
+-- local dll = vgui.Create( "DListLayout", panel)
+-- dll:Dock(FILL)
+-- local helptxt = vgui.Create("DLabel")
+-- helptxt:SetWrap(true)
+-- helptxt:SetText("Welcome to Artery! Since you don't really need this help anymore, you can click below to redeem it for 100 credits!")
+-- helptxt:SetSize(ScrW()/4,ScrH()/8)
+-- helptxt:SetDark(true)
+-- dll:Add(helptxt)
+-- local redeembutton = vgui.Create("DButton")
+-- dll:Add(redeembutton)
+-- redeembutton:Dock(BOTTOM)
+-- --helptxt:Dock(TOP)
+-- redeembutton:SetText("Redeem")
+-- redeembutton.DoClick = function(self)
+-- print("You clicked redeem!")
+-- net.Start("art_prayer_darkrphelp")
+-- net.SendToServer()
+-- end
+-- end
+--
+-- --Optional. Something run once when this item is drawn in a backpack
+-- function prayer.DoOnPanel(dimagebutton)
+-- dimagebutton:SetImage( "weapons/rustyaxe/rustyaxe.png")
+-- end
+--
+-- --Optional. Called continuously, use if you need the item to display different stuff at different tiems
+-- function prayer.Paint(self,width,height)
+-- draw.RoundedBox(4, 0,0,width,height,Color(0,100,0))
+-- end
+--
+-- print("Hello from prayersystem/prayers/lesserevasion.lua")
+-- ART.RegisterPrayer(prayer)