Likes: 0
Results 1 to 6 of 6
-
31-07-09, 10:57 PM #1
[C++][Zone] Dueling Area ; Healers and spectators for your dueling zone
Register to remove this adThis 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.
- 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
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
-
26-08-09, 06:35 PM #2
Pritty sweet script. I would rep you but you didnt make it
-
30-08-09, 02:02 AM #3
Oh, awesome script.
Nice share.
-
08-09-09, 01:34 PM #4
This where cool
-
11-09-09, 10:34 AM #5
- 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
-
20-09-09, 06:43 AM #6
Register to remove this ad