• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[CPP] Grumbo'z Guild Warz 'The Rise of the Guild'

slp13at420

Mad Scientist
Grumbo'z Guild War'z
`The Rise of the Guild`

Grumbo'z Bloodiest
Guild House/Plot System yet.

This is NOT your Grandpa's Guild House System.

--Built, Tested and Approved for TrinityCore CPP--


This System allows Guild Masters to purchase multiple Guild Plot locations for xx guild coins. when a location is purchased a flag will spawn based on team ally/horde.
Guild members can invade other guild controlled plot locations from an apposing team Guild or same-team Guild(with Anarchy activated) and attempt to take there flag. if a guildmember tags the flag of an apposing team or Guild, that location will transfer ownership (including all GO's/NPC's that belong to that location), to the guild that tagged the flag.


What's new in version 5.0c?
------------------------------------
`CPP` - Converted the system from Eluna to CPP for TrinityCore.
`guild ranking` - guilds are now ranked by there total worth of locations.
`command CB chat back` - Now any commands used wont repeat back into the chat window.
`Auto Faction Shift` - Now all npc's will change faction when a location changes between Horde and Alliance. Gob's stay the same though . you will still need to sell then buy to change them to your Guild's faction if desired.
`Setup Command` - Guild Member level command (like the version command) that helps them understand how the Admin has the System setup.
`Flag Location info` - Now when non-Guild players click a flag it will have new Gossip statements in its menu that will display the location's Guild Rank, total # of acquired locations and their total value of acquired locations.
`Starting Quest` - Now when a new Guild is created, the Guild Master will receive a summons letter that starts a quest. Upon completion of the quest the Guild master will receive a permit allowing their Guild to participate in the Guild Warz buy/sell/ and development of any lands they may acquire during their travels.
------------------------------------


  • "FEATURE" "Guild Commands" Guild Access to Buy/Sell commands is adjustable by each GuildMaster.
    • Guild members with access to the `sell` commands can sell off the individual team based npc's and buildings of any Guild controlled location or a guild location.
    • Guild members with access to the `buy` commands can buy areas, buildings and npc's for any Guild controlled location.
  • "FEATURE" "Anarchy System." Allows Flags to be captured by same team guilds thru FFAGvGPvP Chaotic Anarchy. May be turned on/off live in game by the Admin.
  • "FEATURE" "No-Tag-Flag Timer." A cooldown timer so Flags cant be captured until the timer expires. May be turned on/off and time adjusted live in game by the Admin.
  • "FEATURE" "Guild Invite" Allows Non-guild players to interact with the guild flags. the flags will open a gossip menu so players can choose to join the flag's guild and show how many locations owned by the Guild. May be turned on/off live in game for individual guilds by there GuildMaster.
  • "FEATURE" "Flag Require" Invaders MUST clear ALL guards to be able to claim flag. May be turned on/off live in-game.
  • "FEATURE" "Guild Teleporter" Guild members can easily teleport to any of there guild's locations using the location's id.
    • Guild members can list all the areas owned by there guild by location id.
    • Guild members can display information about the location they are at.
  • "FEATURE" "Guild Ranking" Now Guilds are Ranked based on there total wealth of locations.
    • The scoreboard `max-in-list` can be adjusted in the conf. default Top 100 Guilds.
    • Admin can set how the scores are updated. Via timer(default every 10 minutes) or Via Event(when a location changes owning Guild).
  • "PERK" "Farms" Guild masters can now buy farms to support buying pigs. Guild masters can place up to xx guild pigs. (to have pigs you must have a farm)
    • "PERK" "Pig's" Pigs are support for guards and other npc's.
      • Pigs are faction based and display id's can be changed in the DB.(NPC ID's 49000 Ally, 49001 Horde)
      • Amount of pigs per farm can be adjusted live in game by the Admin.
    • "PERK" "Pig Payz" Each pig will pay xx gold/silver/copper to all guild members online per half hour. duration and amount can changed in the conf file.
      • Farms are faction based and display id's can be changed in the DB.(GOB ID's 500000 Ally, 500001 Horde)
  • "PERK" "Barracks" Guild masters can now buy barracks to support guards. barracks require a pig farm to support them.
    • Barracks are faction based and display id's can be changed in the DB.(GOB ID's 500002 Ally, 500003 Horde)
    • "PERK" "Guards" Guild masters can place guards at each location to protect there flag for xx guild coin each. Guards require a barrack.
      • guards will announce location id when in combat so guild members can tele to location.
      • guards are disposable and wont respawn when killed.
      • guards are faction based and id's can be changed in the DB.(NPC ID's 49002 Ally, 49003 Horde)
  • "PERK" "Guild Hall" Guild masters can place a BIG ol' Guild Hall at each location for xx Guild coins.
    • To have Hall's you must have a barracks.
    • Halls are faction based and id's can be changed in the DB.(GOB ID's 500004 Ally, 500005 Horde)
    • "PERK" "Guild Vendors" Vendors Require a Guild Hall.
      • "Guild Buff vendor" Guild masters can place a Guild Buff vendor at each location for xx Guild coins. .(NPC ID's 49004 Ally, 49005 Horde).
      • "Guild Fun items vendor" Guild masters can place a Guild Fun items vendor at each location for xx Guild coins. .(NPC ID's 49006 Ally, 49007 Horde).
      • "Guild Gear vendor" Guild masters can place a Guild Gear vendor at each location for xx Guild coins.(NPC ID's 49008 Ally, 49009 Horde).
      • You can create your own custom team vendor's for guilds and add there id's live in-game.
    • "PERK" "Guild Cannons" Cannon's Require a Guild Hall.
      • Guild masters can place Guild cannon's at each location for xx Guild coins.(NPC ID's 49010 Ally, 49011 Horde)
  • "PERK" "New Guild Gift" Newly formed Guilds will be gifted xx amount of Guild Coins to the Guild Master to get started with.
  • "PERK" "Adjustable color layout" Now GuildMasters can change the color layout for the chatbox menus/data.

  • "CMD" Guild Masters can customize most guild accessible commands in-game.
  • "CMD" Guild Masters can change access level for buy commands in-game.
  • "CMD" Guild Masters can change access level for sell commands in-game.
  • "CMD" Guild Masters can change the color layout for the menus.
  • "CMD" Admins can customize most GM commands and SYSTEM settings in-game.
  • "CMD" Admins can change access level for GM commands in-game and the sql.

Supports multi-realm servers. You can run this on multiple realms . just add the DB table and re-name it then edit the DB name variable `guild_warz_DB` in the start of the script so each realms script matches there individual DB table.

With an adjustable Guild Menu color layout

All variables "xx" , (item, npc, gob)ID's, GM access levels, Guild Member access levels, prices, limits and commands

can easily be changed LIVE in-game, or the sql.


Guild Rank scoreboard:
aW3uO6C.jpg

Ally Location:


Horde Location:


Instructional video's of basic command's usage.

Invasion:

>> More Instructional Videos <<

Cpp for Core

latest version 5.0c/10-August-2016

>> Requires the latest Trinity Core Release : TrinityCore rev. 60541b667b41+ 2016-02-20 23:08:48 or newer. <<


>> The Wiki <<

all commands can be altered easily in-game and the Sql table.
:eek: all limits and costs can be altered easily in-game and the Sql table.
:eek:
:eek: Commands function only while using Guild Chat. :eek:

[SUP]:fencing: "Welcome to :yield: my nightmare" :fencing:[/SUP]​
[SUP]

"I think your gonna like it"
"I think your gonna feel"
"right at home"
"here"
[/SUP]

here you go Trinity .....:bounce::eyebrows:

[SUB]`...and so his Guildmates roared and cheared as he mounted the bloody head of yet another fallen Guild leader in there Great Hall.`[/SUB]



"!!KING SPADE!!"​
!! Raid !! Plunder !! Pilage !!​
!! it's bloody frak'n Anarchy !!​
[SUB][SUP]
"covered with dren."​
[/SUP][/SUB]
[SUP]
"cuz PvP'z better with a bag 'o' weed"
[/SUP]




New Features:
[SUB]23-February-2016 npc's will now automatically change faction when a location changes Guilds.-[/SUB]
[SUB]24-February-2016 now when non guild players interact with the Guild Flags, they will see how many locations the Guild owns.[/SUB]
[SUB]24-February-2016 Now when a Guild Player enters a location owned by a different Guild, the controlling guild will then be notified that the player entered location xx.[/SUB]
[SUB]22-March-2016 Guild Ranking - Now Guilds are Ranked by the total value of all there location's.[/SUB]
[SUB]10-April-2016 Command chatBack- successful command use will no longer chatBack in guild chat..[/SUB]


Requirements:
The ability and knowledge to add scripts to your core. ->tutorial
The ability and knowledge to work with the SQL DB.
The ability and knowledge to cmake and compile a core.



Description:
This is the CPP version, the new project.
This contains ALL the same features/Perks as the Eluna and Ale projects +PLUS+ more.
Any new features or perks will only be added to this project, all other prior projects i.e.(Eluna, Ale) are at there final versions.

line count: 4952

3 years of developing went into this project and it will continue to be maintained and updated for many more years to come.

Easy-to-install , self-packaged, self-supportive. you wont need to do but about 4 edits to your core to get this running :D.
Easy-to-Edit custom entries for your worldserver.conf file. :D



Contains:
1 .cpp file.
1 .h file.
2 .sql files for the DB , go's and npc's.
instructional files for added help with installation.
1 .txt file of the stupid story line.
conf entries for your worldserver.conf file.





3.3.5a, 4.3.4, cataclysm, cpp, cpp scripts, grumbo, grumbo'z guild warz, guild, guild house, guild plot, guild warz, gvg, slp13at420, trinitycore, wotlk

 
Last edited:

Marko

Enthusiast
Ohhhhhh

Help, drowning in errors on compile! :jackiechanwtf:
Severity Code Description Project File Line Suppression State
Error C2144 syntax error: 'void' should be preceded by ';' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\custom_script_loader.cpp 24
Error C2447 '{': missing function header (old-style formal list?) scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\custom_script_loader.cpp 25
Error C2660 'GameObject::Create': function does not take 15 arguments scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 1399
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4067
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4068
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4069
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4070
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4071
Error C2039 'SEND_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4072
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4100
Error C2664 'bool Guild::AddMember(SQLTransaction &,ObjectGuid,uint8)': cannot convert argument 1 from 'ObjectGuid' to 'SQLTransaction &' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4106
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4557
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4567
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4571
Error C2039 'SEND_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4572
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4585
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4656
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4749
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4839
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4915
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4917
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4919
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4921
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4923
Error C2039 'SEND_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4924
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4938
Error C2039 'CLOSE_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4942
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4950
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4951
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4952
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4956
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4957
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4958
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4961
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4962
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4963
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4964
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4965
Error C2039 'SEND_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4967
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4974
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4975
Error C2039 'SEND_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4977
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4983
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4984
Error C2039 'SEND_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4986
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4992
Error C2039 'ADD_GOSSIP_ITEM': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4993
Error C2039 'SEND_GOSSIP_MENU': is not a member of 'Player' scripts C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\src\server\scripts\Custom\Grumboz_Guild_Warz.cpp 4995
Error LNK1181 cannot open input file '..\scripts\Release\scripts.lib' worldserver C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\build\src\server\worldserver\LINK 1

Is just a simple latest Trinitycore with Eluna from here: https://github.com/ElunaLuaEngine/ElunaTrinityWotlk
 
Last edited:

Marko

Enthusiast
Thanks, Grumbo the Script Savior :D
No errors on compile now
:elefant:
Will test today how this cpp version works all i tested was the eluna one :) I think this one is better
 

Marko

Enthusiast
LOADING -
- commands loaded -
- help system loaded -
- 1281 locations loaded
- Error Loading Currency ID:0 . Item May NOT exsist in the sql DB.
- Make sure you are using a valid item entry id in the sql DB.
- Prepare for crash.

damn i don't understand why it keeps saying currency 0 not found in db, when there is clearly 62006 set as currency and ofc item exists in item_template too.. i checked in .cpp script and can't seem to find if there is something messed up.. but all should be fine

edit: Might be because i replaced all in .cpp script where it says WARZ to Warz :D now replaced it all with WARZ again, will replace in config too and lets see after rebuild if that was the issue

update:
fixed script, but error remains in custom script loader
Code:
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol "void __cdecl AddSC_Grumboz_Guild_Warz(void)" (?AddSC_Grumboz_Guild_Warz@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ)	worldserver	C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\build\src\server\worldserver\scripts.lib(custom_script_loader.obj)	1


this should not happen since custom script loader looks fine:
Code:
// This is where scripts' loading functions should be declared:
void AddSC_Grumboz_Guild_Warz();

// The name of this function should match:
// void Add${NameOfDirectory}Scripts()

void AddCustomScripts()
{
	AddSC_Grumboz_Guild_Warz();
}
 
Last edited:

slp13at420

Mad Scientist
hmmm wierd .... in your startup loading block it should post the value its looking for (62006) by default) but it says its looking for item(0)

