+ Reply to Thread
Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 61

Thread: Wire Money Detector for RP

  1. #11
    Have plane will travel Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    1,503

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    Not to bash phil, but now that i just noticed this, you broke a rule of inclusion...

    Cannot commit anything which supplies or relies on a DLL or another mod. Not all hosts wan't dll's running on their systems, and SVN doesn't always give a choice. We don't need broken addons either, should the host decide not to install a prerequisite.
    This relies on RP gamemode to function.

    The reason why it's not allowed is that gmod is just too damn finicky. Everything should either rely on itself, or rely on wiremod, that way we can prevent as few conflicts as possible, period.
    "You can only tie the record for flying low."

  2. #12
    Wire Noob samohan's Avatar
    Join Date
    Feb 2009
    Posts
    7

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    If it could only be made so you can right-click one or more props/entities and then assign values to them instead of it being fixed on the RP money, Shame I don't know a thing about Lua...

  3. #13
    Wire Tutor chinoto's Avatar
    Join Date
    Apr 2008
    Location
    Brooklyn Park, MN. Lost my thumbdrive yet again...
    Posts
    1,983

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    RFID kinda does what you are talking about.
    (\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."

  4. #14
    Wirererer philxyz's Avatar
    Join Date
    Mar 2007
    Location
    Northampton, England
    Posts
    372

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    Ah, sorry about that Anticept. I will remove it if you prefer...

    ...edit: Agreed, and done.

    Update UWSVN to remove.


    Here's the addon:

    http://garrysmod.org/downloads/?a=view&id=62975
    Last edited by philxyz; 02-18-2009 at 05:08 PM.

  5. #15
    Have plane will travel Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    1,503

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    Quote Originally Posted by philxyz View Post
    Ah, sorry about that Anticept. I will remove it if you prefer...

    ...edit: Agreed, and done.

    Update UWSVN to remove.


    Here's the addon:

    Wire RP Money Detector Download!
    Much appreciated.
    "You can only tie the record for flying low."

  6. #16
    Wire Amateur Daedalus969's Avatar
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Wire Money Detector for RP

    I know that this was awhile ago, but the newest update for darkrp broke this reader. Anyone know of a possible fix?

  7. #17
    Wiremod Helper Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden
    Posts
    1,659

    Default Re: Wire Money Detector for RP

    Working on it.

    Edit:
    Cant upload it to garrysmod.org couse it keeps telling me its not a .zip. Anyways, anyone is free to upload it for me.
    Attached Files Attached Files
    Last edited by Donkie; 01-31-2010 at 02:40 AM.
    Get out. Seriously, do it.

  8. #18
    Wire Amateur Daedalus969's Avatar
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Wire Money Detector for RP

    Quote Originally Posted by Donkie View Post
    Working on it.

    Edit:
    Cant upload it to garrysmod.org couse it keeps telling me its not a .zip. Anyways, anyone is free to upload it for me.
    Haven't tested this yet, but since it looks like you know what you're doing, would you be able to fix the shipment reader as well?

  9. #19
    Wiremod Helper Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden
    Posts
    1,659

    Default Re: Wire Money Detector for RP

    Hmm, do you mean the E2functions for it? Google cant find anything else than that. I shall try fix em.

    Code:
    e2function string entity:shipmentContents()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return "" end
    	return this.dt.contents
    end
    
    e2function number entity:shipmentAmount()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return -1 end
    	return this.dt.count
    end
    
    e2function number entity:moneyAmount()
    	if (!validEntity(this)) then return -1 end
    	if this:GetClass()=="spawned_money" then
    		return this.Amount
    	else
    		return -1
    	end
    end
    That should work for you.
    Get out. Seriously, do it.

  10. #20
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,576

    Default Re: Wire Money Detector for RP

    I've already made RP E2 functions

    Code:
    AddCSLuaFile("darkrpfunctions.lua")
    
    e2function string entity:shipmentContents()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return "" end
    	return this:GetNWString("contents")
    end
    
    e2function number entity:shipmentAmount()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return -1 end
    	return this:GetNWInt("count")
    end
    
    e2function number entity:moneyAmount()
    	if (!validEntity(this)) then return -1 end
    	if (this:GetTable().MoneyBag) then
    		return this:GetTable().Amount
    	else
    		return -1
    	end
    end
    Yours look similar...

    Edit: Oh wait the latest DarkRP update broke this way of doing it so you took my E2 functions and edited them a little so that they work? Is that it?
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

+ Reply to Thread
Page 2 of 7 FirstFirst 1234 ... LastLast

LinkBacks (?)

  1. 02-02-2010, 12:05 AM

Similar Threads

  1. Request - darkrp money reader
    By Briam in forum Ideas & Suggestions
    Replies: 14
    Last Post: 09-13-2009, 08:40 AM
  2. Money detector in Offical svn
    By Donkie in forum Ideas & Suggestions
    Replies: 6
    Last Post: 05-05-2009, 02:26 PM
  3. RP money handler.
    By Donkie in forum Ideas & Suggestions
    Replies: 7
    Last Post: 02-15-2009, 10:59 AM
  4. Health Detector?
    By cpf in forum Ideas & Suggestions
    Replies: 4
    Last Post: 11-15-2007, 12:12 PM
  5. More detector tools
    By andy1976uk in forum Ideas & Suggestions
    Replies: 4
    Last Post: 07-17-2007, 02:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots