Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 2 of 2
  1. #1
    Contributor
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    18
    Reputation
    113

    List of C++ commands


    Register to remove this ad
    First post was done by Gastric. I have added more commands and i will continue to do so. If you have some commands you wish to add please post them here. i am also working on a guide how to use this step by step like my lua guide but i have a feeling this guide will take a bit longer.





    Player Functions


    SendAreaTriggerMessage("text"); - Sends an Area Trigger Message
    BroadcastMessage("text"); - Sends a message to the chatbox
    EventTeleport(mapid, x, y, z); - Teleports the player
    SafeTeleport(mapid, instanceid, location vector); - Teleports the player to specific instance
    Kick(miliseconds); - Kicks the player in x miliseconds
    SoftDisconnect(); - Ends the player's session
    Reset_Spells(); - Resets spells
    Reset_Talents(); - Resets Talents
    Reset_ToLevel1(); - Resets player to level 1
    GiveXP(y, guid, true); - Gives y number of XP to a player guid

    Reset_Talents();-Resets players talents
    AddCalculatedRestXP(# of seconds); - Adds rested xp to player equal to # of seconds
    GetPositionX(); - Get player's X coordinate
    GetPositionY(); - Get player's Y coordinate
    GetPositionZ(); - Get player's Z coordinate
    GetPositionO(); - Get player's O coordinate
    KillPlayer(); - Kills the player
    ResurrectPlayer(); - Resurrects the player
    SetBindPoint(x, y, z, mapid, zoneid); - Bind the player's hearthstone
    ModStanding(Faction, Value); - Modifies the player's standing with the Faction
    _AdvanceSkillLine(SkillLine, x); - Advances a skill line x times
    _AddSkillLine(SkillLine, min, max); - Adds skill line x with minimum and maximum level
    _RemoveSkillLine(x); - Removes skill line x
    _HasSkillLine(x); - Returns true if player has skill line x
    _RemoveAllSkills(); - Removes all skills from player

    SetTaximask(i, 0xFFFFFFFF);-Unlocks all flight paths
    _RemoveLanguages(); - Removes all languages from player
    _AddLanguages(true); - Adds all languages to player
    _AdvanceAllSkills(x); - Advances all skills x times
    _ModifySkillMaximum(SkillLine, Max); - Sets a skill level equal to Max
    GetClass(); - Returns the player's class
    GetRace(); Returns the player's race
    getLevel(); - Returns the player's level
    GetGUID(); - Returns the player's guid
    GetLowGuid(); - Returns the player's low guid
    getTeam(); Returns true (1) if player is horde
    GetItemInterface()->GetItemCount(itemid, false); - Returns the number of itemid the player has

    GetUInt32Value(PLAYER_FIELD_COINAGE);-Gets players copper amount
    PlaySoundToSet(entryid); - Plays a sound entry
    SetFlag(PLAYER_EXPLORED_ZONES_1+i,0xFFFFFFFF);-Lets all player maps show
    EventTeleport(37, 122.486130, 1017.602112, 295.270355);- Teleports
    Item * pItem = objmgr.CreateItem(itemid, Player);
    GetItemInterface()->AddItemToFreeSlot(pItem); - Adds and item to Player

    LevelInfo * Info = objmgr.GetLevelInfo(PlayerRace, PlayerClass, level);
    ApplyLevelInfo(Info, level); - mods a players level



    PVP
    IsPvPFlagged() - When returned true, player is in pvp
    SetPvPFlag(); - Sets the player in pvp
    RemovePvPFlag(); - Removes the player from pvp
    IsFFAPvPFlagged() - When returned true, player is in FFA pvp
    SetFFAPvPFlag(); - Sets the player in FFA pvp
    RemoveFFAPvPFlag(); - Removes the player from FFA pvp
    RecalculateHonor(); - Reloads honor

    AddKnownTitle(18);-adds title rank 18SetPVPRank(8);- sets pvp rankSetUInt32Value(UNIT_FIELD_DISPLAYID, 17233);- sets display idDeMorph();- dimorphs player


    PVE
    CombatStatus.IsInCombat();-returns true for aplayer that is in combat

    Spells
    AddAura(#); - Adds an aura to the player
    addSpell(spellid); - Adds a spell to the player
    CastSpell(target, spellid, 0); - Cast a spell on target
    HasSpell(spellid); - Returns true if the player has the spell

    Quests
    HasFinishedQuest(quest_id); - Returns true if player has finished the quest
    HasQuestForItem(itemid); - Returns true if player has quest item
    HasQuestSpell(spellid); - Returns true if player has quest spell
    HasQuest(quest_id); - Returns true if player has quest


    Gossip
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);-Creates the main menu
    GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)- Makes the sub menus and options
    Menu->AddItem(0, "Take Me To Alliance Mall", 201)- Adds a new option in menu
    Gossip_Complete();-tells script its done computing script until called again



    Server Hooks

    OnNewCharacter(uint32 Race, uint32 Class, WorldSession * Session, const char * Name);
    OnKillPlayer(Player * pPlayer, Player * pVictim);
    OnFirstEnterWorld(Player * pPlayer);
    OnEnterWorld(Player * pPlayer);
    OnGuildCreate(Player * pLeader, Guild * pGuild);
    OnGuildJoin(Player * pPlayer, Guild * pGuild);
    OnDeath(Player * pPlayer);
    OnRepop(Player * pPlayer);
    OnEmote(Player * pPlayer, uint32 Emote, Unit * pUnit);
    OnEnterCombat(Player * pPlayer, Unit * pTarget);
    OnCastSpell(Player * pPlayer, SpellEntry * pSpell);
    OnLogoutRequest(Player * pPlayer);
    OnLogout(Player * pPlayer);
    OnQuestAccept(Player * pPlayer, Quest * pQuest, Object * pQuestGiver);
    OnZone(Player * pPlayer, uint32 Zone);
    OnChat(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message, const char * Misc);
    OnLoot(Player * pPlayer, Unit * pTarget, uint32 Money, uint32 ItemId);
    OnEnterWorld2(Player * pPlayer);
    OnCharacterCreate(Player * pPlayer);
    OnQuestCancelled(Player * pPlayer, Quest * pQuest);
    OnQuestFinished(Player * pPlayer, Quest * pQuest, Object * pQuestGiver);
    OnHonorableKill(Player * pPlayer, Player * pKilled);
    OnArenaFinish(Player * pPlayer, ArenaTeam* pTeam, bool victory, bool rated);
    OnObjectLoot(Player * pPlayer, Object * pTarget, uint32 Money, uint32 ItemId);
    OnAreaTrigger(Player * pPlayer, uint32 areaTrigger);
    OnPostLevelUp(Player * pPlayer);
    OnPreUnitDie(Unit *Killer, Unit *Victim);
    OnAdvanceSkillLine(Player * pPlayer, uint32 SkillLine, uint32 Current);
    OnDealDamage(Player * plr);



    › See More: List of C++ commands
    Last edited by runiker; 12-02-09 at 04:33 AM.



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    First Sergeant
    Blindguard's Avatar
    Join Date
    Jan 2009
    Location
    Orgrimmar
    Posts
    159
    Post Thanks / Like
    Rep Power
    16
    Reputation
    54

    Register to remove this ad
    NICE!!!!!!!!!!!!!!!!!
    Really nice lad!
    Metal are supreme.

 

 

Visitors found this page by searching for:

List of C commands

trinity c commands

full list of c commands

pPlayer->SetFlag(PLAYER_EXPLORED_ZONES_1 i 0xFFFFFFFF);

if(pPlayer->HasItem( trinity c

default: { if (Plr->getClass() != IntId)

OnQuestAccept

trinity plr->

mmofuse.net emote trinity list

teleport oncastspell

list of c comands

trinity c befehle

c trinity Commands

SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 08:43 AM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org