Register for your free account! | Forgot your password?

You last visited: Today at 17:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PlayerID

Discussion on PlayerID within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #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.
mohm195 is offline  
Old 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);
pamz12 is offline  
Old 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?
thekingisback is offline  
Old 06/09/2012, 00:46   #4
 
RunzelEier's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,196
Received Thanks: 682
Quote:
Originally Posted by pamz12 View Post
have you tried this?
PacketSend(0x2c,"bd",1,Player[i].PID);
Y U NO USE GENERIC PROGRAMMING?
RunzelEier is offline  
Old 06/09/2012, 06:16   #5
 
elite*gold: 0
Join Date: Oct 2010
Posts: 159
Received Thanks: 73
Quote:
Originally Posted by pamz12 View Post
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
mohm195 is offline  
Old 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?
pamz12 is offline  
Old 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
mohm195 is offline  
Old 06/09/2012, 10:59   #8
 
Roronoa Z.'s Avatar
 
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.
Roronoa Z. is offline  
Thanks
3 Users
Old 06/09/2012, 11:32   #9
 
elite*gold: 0
Join Date: Oct 2010
Posts: 159
Received Thanks: 73
Thanks! it rocks xD
mohm195 is offline  
Old 06/09/2012, 17:29   #10
 
meak1's Avatar
 
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);
}
meak1 is offline  
Thanks
1 User
Old 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
katze123 is offline  
Old 06/10/2012, 03:20   #12
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
?
meak1 is offline  
Old 06/10/2012, 09:28   #13
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
strcmp statt stricmp :-D
katze123 is offline  
Old 06/10/2012, 11:18   #14
 
meak1's Avatar
 
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...
meak1 is offline  
Old 06/10/2012, 15:17   #15
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
Quote:
Originally Posted by meak1 View Post
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
katze123 is offline  
Reply

Tags
player




All times are GMT +2. The time now is 17:00.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.