Error Loading Currency ID:0 . Item May NOT exsist in the sql DB.

It should post:
Error Loading Currency ID:62006 . Item May NOT exsist in the sql DB.
if it was calling the right data.......

somethings out of alignment during loading of the data.

oh lol maybe keep reading first rofl

i will look into that second one ..
 
Last edited:

Marko

Enthusiast
Have fixed compile errors, but have again the same errors when server is started..
Library directory "C:/Users/Admin/Desktop/ElunaWotlk/ElunaTrinityWotlk/build/bin/Release/scripts" doesn't exist!.
>> Loaded 2884 C++ scripts in 75 ms uhh.. ok if u say so :D

and again i get from worldserver:
commands loaded -
- help system loaded -
- 1285 locations loaded
- Error Loading Currency ID:0 . Item May NOT exsist in the sql DB.
- Make sure you are using a valid item entry id in the sql DB.
- Prepare for crash.

aaaand Crash :herpderp:

:fuckthathshit: even though it is my birthday today, i spent it whole trying to get this working , damn. Already 30 years old
 

Marko

Enthusiast
hmmm wierd .... in your startup loading block it should post the value its looking for (62006) by default) but it says its looking for item(0)



It should post:

if it was calling the right data.......

somethings out of alignment during loading of the data.

but i can't seem to find where in the .cpp script does it even say that currency. Ofc i found multiple places with ctrl+f "coin" but not sure what needs to be edited so it will work.. there is nowhere this currency 0 and nowhere in script is there currency 62006.. it is determined in db and db is fine i even changed the currency in db to test if it will work with something else, but nope. Same error

