Raised This Month: $32 Target: $400
 8% 

[TF2] TF2TP Offers and Wishlists


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Luigi Thirty
Junior Member
Join Date: Jul 2008
Plugin ID:
2097
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays a player's TF2 Trading Post Offers and Wishlists to a client.
    Old 11-25-2010 , 15:06   [TF2] TF2TP Offers and Wishlists
    Reply With Quote #1

    • Description
      • This set of two plugins displays a user's TF2 Trading Post offers and wishlists respectively
      • Due to my limited experience with socket-based Sourcemod scripting, only one wishlist or offer list can be retrieved at a time. If a player tries to get another while one is being fetched, the plugin will display a temporary lockout notice.
    • CVAR/Command list
      • !offers (offer.sp) - Opens a menu to select which player's offers to view.
      • !wishlist (wishlist.sp) - Opens a menu to select which player's wishlist to view.
    • Changelog
      • 1.0.0 (11/25/10) - Initial release
    • Installation instructions
      • Make sure the Sockets and CSteamID extensions are installed and configured.
      • Drop .smx into plugins folder.
      • Done!
    Attached Files
    File Type: sp Get Plugin or Get Source (wishlist.sp - 289 views - 7.6 KB)
    File Type: sp Get Plugin or Get Source (offer.sp - 365 views - 7.4 KB)

    Last edited by Luigi Thirty; 11-25-2010 at 15:12.
    Luigi Thirty is offline
    danmon
    Member
    Join Date: Oct 2010
    Old 11-25-2010 , 22:16   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #2

    Is there anyway to edit this so that it works with http://www.tf2items.com/

    Last edited by danmon; 11-25-2010 at 22:17. Reason: spelling mistakes :D
    danmon is offline
    Luigi Thirty
    Junior Member
    Join Date: Jul 2008
    Old 11-25-2010 , 22:47   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #3

    No since they don't have an API I can access.
    Luigi Thirty is offline
    Leontar
    Junior Member
    Join Date: Jul 2010
    Old 08-20-2011 , 07:02   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #4

    "cannot read from file: "socket""
    plugin can not compile
    Leontar is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 08-20-2011 , 07:45   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #5

    Quote:
    Originally Posted by Luigi Thirty View Post
    You need to install sockets and CSteamID if you haven't yet.
    Drixevel is offline
    imbullg0d
    Senior Member
    Join Date: Apr 2009
    Old 01-27-2012 , 20:40   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #6

    hey, trying to load this, however the "Get Plugin" is missing the .smx. I've installed the .sp's and the Sockets 3.0 & CSteamID extensions to no avail. If I try to compile the .sp's on the Allied compiler, it won't compile.

    A little help?
    Thanks.
    __________________
    imbullg0d is offline
    wawazy
    Member
    Join Date: Aug 2009
    Old 01-28-2012 , 01:48   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #7

    i compiled but get alot of warning

    like this in the offer.sp

    Quote:
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team

    //// offer.sp
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(36) : warning 219: local variable "socket" shadows a variable at a precedin
    g level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(45) : warning 219: local variable "socket" shadows a variable at a precedin
    g level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(45) : warning 219: local variable "hFile" shadows a variable at a preceding
    level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(64) : warning 219: local variable "socket" shadows a variable at a precedin
    g level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(64) : warning 219: local variable "hFile" shadows a variable at a preceding
    level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(86) : warning 219: local variable "socket" shadows a variable at a precedin
    g level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(86) : warning 219: local variable "hFile" shadows a variable at a preceding
    level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(120) : warning 203: symbol is never used: "intsteamid64"
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\offe
    r.sp(119) : warning 204: symbol is assigned a value that is never used: "arg"
    // Header size: 3512 bytes
    // Code size: 4548 bytes
    // Data size: 1812 bytes
    // Stack/heap size: 524288 bytes; Total requirements: 534160 bytes
    //
    // 9 Warnings.
    //
    // Compilation Time: 0,25 sec
    // ----------------------------------------
    Press enter to exit ...
    and this for whislist.sp

    Quote:
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team

    //// wishlist.sp
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(39) : warning 219: local variable "socket" shadows a variable at a prece
    ding level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(4 : warning 219: local variable "socket" shadows a variable at a prece
    ding level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(4 : warning 219: local variable "hFile" shadows a variable at a preced
    ing level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(67) : warning 219: local variable "socket" shadows a variable at a prece
    ding level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(67) : warning 219: local variable "hFile" shadows a variable at a preced
    ing level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(90) : warning 219: local variable "socket" shadows a variable at a prece
    ding level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(90) : warning 219: local variable "hFile" shadows a variable at a preced
    ing level
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(126) : warning 203: symbol is never used: "intsteamid64"
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(125) : warning 204: symbol is assigned a value that is never used: "arg"
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(12) : warning 203: symbol is never used: "offerFile"
    // C:\Users\Nous\Desktop\sourcemod-1.4.1-windows\addons\sourcemod\scripting\wish
    list.sp(9) : warning 203: symbol is never used: "offerkv"
    // Header size: 3512 bytes
    // Code size: 4548 bytes
    // Data size: 1848 bytes
    // Stack/heap size: 524288 bytes; Total requirements: 534196 bytes
    //
    // 11 Warnings.
    //
    // Compilation Time: 0,25 sec
    // ----------------------------------------
    Press enter to exit ...

    maybe you can try it but im not enough good to tell you why i never coding
    Attached Files
    File Type: smx offer.smx (6.9 KB, 275 views)
    File Type: smx wishlist.smx (6.9 KB, 257 views)
    wawazy is offline
    imbullg0d
    Senior Member
    Join Date: Apr 2009
    Old 01-28-2012 , 16:35   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #8

    Thanks, I'll give it a shot.
    I couldn't even get it to compile that much when I tried..
    I'll let ya know if it worked.
    __________________

    Last edited by imbullg0d; 01-28-2012 at 16:59.
    imbullg0d is offline
    imbullg0d
    Senior Member
    Join Date: Apr 2009
    Old 01-28-2012 , 17:01   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #9

    Yeah, it's working, altho I haven't seen this plugin before so I'm not sure if it's working correctly.

    I was expecting it to take me to a motd window to the TF2TP site. Instead it pops up a menu window.

    Is this working correctly? If thats what the plugin is supposed to do, then yes, it's working correctly and wawazy's .smx's are working.
    __________________
    imbullg0d is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 01-28-2012 , 19:11   Re: [TF2] TF2TP Offers and Wishlists
    Reply With Quote #10

    Wawazy, attach the source (.sp) files of both plugins too, otherwise you're violating the GPL.
    __________________
    napalm00 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:28.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode