Advanced C++ Help menu

User Tag List

Results 1 to 6 of 6
  1. #1
    tripleblade3's Avatar Member
    Reputation
    42
    Join Date
    Sep 2007
    Posts
    164
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced C++ Help

    Hello,

    Okay so let me quickly bring you up to speed on my predicament.
    I am a beginner programmer, but I have managed to come up with a pretty neat little script that allows my players to summon vendors and class trainers from an item.

    The Problem: People think its funny to run around randomly spawning thousands of vendors everywhere (even though I made it so they de-spawn after 2 mintues) and its very annoying to me and to my players, so I came up with two different options of dealing with this.

    Option 1: Limit the time between summoning vendors.
    I tried to limit the time between summons to 20 seconds but Heres what happened:
    Say Player1 spawns a vendor in orgrimar,
    Then Player 2 tries to spawn a vendor in ironforge and it will tell them that they need to wait 20 seconds before spawning another vendor.

    See my problem? Let me show you the better, yet equally broken option.

    Option 2: De-spawn the players last vendor when they summon a new one.
    I tried to do this but just like the last option, if Player1 summons a vendor in orgrimar and Player2 then summons a vendor in ironforge, Player1's vendor will de-spawn


    So, My question is, how would I make it so the vendors will in effect 'bind' to the player without using MySQL/DB so that I could later de-spawn them?


    Thanks in advance
    But yeah, we all know the ArcEmu team is pretty much a farce... unfortunately, it's a farce with a gazillion users. - Hellgawd
    Remember to +Rep People who have helped you!

    Advanced C++ Help
  2. #2
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Send me the script, I'll fix it up for you.

    All I ask is you +rep me for the time :P

  3. #3
    tripleblade3's Avatar Member
    Reputation
    42
    Join Date
    Sep 2007
    Posts
    164
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, I may have figured it out on my own, give me an hour and If I still haven't fixed it Ill send it to you.
    But yeah, we all know the ArcEmu team is pretty much a farce... unfortunately, it's a farce with a gazillion users. - Hellgawd
    Remember to +Rep People who have helped you!

  4. #4
    Link_S's Avatar Member
    Reputation
    125
    Join Date
    Dec 2008
    Posts
    293
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you still haven't figure it out, I may help you on your way. Add my msn: [email protected]
    Why do I need a signature?

  5. #5
    Matis02's Avatar Contributor CoreCoins Purchaser
    Reputation
    154
    Join Date
    Mar 2007
    Posts
    378
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make the item open a vendor/trainer window. Saves every 1 the trouble .


  6. #6
    tripleblade3's Avatar Member
    Reputation
    42
    Join Date
    Sep 2007
    Posts
    164
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh sorry for not getting back to you guys my bad xD. Yeah I figured it out on my own, I made a vector which stores both the vendors guid and the players guid. Then when a player spawns a new vendor it checks the vector to see if the players guid exists, if it does it finds the corresponding vendor guid (the old one) and despawns the vendor from the world assuming that it hasen't already despawned due to the 2 minute despawn timer.
    I've tested it with multiplayers summoning vendors at a time and it works like a charm

    I May post my script when its done, but Im still adding functions to it. If you guys know the aspirestone (made by spectre) this script will be similar to his except I plan to have more features
    But yeah, we all know the ArcEmu team is pretty much a farce... unfortunately, it's a farce with a gazillion users. - Hellgawd
    Remember to +Rep People who have helped you!

Similar Threads

  1. Looking for advanced C++ help. Will pay!
    By Diodio in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-12-2009, 01:19 AM
  2. Antrix private server - advanced commands (Need Help)
    By Tazy in forum World of Warcraft General
    Replies: 1
    Last Post: 09-07-2008, 06:34 AM
  3. [Help] Advanced LSL Portals
    By Pwntzyou in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 04-20-2008, 05:29 PM
  4. Need a highly advanced editor's help...
    By Dregonx in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 09-07-2007, 05:04 AM
  5. advanced modeler help...
    By houseplant2 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 08-21-2007, 07:07 PM
All times are GMT -5. The time now is 01:16 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search