Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-25-2003, 05:30 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by GrowlZ1010
Just out of interest, how did you get the last four digits of the final checksum, and how hard do you think it would be to get an entire one without any obvious clues or hints?
I just looked at the different letters in the sections separated by a space. I put together different word combinations and found which words worked with the previous words I already had from the first four digits. If I hadn't had any of the first four digits, AND the string was completely different, it would have been far more difficult to figure out.

Note that the two strings both start with "This is a". That's what made it easier. :P

Oh, the script. I just made it so I could use it offline pretty easily.
NPC Code:

if (created) setstring this.checksum,14259735;
if (playerchats) {
if (startswith(ENC-,#c)) {
unset this.realstr;
setstring this.str,#e(4,-1,#c);
this.checksumparse = 0;
for (this.a = 0;this.a < strlen(#s(this.str));) {
setstring this.realstr,#s(this.realstr)#e(this.a,1,#s(this.s tr));
this.a += strtofloat(#e(this.checksumparse,1,#s(this.checksu m))) + 1;
this.checksumparse++;
if (this.checksumparse == strlen(#s(this.checksum))) this.checksumparse = 0;
}
message #s(this.realstr);
}
}

__________________
Kat
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.