User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 7 of 8

Thread: Hooking into an 'item purchase' event

  1. #1
    Enthusiast
    Join Date
    Nov 2014
    Posts
    21
    XP
    1,738
    Level
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Hooking into an 'item purchase' event

    Hey guys. I have a custom reputation system, and i want to be able to add semi-blizzlike rep vendors into my server. Basically i want to be able to hook into an event for the purchase of an item, compare two numbers (current rep to min rep) and if the conditions are not met, the item purchade is cancelled (whether that be retracting the item or simply ending the purchase)

    Thanks for amy help you can offer. Much love.

  2. #2
    Founder <span style='color: #FF4500'>Foereaper</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    926
    XP
    38,862
    Level
    60
    Thanks
    125
    Thanked 329 Times in 156 Posts
    http://emudevs.com/showthread.php/56...mExtendedCosts

    Read this, it pretty much covers what you want to do, except it handles extended costs instead of reputation. Logic is the same though.

  3. The Following 2 Users Say Thank You to Foereaper For This Useful Post:


  4. #3
    Original Poster
    Enthusiast
    Join Date
    Nov 2014
    Posts
    21
    XP
    1,738
    Level
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hey man thanks for your reply. I want to avoid using custom patches for my project, and i need to be able to retain gold costs on vendor items so i dont think this is the ideal solution for me. But thanks for your help regardless, im sure this reaource will come in handy anyway.

  5. #4
    Administrator
    Join Date
    May 2013
    Location
    yes
    Posts
    257
    XP
    1,838,387
    Level
    244
    Thanks
    6
    Thanked 110 Times in 67 Posts
    Quote Originally Posted by therealdudelee View Post
    Hey man thanks for your reply. I want to avoid using custom patches for my project, and i need to be able to retain gold costs on vendor items so i dont think this is the ideal solution for me. But thanks for your help regardless, im sure this reaource will come in handy anyway.
    The link he gave you does not require a custom patch.

  6. #5
    Original Poster
    Enthusiast
    Join Date
    Nov 2014
    Posts
    21
    XP
    1,738
    Level
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Yes but it doesn't let you retain a gold cost as far as im aware. I could be wrong though.

  7. #6
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,497
    XP
    20,134,837
    Level
    500
    Thanks
    1,092
    Thanked 333 Times in 213 Posts
    it doesn't mess with anything dealing with costs in gold or customextended.
    rather it just sits on the sidelines and lets you know in detail what custom extended costs are required in detail and all at once rather than one at a time. the player doesn't need anything downloaded to enjoy this handy mod its all server-side.

    the tutorial I posted --> http://emudevs.com/showthread.php/56...Extended-Costs
    Last edited by slp13at420; 08-01-2016 at 04:19 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  8. The Following User Says Thank You to slp13at420 For This Useful Post:


  9. #7
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,497
    XP
    20,134,837
    Level
    500
    Thanks
    1,092
    Thanked 333 Times in 213 Posts
    lol !omg! just relized I could add a check for VIP/Premium ranks in the custom cost check there lol then vendors will check if players are Premium or VIP rank x or higher lol

    and yea you could get the players honor point count in there then cross check it with required minimum and error if needed.
    Last edited by slp13at420; 08-01-2016 at 04:27 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •