Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 6 of 6
  1. #1
    Banned

    Join Date
    Jan 2009
    Posts
    68
    Post Thanks / Like
    Rep Power
    0
    Reputation
    91

    [C++][Zone] Dueling Area ; Healers and spectators for your dueling zone


    Register to remove this ad
    This is some of the scripts I use for my dueling zone. It has healers that heal the players that are low on health (unless they are dueling of cource) and spectators that cheers and claps.

    This is an early version and will be updated with more features. If you got any Suggestion or Bug Reports post them below. When you report a bug please give us detailed information or we won't be able to help you.

    1. Save the program to your gossip scripts folder (or any other folder containing c++ scripts)
    2. You will now have to edit the settings to set the Npc Ids
    3. add void SetupDuelZone(ScriptMgr * mgr); to Setup.h
    4. add SetupDuelZone(mgr); to your main function in Setup.cpp
    5. Open the scripts project in visual studio and click add existing file
    6. Select the DuelingZone Script
    7. Recompile your scripts
    Usage
    The npc will heal and give mana to nearby players that aren't dueling and thus making it possible for them to duel again




    Quick Facts:
    OS SUPPORT:: If you get the emu to run, this works
    Emulator Support: SharedPointers, or emulated shared pointers
    Coded In: C++
    Preview:C++ PasteBin
    Download:Filebeam

    Credits: namelessgnome

    don't me...


    › See More: [C++][Zone] Dueling Area ; Healers and spectators for your dueling zone



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Grunt

    Join Date
    Jul 2009
    Posts
    30
    Post Thanks / Like
    Rep Power
    16
    Reputation
    20
    Pritty sweet script. I would rep you but you didnt make it

  4. #3
    Scout

    Join Date
    Mar 2009
    Posts
    14
    Post Thanks / Like
    Rep Power
    16
    Reputation
    17
    Oh, awesome script.

    Nice share.

  5. #4
    Contributor
    LiLLeCarl's Avatar
    Join Date
    Jan 2009
    Posts
    106
    Post Thanks / Like
    Rep Power
    17
    Reputation
    84
    This where cool

  6. #5
    Banned

    Join Date
    Sep 2009
    Location
    In My Computer
    Posts
    76
    Post Thanks / Like
    Rep Power
    0
    Reputation
    52

    errors

    i got a crap ton of errors while compiling this:
    is this not for arcemu?

    Code:
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(19) : error C2143: syntax error : missing ';' before '<class-head>'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(23) : error C2061: syntax error : identifier 'CreaturePointer'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(21) : error C2664: 'DuelSpectatorAI::DuelSpectatorAI(const DuelSpectatorAI &)' : cannot convert parameter 1 from 'Creature *' to 'const DuelSpectatorAI &'
    14>        Reason: cannot convert from 'Creature *' to 'const DuelSpectatorAI'
    14>        No constructor could take the source type, or constructor overload resolution was ambiguous
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(23) : error C2065: 'pCreature' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(49) : error C2061: syntax error : identifier 'CreaturePointer'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(61) : error C2061: syntax error : identifier 'PlayerPointer'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(47) : error C2664: 'DuelHealerAI::DuelHealerAI(const DuelHealerAI &)' : cannot convert parameter 1 from 'Creature *' to 'const DuelHealerAI &'
    14>        Reason: cannot convert from 'Creature *' to 'const DuelHealerAI'
    14>        No constructor could take the source type, or constructor overload resolution was ambiguous
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(49) : error C2065: 'pCreature' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2227: left of '->DuelingWith' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2227: left of '->CombatStatus' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2228: left of '.IsInCombat' must have class/struct/union
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(65) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(65) : error C2227: left of '->GetHealthPct' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(66) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(67) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(67) : error C2227: left of '->GetSession' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(67) : error C2227: left of '->SendNotification' must point to class/struct/union/generic type
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2227: left of '->GetManaPct' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2227: left of '->GetManaPct' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(72) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(73) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(73) : error C2227: left of '->CastSpell' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(73) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(81) : error C2065: 'MapMgrPointer' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(81) : error C2146: syntax error : missing ';' before identifier 'mapMgr'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(81) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(82) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(82) : error C2227: left of '->GetPlayerCount' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(91) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(91) : error C2227: left of '->GetPosX' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(92) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(92) : error C2227: left of '->GetPosY' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(106) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(106) : error C2227: left of '->GetCell' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(116) : error C2660: 'DuelHealerAI::HealPlayer' : function does not take 1 arguments

  7. #6
    Contributor
    LiLLeCarl's Avatar
    Join Date
    Jan 2009
    Posts
    106
    Post Thanks / Like
    Rep Power
    17
    Reputation
    84

    Register to remove this ad
    Quote Originally Posted by mec View Post
    i got a crap ton of errors while compiling this:
    is this not for arcemu?

    Code:
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(19) : error C2143: syntax error : missing ';' before '<class-head>'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(23) : error C2061: syntax error : identifier 'CreaturePointer'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(21) : error C2664: 'DuelSpectatorAI::DuelSpectatorAI(const DuelSpectatorAI &)' : cannot convert parameter 1 from 'Creature *' to 'const DuelSpectatorAI &'
    14>        Reason: cannot convert from 'Creature *' to 'const DuelSpectatorAI'
    14>        No constructor could take the source type, or constructor overload resolution was ambiguous
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(23) : error C2065: 'pCreature' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(49) : error C2061: syntax error : identifier 'CreaturePointer'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(61) : error C2061: syntax error : identifier 'PlayerPointer'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(47) : error C2664: 'DuelHealerAI::DuelHealerAI(const DuelHealerAI &)' : cannot convert parameter 1 from 'Creature *' to 'const DuelHealerAI &'
    14>        Reason: cannot convert from 'Creature *' to 'const DuelHealerAI'
    14>        No constructor could take the source type, or constructor overload resolution was ambiguous
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(49) : error C2065: 'pCreature' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2227: left of '->DuelingWith' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2227: left of '->CombatStatus' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(63) : error C2228: left of '.IsInCombat' must have class/struct/union
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(65) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(65) : error C2227: left of '->GetHealthPct' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(66) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(67) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(67) : error C2227: left of '->GetSession' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(67) : error C2227: left of '->SendNotification' must point to class/struct/union/generic type
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2227: left of '->GetManaPct' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(70) : error C2227: left of '->GetManaPct' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(72) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(73) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(73) : error C2227: left of '->CastSpell' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(73) : error C2065: 'plr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(81) : error C2065: 'MapMgrPointer' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(81) : error C2146: syntax error : missing ';' before identifier 'mapMgr'
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(81) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(82) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(82) : error C2227: left of '->GetPlayerCount' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(91) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(91) : error C2227: left of '->GetPosX' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(92) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(92) : error C2227: left of '->GetPosY' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(106) : error C2065: 'mapMgr' : undeclared identifier
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(106) : error C2227: left of '->GetCell' must point to class/struct/union/generic type
    14>        type is ''unknown-type''
    14>..\src\CustomScripts\zone_duel\ZONE_Duel.cpp(116) : error C2660: 'DuelHealerAI::HealPlayer' : function does not take 1 arguments
    i think this is for Aspire but its easy to convert ok? :P open is in notepad++ or vs2008 then press ctrl+f then you choose replace and put replace pointer with *

 

 

Visitors found this page by searching for:

Duel zone trinitycore

duelzone trinitycore

trinitycore duel zone

c duel zone trinitycoredueling zone forumtrinitycore left of -&gt;getsession must point to classstructuniongeneric typetrinitycore c duel zonenpc spectator c wowwow duel zone scriptoregoncore duel zonetrinitycore duelzone
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 05:46 AM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org