edit: Have tried compiling several times simply adding the script without any changes directly from github and compiles fine but always when worldserver started it comes to that Error Loading Currency ID: 0
and crashes..
 
Last edited:

Hamar

BETA Tester
Not to sound rude but you should take this back to the planning board before you add more features or even think adding more features.
Open another file in trinitycore solution and compare the coding style to yours.

With a proper styling you could reduce the needed lines of code by half.
 

Marko

Enthusiast
Did not add anything, executed original script without any changes that was made for revision 62 and it is not working due to
"Error Loading Currency ID: 0" as stated above this happens after compile (without errors) in worldserver.exe

Unless your post was adressing Grumbo and any future versions of the script. But should at least make the current version functional.
 
Last edited:

slp13at420

Mad Scientist
Did not add anything, executed original script without any changes that was made for revision 62 and it is not working due to
"Error Loading Currency ID: 0" as stated above this happens after compile (without errors) in worldserver.exe

Unless your post was adressing Grumbo and any future versions of the script. But should at least make the current version functional.

ok , so it compiles fine now for you without the missing linker error?
 

Marko

Enthusiast
as said before compiles with no error but server crashes on startup because "Error Loading Currency ID: 0"

it compiled right because i edited custom script loader a little differently than your example, but now can't remember how i fixed it, as i gave up on guild warz script and removed it for now from my source and added your vip script to now try make it work, till u manage to fix guild wars with that currency loading bug
 
