Warextdll release menu

User Tag List

Page 13 of 34 FirstFirst ... 91011121314151617 ... LastLast
Results 181 to 195 of 496
  1. #181
    rockman319's Avatar Member
    Reputation
    20
    Join Date
    Mar 2009
    Posts
    354
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi HansW.

    I'm at work so I can't open up WAR (lol) and type in hlp... but how do you use GetPlayerPosition() in LUA script (such as DrifterBars.lua)... I want to make a button that records player xyz to three local variables (or one? I think three) and another that calls Teleport()

    So how do you use those two useful functions
    GetPlayerPosition() and Teleport()
    ?

    Thanks a bunch!

    Warextdll release
  2. #182
    PharmerPhale's Avatar Member
    Reputation
    54
    Join Date
    Mar 2009
    Posts
    415
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Two buttons. One that sets your current position, and another that recals to it?
    From admin: Buy advertising if you wish to advertise

  3. #183
    rockman319's Avatar Member
    Reputation
    20
    Join Date
    Mar 2009
    Posts
    354
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. When I type in GetPlayerPosition(), I get nothing.

  4. #184
    PharmerPhale's Avatar Member
    Reputation
    54
    Join Date
    Mar 2009
    Posts
    415
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rockman, I added this functionality in the v0.2 I just posted.

    I also had trouble getting GetPlayerPosition() to give me something. I ended up picking apart HansW's BotProc files and found that he used this...
    Code:
    GetPlayer().runSpeed
    Hey!! I wonder... yep.. my add-on is currently using...
    Code:
    GetPlayer().x
    GetPlayer().y
    GetPlayer().z
    Instead of an array loaded by GetPlayerPosition()
    From admin: Buy advertising if you wish to advertise

  5. #185
    rockman319's Avatar Member
    Reputation
    20
    Join Date
    Mar 2009
    Posts
    354
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice job finding that.

  6. #186
    HansW's Avatar Active Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    310
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try /script sd(GetPlayerPosition()) to see the result. Its a lua table. What did you expect to see ?

    use it like this:

    local ppos = GetPlayerPosition()
    Teleport( ppos.x ,ppox.y,ppos.z )

    BTW: I found the afk timer and check routines. An anti afk function will be in the next dll release including a hack that prevents you from going AFK at all (at least not in this century).

    I also improved BotPoc some more ( i know i said i would not ). Potions ( you need the PotionBar Addon installed ) and a simple Waypoint System will be in the next (really final) release.

  7. #187
    rockman319's Avatar Member
    Reputation
    20
    Join Date
    Mar 2009
    Posts
    354
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BotPoc will kick ass with those!!

    Edit:
    here is potionbar addon from curse
    PotionBar - Addons - Curse
    Last edited by rockman319; 05-25-2009 at 08:36 AM.

  8. #188
    PharmerPhale's Avatar Member
    Reputation
    54
    Join Date
    Mar 2009
    Posts
    415
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local ppos = GetPlayerPosition()
    Teleport( ppos.x ,ppox.y,ppos.z )
    Yes, thank you for clearing that up. I'm still going through the transition to Lua.
    From admin: Buy advertising if you wish to advertise

  9. #189
    PharmerPhale's Avatar Member
    Reputation
    54
    Join Date
    Mar 2009
    Posts
    415
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EntityToMap -- pass a GUID. Puts a dynamic marker on the map for that entity
    Is EntityToMap working?
    Have I completely misunderstood it's purpose?

    I'm interested in this because I want to pass a single GUID to it and have EntityToMap populate a single marker. Perhaps this requires the creation of a new pin type but I'm not certain.

    Edit:
    I found that it takes two numbers, EntityToMap(number, number) but I'm still no closer. I tried combinations of (GUID, 0-9) and (0-9, GUID). And btw hans, I tried the command with no params and it doesn't have a usage message, just goes to next line. Thanks.
    Last edited by PharmerPhale; 05-28-2009 at 03:18 PM.
    From admin: Buy advertising if you wish to advertise

  10. #190
    HansW's Avatar Active Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    310
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    right you are. not every function has a help message. Most of them do.

    heres the usage :
    EntityToMap(GUID, TYPE)

    where type is of the following:

    enum MapPips
    {
    AUCTION_HOUSE_NPC = 34,
    BANNER = 51,
    BINDER_NPC = 37,
    BOUNTY_HUNTER_QUEST_COMPLETE_NPC = 28,
    BOUNTY_HUNTER_QUEST_OFFER_NPC = 26,
    BOUNTY_HUNTER_QUEST_PENDING_NPC = 27,
    CHAPTER = 3,
    DEFAULT = 0,
    DESTRUCTION_ARMY = 23,
    EMPTY_SIEGE_PAD = 40,
    FLAG = 25,
    GROUP_MEMBER = 16,
    GUILD_REGISTRAR_NPC = 38,
    HEALER_NPC = 39,
    HOTSPOT_LARGE = 46,
    HOTSPOT_MEDIUM = 45,
    HOTSPOT_SMALL = 44,
    INFLUENCE_REWARDS_NPC = 20,
    INFLUENCE_REWARDS_PENDING_NPC = 21,
    KEEP = 7,
    KILL_COLLECTOR_QUEST_COMPLETE_NPC = 30,
    KILL_COLLECTOR_QUEST_PENDING_NPC = 29,
    MAILBOX = 48,
    MAJOR_LANDMARK = 1,
    MERCHANT_DYE = 50,
    MERCHANT_LASTNAME = 49,
    MINOR_LANDMARK = 2,
    OBJECTIVE = 6,
    ORDER_ARMY = 22,
    PLAYER = 15,
    PLAYER_SIEGE_AIM_LOCATION = 43,
    PLAYER_SIEGE_WEAPON = 42,
    PUBLIC_QUEST = 5,
    QUEST_AREA = 24,
    QUEST_COMPLETE_NPC = 19,
    QUEST_OFFER_NPC = 17,
    QUEST_PENDING_NPC = 18,
    RVR_NPC = 47,
    SCENARIO_GATEKEEPER_NPC = 33,
    SIEGE_WEAPON = 41,
    STORE_NPC = 31,
    TRAINER_NPC = 32,
    TRAVEL_NPC = 35,
    VAULT_KEEPER_NPC = 36,
    WARBAND_MEMBER = 52,
    WAR_CAMP = 4,
    };

    an up to date list of the types is in your interface ( sd(SystemData.MapPips) )

  11. #191
    PharmerPhale's Avatar Member
    Reputation
    54
    Join Date
    Mar 2009
    Posts
    415
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Hans! =D
    From admin: Buy advertising if you wish to advertise

  12. #192
    PharmerPhale's Avatar Member
    Reputation
    54
    Join Date
    Mar 2009
    Posts
    415
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by HansW View Post
    sd(SystemData.MapPips)
    Thanks again for this Hans, it's been very useful for displaying the structures I would otherwise know nothing about.

  13. #193
    HansW's Avatar Active Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    310
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by PharmerPhale View Post
    Thanks again for this Hans, it's been very useful for displaying the structures I would otherwise know nothing about.
    Interesting are the GameData and SystemData tables. Check thewarwiki, they are shown there ( but not up to date ). So if you want to use the information in there, you better sd the appropriate table to the shell or use a lua based recursive table dumping function ( i think i included DumpTable(TableObj, intend) in the BotPoc release. It Dumps to the botpoc log window ( if you want to stay fullscreen ).
    It is also a good idear to use easymyp to extract the latest interface folder from the games myp files. This way you have the default interface lua code available to check how mythic is doing things in the interface. Its also on google code, but not uptodate.

  14. #194
    PharmerPhale's Avatar Member
    Reputation
    54
    Join Date
    Mar 2009
    Posts
    415
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by HansW View Post
    Interesting are the GameData and SystemData tables. Check thewarwiki, they are shown there ( but not up to date ). So if you want to use the information in there, you better sd the appropriate table to the shell or use a lua based recursive table dumping function ( i think i included DumpTable(TableObj, intend) in the BotPoc release. It Dumps to the botpoc log window ( if you want to stay fullscreen ).
    It is also a good idear to use easymyp to extract the latest interface folder from the games myp files. This way you have the default interface lua code available to check how mythic is doing things in the interface. Its also on google code, but not uptodate.
    Cool, ty. I've been using these two, the same that you mentioned I believe.

    WAR API - TheWarWiki
    wardiff - Revision 22: /

    But as you said, it's also nice to get current data.

  15. #195
    HansW's Avatar Active Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    310
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    New DLL Version 1.1 released.

    Added:
    PlayWAV(pathtowavfile) -- play a wav file. also working when the game is in background. So alarms are possible

    Blacklist(GUID) -- blacklist the entity to no be returned by the EntityList function
    ClearBlacklist() -- clear the blacklist.

    SetAFKCheck(0/1) -- turn the afk check on or off. you might still be disconnected server side if you don't do anything for too long.

    This release will reset the afk timer in most functions, so no more afking while using botpoc. There is a new BotPoc available also ( see other thread ).

Page 13 of 34 FirstFirst ... 91011121314151617 ... LastLast

Similar Threads

  1. [Release] Herbs to flag
    By Dave-evad in forum World of Warcraft Model Editing
    Replies: 9
    Last Post: 11-26-2006, 03:31 PM
  2. Burning Crusdade Release Date!
    By codydude815 in forum World of Warcraft General
    Replies: 22
    Last Post: 10-30-2006, 01:59 PM
  3. Burning Crusdade Release Date!
    By codydude815 in forum World of Warcraft Guides
    Replies: 15
    Last Post: 10-28-2006, 12:15 PM
  4. anti-warden Release #1
    By zhPaul in forum World of Warcraft Bots and Programs
    Replies: 40
    Last Post: 10-21-2006, 01:40 AM
  5. Burning Crusade Release
    By KOLOSSAL in forum World of Warcraft General
    Replies: 3
    Last Post: 10-10-2006, 12:33 AM
All times are GMT -5. The time now is 09:35 AM. 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