Does any one have a guide or teach me how to do it?
I will +rep you.
Or you can make me a dll that will increase weapon skill to 350 when you click on the item.
Does any one have a guide or teach me how to do it?
I will +rep you.
Or you can make me a dll that will increase weapon skill to 350 when you click on the item.
Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you.
google it :P
If you need me you have my skype, if you don't have my skype then you don't need me.
Yeah I did but it comes up as....
Code:and non of its WoW stuff.Code:int main() { int total_dollars = 0; int total_days_at_3_dollars = 0; int total_days_at_2_dollars = 0; int transaction_code = 0; int days_for_one_video = 0; do { if(transaction_code==2) total_days_at_2_dollars+=days_for_one_video; if(transaction_code==3) total_days_at_3_dollars+=days_for_one_video; cout<<"Please enter a transaction code and number of days a video was rented: "; cin>>transaction_code>>days_for_one_video; }while(transaction_code!=0)
}
Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you.
would be nice if someone put a guid up...i would love to learn too
https://Future-wow.org
you should learn the basis of C++ ill try and see if i can make a guide on it
If you need me you have my skype, if you don't have my skype then you don't need me.
Me too, that would be awsome
Kind of hard to learn...here are 2 example codes (1 that has to do with WoW, taken from MaNGOS source code)
Code:chat.cpp { "die", SEC_ADMINISTRATOR, &ChatHandler::HandleDieCommand, "", NULL },Code:chat.h bool HandleDieCommand(const char* args);1) Chat.cpp is declaring a function ".die" available only to admin ranks. It has &ChatHandler::HandleDieCommand so other code uses chathandler to reach HandleDieCommandCode:level3.cpp bool ChatHandler::HandleDieCommand(const char*) { Unit* target = getSelectedUnit(); if(!target || !m_session->GetPlayer()->GetSelection()) { SendSysMessage("You must select a character or creature"); return true; } if( target->isAlive() ) { m_session->GetPlayer()->DealDamage(target, target->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_NORMAL, NULL, false); } return true; }
2) Chat.h is Again, declaring HandleDieCommand
3) Level3.cpp is declaring it withUnit* target = getSelectedUnit(); is telling the main thingCode:bool ChatHandler::HandleDieCommand(const char*) {
that there will be something selected (clicked on)..kind of
If the target is not a valid selection, you get an error, and return true ends function dieCode:if(!target || !m_session->GetPlayer()->GetSelection()) { SendSysMessage("You must select a character or creature"); return true; }
If the target is valid. The player deals the exact amount of damage needed to kill, then ends command.Code:if( target->isAlive() ) { m_session->GetPlayer()->DealDamage(target, target->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_NORMAL, NULL, false); } return true;
Next tut is too big, so posted in next thing (it is nim sticks)
Le Froid, you should make a guide on this![]()
I left enough comments#include <iostream>
using namespace std;
int main()
{
//Lets start with a welcoming
cout<< "Welcome to the Game of Single-Pile Nim!" << endl; //sends a system message and ends the line
cout<< "-----------------------------------------------" << endl;
cout << "" << endl;
// Define each kind of player
const bool HUMAN_PLAYER = true;
const bool COMPUTER_PLAYER = false;
// define variables
// Human player desides who goes first
char firstPlayer; //who he chooses
bool validPlayer = false; // Did he make a valid choise?
bool currentPlayer;
do
{
// prompt and data entry
cout << "Who plays first? [P]layer or [C]omputer?" << endl;
cin >> firstPlayer;
//analyze the choice
switch( firstPlayer )
{
// if he chose first
case 'P':
case 'p':
validPlayer = true;
currentPlayer = HUMAN_PLAYER;
break;
//if comp is first
case 'C':
case 'c':
validPlayer = false;
currentPlayer = COMPUTER_PLAYER;
break;
// did he make a mistake?
default:
cout << "invalid entry!!!!! ";
break;
}
} while( !validPlayer );
int nimSticks = 22; //start the game! (my hands hurt :P)
while( 0 != nimSticks )
{
//how many in the pile?
cout << "There are now " << nimSticks
<< " in the pile." << endl;
int currentPlayerMove = 0;
if( currentPlayer == HUMAN_PLAYER )
{
bool validHumanMove = false;
do
{
cout << "How many sticks do you want to remove? [1-4]";
cin >> currentPlayerMove;
validHumanMove = ( currentPlayerMove > 0 &&
currentPlayerMove < 5 &&
currentPlayerMove <= nimSticks );
if( !validHumanMove )
cout << "Between 1 and 4, and no more then there are "
<< "in the pile, please." << endl;
} while( !validHumanMove );
}
else //computer guy
{
int idealMove = ( nimSticks % 5 );
if( 0 == idealMove )
currentPlayerMove = 1;
else
currentPlayerMove = idealMove;
cout << "I am taking " << currentPlayerMove << " sticks from the pile." << endl;
}
nimSticks -= currentPlayerMove;
if( 0 == nimSticks )
{
if( HUMAN_PLAYER == currentPlayer )
{
// winner!
cout << "You win, Congratz!!" << endl;
}
else
{
cout << "You lost! Play again for $0.25? " << endl;
}
}
else
{
currentPlayer = !currentPlayer;
}
}
return 0;
}![]()
well tutorials and ascentwiki is what i use if i need to do something in C++:
Understanding Ascent Code - Ascent Wiki
C - Ascent Wiki
(google for tutorials or ebooks)
ofcours examples like the one Le Froid posted are very nice too, you can learn a lot from them too...
grtz![]()
i'll make a WoW C++ guide.
you should as long as it dosnt have 100% ripped contenti'll make a WoW C++ guide.
If you need me you have my skype, if you don't have my skype then you don't need me.
guys if you want to learn C++ (and are new at coding) go start somewhere elsec++ is verry verry hard! you should start with visual basic/auto it/java and then when you are good at that change to C then C++
![]()