Last edited:

Hamar

BETA Tester
lol grr i needed to know how you fixed the compile error nvm..

In your OnLoadConfig
Code:
Currencyid = GWCOMM[SERVER_GUILD_ID].currency;

if (!sObjectMgr->GetItemTemplate(Currencyid))
{
	TC_LOG_INFO("server.loading", "- Error Loading Currency ID:%d . Item May NOT exsist in the sql DB.", Currencyid);
	TC_LOG_INFO("server.loading", "- Make sure you are using a valid item entry id in the sql DB.");
	TC_LOG_INFO("server.loading", "- Prepare for crash.");
}

You need to debug why it is returning 0 from this:
Code:
Currencyid = GWCOMM[SERVER_GUILD_ID].currency;
 

Marko

Enthusiast
You need to debug why it is returning 0 from this:
Code:
Currencyid = GWCOMM[SERVER_GUILD_ID].currency;

this line also caught my eye but i have no idea how to fix it, at all..
can only hope Grumbo can fix it or someone who knows c++ well. This kind of stuff I would need to actually go to some school or courses to learn it and a few years to completely grasp the coding needed for making good scripts.. instead of that i was usually too busy picking edible herbs from nature so i could make ends meet in a poor country and poor family. But i won't give up on making nice things for kids to play with so easy. If Grumbo abandons or gives up on this C++ script and nobody fixes it, then i'll have to use the old eluna version. Might not be so good, but at least it works.
 

