Jump to content

glararan

Members
  • Posts

    46
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by glararan

  1. glararan

    Violet hold

    OK i do it but new errors are
  2. glararan

    Violet hold

    Where i must search for GetCreatureListWithFactionInGrid?
  3. Hello guys i download Violet hold from :http://github.com/Tasssadar/Valhalla-Project-ScriptDev2/tree/master/scripts/northrend/violet_hold/ and when i compiling i have error: 1>..\\scripts\\northrend\\violet_hold\\instace_violet_hold.cpp(49) : error C3861: 'GetCreatureListWithFactionInGrid': identifier not found Can anyone help me with that?
  4. Hello i do Shop in Emerald Dream but when i done my work...i use .gm off and port to him .... Cannot Enter when you dont have group .. So where in Core i disable it ?
  5. glararan

    Git pull

    Hmm and how i can update my revision?
  6. Hello i use Git bash on folder next Commands->cd mangos->git checkout master->git pull-> error http://img69.imageshack.us/i/gitpullerror.jpg/
  7. You are best !!!!
  8. Anyone dont know?????(( or give me Walls with better range than Wintergrasp Fortrest Wall
  9. Hello i want to doing in my custom project Shop with Walls but walls have low range to view it and i always see only 1/2 Wall of Shopp.So can i change Range of View on Gameobject?When can, How?
  10. Hello i have account http://github.com/glararan/ And have Folder mangos---Fun .... How i can upload my files to Github?
  11. Have anyone Redemption Coder on MaNGOS? 9800+? How it work? You have npc with scriptdev2 name you answer him and you have Table ... you must have Table in DB and in table is Code, Item, Amount, how many use can code, Comment You use Code:454dsgh5487f Item:ID of Item Amount:1 Can use code:1 Comment:Ashbringer Have anyone it?Or can you code it? I have small code but dont work http://pastebin.org/319496 Code Errors 1>..\\scripts\\custom\\redempt-coder.cpp(4) : error C2146: syntax error : missing ';' before identifier 'scriptdev2_2' 1>..\\scripts\\custom\\redempt-coder.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>..\\scripts\\custom\\redempt-coder.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>..\\scripts\\custom\\redempt-coder.cpp(65) : error C2228: left of '.PQuery' must have class/struct/union 1> type is 'int' 1>..\\scripts\\custom\\redempt-coder.cpp(77) : error C2228: left of '.PExecute' must have class/struct/union 1> type is 'int' 1>..\\scripts\\custom\\redempt-coder.cpp(79) : error C2228: left of '.PExecute' must have class/struct/union 1> type is 'int'
  12. How i do it?
  13. Hello i have error with Redemption coder in SD2 Code is : #include "precompiled.h" typedef DatabaseMysql DatabaseType; extern DatabaseType WorldDatabase; extern DatabaseType CharacterDatabase; extern DatabaseType loginDatabase; bool GossipHello_npc_redemption(Player* pPlayer, Creature* pCreature) { pPlayer->ADD_GOSSIP_ITEM_EXTENDED(0, "Enter Code - Vloz Kod", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1, "", 0, true); pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Nashledanou", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2); pPlayer->PlayerTalkClass->SendGossipMenu(1, pCreature->GetGUID()); return true; } bool GossipSelect_npc_redemption(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { if (uiAction == GOSSIP_ACTION_INFO_DEF+2) { pPlayer->CLOSE_GOSSIP_MENU(); } return true; } bool GiveItem(uint32 itemId, int32 count, Creature* pCreature, Player* pPlayer) { uint32 noSpaceForCount = 0; ItemPosCountVec dest; uint8 msg = pPlayer->CanStoreNewItem( NULL_BAG, NULL_SLOT, dest, itemId, count &noSpaceForCount ); if( msg != EQUIP_ERR_OK ) count -= noSpaceForCount; if( count == 0 || dest.empty()) { pCreature->MonsterWhisper("Nemuzes obdrzet Item", pPlayer->GetGUID()); return false; } Item* item = pPlayer->StoreNewItem( dest, itemId, true, Item::GenerateItemRandomPropertyId(itemId)); if(count > 0 && item) { pPlayer->SendNewItem(item,count,false,true); } if(noSpaceForCount > 0) { pCreature->MonsterWhisper("Nemuzes obdrzet Item", pPlayer->GetGUID()); return false; } return true; } bool GossipSelectWithCode_npc_redemption(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction, const char* sCode) { if (uiSender == GOSSIP_SENDER_MAIN) { switch (uiAction) { case GOSSIP_ACTION_INFO_DEF+1: QueryResult* result; result = WorldDatabase.PQuery("SELECT `item`, `amount`, `uses` FROM `redemption_codes` WHERE `code` = %s", // 0 1 2 sCode); if (result) { do { Field *fields = result->Fetch(); if(GiveItem(fields[0].GetInt32(), fields[1].GetInt32(), pCreature, pPlayer)) { if (fields[2].GetInt32() > 1) WorldDatabase.PExecute("UPDATE `redemption_codes` SET `uses` = %u WHERE `code` = %s AND `item` = %u", fields[2].GetInt32() - 1, sCode, fields[0].GetInt32()); else WorldDatabase.PExecute("DELETE FROM `redemption_codes` WHERE `code` = %s AND `item` = %u", sCode, fields[0].GetInt32()); } } while (result->NextRow()); /* \\n */ delete result; return true; } else { pCreature->MonsterWhisper("Spatny kod.", pPlayer->GetGUID()); return true; } } } return false; } void AddSC_npc_redemption() { Script* newscript; newscript = new Script; newscript->Name = "npc_redemption"; newscript->pGossipHello = &GossipHello_npc_redemption; newscript->pGossipSelect = &GossipSelect_npc_redemption; newscript->pGossipSelectWithCode = &GossipSelectWithCode_npc_redemption; newscript->RegisterSelf(); } Error is : 1>redempt-coder.obj : error LNK2001: unresolved external symbol "class DatabaseMysql WorldDatabase" (?WorldDatabase@@3VDatabaseMysql@@A) 1>..\\..\\..\\..\\bin\\win32_release/MaNGOSScript.dll : fatal error LNK1120: 1 unresolved externals Rev is : 9839 OS: Windows 7
  14. I use patch for PVP Token System...I have Win7 OS ... Rev 9839 Where i must repair in patch and what? http://img193.imageshack.us/i/error1x.png/ error http://img59.imageshack.us/i/error2z.png/ patch
  15. Crash log is here its from Crash folder.... Now DBErrors--> here but it from down last errors
  16. Hello i have problem when i click for npc change tokens and i do it again Mangos Crash i dont know why my pastebin code of C++ http://pastebin.com/ZW57mwY9 Compile is Ok but have error one but i dont know if it can cause crash : 1>..\\scripts\\custom\\changer.cpp(37) : warning C4305: 'argument' : truncation from 'int' to 'bool'
  17. I Compile rev 9839 .... Windows 7 .......... Windows Visual 2008 Express
  18. Hello i have Problem with Compilations errors im new in C++ and don't know how is sucess type of isIgnoreUnitState and next can you help me with it?And where you search repairs.IS repair of http://github.com/Tasssadar/Patche
  19. Hello, I'm here new and can i know how i can apply patch to Core?I have TortoiseSVN and warbringer.patch but i don't know how to use it.Can you help me?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use