[COLOR="#808080"]
[/COLOR]
#ifdef SCRIPTS
/* This is where custom scripts' loading functions should be declared. */
[COLOR="#DAA520"]void AddSC_Grumboz_VIP_Core();[/COLOR]
#endif
void AddCustomScripts()
{
#ifdef SCRIPTS
/* This is where custom scripts should be added. */
[COLOR="#DAA520"]AddSC_Grumboz_VIP_Core();[/COLOR]
#endif
}
[COLOR="#808080"]
###################################################################################################
# Grumbo'z VIP System
# by slp13at420 of
# EmuDevs.com.
#
# These settings provide a flexibility to the system.
#
#
# VIP.MAX
# Description: Max VIP Level for VIP System. max Uint32 value.
# Default: 6
#
VIP.MAX = 6
# VIP.OFFSET
# Description: float multiplier for each vip rank.
# this is used for stat mod's. i.e. mod = VIP rank * offset.
# Default: 0.05f 5% muliplier used per VIP rank
#
VIP.OFFSET = 0.05
# VIP.VOTE.ENABE
# Description: Votes can earn higher vip ranks.
# Default: 1 . 0 off // 1 on.
#
VIP.VOTE_ENABLE = 1
#
# VIP.VOTE.COUNT
# Description: how many Votes to earn each level of VIP.
# Default: 125 votes per.
#
VIP.VOTE_COUNT = 125
#
# VIP.COIN
# Description: an item that is clickable to show a players VIP stats
# Default: 63020
#
VIP.COIN = 63020
#
# VIP.STONE
# Description: an item that is clickable and will increase a players VIP level.
# Default: 63021
#
VIP.STONE = 63021
#
# VIP.MAGIC.GOLD
# Description: just Global custom currency id that can be accessed
# by another character via the VIP banker deposit/withdrawal
# Default: 44209
#
VIP.MAGIC_GOLD = 44209
#
# VIP.TP.BONUS
# Description: how many extra TP's to award per VIP level.
# Default: 14 per VIP level.
#
VIP.TP_BONUS = 14
# VIP.LEVEL_BONUS_ENABE
# Description: players can reach higher levels per VIP..
# Default: 1 . 0 off // 1 on.
#
VIP.LEVEL_BONUS_ENABLE = 1
#
#
# VIP.LEVEL_BONUS
# Description: how many extra level's a player can gain per VIP level.
# Default: 1
#
VIP.LEVEL_BONUS = 1
#
###################################################################################################
[/COLOR]
Got 160errors and 502 warnings :fuckthathshit:
maybe have to add them to custom_scripts_loader.cpp
here:
// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddCustomScripts()
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: float __cdecl Position::GetAngle(float,float)const " (?GetAngle@Position@@QEBAMMM@Z) referenced in function "public: float __cdecl Position::GetAngle(struct Position const &)const " (?GetAngle@Position@@QEBAMAEBU1@@Z) game C:\Users\Admin\Desktop\ElunaTrinityWotlk\build\src\server\game\gamePCH.obj 1
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: bool __cdecl Unit::HasAuraType(enum AuraType)const " (?HasAuraType@Unit@@QEBA_NW4AuraType@@@Z) referenced in function "public: bool __cdecl Unit::HasInvisibilityAura(void)const " (?HasInvisibilityAura@Unit@@QEBA_NXZ) game C:\Users\Admin\Desktop\ElunaTrinityWotlk\build\src\server\game\gamePCH.obj 1
Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file '..\scripts\Release\scripts.lib' worldserver C:\Users\Admin\Desktop\ElunaTrinityWotlk\build\src\server\worldserver\LINK 1
// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddCustomScripts()
void AddSC_Grunboz_Guild_Warz();
void AddSC_Grumboz_VIP_Core();
{
AddSC_Grunboz_Guild_Warz();
AddSC_Grumboz_VIP_Core();
}
[COLOR="#808080"]
#include "ScriptMgr.h"
[/COLOR]
[COLOR="#808080"]
// #include "ScriptMgr.h"
[/COLOR]
for (uint8 i = 0; i < (((sizeof(VIPBUFFS) / sizeof(*VIPBUFFS)) / max_level) * Pvip); i++)
{
player->AddAura(VIPBUFFS, player);
}
player->SetMaxHealth(1);