slp13at420

Mad Scientist
thats just passing the value '62006' from an array to a local easy to use variable.
again, the issue is during the loading of the data from the sql . some thing is way askew.

so I started with a fresh clone of TC rev 335.62.
dropped all items/go's and tables from my sql server and world db.

Installed the files and conf edits and compiled with 0 errors.
installed the DB structure for the CPP version(there are differences between Ale,Eluna,CPP).
I installed all the GO's, NPC's and items except item 62006.

i then added my binaries to my test server folder and started up:
x3a2vt.png



again something is askew with your startup...
i recommend dropping the Guild Warz DB along with all the items,go's, and NPC's then reinstall

Make sure you use the CPP sql pack then we will see what happens n go from there
.
 
Last edited:

Marko

Enthusiast
Not working together

Have dropped entire GW db, ran sql to make it, failed to compile due to errors:
Severity Code Description Project File Line Suppression State
Error LNK2005 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl ConvertNumberToString(unsigned __int64)" (?ConvertNumberToString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K@Z) already defined in scripts.lib(Grumboz_VIP_Core.obj) worldserver C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\build\src\server\worldserver\scripts.lib(Grumboz_Guild_Warz.obj) 1

it is not working now with your VIP script seems they have some conflicts.. "already defined in scripts.lib(Grumboz_VIP_Core.obj)"
Severity Code Description Project File Line Suppression State
Error LNK1169 one or more multiply defined symbols found worldserver C:\Users\Admin\Desktop\ElunaWotlk\ElunaTrinityWotlk\build\bin\Release\worldserver.exe 1

they are like this in custom scripts loader:

// This is where scripts' loading functions should be declared:
void AddSC_Grumboz_VIP_Core();
void AddSC_Grumboz_Guild_Warz();

// The name of this function should match:
// void Add${NameOfDirectory}Scripts()

void AddCustomScripts()
{
AddSC_Grumboz_VIP_Core();
AddSC_Grumboz_Guild_Warz();
}
 
Last edited:

slp13at420

Mad Scientist
k fixed the cross-contamination. each have a function that does the same thing for each and has same name but never got but never got pulled into the class body
 

Marko

Enthusiast
when you view the sql table `guild_warz_335.commands` is there an entry for `guild` called "SERVER"?

yes, it is there by default :)
But, could u just copy paste the change u edited in code so i dont have to edit entire script again (edited parts like piggies into pigs and evil'doer and all that guards report or yell and in VIP edited all buffs with my own that i tested in game 1 by 1 and replaced in script)
if not that's ok too.. am getting kind of used to editing ur script for dozens of times now :D
 
Top