|
You last visited: Today at 17:00
Advertisement
PlayerID
Discussion on PlayerID within the Kal Online forum part of the MMORPGs category.
06/08/2012, 20:27
|
#1
|
elite*gold: 0
Join Date: Oct 2010
Posts: 159
Received Thanks: 73
|
PlayerID
Hello epvpers!
Lately I've been trying to make a force party hack on KoemV2. I've made it like, when Player Appear -> write his name to text file and his ID. Then send the ID I want to force. But when I do this it just says "The character is not connected or not in range."
Anyideas why this happen? Although it was working when was just PlayerAppear then send to the AppearedPlayer.
|
|
|
06/08/2012, 21:03
|
#2
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,102
Received Thanks: 185
|
have you tried this?
PacketSend(0x2c,"bd",1,Player[i].PID);
|
|
|
06/08/2012, 21:14
|
#3
|
elite*gold: 0
Join Date: Feb 2008
Posts: 116
Received Thanks: 2
|
i know it isnt the place to post this but do u know the Name Changer npc ID?
|
|
|
06/09/2012, 00:46
|
#4
|
elite*gold: 0
Join Date: Dec 2010
Posts: 1,196
Received Thanks: 682
|
Quote:
Originally Posted by pamz12
have you tried this?
PacketSend(0x2c,"bd",1,Player[i].PID);
|
Y U NO USE GENERIC PROGRAMMING?
|
|
|
06/09/2012, 06:16
|
#5
|
elite*gold: 0
Join Date: Oct 2010
Posts: 159
Received Thanks: 73
|
Quote:
Originally Posted by pamz12
have you tried this?
PacketSend(0x2c,"bd",1,Player[i].PID);
|
I have got this working, but when I read PlayerID from text file it doesn't work.
@thekingisback It's different from server to other, and what could you need it for ?;o
|
|
|
06/09/2012, 07:19
|
#6
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,102
Received Thanks: 185
|
why would you like to write it in text file, it seems wierd?
|
|
|
06/09/2012, 09:19
|
#7
|
elite*gold: 0
Join Date: Oct 2010
Posts: 159
Received Thanks: 73
|
First file write all PlayersIDs to a text, then I just pick a ID and put it in other file to forceit.
Got better idea? xD
|
|
|
06/09/2012, 10:59
|
#8
|
elite*gold: 0
Join Date: Nov 2011
Posts: 269
Received Thanks: 87
|
make a map,
std::map<int,std::string> Force_m;
then you can either search for the playerid -> Force_m.find(PID);
or you can search for the name and get the PID then ->
for(std::map<int,std::string>::iterator it = Force_m.begin(); it != Force_m.end();++it)
if(it->second == "Your name") it->first; //it->first is your PID then.
|
|
|
06/09/2012, 11:32
|
#9
|
elite*gold: 0
Join Date: Oct 2010
Posts: 159
Received Thanks: 73
|
Thanks! it rocks xD
|
|
|
06/09/2012, 17:29
|
#10
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
if (stricmp(Player[i].name,"urMother") == 0){
printf(">> Player ID: %d\n<< ", Player[i].ID);
}
|
|
|
06/09/2012, 23:05
|
#11
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
da isn "i" zuviel drin meak
|
|
|
06/10/2012, 03:20
|
#12
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
?
|
|
|
06/10/2012, 09:28
|
#13
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
strcmp statt stricmp :-D
|
|
|
06/10/2012, 11:18
|
#14
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
ne is richtig ;\
das i war glaube für groß und kleinschreibung...
|
|
|
06/10/2012, 15:17
|
#15
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
Quote:
Originally Posted by meak1
ne is richtig ;\
das i war glaube für groß und kleinschreibung...
|
jo stimmt, mit i ist es ihm aber egal ob groß oder klein.. also wäre bei stricmp
char1 == ChAr1 true
|
|
|
All times are GMT +2. The time now is 17:00.
|
|