View Full Version : [C++][Zone] Dueling Area ; Healers and spectators for your dueling zone
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.
http://img40.imageshack.us/img40/2674/yourvitalstats.png
Save the program to your gossip scripts folder (or any other folder containing c++ scripts)
You will now have to edit the settings to set the Npc Ids
add void SetupDuelZone(ScriptMgr * mgr); to Setup.h
add SetupDuelZone(mgr); to your main function in Setup.cpp
Open the scripts project in visual studio and click add existing file
Select the DuelingZone Script
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 (http://cpp.pastebin.com/f259c6064)
Download:Filebeam (http://filebeam.com/8a2cb37d0c7b497062498930615db44c)
Credits: namelessgnome
don't +rep me...
Pritty sweet script. I would rep you but you didnt make it :)
Alvanaar
30-08-09, 02:02 AM
Oh, awesome script. :)
Nice share.
LiLLeCarl
08-09-09, 01:34 PM
This where cool :D
i got a crap ton of errors while compiling this:
is this not for arcemu?
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
LiLLeCarl
20-09-09, 06:43 AM
i got a crap ton of errors while compiling this:
is this not for arcemu?
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 * :D
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.